<?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>linear search algorithm in data structure - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/linear-search-algorithm-in-data-structure/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/linear-search-algorithm-in-data-structure/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Sat, 11 Sep 2021 11:22:10 +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://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>linear search algorithm in data structure - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/linear-search-algorithm-in-data-structure/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is Linear Sort in Java ?</title>
		<link>https://www.wikitechy.com/interview-questions/java/what-is-linear-sort-in-java/</link>
					<comments>https://www.wikitechy.com/interview-questions/java/what-is-linear-sort-in-java/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 23:33:59 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[Craterzone Interview Questions and Answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[FIS Global Business Solutions India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[linear algorithm example]]></category>
		<category><![CDATA[linear insertion sort]]></category>
		<category><![CDATA[linear search algorithm]]></category>
		<category><![CDATA[linear search algorithm in data structure]]></category>
		<category><![CDATA[linear search algorithm java]]></category>
		<category><![CDATA[linear search in c]]></category>
		<category><![CDATA[linear sort]]></category>
		<category><![CDATA[linear sort in c]]></category>
		<category><![CDATA[linear sort in java]]></category>
		<category><![CDATA[linear sorting algorithm]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[RBS India De interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=646</guid>

					<description><![CDATA[Answer : One of the simplest Sorting techniques is a linear sort...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="what-is-linear-sort-in-java" class="color-pink" style="text-align: justify;">What is Linear Sort in Java ?</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn"></div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>One of the simplest Sorting techniques is a linear sort.</li>
<li>Linear sort is the selection of an element and keeping it in sorted order.</li>
<li>In linear sort, the strategy is to find the smallest number in the array and exchange it with the value in first position of array.</li>
<li>Now, find the second smallest element in the remainder of array and exchange it with a value in the second position, carry on till you have reached the end of array.</li>
<li>Now all the elements have been sorted in ascending order.</li>
</ul>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn"></div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img decoding="async" class="img-responsive center-block" src="https://cdn.wikitechy.com/interview-questions/java/what-is-linear-sorting.png" alt=" Linear Sorting" /></div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="sample-code" class="color-blue" style="text-align: justify;">Sample Code</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-java code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-java code-embed-code">// Java program for implementation of Selection Sort <br/>class SelectionSort <br/>{ <br/>    void sort(int arr[]) <br/>    { <br/>        int n = arr.length; <br/>  <br/>        // One by one move boundary of unsorted subarray <br/>        for (int i = 0; i &lt; n-1; i++) <br/>        { <br/>            // Find the minimum element in unsorted array <br/>            int min_idx = i; <br/>            for (int j = i+1; j &lt; n; j++) <br/>                if (arr[j] &lt; arr[min_idx]) <br/>                    min_idx = j; <br/>  <br/>            // Swap the found minimum element with the first <br/>            // element <br/>            int temp = arr[min_idx]; <br/>            arr[min_idx] = arr[i]; <br/>            arr[i] = temp; <br/>        } <br/>    } <br/>  <br/>    // Prints the array <br/>    void printArray(int arr[]) <br/>    { <br/>        int n = arr.length; <br/>        for (int i=0; i&lt;n; ++i) <br/>            System.out.print(arr[i]+&quot; &quot;); <br/>        System.out.println(); <br/>    } <br/>  <br/>    // Driver code to test above <br/>    public static void main(String args[]) <br/>    { <br/>        SelectionSort ob = new SelectionSort(); <br/>        int arr[] = {27,28,45,68,32}; <br/>        ob.sort(arr); <br/>        System.out.println(&quot;Sorted array&quot;); <br/>        ob.printArray(arr); <br/>    } <br/>} </code></pre> </div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="output" class="color-blue">Output</h2>
</div>
</div>
<div class="Output">
<div class="hddn">
<figure class="highlight" style="text-align: justify;">
<pre><code class="hljs" data-lang=""><span class="nt">Sorted array:
27 28 32 45 68 </span></code></pre>
</figure>
</div>
</div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/java/what-is-linear-sort-in-java/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
