<?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>notation &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/tag/notation/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bestdevops.com</link>
	<description>Lets Learn, Do it &#38; Share! Thats a Best DevOps!!!</description>
	<lastBuildDate>Tue, 17 May 2022 04:06:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>
	<item>
		<title>Understanding the big O (big oh) notation</title>
		<link>https://www.bestdevops.com/understanding-the-big-o-big-oh-notation/</link>
					<comments>https://www.bestdevops.com/understanding-the-big-o-big-oh-notation/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Tue, 10 May 2022 17:22:00 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[big oh]]></category>
		<category><![CDATA[notation]]></category>
		<category><![CDATA[Understanding]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=23488</guid>

					<description><![CDATA[The big O notation is very essential for the evaluation of algorithms. We want to have a solid understanding of [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">The big O notation is very essential for the evaluation of algorithms. We want to have a solid understanding of this notation and how to use this in the future. we are going to talk about the massive O notation in the course of this phase.</p>



<p class="wp-block-paragraph">Our algorithm for finding the books and placing them has n number of objects. For the first book search, it&#8217;s going to evaluate n number of books for the worst case situation. If we are saying time complexity is T, then for the primary e book the time complexity may be:</p>


<pre class="wp-block-code"><span><code class="hljs">T(1) = n</code></span></pre>


<p class="wp-block-paragraph">As we are eliminating the founded book from the listing, the scale of the list is now n-1. For the second e-book seek, it&#8217;s going to evaluate n-1 wide variety of books for the worst case scenario. Then for the second one ebook, the time complexity could be n-1. Combining the each time complexities, for first two books it&#8217;ll be:</p>


<pre class="wp-block-code"><span><code class="hljs">T(2) = n + (n - 1)</code></span></pre>


<p class="wp-block-paragraph">If we hold like this, after the n-1 steps the ultimate book seek will most effective have 1 e-book left to evaluate. So, the overall complexity will look like:</p>


<pre class="wp-block-code"><span><code class="hljs">T(n) = n + (n - 1) + (n - 2) + . . . . . . .  . . . . + 3 + 2 + 1 </code></span></pre>


<p class="wp-block-paragraph">Now if we take a look at the previous series, would not it appearance acquainted? it&#8217;s also known as the sum of n numbers equation as proven:</p>



<figure class="wp-block-image size-full is-resized"><img decoding="async" src="https://www.bestdevops.com/wp-content/uploads/2022/05/87fc27d7-dcba-4a9a-ac06-5dddd76d056c-1.jpg" alt="" class="wp-image-23490" width="146" height="51" /></figure>



<p class="wp-block-paragraph"><strong>So we can write:</strong></p>


<pre class="wp-block-code"><span><code class="hljs">T(n) = n(n + 1)/2 </code></span></pre>


<p class="wp-block-paragraph"><strong>Or:</strong></p>


<pre class="wp-block-code"><span><code class="hljs">T(n) = n2/2 + n/2 </code></span></pre>


<p class="wp-block-paragraph">For asymptotic evaluation, we ignore low order phrases and steady multipliers. on account that we have n2, we will effortlessly ignore the n right here. additionally, the half of constant multiplier also can be not noted. Now we will express the time complexity with the big O notation as the order of n squared:</p>


<pre class="wp-block-code"><span><code class="hljs">T(n) = O(n2) </code></span></pre>


<p class="wp-block-paragraph">throughout the book, we can be using this huge O notation to explain complexity of the algorithms or operations. right here are some commonplace huge O notations:</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/understanding-the-big-o-big-oh-notation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
