<?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>sorting technique Archives -</title>
	<atom:link href="https://mitindia.in/tag/sorting-technique/feed/" rel="self" type="application/rss+xml" />
	<link>https://mitindia.in/tag/sorting-technique/</link>
	<description></description>
	<lastBuildDate>Sat, 31 Dec 2016 06:03:14 +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>sorting technique Archives -</title>
	<link>https://mitindia.in/tag/sorting-technique/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Sorting technique</title>
		<link>https://mitindia.in/sorting-technique/</link>
		
		<dc:creator><![CDATA[SKB]]></dc:creator>
		<pubDate>Wed, 14 Dec 2016 12:16:53 +0000</pubDate>
				<category><![CDATA[C Programming]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[sorting]]></category>
		<category><![CDATA[sorting technique]]></category>
		<guid isPermaLink="false">http://www.mitindia.in/?p=644</guid>

					<description><![CDATA[<p>Sorting Techniques Sorting is a process to arrange the records in the file in an order(either ascending or descending) with respect to the key. Sorting can be divided into two types of categories called internal and external sorting based on location of records at the time of sorting. The characteristics of sorting methods are – [&#8230;]</p>
<p>The post <a href="https://mitindia.in/sorting-technique/">Sorting technique</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>Sorting Techniques</h3>
<hr />
<p><strong><em>Sorting is a process to arrange the records in the file in an order(either ascending or descending) with respect to the key.</em></strong></p>
<p><strong><em>Sorting can be divided into two types of categories called internal and external sorting based on location of records at the time of sorting.</em></strong></p>
<p><strong> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- mylink -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-1696390399604457"
     data-ad-slot="7690934410"
     data-ad-format="link"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></strong></p>
<p><strong><em>The characteristics of sorting methods are – Data Sensitivity, Stability, Storage Requirements, Efficiency</em></strong></p>
<h4><span style="color: #ff0000;"><strong>Characteristics of Sorting methods</strong> </span><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</h4>
<ul>
<li><strong><em>Data Sensitiveness</em></strong></li>
<li><strong><em>Stability</em></strong></li>
<li><strong><em>Storage Requirements </em></strong></li>
<li><strong><em>Efficiency</em></strong></li>
</ul>
<figure id="attachment_645" aria-describedby="caption-attachment-645" style="width: 300px" class="wp-caption alignright"><img fetchpriority="high" decoding="async" class="size-medium wp-image-645" src="http://www.mitindia.in/wp-content/uploads/2016/12/ds-300x211.png" alt="Sorting technique" width="300" height="211" srcset="https://mitindia.in/wp-content/uploads/2016/12/ds-300x211.png 300w, https://mitindia.in/wp-content/uploads/2016/12/ds-249x175.png 249w, https://mitindia.in/wp-content/uploads/2016/12/ds.png 635w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-645" class="wp-caption-text">Sorting technique</figcaption></figure>
<p><em><span style="color: #000000;"><strong>Data Sensitiveness: </strong></span></em>The sorting methods for which the time to sort an array depends on the order in which the elements appear in the original array (i.e., Sorted or Unsorted). are called Data Sensitive Methods.</p>
<p><strong><em>Stability</em></strong>: Methods that preserve the original ordering of elements are called stable methods.</p>
<p><em><strong>Storage requirements</strong></em>: Minimal storage sorting methods are those methods that use minimal storage space by rearranging the elements with the space occupied by the original array.</p>
<p><strong><em>Efficiency</em></strong>: Efficiency is the tome required to the array by any sorting method depending upon the number of comparisons required for that sorting method.</p>
<p><span style="color: #ff0000;"><strong>Types of Sorting</strong> </span><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<strong><em>1. Bubble sort</em></strong><br />
<strong><em>2. Selection sort </em></strong><br />
<strong><em>3. Quick sort</em></strong><br />
<strong><em>4. Insertion sort</em></strong><br />
<strong><em>5. Merge sort</em></strong><br />
<strong><em>6. Heap sort</em></strong><br />
<em><strong>Bubble sort</strong></em>: This method works according to exchange sort technique,where the records are physically interchanged within the file according to their key values<br />
Bubble sort is data sensitive. The number of checking required may be anything between 1 to (n-1) where ‘n’ denotes the number of elements in the array.</p>
<p><em><strong>Quick sort</strong></em>: Fast method of internal sorting. Uses divide and conquer method of sorting</p>
<p><em><strong>Insertion sort</strong></em>: Compares the elements of the array in the growing order successively.</p>
<p>Two variations of this insertion</p>
<p><em><strong>Shuttle sort</strong></em> – Requires (n-1)rounds of checking if there are n elements in the array</p>
<p><strong><em>Shell sort</em></strong>&#8211; Similar to the shuttle sort but sorts the arrays in the ascending order.</p>
<p><strong><em>Merge Sort</em></strong>: Merging means combining two sorted arrays into single sorted array.</p>
<p><span style="color: #ff0000;"><strong>Steps in the process:</strong> </span><br />
Scan both the arrays for right to left<br />
Compare the first element of each array<br />
The above step is repeated until one array is completely empty.<br />
The remaining elements in the other array are stored in the merged array in the order as they were in.</p>
<p>Heap Sort: The value at each node in a heap (Binary tree)<br />
is larger than the value at its existing children. The root contains the largest item.</p>
<p><a href="http://www.mitindia.in/2016/12/09/data-structure-graph/" target="_blank">You can also refer data structure graph here</a></p>
<p><a class="a2a_button_whatsapp" href="https://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Fmitindia.in%2Fsorting-technique%2F&amp;linkname=Sorting%20technique" 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%2Fsorting-technique%2F&amp;linkname=Sorting%20technique" 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%2Fsorting-technique%2F&#038;title=Sorting%20technique" data-a2a-url="https://mitindia.in/sorting-technique/" data-a2a-title="Sorting technique"><img src="https://static.addtoany.com/buttons/favicon.png" alt="Share"></a></p><p>The post <a href="https://mitindia.in/sorting-technique/">Sorting technique</a> appeared first on <a href="https://mitindia.in"></a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
