<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ayush Singh Bhadoria's blog]]></title><description><![CDATA[Ayush Singh Bhadoria's blog]]></description><link>https://ayushsinghbhadoria.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Wed, 24 Jun 2026 13:24:06 GMT</lastBuildDate><atom:link href="https://ayushsinghbhadoria.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Priori & Posteriori  Analysis.]]></title><description><![CDATA[Before Getting into the Priori and Posteriori Analysis, let us first understand what are Algorithms and why we need to analyze them.
Algorithms
In simple words, An Algorithm is a step by step instructions to solve a given problem.
Why we need to anal...]]></description><link>https://ayushsinghbhadoria.hashnode.dev/priori-posteriori-analysis</link><guid isPermaLink="true">https://ayushsinghbhadoria.hashnode.dev/priori-posteriori-analysis</guid><category><![CDATA[algorithms]]></category><dc:creator><![CDATA[Ayush Singh Bhadoria]]></dc:creator><pubDate>Tue, 25 Oct 2022 03:36:13 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/unsplash/q10VITrVYUM/upload/v1666668899105/eMu2T-AK0.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Before Getting into the Priori and Posteriori Analysis, let us first understand what are Algorithms and why we need to analyze them.</p>
<h1 id="heading-algorithms">Algorithms</h1>
<p>In simple words, An Algorithm is a step by step instructions to solve a given problem.</p>
<h2 id="heading-why-we-need-to-analyse-the-algorithms">Why we need to analyse the Algorithms.</h2>
<p>To solve a given problem, there could exist a plethora of ways, but we need to find the best one out of those, that's why the analysis of the algorithm is necessary.</p>
<h1 id="heading-priori-analysis">Priori Analysis.</h1>
<ul>
<li>As the name suggests it is done before the execution of the algorithm on a system.</li>
<li>It is a theoretical analysis of the algorithm, Hence it is independent of the configuration of the system.  </li>
<li>The results of the Priori analysis would be the same on every machine.</li>
<li>It generates the approximate statistics of the Algorithm in terms of Time &amp; Space Complexity. </li>
<li>The Priori Analysis is done using Asymptotic Notation. </li>
</ul>
<h1 id="heading-posteriori-analysis">Posteriori Analysis.</h1>
<ul>
<li>As the name suggests it is done after the execution of the algorithm on a system.</li>
<li>This analysis is dependent on the configuration of the system. 
The Program would execute faster on M1 &gt;&gt; i7 &gt;&gt; i3 &gt;&gt; Pentium.</li>
<li>This is dependent on the programming language, If the Algorithm is written in C++ it would execute faster comparing it to the algorithm written in Python language. </li>
<li>It generates the actual statistics of Algorithms.</li>
</ul>
]]></content:encoded></item></channel></rss>