<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>complexity Archives - Huahua&#039;s Tech Road</title>
	<atom:link href="https://zxi.mytechroad.com/blog/tag/complexity/feed/" rel="self" type="application/rss+xml" />
	<link>https://zxi.mytechroad.com/blog/tag/complexity/</link>
	<description></description>
	<lastBuildDate>Mon, 01 Jan 2018 22:09:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.8</generator>

<image>
	<url>https://zxi.mytechroad.com/blog/wp-content/uploads/2017/09/cropped-photo-32x32.jpg</url>
	<title>complexity Archives - Huahua&#039;s Tech Road</title>
	<link>https://zxi.mytechroad.com/blog/tag/complexity/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>花花酱 LeetCode Input Size V.S. Time Complexity SP2</title>
		<link>https://zxi.mytechroad.com/blog/sp/input-size-v-s-time-complexity/</link>
					<comments>https://zxi.mytechroad.com/blog/sp/input-size-v-s-time-complexity/#respond</comments>
		
		<dc:creator><![CDATA[zxi]]></dc:creator>
		<pubDate>Fri, 29 Dec 2017 02:52:44 +0000</pubDate>
				<category><![CDATA[SP]]></category>
		<category><![CDATA[complexity]]></category>
		<guid isPermaLink="false">http://zxi.mytechroad.com/blog/?p=1345</guid>

					<description><![CDATA[<p>本期节目介绍了输入数据规模和时间复杂度上限的关系，可以通过数据规模推算使用算法的类型。 &#160; &#60; 10: O(n!) permutation &#60; 15: O(2^n) combination &#60; 50: O(n^4) DP &#60; 200: O(n^3) DP, all pairs shortest path &#60; 1,000: O(n^2)&#8230;</p>
<p>The post <a rel="nofollow" href="https://zxi.mytechroad.com/blog/sp/input-size-v-s-time-complexity/">花花酱 LeetCode Input Size V.S. Time Complexity SP2</a> appeared first on <a rel="nofollow" href="https://zxi.mytechroad.com/blog">Huahua&#039;s Tech Road</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><iframe width="500" height="375" src="https://www.youtube.com/embed/eG99FDBeuJo?feature=oembed" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe></p>
<p>本期节目介绍了输入数据规模和时间复杂度上限的关系，可以通过数据规模推算使用算法的类型。</p>
<p>&nbsp;</p>
<p><img class="alignnone size-full wp-image-1349" src="http://zxi.mytechroad.com/blog/wp-content/uploads/2017/12/sp2.png" alt="" width="960" height="540" srcset="https://zxi.mytechroad.com/blog/wp-content/uploads/2017/12/sp2.png 960w, https://zxi.mytechroad.com/blog/wp-content/uploads/2017/12/sp2-300x169.png 300w, https://zxi.mytechroad.com/blog/wp-content/uploads/2017/12/sp2-768x432.png 768w" sizes="(max-width: 960px) 100vw, 960px" /></p>
<ul>
<li>&lt; 10: O(n!) permutation</li>
<li>&lt; 15: O(2^n) combination</li>
<li>&lt; 50: O(n^4) DP</li>
<li>&lt; 200: O(n^3) DP, all pairs shortest path</li>
<li>&lt; 1,000: O(n^2) DP, all pairs, dense graph</li>
<li>&lt; 1,000,000: O(nlogn), sorting-based (greedy), heap, divide &amp; conquer</li>
<li>&lt; 1,000,000: O(n), DP, graph traversal / topological sorting (V+E), tree traversal</li>
<li>&lt; INT_MAX: O(sqrt(n)), prime, square sum</li>
<li>&lt; INT_MAX: O(logn), binary search</li>
<li>&lt; INT_MAX: O(1) Math</li>
</ul>
<p>The post <a rel="nofollow" href="https://zxi.mytechroad.com/blog/sp/input-size-v-s-time-complexity/">花花酱 LeetCode Input Size V.S. Time Complexity SP2</a> appeared first on <a rel="nofollow" href="https://zxi.mytechroad.com/blog">Huahua&#039;s Tech Road</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://zxi.mytechroad.com/blog/sp/input-size-v-s-time-complexity/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
