<?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>input data &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/input-data/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>Friday Algorithms: Input Data and Complexity</title>
		<link>/2010/09/03/friday-algorithms-input-data-and-complexity/</link>
		<comments>/2010/09/03/friday-algorithms-input-data-and-complexity/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 09:32:47 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[algorithms]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[algorithm complexity]]></category>
		<category><![CDATA[Computational complexity theory]]></category>
		<category><![CDATA[Context of computational complexity]]></category>
		<category><![CDATA[In-place algorithm]]></category>
		<category><![CDATA[input data]]></category>
		<category><![CDATA[Mathematics]]></category>
		<category><![CDATA[Sorting algorithms]]></category>
		<category><![CDATA[Technology/Internet]]></category>
		<category><![CDATA[Theoretical computer science]]></category>

		<guid isPermaLink="false">/?p=1955</guid>
		<description><![CDATA[Size of .. As we all know most of the cases a program execution time depends most from the input data. As I wrote in my post the degree of the input data estimates the algorithm complexity. Of course 3*n² is a bit faster than 5*n², but in general both functions are similar and have &#8230; <a href="/2010/09/03/friday-algorithms-input-data-and-complexity/" class="more-link">Continue reading <span class="screen-reader-text">Friday Algorithms: Input Data and Complexity</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/07/16/friday-algorithms-a-data-structure-javascript-stack/" rel="bookmark" title="Friday Algorithms: A Data Structure: JavaScript Stack">Friday Algorithms: A Data Structure: JavaScript Stack </a></li>
<li><a href="/2012/01/30/computer-algorithms-data-compression-with-relative-encoding/" rel="bookmark" title="Computer Algorithms: Data Compression with Relative Encoding">Computer Algorithms: Data Compression with Relative Encoding </a></li>
<li><a href="/2012/02/06/computer-algorithms-data-compression-with-prefix-encoding/" rel="bookmark" title="Computer Algorithms: Data Compression with Prefix Encoding">Computer Algorithms: Data Compression with Prefix Encoding </a></li>
<li><a href="/2012/02/27/computer-algorithms-shell-sort/" rel="bookmark" title="Computer Algorithms: Shell Sort">Computer Algorithms: Shell Sort </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>Size of ..</h2>
<p>As we all know most of the cases a program execution time depends most from the input data. As I wrote in my <a title="Algorithm complexity and estimation" href="/2010/08/29/beginning-algorithm-complexity-and-estimation/" target="_blank">post</a> the degree of the input data estimates the algorithm complexity.</p>
<p>Of course 3*n² is a bit faster than 5*n², but in general both functions are similar and have the same complexity. In this case we tend to say that the size of the input data is n.</p>
<figure id="attachment_1961" style="width: 430px" class="wp-caption alignnone"><a href="/wp-content/uploads/2010/09/input-data.jpg"><img class="size-full wp-image-1961 " title="input-data" src="/wp-content/uploads/2010/09/input-data.jpg" alt="Size of the input data" width="430" height="137" srcset="/wp-content/uploads/2010/09/input-data.jpg 430w, /wp-content/uploads/2010/09/input-data-300x95.jpg 300w" sizes="(max-width: 430px) 100vw, 430px" /></a><figcaption class="wp-caption-text">The size of the input data affects the complexity of the algorithm</figcaption></figure>
<p>It is easy to bind this to arrays or other simple data structures. For example when sorting an array with n elements, the size of the input data is n, but sometimes there is not such an obvious relation between an algorithm and the size of the input data.</p>
<p>For instance when we&#8217;ve to search a path into a graph, than maybe the best way to describe the input data is by summing both the number of vertices and the number of edges.</p>
<h2>Conclusion</h2>
<figure id="attachment_1963" style="width: 430px" class="wp-caption alignnone"><a href="/wp-content/uploads/2010/09/think.jpg"><img class="size-full wp-image-1963 " title="Think, think, think" src="/wp-content/uploads/2010/09/think.jpg" alt="Think, think, think" width="430" height="286" srcset="/wp-content/uploads/2010/09/think.jpg 430w, /wp-content/uploads/2010/09/think-300x199.jpg 300w" sizes="(max-width: 430px) 100vw, 430px" /></a><figcaption class="wp-caption-text">Think, think, think</figcaption></figure>
<p>However this is important when dealing with algorithms, because a mistake in the estimation of the input data size will result in wrong algorithm estimation at all</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/07/16/friday-algorithms-a-data-structure-javascript-stack/" rel="bookmark" title="Friday Algorithms: A Data Structure: JavaScript Stack">Friday Algorithms: A Data Structure: JavaScript Stack </a></li>
<li><a href="/2012/01/30/computer-algorithms-data-compression-with-relative-encoding/" rel="bookmark" title="Computer Algorithms: Data Compression with Relative Encoding">Computer Algorithms: Data Compression with Relative Encoding </a></li>
<li><a href="/2012/02/06/computer-algorithms-data-compression-with-prefix-encoding/" rel="bookmark" title="Computer Algorithms: Data Compression with Prefix Encoding">Computer Algorithms: Data Compression with Prefix Encoding </a></li>
<li><a href="/2012/02/27/computer-algorithms-shell-sort/" rel="bookmark" title="Computer Algorithms: Shell Sort">Computer Algorithms: Shell Sort </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2010/09/03/friday-algorithms-input-data-and-complexity/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
