<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Algorithms on Time Friend</title><link>https://time-friend.com/en/tags/algorithms/</link><description>Recent content in Algorithms on Time Friend</description><generator>Hugo</generator><language>en-GB</language><lastBuildDate>Wed, 29 Jul 2026 15:15:07 +0800</lastBuildDate><atom:link href="https://time-friend.com/en/tags/algorithms/index.xml" rel="self" type="application/rss+xml"/><item><title>Algorithm Complexity Analysis</title><link>https://time-friend.com/en/archive/algorithm-complexity-analysis/</link><pubDate>Tue, 19 Dec 2017 22:17:36 +0000</pubDate><guid>https://time-friend.com/en/archive/algorithm-complexity-analysis/</guid><description>&lt;p&gt;Everything is to count the efficiency of code execution&lt;/p&gt;
&lt;h2 id="post-statistical-method"&gt;Post-Statistical Method&lt;/h2&gt;
&lt;p&gt;Through statistics and monitoring, we can get the execution time and memory usage of the algorithm&lt;/p&gt;
&lt;h2 id="big-o-complexity-notation"&gt;Big O Complexity Notation&lt;/h2&gt;
&lt;p&gt;As data scale grows, algorithm execution time and space usage grow proportionally according to polynomials&lt;/p&gt;
&lt;h3 id="time-complexity-ranking-from-best-to-worst"&gt;Time Complexity Ranking (from best to worst)&lt;/h3&gt;
&lt;p&gt;&lt;img src="https://incomparable9527.coding.net/p/imageBed/d/imageBed/git/raw/master/35125f99fc7c79d019449ecdf8ef04434feaef35ccc580fd22326dffe1e58ca6.png" alt="Figure 1"&gt;&lt;/p&gt;
&lt;p&gt;O(1) (constant order) &amp;lt; O(logn) (logarithmic order) &amp;lt; O(n) (linear order) &amp;lt; O(nlogn) (linear logarithmic order) &amp;lt; O(n^2) (quadratic order) &amp;lt; O(n^3) (cubic order) &amp;lt; O(2^n) (exponential order) &amp;lt; O(n!) (factorial order)&lt;/p&gt;</description></item></channel></rss>