<?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>algorithm Archives -</title>
	<atom:link href="https://mitindia.in/tag/algorithm/feed/" rel="self" type="application/rss+xml" />
	<link>https://mitindia.in/tag/algorithm/</link>
	<description></description>
	<lastBuildDate>Sun, 20 Nov 2016 07:45:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://mitindia.in/wp-content/uploads/2023/03/cropped-android-chrome-512x512-1-32x32.png</url>
	<title>algorithm Archives -</title>
	<link>https://mitindia.in/tag/algorithm/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Data structure and algorithm</title>
		<link>https://mitindia.in/data-structure-algorithm/</link>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Sun, 20 Nov 2016 07:36:04 +0000</pubDate>
				<category><![CDATA[C Programming]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[algorithm]]></category>
		<category><![CDATA[cpp]]></category>
		<category><![CDATA[data structure]]></category>
		<category><![CDATA[programming]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=594</guid>

					<description><![CDATA[<p>Data Structures A data structure is a logical method of representing data in memory. Data structure is strictly described as an instance of an Abstract Data Type (ADT). An Abstract Data Type is defined as a mathematical model of a user-defined type along with the operations performed on that model. Data Structure Strengths Weaknesses Array [&#8230;]</p>
<p>The post <a href="https://mitindia.in/data-structure-algorithm/">Data structure and algorithm</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>Data Structures<img decoding="async" class="alignright" src="http://image.slidesharecdn.com/lecture1-m-131122062232-phpapp02/95/lecture-1-data-structures-and-algorithms-1-638.jpg?cb=1385105034" alt="Image result for data structures and algorithms" width="177" height="133" /></h3>
<ul>
<li>A data structure is a logical method of representing data in memory.</li>
<li>Data structure is strictly described as an instance of an Abstract Data Type (ADT).</li>
<li>An Abstract Data Type is defined as a mathematical model of a user-defined type along with the operations performed on that model.</li>
</ul>
<table border="1" width="650">
<tbody>
<tr>
<td width="169"><strong>Data Structure</strong></td>
<td width="334"><strong>Strengths</strong></td>
<td width="254"><strong>Weaknesses</strong></td>
</tr>
<tr>
<td width="169">Array</td>
<td width="334">Fast access if index is known</td>
<td width="254">Slow search, fixed size</td>
</tr>
<tr>
<td width="169">Stack</td>
<td width="334">Features last in – first out access</td>
<td width="254">Slow access to other elements</td>
</tr>
<tr>
<td width="169">Queue</td>
<td width="334">Features first in – first out access</td>
<td width="254">Slow access to other elements</td>
</tr>
<tr>
<td width="169">Linked list</td>
<td width="334">Quick insertion and deletion</td>
<td width="254">Slow search</td>
</tr>
<tr>
<td width="169">Binary tree</td>
<td width="334">Quick insertion, deletion and search when tree is balanced</td>
<td width="254">Deletion procedure is complex</td>
</tr>
<tr>
<td width="169">Hash table</td>
<td width="334">Fast insertion and access if key is known</td>
<td width="254">Inefficient memory usage, slow access if key is not known</td>
</tr>
<tr>
<td width="169">Heap</td>
<td width="334">Fast insertion, deletion and access to largest element</td>
<td width="254">Slow access to other elements</td>
</tr>
<tr>
<td width="169">Graph</td>
<td width="334">Simulates real world problems</td>
<td width="254">Some algorithms are slow and complex</td>
</tr>
</tbody>
</table>
<h5>Algorithm</h5>
<p>An algorithm can be described as sequence of steps or instructions required to solve a given problem.</p>
<p>It is a finite set of instructions written to accomplish a particular task.</p>
<p>When designing an algorithm, one must ensure that the</p>
<p>algorithm adheres to the following criteria:</p>
<p>Input: Some input data (can be empty in some cases) externally supplied to the algorithm</p>
<p>Output: At least one output is produced</p>
<p>Finiteness: The algorithm must terminate after finite number of steps</p>
<p>Definiteness: The instructions must be clear and unambiguous</p>
<p>Effectiveness: Every instruction must be basic enough to be carried out on paper</p>
<p><strong>Following are certain points to be considered</strong></p>
<p>while writing an algorithm :</p>
<p>Representing an algorithm.</p>
<p>Designing an algorithm.</p>
<p>Analyzing an algorithm.</p>
<p><strong>Algorithm Analysis</strong></p>
<p>Algorithm Analysis involves comparing different algorithms written for a specific problem. All the algorithms are compared for their space and time complexities.</p>
<p>Space complexity: It refers to the amount of storage the algorithm consumes.</p>
<p>Time complexity: It is the time required by the algorithm for execution.</p>
<p><strong>Following are the different types of time complexities:</strong></p>
<p>Best-case time complexity: It is the measure of minimum time required for an algorithm to execute for a known input size.</p>
<p>Average case time complexity: Average time complexity is the measure of time an algorithm will require to execute, for a typical input data size. This method requires statistical calculations.</p>
<p>Worst-case time complexity: It is the measure of maximum time required for an algorithm to execute for a known input size.</p>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Fdata-structure-algorithm%2F&amp;linkname=Data%20structure%20and%20algorithm" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fmitindia.in%2Fdata-structure-algorithm%2F&amp;linkname=Data%20structure%20and%20algorithm" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fmitindia.in%2Fdata-structure-algorithm%2F&#038;title=Data%20structure%20and%20algorithm" data-a2a-url="https://mitindia.in/data-structure-algorithm/" data-a2a-title="Data structure and algorithm"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/data-structure-algorithm/">Data structure and algorithm</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Algorithm and Flowchart</title>
		<link>https://mitindia.in/algorithm-and-flowchart/</link>
					<comments>https://mitindia.in/algorithm-and-flowchart/#comments</comments>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Tue, 05 Jul 2016 06:44:40 +0000</pubDate>
				<category><![CDATA[C Programming]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[algorithm]]></category>
		<category><![CDATA[flowchart]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=240</guid>

					<description><![CDATA[<p>Algorithm:- Formulation of an approach to solve a problem in simple and understandable language is called an algorithm. Statements in algorithms clearly explain the action that is to be performed by that step. The steps have to be short and precise. Collection of these steps, helps solve the problem. Two different individuals can write two different [&#8230;]</p>
<p>The post <a href="https://mitindia.in/algorithm-and-flowchart/">Algorithm and Flowchart</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Algorithm:- Formulation of an approach to solve a problem in simple and understandable language is called an algorithm.</h2>
<ul>
<li>Statements in algorithms clearly explain the action that is to be performed by that step.</li>
<li>The steps have to be short and precise.</li>
<li>Collection of these steps, helps solve the problem.</li>
</ul>
<p>Two different individuals can write two different algorithms to achieve the same result.</p>
<p>Algorithm to add two numbers.<br />
======================<br />
1. Accept two [a &amp; b] values from the user.<br />
2. Compute [c=a+b]<br />
3. Display the sum[c].</p>
<p>Flowchart:- Pictorial representation of the approach to solving a problem, with use of standard set of symbols, is a Flow Chart.</p>
<p>As a picture speaks better than words, drawing a diagram will help the user understand the solution easily.<br />
The Flow chart can also help the user to understand the correct flow of actions and steps to follow.</p>
<p><span style="color: #993300;">Flow chart uses a standard set of symbols.</span></p>
<ul>
<li>Rectangles for processing</li>
<li>Diamond shapes for decision making</li>
<li>The symbols are accepted and understood uniformly by all the programmers in the world.</li>
<li>Connectors are used to link flow charts that are in multiple pages.</li>
<li>Any flow chart always has a START and STOP.</li>
</ul>
<p><img fetchpriority="high" decoding="async" class="alignnone" src="http://1.bp.blogspot.com/-P_RMqWLV50o/VbH9Q_oMihI/AAAAAAAAAcQ/_UV8NTsavT8/s320/flowchart.JPG" width="320" height="260" border="0" /></p>
<div>Conclusion:- Algorithms help achieve a task with the help of well-defined statements.<br />
Algorithms can be pictorial or graphically presented by flow charts.For easy understanding of the depicted flow charts, a standards set of symbols is used across the industry.</p>
<p>Sequentially grouped set of instructions for performing a task is called a Program.</p>
</div>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Falgorithm-and-flowchart%2F&amp;linkname=Algorithm%20and%20Flowchart" title="WhatsApp" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fmitindia.in%2Falgorithm-and-flowchart%2F&amp;linkname=Algorithm%20and%20Flowchart" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fmitindia.in%2Falgorithm-and-flowchart%2F&#038;title=Algorithm%20and%20Flowchart" data-a2a-url="https://mitindia.in/algorithm-and-flowchart/" data-a2a-title="Algorithm and Flowchart"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/algorithm-and-flowchart/">Algorithm and Flowchart</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mitindia.in/algorithm-and-flowchart/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
