<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1044303426848405725</id><updated>2011-07-07T13:05:11.438-07:00</updated><category term='Tec(hi)Tec'/><title type='text'>The Cyberphilic's Info Box</title><subtitle type='html'>Hai friends and visitors...This is Ashwin to wellcome u to my own site.Here you can find all newly emerging technology and related infos.And please help me by sugesting your briliant ideas by sending mails to my id to enhance this blog-site.So please take part in this small mutualy benificial mission..</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ash2win10.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ash2win10.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ASHWIN SHANKAR</name><uri>http://www.blogger.com/profile/00920185556438852450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_APB8-Ys6aZ8/Sq-tgr5w2tI/AAAAAAAAAFw/XD70KHctOfQ/S220/P9100046.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>24</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1044303426848405725.post-6943974733211982093</id><published>2009-11-09T08:38:00.001-08:00</published><updated>2009-11-09T08:38:20.380-08:00</updated><title type='text'>TEXT LINE LENGTH ADJUSTMENT</title><content type='html'>&lt;div class="Section1"&gt;&lt;p style=" margin-left:72pt; margin-right:0pt"&gt;&lt;span style="font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;TEXT LINE LENGTH ADJUSTMENT&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="4"&gt;AIM&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;To verify the text line length adjustment&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="4"&gt;PROBLEM DESCRIPTION&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;In a given set of lines the text length should be re format. So, that the text line of more than n characters that is maximum 40 character should be displayed. The output&lt;/font&gt;&lt;/span&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt; line maximum number of words that occupy less than or n characters should be printed. No word should extend across two lines. If suppose user give more than 40 characters then infinite loop will occurs.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="square"&gt;&lt;li&gt;&lt;span style="color:#e36c0a; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;font size="3"&gt;Character length starts with 1.&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#e36c0a; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;font size="3"&gt;String length function starts with 1.&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#e36c0a; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;font size="3"&gt;No words in a file should not be splitted&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;font size="3"&gt;.&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:36pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;font size="4"&gt; &lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="4"&gt;EXAMPLE&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#00b050; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;font size="3"&gt;FLOWERS ARE BEAUT&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#00b050; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;font size="3"&gt;IFULL.&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;This is wrong.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#00b050; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;font size="3"&gt;FLOWERS ARE BEAUTIFULL&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;This is correct.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#00b050; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;u&gt;&lt;font size="3"&gt;F&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="color:#00b050; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;u&gt;&lt;font size="3"&gt;lowers&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="color:#943634; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;-actual is stores from 0-6 (7) elements&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="4"&gt;ALGORITHM DESCRIPTION&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ol type="1"&gt;&lt;li&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Read the line length limit and add one to it, to allow for a space.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Initialize the word characters counts to 0 and end of line flag to false.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;No end of line means, read the next character and store it.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;If character is a space or a new paragraph&lt;/font&gt;&lt;/span&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt; then reset character count for new line.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Add current word length to current line length.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;When it across the line length limit then move to next line.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Write out the current word and re-initialize count.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;If at end of input line then, set end of input line flag and move to next line.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=" margin-left:36pt; margin-right:0pt"&gt;&lt;span style="color:#0000ff; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="4"&gt;IMPLEMENTATION&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;#define size 40&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Main()&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;FILE*fp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Char a[100], str[50], i, empty, length;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Fp=fopen(“sk.txt”,”r”);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;While(!feof(fp))&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Fscanf(fp,”%s”,&amp;amp;a);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Empty=size-strlen(a)-1;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;If(empty&amp;gt;length)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Strcat(str,a);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Strcat(str,” “);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Else&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Printf(“%s\n”,str);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;For(i=0;i&amp;lt;50;i++)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Str[i]=’\0’;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Strcat(str,” “);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;If(feof(fp))&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Printf(“%s\n”,str);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Fclose(fp);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#c00000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;Getch();&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="4"&gt;APPLICATIONS&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="color:#ff3399; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;font size="3"&gt;Text processing,&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#ff3399; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;font size="3"&gt;Report writing and&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#ff3399; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;font size="3"&gt;F&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#ff3399; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;font size="3"&gt;ile management&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#ff0000; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;font size="3"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:288pt; margin-right:0pt"&gt;&lt;span style="color:#0070c0; font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;font size="4"&gt;Submitted by&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:288pt; margin-right:0pt"&gt;&lt;span style="font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;font size="4"&gt;K.KALAISELVI&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:288pt; margin-right:0pt"&gt;&lt;span style="font-family:&amp;#39;Calibri&amp;#39;"&gt;&lt;b&gt;&lt;font size="4"&gt;08BCS033&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1044303426848405725-6943974733211982093?l=ash2win10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ash2win10.blogspot.com/feeds/6943974733211982093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ash2win10.blogspot.com/2009/11/text-line-length-adjustment.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/6943974733211982093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/6943974733211982093'/><link rel='alternate' type='text/html' href='http://ash2win10.blogspot.com/2009/11/text-line-length-adjustment.html' title='TEXT LINE LENGTH ADJUSTMENT'/><author><name>ASHWIN SHANKAR</name><uri>http://www.blogger.com/profile/00920185556438852450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_APB8-Ys6aZ8/Sq-tgr5w2tI/AAAAAAAAAFw/XD70KHctOfQ/S220/P9100046.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044303426848405725.post-4687777468007672749</id><published>2009-10-21T07:37:00.001-07:00</published><updated>2009-10-21T07:37:06.314-07:00</updated><title type='text'>An_Introduction_to_Data_Mining</title><content type='html'>&lt;div class="Section1"&gt;&lt;p style="text-align: center;margin-left: 0pt; margin-right: 0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="6"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=" font-style: normal; font-weight: normal"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="6"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="6"&gt;&lt;u&gt;&lt;font size="3"&gt;An Introduction to Data Mining&lt;/font&gt;&lt;/u&gt;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Discovering hidden value in your data warehouse&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;Overview&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Data mining, the extraction of hidden predictive information from large databases, is a powerful new technology with great potential to help companies focus on the most important information in their data warehouses. Data mining tools predict future trends and behaviors, allowing businesses to make proactive, knowledge-driven decisions. The automated, prospective analyses offered by data mining move beyond the analyses of past events provided by retrospective tools typical of decision support systems. Data mining tools can answer business questions that traditionally were too time consuming to resolve. They scour databases for hidden patterns, finding predictive information that experts may miss because it lies outside their expectations.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Most companies already collect and refine massive quantities of data. Data mining techniques can be implemented rapidly on existing software and hardware platforms to enhance the value of existing information resources, and can be integrated with new products and systems as they are brought on-line. When implemented on high performance client/server or parallel processing computers, data mining tools can analyze massive databases to deliver answers to questions such as, "Which clients are most likely to respond to my next promotional mailing, and why?"&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;This white paper provides an introduction to the basic technologies of data mining. Examples of profitable applications illustrate its relevance to today’s business environment as well as a basic description of how data warehouse architectures can evolve to deliver the value of data mining to end users.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;The Foundations of Data Mining&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Data mining techniques are the result of a long process of research and product development. This evolution began when business data was first stored on computers, continued with improvements in data access, and more recently, generated technologies that allow users to navigate through their data in real time. Data mining takes this evolutionary process beyond retrospective data access and navigation to prospective and proactive information delivery. Data mining is ready for application in the business community because it is supported by three technologies that are now sufficiently mature: &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;1. &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Massive data collection&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;2. &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Powerful multiprocessor computers&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3. &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Data mining algorithms&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Commercial databases are growing at unprecedented rates. A recent META Group survey of data warehouse projects found that 19% of respondents are beyond the 50 gigabyte level, while 59% expect to be there by second quarter of 1996.1 In some industries, such as retail, these numbers can be much larger. The accompanying need for improved computational engines can now be met in a cost-effective manner with parallel multiprocessor computer technology. Data mining algorithms embody techniques that have existed for at least 10 years, but have only recently been implemented as mature, reliable, understandable tools that consistently outperform older statistical methods.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;In the evolution from business data to business information, each new step has built upon the previous one. For example, dynamic data access is critical for drill-through in data navigation applications, and the ability to store large databases is critical to data mining. From the user’s point of view, the four steps listed in Table 1 were revolutionary because they allowed new business questions to be answered accurately and quickly.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" width="656" style=" margin-left:0pt; width:492.35pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:31.7pt"&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Evolutionary Step&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Business Question&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Enabling Technologies&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Product Providers&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Characteristics&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:64.3pt"&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Data Collection&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;(1960s)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;"What was my total revenue in the last five years?"&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Computers, tapes, disks&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;IBM, CDC&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Retrospective, static data delivery&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:15.85pt"&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Data Access&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;(1980s)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;"What were unit sales in &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;New England&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt; last March?"&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Relational databases (RDBMS), Structured Query Language (SQL), ODBC&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Oracle, Sybase, Informix, IBM, Microsoft&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Retrospective, dynamic data delivery at record level&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:52.6pt"&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Data Warehousing &amp;amp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Decision Support&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;(1990s)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;"What were unit sales in &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;New England&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt; last March? Drill down to &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Boston&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;."&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;On-line analytic processing (OLAP), multidimensional databases, data warehouses&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Pilot, Comshare, Arbor, Cognos, Microstrategy&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Retrospective, dynamic data delivery at multiple levels&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="height:52.6pt"&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Data Mining&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;(Emerging Today)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;"What’s likely to happen to &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Boston&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt; unit sales next month? Why?"&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Advanced algorithms, multiprocessor computers, massive databases&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Pilot, Lockheed, IBM, SGI, numerous startups (nascent industry)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="131" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Prospective, proactive information delivery&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Table 1. Steps in the Evolution of Data Mining.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;The core components of data mining technology have been under development for decades, in research areas such as statistics, artificial intelligence, and machine learning. Today, the maturity of these techniques, coupled with high-performance relational database engines and broad data integration efforts, make these technologies practical for current data warehouse environments.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;The Scope of Data Mining&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Data mining derives its name from the similarities between searching for valuable business information in a large database — for example, finding linked products in gigabytes of store scanner data — and mining a mountain for a vein of valuable ore. Both processes require either sifting through an immense amount of material, or intelligently probing it to find exactly where the value resides. Given databases of sufficient size and quality, data mining technology can generate new business opportunities by providing these capabilities: &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;Automated prediction of trends and behaviors&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;. &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Data mining automates the process of finding predictive information in large databases. Questions that traditionally required extensive hands-on analysis can now be answered directly from the data — quickly. A typical example of a predictive problem is targeted marketing. Data mining uses data on past promotional mailings to identify the targets most likely to maximize return on investment in future mailings. Other predictive problems include forecasting bankruptcy and other forms of default, and identifying segments of a population likely to respond similarly to given events.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;Automated discovery of previously unknown patterns&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt; Data mining tools sweep through databases and identify previously hidden patterns in one step. An example of pattern discovery is the analysis of retail sales data to identify seemingly unrelated products that are often purchased together. Other pattern discovery problems include detecting fraudulent credit card transactions and identifying anomalous data that could represent data entry keying errors.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Data mining techniques can yield the benefits of automation on existing software and hardware platforms, and can be implemented on new systems as existing platforms are upgraded and new products developed. When data mining tools are implemented on high performance parallel processing systems, they can analyze massive databases in minutes. Faster processing means that users can automatically experiment with more models to understand complex data. High speed makes it practical for users to analyze huge quantities of data. Larger databases, in turn, yield improved predictions. &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Databases can be larger in both depth and breadth:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;More columns. Analysts must often limit the number of variables they examine when doing hands-on analysis due to time constraints. Yet variables that are discarded because they seem unimportant may carry information about unknown patterns. High performance data mining allows users to explore the full depth of a database, without preselecting a subset of variables.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;More rows. Larger samples yield lower estimation errors and variance, and allow users to make inferences about small but important segments of a population.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;A recent Gartner Group Advanced Technology Research Note listed data mining and artificial intelligence at the top of the five key technology areas that "will clearly have a major impact across a wide range of industries within the next 3 to 5 years."2 Gartner also listed parallel architectures and data mining as two of the top 10 new technologies in which companies will invest during the next 5 years. According to a recent Gartner HPC Research Note, "With the rapid advance in data capture, transmission and storage, large-systems users will increasingly need to implement new and innovative ways to mine the after-market value of their vast stores of detail data, employing MPP [massively parallel processing] systems to create new sources of business advantage (0.9 probability)."3 &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;The most commonly used techniques in data mining are: &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;Artificial neural networks&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;: &lt;/font&gt;&lt;font size="4"&gt;Non-linear predictive models that learn through training and resemble biological neural networks in structure.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;Decision trees&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;: &lt;/font&gt;&lt;font size="4"&gt;Tree-shaped structures that represent sets of decisions. These decisions generate rules for the classification of a dataset. Specific decision tree methods include Classification and Regression Trees (CART) and Chi Square Automatic Interaction Detection (CHAID) .&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;Genetic algorithms&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;: &lt;/font&gt;&lt;font size="4"&gt;Optimization techniques that use processes such as genetic combination, mutation, and natural selection in a design based on the concepts of evolution.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;Nearest neighbor method&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;: &lt;/font&gt;&lt;font size="4"&gt;A technique that classifies each record in a dataset based on a combination of the classes of the k record(s) most similar to it in a historical dataset (where k ³ 1). Sometimes called the k-nearest neighbor technique.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;Rule induction&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;: &lt;/font&gt;&lt;font size="4"&gt;The extraction of useful if-then rules from data based on statistical significance.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Many of these technologies have been in use for more than a decade in specialized analysis tools that work with relatively small volumes of data. These capabilities are now evolving to integrate directly with industry-standard data warehouse and OLAP platforms. The appendix to this white paper provides a glossary of data mining terms.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;How Data Mining Works&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;How exactly is data mining able to tell you important things that you didn't know or what is going to happen next? The technique that is used to perform these feats in data mining is called modeling. Modeling is simply the act of building a model in one situation where you know the answer and then applying it to another situation that you don't. For instance, if you were looking for a sunken Spanish galleon on the high seas the first thing you might do is to research the times when Spanish treasure had been found by others in the past. You might note that these ships often tend to be found off the coast of Bermuda and that there are certain characteristics to the ocean currents, and certain routes that have likely been taken by the ship’s captains in that era. You note these similarities and build a model that includes the characteristics that are common to the locations of these sunken treasures. With these models in hand you sail off looking for treasure where your model indicates it most likely might be given a similar situation in the past. Hopefully, if you've got a good model, you find your treasure.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;This act of model building is thus something that people have been doing for a long time, certainly before the advent of computers or data mining technology. What happens on computers, however, is not much different than the way people build models. Computers are loaded up with lots of information about a variety of situations where an answer is known and then the data mining software on the computer must run through that data and distill the characteristics of the data that should go into the model. Once the model is built it can then be used in similar situations where you don't know the answer. For example, say that you are the director of marketing for a telecommunications company and you'd like to acquire some new long distance phone customers. You could just randomly go out and mail coupons to the general population - just as you could randomly sail the seas looking for sunken treasure. In neither case would you achieve the results you desired and of course you have the opportunity to do much better than random - you could use your business experience stored in your database to build a model.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;As the marketing director you have access to a lot of information about all of your customers: their age, sex, credit history and long distance calling usage. The good news is that you also have a lot of information about your prospective customers: their age, sex, credit history etc. Your problem is that you don't know the long distance calling usage of these prospects (since they are most likely now customers of your competition). You'd like to concentrate on those prospects who have large amounts of long distance usage. You can accomplish this by building a model. Table 2 illustrates the data used for building a model for new customer prospecting in a data warehouse.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="197" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="197" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Customers&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="197" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Prospects&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="197" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;General information (e.g. demographic data)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="197" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Known&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="197" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Known&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="197" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Proprietary information (e.g. customer transactions)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="197" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Known&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="197" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Target&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Table 2 - Data Mining for Prospecting&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;The goal in prospecting is to make some calculated guesses about the information in the lower right hand quadrant based on the model that we build going from Customer General Information to Customer Proprietary Information. For instance, a simple model for a telecommunications company might be:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;98% of my customers who make more than $60,000/year spend more than $80/month on long distance&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;This model could then be applied to the prospect data to try to tell something about the proprietary information that this telecommunications company does not currently have access to. With this model in hand new customers can be selectively targeted.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Test marketing is an excellent source of data for this kind of modeling. Mining the results of a test market representing a broad but relatively small sample of prospects can provide a foundation for identifying good prospects in the overall market. Table 3 shows another common scenario for building models: predict what is going to happen in the future.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="148" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="148" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Yesterday&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="148" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Today&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="148" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Tomorrow&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="148" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Static information and current plans (e.g. demographic data, marketing plans)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="148" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Known&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="148" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Known&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="148" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Known&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="148" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Dynamic information (e.g. customer transactions)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="148" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Known&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="148" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Known&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="148" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Target&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Table 3 - Data Mining for Predictions&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;If someone told you that he had a model that could predict customer usage how would you know if he really had a good model? The first thing you might try would be to ask him to apply his model to your customer base - where you already knew the answer. With data mining, the best way to accomplish this is by setting aside some of your data in a vault to isolate it from the mining process. Once the mining is complete, the results can be tested against the data held in the vault to confirm the model’s validity. If the model works, its observations should hold for the vaulted data.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;An Architecture for Data Mining&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;To best apply these advanced techniques, they must be fully integrated with a data warehouse as well as flexible interactive business analysis tools. Many data mining tools currently operate outside of the warehouse, requiring extra steps for extracting, importing, and analyzing the data. Furthermore, when new insights require operational implementation, integration with the warehouse simplifies the application of results from data mining. The resulting analytic data warehouse can be applied to improve business processes throughout the organization, in areas such as promotional campaign management, fraud detection, new product rollout, and so on. Figure 1 illustrates an architecture for advanced analysis in a large data warehouse. &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;img src="http://docs.google.com/File?id=dcph6xxm_40cvnqp8gr_b" width="528" height="178" alt="" border="0"&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Figure 1 - Integrated Data Mining Architecture&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;The ideal starting point is a data warehouse containing a combination of internal data tracking all customer contact coupled with external market data about competitor activity. Background information on potential customers also provides an excellent basis for prospecting. This warehouse can be implemented in a variety of relational database systems: Sybase, Oracle, Redbrick, and so on, and should be optimized for flexible and fast data access.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;An OLAP (On-Line Analytical Processing) server enables a more sophisticated end-user business model to be applied when navigating the data warehouse. The multidimensional structures allow the user to analyze the data as they want to view their business – summarizing by product line, region, and other key perspectives of their business. The Data Mining Server must be integrated with the data warehouse and the OLAP server to embed ROI-focused business analysis directly into this infrastructure. An advanced, process-centric metadata template defines the data mining objectives for specific business issues like campaign management, prospecting, and promotion optimization. Integration with the data warehouse enables operational decisions to be directly implemented and tracked. As the warehouse grows with new decisions and results, the organization can continually mine the best practices and apply them to future decisions.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;This design represents a fundamental shift from conventional decision support systems. Rather than simply delivering data to the end user through query and reporting software, the Advanced Analysis Server applies users’ business models directly to the warehouse and returns a proactive analysis of the most relevant information. These results enhance the metadata in the OLAP Server by providing a dynamic metadata layer that represents a distilled view of the data. Reporting, visualization, and other analysis tools can then be applied to plan future actions and confirm the impact of those plans.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;Profitable Applications&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;A wide range of companies have deployed successful applications of data mining. While early adopters of this technology have tended to be in information-intensive industries such as financial services and direct mail marketing, the technology is applicable to any company looking to leverage a large data warehouse to better manage their customer relationships. Two critical factors for success with data mining are: a large, well-integrated data warehouse and a well-defined understanding of the business process within which data mining is to be applied (such as customer prospecting, retention, campaign management, and so on). &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Some successful application areas include: &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li style=" text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;A pharmaceutical company can analyze its recent sales force activity and their results to improve targeting of high-value physicians and determine which marketing activities will have the greatest impact in the next few months. The data needs to include competitor market activity as well as information about the local health care systems. The results can be distributed to the sales force via a wide-area network that enables the representatives to review the recommendations from the perspective of the key attributes in the decision process. The ongoing, dynamic analysis of the data warehouse allows best practices from throughout the organization to be applied in specific sales situations.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=" text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;A credit card company can leverage its vast warehouse of customer transaction data to identify customers most likely to be interested in a new credit product. Using a small test mailing, the attributes of customers with an affinity for the product can be identified. Recent projects have indicated more than a 20-fold decrease in costs for targeted mailing campaigns over conventional approaches.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=" text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;A diversified transportation company with a large direct sales force can apply data mining to identify the best prospects for its services. Using data mining to analyze its own customer experience, this company can build a unique segmentation identifying the attributes of high-value prospects. Applying this segmentation to a general business database such as those provided by Dun &amp;amp; Bradstreet can yield a prioritized list of prospects by region.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=" text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;A large consumer package goods company can apply data mining to improve its sales process to retailers. Data from consumer panels, shipments, and competitor activity can be applied to understand the reasons for brand and store switching. Through this analysis, the manufacturer can select promotional strategies that best reach their target customer segments.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Each of these examples have a clear common ground. They leverage the knowledge about customers implicit in a data warehouse to reduce costs and improve the value of customer relationships. These organizations can now focus their efforts on the most important (profitable) customers and prospects, and design targeted marketing strategies to best reach them.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;Data Mining Algorithms (Analysis Services - Data Mining)&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;The data mining algorithm is the mechanism that creates a data mining model. To create a model, an algorithm first analyzes a set of data and looks for specific patterns and trends. The algorithm uses the results of this analysis to define the parameters of the mining model. These parameters are then applied across the entire data set to extract actionable patterns and detailed statistics.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;The mining model that an algorithm creates can take various forms, including:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li style=" text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;A set of rules that describe how products are grouped together in a transaction.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=" text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;A decision tree that predicts whether a particular customer will buy a product.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=" text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;A mathematical model that forecasts sales.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=" text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;A set of clusters that describe how the cases in a dataset are related.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Microsoft SQL Server Analysis Services provides several algorithms for use in your data mining solutions. These algorithms are a subset of all the algorithms that can be used for data mining. You can also use third-party algorithms&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;that comply with the OLE DB for Data Mining specification&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;Types of Data Mining Algorithms &lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Analysis Services includes the following algorithm types:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li style=" text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="4"&gt;Classification algorithms&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt; predict one or more discrete variables, based on the other attributes in the dataset. An example of a classification algorithm is the Microsoft Decision Trees Algorithm. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=" text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="4"&gt;Regression algorithms&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt; predict one or more continuous variables, such as profit or loss, based on other attributes in the dataset. An example of a regression algorithm is the Microsoft Time Series Algorithm.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=" text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="4"&gt;Segmentation algorithms&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt; divide data into groups, or clusters, of items that have similar properties. An example of a segmentation algorithm is the Microsoft Clustering Algorithm.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=" text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="4"&gt;Association algorithms&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt; find correlations between different attributes in a dataset. The most common application of this kind of algorithm is for creating association rules, which can be used in a market basket analysis. An example of an association algorithm is the Microsoft Association Algorithm.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=" text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="4"&gt;Sequence analysis algorithms&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt; summarize frequent sequences or episodes in data, such as a Web path flow.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;Conclusion&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Comprehensive data warehouses that integrate operational data with customer, supplier, and market information have resulted in an explosion of information. Competition requires timely and sophisticated analysis on an integrated view of the data. However, there is a growing gap between more powerful storage and retrieval systems and the users’ ability to effectively analyze and act on the information they contain. Both relational and OLAP technologies have tremendous capabilities for navigating massive data warehouses, but brute force navigation of data is not enough. A new technological leap is needed to structure and prioritize information for specific end-user problems. The data mining tools can make this leap. Quantifiable business benefits have been proven through the integration of data mining with current information systems, and new products are on the horizon that will bring this integration to an even wider audience of users.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:justify"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1044303426848405725-4687777468007672749?l=ash2win10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ash2win10.blogspot.com/feeds/4687777468007672749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ash2win10.blogspot.com/2009/10/anintroductiontodatamining.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/4687777468007672749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/4687777468007672749'/><link rel='alternate' type='text/html' href='http://ash2win10.blogspot.com/2009/10/anintroductiontodatamining.html' title='An_Introduction_to_Data_Mining'/><author><name>ASHWIN SHANKAR</name><uri>http://www.blogger.com/profile/00920185556438852450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_APB8-Ys6aZ8/Sq-tgr5w2tI/AAAAAAAAAFw/XD70KHctOfQ/S220/P9100046.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044303426848405725.post-4258861053304371571</id><published>2009-10-21T07:30:00.001-07:00</published><updated>2009-10-21T07:30:32.760-07:00</updated><title type='text'>COMPUTING THE nth FIBONACCI</title><content type='html'>&lt;div class="Section1"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&lt;b&gt;&lt;u&gt;COMPUTING THE nth FIBONACCI NUMBER&lt;/u&gt;&lt;/b&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;font class="Apple-style-span" face="'Bookman Old Style'"&gt;&lt;font size="5"&gt;&lt;br&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;font class="Apple-style-span" face="'Arial Narrow'"&gt;&lt;i&gt;&lt;u&gt;&lt;font size="5"&gt;PROBLEM:&lt;/font&gt;&lt;/u&gt;&lt;/i&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;Given a number n generate the nth member of the Fibonacci sequence.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;font size="5"&gt;&lt;font class="Apple-style-span" face="'Arial Narrow'"&gt;&lt;i&gt;&lt;u&gt;AIM:&lt;/u&gt;&lt;/i&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;To generate the nth Fibonacci number.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;font size="5"&gt;&lt;font class="Apple-style-span" face="'Arial Narrow'"&gt;&lt;i&gt;&lt;u&gt;PROGRAM DESCRIPTION:&lt;/u&gt;&lt;/i&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;F1=-1&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F2=1&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1 value is used in Fibonacci series.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F3=f1+f2;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;→1&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1=f2;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F2=f3;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From equ1 converting equ1 to general form,&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F3→fn (generalized form)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1→f3-f2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Since f3 is repeated in terms of fn.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F2→f3-1→fn-1&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Therefore final solution of fn=fn-1+fn-2;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;Fibonacci:&amp;nbsp; 0 &lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;1 &lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;1&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt; 2&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt; 3&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt; 5&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt; 8&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt; 13&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt; 21&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt; 24 &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;Index&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp; 1&amp;nbsp; 2&amp;nbsp; 3&amp;nbsp; 4&amp;nbsp; 5&amp;nbsp; 6&amp;nbsp; 7&amp;nbsp;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&amp;nbsp;&amp;nbsp; 10&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;Example:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F4=2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F5=3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It is possible to get the next element.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F6=f4+f5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; →2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It is possible to get f7 from f5 and f6.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F7=f6+f5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; →3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From equ3 substitute f7=[f4+f5]+f5&amp;nbsp;&amp;nbsp;&amp;nbsp; →4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F8=f7+f6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; →5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;From equ2 substitute &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F6=f4+f5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From equ4 substitute &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F7=[f4+f5]+f5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here, the result can be stored in equ5.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F8=[(f4+f5)+f5]&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;+[f4+f5]&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F8=&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;3f5+2f4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here, the equ starts from f4 and by doubling, then&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop at f8.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F8=3*3+2*2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F8=13;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From this find the f2n value.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F8=f5²&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;+f4²&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now in generalised form&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F2n=fn+1²+fn²&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; F2n=fnp1&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;↓&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2n=fnp1*fnp1&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fn*fn&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; based on proof by induction,&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2n+1=2+fn+fn+1+fn+1²&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2np1=2*fn*fn+1+fn+1*fnp1;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;font size="5"&gt;&lt;font class="Apple-style-span" face="'Arial Narrow'"&gt;&lt;i&gt;&lt;u&gt;ALGORITHM DESCRIPTION:&lt;/u&gt;&lt;/i&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt; &lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;Initialize n, then indicating the nth Fibonacci number is to be required. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt; &lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;Derive the binary representation of n&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by repeated division by 2 and store the &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; current element in array d[1.....i-1].&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt; Initialize the first two members of the doubling sequence.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt; Step by step from (p-1) th most significant digit in the binary representation of n to 1.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;Then &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;use present set of Fibonacci number. To generate the set f2n and f2n+1.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;If the present binary digit d[k] is zero, then make the reassignment to fn and fn+1.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;Else extend the sequence by 1 number and then make the reassignment to fn and fn+1.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt; The first Fibonacci numbers are &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:90.75pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol start="0" type="1"&gt;&lt;li&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;1&amp;nbsp; 1&amp;nbsp; 2&amp;nbsp; 3&amp;nbsp; 5&amp;nbsp; 8&amp;nbsp; 13&amp;nbsp; 21&amp;nbsp; 24&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=" margin-left:132.75pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;font size="5"&gt;&lt;font class="Apple-style-span" face="'Arial Narrow'"&gt;&lt;i&gt;&lt;u&gt;IMPLEMENTATION:&lt;/u&gt;&lt;/i&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include&amp;lt;conio.h&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void main( )&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int n,i=0;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(n&amp;gt;1)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i=i+1;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if odd(n) then&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d[i]=1;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d[i]=0;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; n=n/2;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(k=i-1;k&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;≤1;k--)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sq fnp1=fnp1*fnp1&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2n=fn*fn+sq fnp1&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2np1=2*fn*fnp1+sq fnp1&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;if d[k]=0&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fn=f2n;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fnp1=f2np1;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fn=f2np1;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fnp1=f2np1+f2n;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;font size="5"&gt;&lt;font class="Apple-style-span" face="'Arial Narrow'"&gt;&lt;i&gt;&lt;u&gt;APPLICATION:&lt;/u&gt;&lt;/i&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;It is used in computation methods.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Bookman Old Style'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It is used to find the Fibonacci series.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1044303426848405725-4258861053304371571?l=ash2win10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ash2win10.blogspot.com/feeds/4258861053304371571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ash2win10.blogspot.com/2009/10/computing-nth-fibonacci.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/4258861053304371571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/4258861053304371571'/><link rel='alternate' type='text/html' href='http://ash2win10.blogspot.com/2009/10/computing-nth-fibonacci.html' title='COMPUTING THE nth FIBONACCI'/><author><name>ASHWIN SHANKAR</name><uri>http://www.blogger.com/profile/00920185556438852450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_APB8-Ys6aZ8/Sq-tgr5w2tI/AAAAAAAAAFw/XD70KHctOfQ/S220/P9100046.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044303426848405725.post-7879958629494853664</id><published>2009-10-21T07:26:00.001-07:00</published><updated>2009-10-21T07:26:16.860-07:00</updated><title type='text'>Design and analyses of algorithm</title><content type='html'>&lt;div class="Section1"&gt;&lt;p style="text-align: center;margin-left: 0pt; margin-right: 0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;&amp;nbsp;Kth smallest element in &lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt; an &lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;array:&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="5"&gt;Aim: &lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font size="4"&gt;Write a program to find the Kth smallest element in array(we need to find two minimum’s)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="5"&gt;Program implementation:&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;I/p:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="91" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;25&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="96" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="108" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="96" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;30&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="96" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;IF K=1, O/P=3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;IF K=2, O/P=4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="4"&gt;Ist pass:&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;min&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;25&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;30&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Set 1&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;sup&gt;&lt;font size="4"&gt;st&lt;/font&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt; element as min:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;(Compare min to I ‘&amp;lt;‘ or not. If lesser interchange both)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;25&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;30&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;I &amp;lt; min&amp;nbsp;&amp;nbsp; (min=i)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;25&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;30&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Condition satisfied&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;25&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;30&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="118" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;CONDITION NOT SATISFIED&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;25&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;30&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;CONDITION NOT SATISFIED&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="4"&gt;IInd pass&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min&amp;nbsp;&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;25&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;30&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="26" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;═&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Condition satisfied&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;25&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;30&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="26" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Condition not satisfied&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;25&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;30&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="26" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&lt;br&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;CONDITION SATISFIED (MIN=I)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;25&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;30&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="26" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="4"&gt;IIIrd pass:&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min&amp;nbsp;&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;25&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;30&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="26" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;▬▬▬&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;CONDITION NOT SATISFIED&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;25&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;30&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="26" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt; CONDITION SATISFIED&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;(MIN =I)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;30&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="26" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;25&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="4"&gt;IVth pass:&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min&amp;nbsp;&amp;nbsp;&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;30&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="26" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;25&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;▬▬▬▬▬▬&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Condition satisfied&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min&amp;nbsp;&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="30" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="38" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;25&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="26" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;30&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;▬▬▬▬▬▬▬▬&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="5"&gt;Algorithm:&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Step 1: set the given no’s in sorted order&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Step 2: set the first element as min&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Step 3: compare min to next to next elements&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Step 4: if it’s ‘&amp;lt;’ than min,swap the both elements&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt; through the temporary element&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Step 5: Then i++ the arra&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;y element.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Step 6: compare the other elements in this same order. Then we find the smallest element in an array.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="5"&gt;Coding:&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt; Void main()&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Int a[15],temp,k,n,i&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;,j,min;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Printf(“enter the no of elements”);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Scanf(“%d”,&amp;amp;n);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;For(i=0;i&amp;lt;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;n;i++)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Printf(“enter the elements’);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Scanf(“%d”,&amp;amp;k);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;For(i=0;i&amp;lt;k-1;i++)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Min=a[0];&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;For(j=i++;j&amp;lt;n;j++)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;If(a[i]&amp;lt;min)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Min=a[j];&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;T=a[j];&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;A[i]=a[j];&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;A[i]=t;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Printf(“%d”,a[k-1];&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;}}&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="4"&gt;Queston 2&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;: &lt;/font&gt;&lt;font size="5"&gt;Find the Kth largest element in an array.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Aim:&lt;/font&gt;&lt;font size="4"&gt; write a program to find the largest element in an array&lt;/font&gt;&lt;font size="3"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="5"&gt;Program implementation:&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font size="4"&gt;(Set 1&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;sup&gt;&lt;font size="4"&gt;st&lt;/font&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt; element as ‘max’,&amp;amp;compare with next to next elements with condition ‘&amp;gt;’ or not if condition satisfied swap both element.)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp; I/P: &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Max&amp;nbsp;&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:81pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:4pt"&gt;&lt;td width="40" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;50&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="32" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;40&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="48" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;60&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="24" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="36" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;45&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O/P: IF K=1,&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;60&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF K=2,&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;50&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="4"&gt;Ist &lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="4"&gt;pass:&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max&amp;nbsp;&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:81pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:4pt"&gt;&lt;td width="40" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;50&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="32" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;40&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="48" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;60&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="24" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="36" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;45&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;(not satisfied)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:81pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:4pt"&gt;&lt;td width="40" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;50&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="32" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;40&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="48" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;60&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="24" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="36" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;45&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;60&amp;gt;50,CONDITION SATISFIED. (MAX=I)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:81pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:4pt"&gt;&lt;td width="40" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;60&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="32" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;40&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="48" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;50&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="24" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="36" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;45&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;NOT SATISFIED&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:81pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:4pt"&gt;&lt;td width="40" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;60&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="32" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;40&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="48" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;50&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="24" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="36" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;45&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;NOT SATISFIED&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="4"&gt;2&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;sup&gt;&lt;font size="4"&gt;ND&lt;/font&gt;&lt;/sup&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="4"&gt; PASS&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max&amp;nbsp; I&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:81pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:4pt"&gt;&lt;td width="40" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;60&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="32" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;40&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="48" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;50&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="24" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="36" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;45&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt; Satisfied.&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;▬▬&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Max&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:81pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:4pt"&gt;&lt;td width="40" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;60&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="32" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;50&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="48" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;40&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="24" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="36" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;45&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Not satisfied&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:81pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:4pt"&gt;&lt;td width="40" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;60&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="32" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;50&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="48" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;40&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="24" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="36" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;45&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Not satisfied.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="4"&gt;3&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;sup&gt;&lt;font size="4"&gt;rd&lt;/font&gt;&lt;/sup&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="4"&gt; pass:&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:81pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:4pt"&gt;&lt;td width="40" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;60&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="32" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;50&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="48" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;40&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="24" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="36" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;45&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp; Not satisfied.&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp; ▬▬▬▬▬&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:81pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:4pt"&gt;&lt;td width="40" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;60&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="32" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;50&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="48" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;40&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="24" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="36" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;45&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp; Satisfied.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp; 4&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;sup&gt;&lt;font size="4"&gt;th&lt;/font&gt;&lt;/sup&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="4"&gt; pass&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max&amp;nbsp; i&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:81pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:4pt"&gt;&lt;td width="40" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;60&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="32" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;50&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="48" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;45&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="24" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="36" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;40&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Satisfied.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ▬▬▬▬▬▬▬&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:81pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:4pt"&gt;&lt;td width="40" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;60&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="32" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;50&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="48" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;45&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="24" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;40&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="36" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;▬▬▬▬▬▬▬▬▬&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="5"&gt;Algorithm: &lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Step 1: set arrays first element as ‘max’.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Step 2: compare that element with ‘I th’ element.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Step 3: if I &amp;gt; max swap the both values through temporary element.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Step 4then compare other elemen&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;t,s with max if condition not satisfied i++ the array element&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Step 5:after that all comparition the kth largest element will be found.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="5"&gt;Coding:&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Void main()&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Int a[15],temp,k,n,i,j,max;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Printf(“enter the no of elements”);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Scanf(“%d”,&amp;amp;n);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;For(i=0;i&amp;lt;n;i++)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Printf(“enter the elements’);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Scanf(“%d”,&amp;amp;k);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;For(i=0;i&amp;lt;k-1;i++)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Max=a[0];&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;For(j=i++;j&amp;lt;n;j++)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;If(a[i]&amp;gt;max)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Max=a[j];&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;T=a[j];&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;A[i]=a[j];&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;A[i]=t;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Printf(“%d”,a[k-1];&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;}}&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1044303426848405725-7879958629494853664?l=ash2win10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ash2win10.blogspot.com/feeds/7879958629494853664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ash2win10.blogspot.com/2009/10/design-and-analyses-of-algorithm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/7879958629494853664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/7879958629494853664'/><link rel='alternate' type='text/html' href='http://ash2win10.blogspot.com/2009/10/design-and-analyses-of-algorithm.html' title='Design and analyses of algorithm'/><author><name>ASHWIN SHANKAR</name><uri>http://www.blogger.com/profile/00920185556438852450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_APB8-Ys6aZ8/Sq-tgr5w2tI/AAAAAAAAAFw/XD70KHctOfQ/S220/P9100046.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044303426848405725.post-5957832903646334516</id><published>2009-10-21T07:20:00.001-07:00</published><updated>2009-10-21T07:20:44.812-07:00</updated><title type='text'>assignment</title><content type='html'>&lt;div class="Section1"&gt;&lt;p style="text-align: center;margin-left: 0pt; margin-right: 0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;span style="font-weight: normal"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;u&gt;&amp;nbsp;SERVERS AND WEBSER&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;u&gt;VERS&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;u&gt;….&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Se&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;rver :&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;(ser´ver) (n.) A computer or device on a network that manages network resources. For example, a file server is a computer and storage device dedicated to storing files. Any user on the network can store files on the server.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A print server is a computer that manages one or more printers, and a network&amp;nbsp; server is a computer that manages network traffic. A database&amp;nbsp; server is a computer system that processes database queries.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Definition of server :&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;A server is an application running on a computer that delivers a service. For example, a web server will deliver web pages when requested by a browser (called client in this context). The way a server and a client dialogs is called a protocol. For instance, HTTP is the protocol used between a browser an a web server. &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Among the many services provided by the Internet servers are:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * World Wide Web&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * the domain name system&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * e-mail&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * FTP file transfer&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * chat and instant messaging&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * voice communication&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * streaming audio and video&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * online gaming&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Virtually every action taken by an ordinary Internet user requires one or more interactions with one or more servers.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Servers in daily life :&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A server is any combination of hardware or software designed to provide services to clients.&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A server is a computer that handles requests for data, email, file transfers, and other network services from other computers (ie, clients).&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A computer that stores application and data files for all workstations on a network; also referred to as a file server.&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A server is the computer program (housed in a computer) that serves requested HTML&amp;nbsp; pages or&amp;nbsp; files&amp;nbsp; by the client.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A server is a computer that stores information, and "serves" that information to viewers who request to see it. Everything that you see on the Internet is stored somewhere on a server.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A computer or application, that provides a service to client software on other computers. Servers are used for web hosting and other web applications.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Types of server :&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Application server.&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Communication server.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Datebase server.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Fax server.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;File server.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Game server.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Home server.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Name server.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Print server.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Proxy server.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Sound server.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Standalone server.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Web server.&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Web feed server.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Client server.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Catalog server.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:70.5pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Web Server :&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;(1) A computer program that serves the requested files which form web pages to the client's browser.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (2) A web server can also refer to the computer that runs the server software and holds the files for one or more websites.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Historical notes&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt; :&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In 1989 Tim Berners-Lee proposed to his employer &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;CERN&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; (European Organization for Nuclear Research) a new project, which had the goal of easing the exchange of information between scientists by using a hypertext system. As a result of the implementation of this project, in 1990 Berners-Lee wrote two programs:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * a browser called WorldWideWeb;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * the world's first web server, later known as &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;CERN&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; HTTPd, which ran on NeXTSTEP&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:First_Web_Server.jpg"&gt;&lt;img src="http://docs.google.com/File?id=dcph6xxm_33t9r9gwgm_b" width="200" height="150" alt="" border="0"&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;The world's first web server&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Between 1991 and 1994 the simplicity and effectiveness of early technologies used to surf and exchange data through the World Wide Web helped to port them to many different operating systems and spread their use among lots of different social groups of people, first in scientific&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;organizations, then in universities and finally in industry.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Common features&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt; :&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;1. Virtual hosting to serve many web sites using one IP address.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp; 2. Large file support to be able to serve files whose size is greater than 2 GB on 32 bit OS.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp; 3. Bandwidth throttling to limit the speed of responses in order to not saturate the network and to be able to serve more clients.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Beige_mini_tower_case.jpg"&gt;&lt;img src="http://docs.google.com/File?id=dcph6xxm_34pzg5p5fh_b" width="250" height="333" alt="" border="0"&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Beige_mini_tower_case.jpg"&gt;&lt;img src="http://docs.google.com/File?id=dcph6xxm_35cbncr8dp_b" width="15" height="11" alt="" border="0"&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;A home web server&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;font size="6"&gt;&lt;br&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Load limits&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;A web server (program) has defined load limits, because it can handle only a limited number of concurrent client connections (usually between 2 and 80,000, by default between 500 and 1,000) per IP address (and TCP port) and it can serve only a certain maximum number of requests per second depending on:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * its own settings;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * the HTTP request type;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * content origin (static or dynamic);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * the fact that the served content is or is not cached;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * the hardware and software limits of the OS where it is working.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;When a web server is near to or over its limits, it becomes overloaded and thus unresponsive.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Kernel-mode and user-mode web servers&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt; :&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;A web server can be either implemented into the OS kernel, or in user space (like other regular applications).&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;An in-kernel web server (like TUX on Linux or Microsoft IIS on Windows) will usually work faster because, as part of the system, it can directly use all the hardware resources it needs, such as:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp; * non-paged memory;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp; * CPU time-slices;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;* network adapters buffers.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Web servers that run in user-mode have to ask the system the permission to use more memory or more CPU resources. Not only these requests to the kernel take time, but they are not always satisfied because the system reserves resources for its own usage and has the responsibility to share hardware resources with all the other running applications.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Also applications cannot access the system internal buffers, which is causing useless buffer copies that create another handicap for user-mode web servers.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Overload causes&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt; :&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;At any time web servers can be overloaded because of:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Too much legitimate web traffic (i.e. thousands or even millions of clients hitting the web site in a short interval of time. e.g. Slashdot effect);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * DDoS (Distributed Denial of Service) attacks; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Computer worms that sometimes cause abnormal traffic because of millions of infected computers (not coordinated among them);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * XSS viruses can cause high traffic because of millions of infected browsers and/or web servers;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Internet web robots traffic not filtered/limited on large web sites with very few resources (bandwidth, etc.);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Internet (network) slowdowns, so that client requests are served more slowly and the number of connections increases so much that server limits are reached;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Market structure&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Given below is a list of top Web server software vendors published in a &lt;/font&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Netcraft"&gt;&lt;span style="color:#0000ff; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="5"&gt;Netcraft&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt; &lt;a href="http://survey.netcraft.com/Reports/200901/"&gt;&lt;span style="color:#0000ff; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="5"&gt;survey&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; in January 2009.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Webservers_2009.04.svg"&gt;&lt;img src="http://docs.google.com/File?id=dcph6xxm_36ggqc9jcv_b" width="180" height="137" alt="" border="0"&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Webservers_2009.04.svg"&gt;&lt;img src="http://docs.google.com/File?id=dcph6xxm_35cbncr8dp_b" width="15" height="11" alt="" border="0"&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Market share of major web servers&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="color:#800000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Vendor&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="color:#800000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Product&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#800000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="color:#800000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp; &lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#800000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Web Sites &lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#800000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#800000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Hosted&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="color:#800000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Percent&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a href="http://en.wikipedia.org/wiki/Apache_Software_Foundation"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="6"&gt;Apache&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a href="http://en.wikipedia.org/wiki/Apache_HTTP_Server"&gt;&lt;span style="color:#0000ff; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="6"&gt;Apache&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;96,531,033&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;52.05%&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a href="http://en.wikipedia.org/wiki/Microsoft"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="6"&gt;Microsoft&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt; &lt;a href="http://en.wikipedia.org/wiki/Internet_Information_Services"&gt;&lt;span style="color:#0000ff; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="6"&gt;IIS&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;61,023,474&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;32.90%&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a href="http://en.wikipedia.org/wiki/Google"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="6"&gt;Google&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a href="http://en.wikipedia.org/wiki/Google_Web_Server"&gt;&lt;span style="color:#0000ff; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="6"&gt;GWS&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;9,864,303&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;5.32%&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a href="http://en.wikipedia.org/wiki/Nginx"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="6"&gt;nginx&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a href="http://en.wikipedia.org/wiki/Nginx"&gt;&lt;span style="color:#0000ff; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="6"&gt;nginx&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;3,462,551&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;1.87%&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a href="http://en.wikipedia.org/wiki/Lighttpd"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="6"&gt;lighttpd&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a href="http://en.wikipedia.org/wiki/Lighttpd"&gt;&lt;span style="color:#0000ff; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="6"&gt;lighttpd&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;2,989,416&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;1.61%&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;Oversee&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;Oversee&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;1,847,039&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;1.00%&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;Others&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;-&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;9,756,650&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;5.26%&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#333333; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Total&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#333333; font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;-&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#333333; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;185,474,466&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#333333; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;100.00%&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Application :&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;* Your local website behaves more like the live one. For example, you can configure directory security, test your custom error pages etc before commiting them to the production environment.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * You can use server-side scripting languages such as PHP and ColdFusion.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Allows you to standardize your coding. For example, you can use root-relative paths for your image references and hyperlinks (i.e. "/directory/image.gif"). In other words, your paths can represent the website structure, rather than the directory structure of your computer.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Knowledge. The knowledge you gain from using your own web server will help you understand how it works in the live environment. This will most certainly help you when you need to communicate with your hosting provider - you'll be able to use terminology that makes it easier for them to understand your request/issue.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;h1 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;font size="6"&gt;Advantages an&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;font size="6"&gt;d Disadvantages : &lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Advantages :&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Cheap &lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; :&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Cost and Affordable Price:Available at Most Affordable Cost. Today thousands of Companies Offering at Very Cheap Prices.Most Common Option In the Industry. Its Market Share is Also High as Compared to Other Host&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Options.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;No Maintenance&lt;/font&gt;&lt;/b&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Cost&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="6"&gt;:&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;It Comes with All Inclusive Price.You would like Not Bother About Server Maintenance and Setup&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Fast Setup&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; :&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;In Case of Shared Host Your Site Could Be Live With in 24 Hours of&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Purchase&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;.&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Unlike Dedicated Host it Could Setup Instantly.No need to be a Technically Sound Person.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Good For Small Sites :&lt;/font&gt;&lt;/b&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;and :It is the Best Option For Beginners and Small Websites.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;Disadvantages :&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Security issues&lt;/font&gt;&lt;/b&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;:&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Security is one Of Main Disadvantage.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Backup Process&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;  &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;is Very Hard Task As the thousands of Websites Hosted on Same Web Server.Security is one of chief disadvantage of Shared Hosting. Backup Process is exceptionally hard task as the thousands of Web sites Hosted on same Web Server.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Limited Resources:&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Thousands Of Web Sites Using Same Resources.That's Why If One User Site consumes More Resources of web Server Other Sites Might Slow Down.In Other Way One Problematic Website May Cause Crash of All Other Sites in the Same Server.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Dynamic IP:&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Many Providers Does not Give Static ip For Shared Website Hosting. Dynamic ip is outstandingly risk when You Going for E-commerce Transactions On Your WebSite.This &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Disadvantage Could Overcome By Choosing Static iP.Some Companies Gives a Option to Choose Static or Dynamic IP. They Will Charge You Small Amount for Static IP.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Not good For Large Data Base E-Commerce Sites:&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Large Websites Need Plenty of Server Resources.So They are not Suitable of it. Final Word: No Doubt It Has Major Share in Industry. But Before You Going to Buy a Shared host Plan, You Must Know Your Requirements.Then Proceed. Best of Luck.&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1044303426848405725-5957832903646334516?l=ash2win10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ash2win10.blogspot.com/feeds/5957832903646334516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ash2win10.blogspot.com/2009/10/assignment.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/5957832903646334516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/5957832903646334516'/><link rel='alternate' type='text/html' href='http://ash2win10.blogspot.com/2009/10/assignment.html' title='assignment'/><author><name>ASHWIN SHANKAR</name><uri>http://www.blogger.com/profile/00920185556438852450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_APB8-Ys6aZ8/Sq-tgr5w2tI/AAAAAAAAAFw/XD70KHctOfQ/S220/P9100046.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044303426848405725.post-6392411066515368500</id><published>2009-10-21T07:14:00.000-07:00</published><updated>2009-10-21T07:17:41.746-07:00</updated><title type='text'></title><content type='html'>&lt;span class="Apple-style-span"  style=" ;font-family:arial, sans-serif;"&gt;&lt;div&gt;                              &lt;wbr&gt;                     &lt;span class="Apple-style-span"  style="font-size:large;"&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;THE TWO-WAY MERGE SORT&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:large;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;AIM&lt;/span&gt;:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:large;"&gt;&lt;span class="Apple-style-span"  style="font-family:'trebuchet ms';"&gt;&lt;/span&gt;&lt;/span&gt;        Merge two arrays with their elements in ascending order into a&lt;/div&gt;&lt;div&gt;single ordered array&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;PROBLEM DESCRIPTION&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:large;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;RULE:1)The elements of both the input arrays should be in sorted form&lt;/div&gt;&lt;div&gt;              2)the size of the merged array should be c=m+n  ie(size&lt;/div&gt;&lt;div&gt;of A array+size of B array)&lt;/div&gt;&lt;div&gt;INPUT:A: 5   6   7   8   9&lt;/div&gt;&lt;div&gt;             B: 1    2  3    4  5&lt;/div&gt;&lt;div&gt;OUTPUT:C:1  2  3  4  5  5 6  7  8  9&lt;/div&gt;&lt;div&gt;               m: Size of A array&lt;/div&gt;&lt;div&gt;               n:size of  B array&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;ALGORITHM DEVELOPMENT&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:large;"&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;           We need to merge the two array elements in ascending order&lt;/div&gt;&lt;div&gt;into a single ordered array. We will discuss this in three scenarios&lt;/div&gt;&lt;div&gt;1scenario:&lt;/div&gt;&lt;div&gt;i/p A: 1  2  3  4  5&lt;/div&gt;&lt;div&gt;      B: 5  6  7  8  9&lt;/div&gt;&lt;div&gt;If the last element of the first array is  lesser than or equal to the&lt;/div&gt;&lt;div&gt;first element of the second array then copy the contents  of A array&lt;/div&gt;&lt;div&gt;to C array and from m+1 location onwards copy the contents of B array&lt;/div&gt;&lt;div&gt;o/p  C:1  2  3  4  5  5  6  7 &lt;wbr&gt; 8  9&lt;/div&gt;&lt;div&gt;2scenario:&lt;/div&gt;&lt;div&gt;i/p A:5  6  7  8  9&lt;/div&gt;&lt;div&gt;      B:1  2  3  4  5&lt;/div&gt;&lt;div&gt;  If the last element of the second array is lesser than or equal to&lt;/div&gt;&lt;div&gt;the first element of the first array then copy the contents of B array&lt;/div&gt;&lt;div&gt;to C array and from n+1 location onwards copy the contents of A array&lt;/div&gt;&lt;div&gt;o/p C:1  2  3  4  5  5  6  7  8  9&lt;/div&gt;&lt;div&gt;3scenario:&lt;/div&gt;&lt;div&gt;i/p  A:1  2  3  4  5&lt;/div&gt;&lt;div&gt;      B:2  5  6  7 8&lt;/div&gt;&lt;div&gt;Maintain two indexes i and j for A and B array.Compare i and j if&lt;/div&gt;&lt;div&gt;A[i]&lt;b[j]&gt;&lt;div&gt;C and update j.If there are still more elements after completion of an&lt;/div&gt;&lt;div&gt;array then copy the remaining contents of the array to C array.&lt;/div&gt;&lt;div&gt;o/p  C:1  2  2  3  4  5  5  6 &lt;wbr&gt; 7  8&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;ALGORITHM:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  1scenario:&lt;/div&gt;&lt;div&gt;1)Read both the arrays A and B&lt;/div&gt;&lt;div&gt;2)If  last A element is less than or equal to the first B element then&lt;/div&gt;&lt;div&gt;copy the contents of A to C and from  m+1th location onwards copy the&lt;/div&gt;&lt;div&gt;contents of B&lt;/div&gt;&lt;div&gt;3)Return the merged result&lt;/div&gt;&lt;div&gt;2scenario:&lt;/div&gt;&lt;div&gt;1)Read both the arrays A and B&lt;/div&gt;&lt;div&gt;2)If  last B element is less than or equal to the first A element then&lt;/div&gt;&lt;div&gt;copy the contents of B to C and from  n+1th location onwards copy the&lt;/div&gt;&lt;div&gt;contents of  A&lt;/div&gt;&lt;div&gt;3)Return the merged result&lt;/div&gt;&lt;div&gt;3scenario:&lt;/div&gt;&lt;div&gt;1)Read both the arrays A and B&lt;/div&gt;&lt;div&gt;2)Maintain two indexes i and j for A and B array.&lt;/div&gt;&lt;div&gt;3)Compare i and j if A[i]&lt;b[j]&gt;&lt;div&gt;B[j]&lt;a[i]&gt;&lt;div&gt;4)If there are still more elements after completion of an array then&lt;/div&gt;&lt;div&gt;copy the remaining contents of the array to C array.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;IMPLEMENTATION:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;#include&lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/div&gt;&lt;div&gt;#include&lt;conio.h&gt;&lt;/conio.h&gt;&lt;/div&gt;&lt;div&gt;int firstarray( );&lt;/div&gt;&lt;div&gt;int secondarray( );&lt;/div&gt;&lt;div&gt;int compare( );&lt;/div&gt;&lt;div&gt;int a[10],b[10],c[20],i,n,n1,n3;&lt;/div&gt;&lt;div&gt;void main( )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;printf("enter the elements for A array:");&lt;/div&gt;&lt;div&gt;scanf("%d",&amp;amp;n);&lt;/div&gt;&lt;div&gt;for(i=0;i&lt;n;i++)&gt;&lt;/n;i++)&gt;&lt;/div&gt;&lt;div&gt;scanf("%d",&amp;amp;a[i]);&lt;/div&gt;&lt;div&gt;printf("enter the elements for B array:");&lt;/div&gt;&lt;div&gt;scanf("%d",&amp;amp;n1);&lt;/div&gt;&lt;div&gt;for(i=0;i&lt;n1;i++)&gt;&lt;/n1;i++)&gt;&lt;/div&gt;&lt;div&gt;scanf("%d",&amp;amp;b[i]);&lt;/div&gt;&lt;div&gt;n3=n+n1;&lt;/div&gt;&lt;div&gt;if(a[n-1]&lt;=b[0])&lt;/div&gt;&lt;div&gt;firstarray( );&lt;/div&gt;&lt;div&gt;else if(b[n1-1]&lt;=a[0])&lt;/div&gt;&lt;div&gt;secondarray( );&lt;/div&gt;&lt;div&gt;else&lt;/div&gt;&lt;div&gt;compare( );&lt;/div&gt;&lt;div&gt;for(i=0;i&lt;n3;i++)&gt;&lt;/n3;i++)&gt;&lt;/div&gt;&lt;div&gt;printf("%d",c[i]);&lt;/div&gt;&lt;div&gt;getch( );&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;int firstarray( )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;printf("firstcase \n");&lt;/div&gt;&lt;div&gt;int  j;&lt;/div&gt;&lt;div&gt;for(i=0;i&lt;n;i++)&gt;&lt;/n;i++)&gt;&lt;/div&gt;&lt;div&gt;c[i]=a[i];&lt;/div&gt;&lt;div&gt;j=0;&lt;/div&gt;&lt;div&gt;while(j&lt;n1)&gt;&lt;/n1)&gt;&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;c[i]=b[j];&lt;/div&gt;&lt;div&gt;j++;&lt;/div&gt;&lt;div&gt;i++;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;return(0);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;int secondarray( )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;printf("secondcase \n");&lt;/div&gt;&lt;div&gt;int  j;&lt;/div&gt;&lt;div&gt;for(i=0;i&lt;n1;i++)&gt;&lt;/n1;i++)&gt;&lt;/div&gt;&lt;div&gt;c[i]=b[i];&lt;/div&gt;&lt;div&gt;j=0;&lt;/div&gt;&lt;div&gt;while(j&lt;n)&gt;&lt;/n)&gt;&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;c[i]=a[j];&lt;/div&gt;&lt;div&gt;j++;&lt;/div&gt;&lt;div&gt;i++;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;return(0);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;int compare( )&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;printf("comparecase \n");&lt;/div&gt;&lt;div&gt;int j=0,k=o;&lt;/div&gt;&lt;div&gt;i=-1;&lt;/div&gt;&lt;div&gt;while(j&lt;n&amp;amp;&amp;amp;k&gt;&lt;n1)&gt;&lt;/n1)&gt;&lt;/n&amp;amp;&amp;amp;k&gt;&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;i++;&lt;/div&gt;&lt;div&gt;if(a[j]&lt;b[k])&gt;&lt;/b[k])&gt;&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;c[i]=a[j];&lt;/div&gt;&lt;div&gt;j++;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;else&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;c[i]=b[k];&lt;/div&gt;&lt;div&gt;k++;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;while(j&lt;n)&gt;&lt;/n)&gt;&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;i++;&lt;/div&gt;&lt;div&gt;c[i]=a[j];&lt;/div&gt;&lt;div&gt;j++;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;while(k&lt;n1)&gt;&lt;/n1)&gt;&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;i++;&lt;/div&gt;&lt;div&gt;c[i]=b[k];&lt;/div&gt;&lt;div&gt;k++;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;retuen(0);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;APPLICATION&lt;/span&gt;:&lt;/div&gt;&lt;div&gt;                     SORTING,TAPE SORTING,DATA PROCESSING.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;/a[i]&gt;&lt;/div&gt;&lt;/b[j]&gt;&lt;/div&gt;&lt;/b[j]&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1044303426848405725-6392411066515368500?l=ash2win10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ash2win10.blogspot.com/feeds/6392411066515368500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ash2win10.blogspot.com/2009/10/two-way-merge-sort-aim-merge-two-arrays.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/6392411066515368500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/6392411066515368500'/><link rel='alternate' type='text/html' href='http://ash2win10.blogspot.com/2009/10/two-way-merge-sort-aim-merge-two-arrays.html' title=''/><author><name>ASHWIN SHANKAR</name><uri>http://www.blogger.com/profile/00920185556438852450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_APB8-Ys6aZ8/Sq-tgr5w2tI/AAAAAAAAAFw/XD70KHctOfQ/S220/P9100046.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044303426848405725.post-4232516204407601964</id><published>2009-10-21T06:56:00.001-07:00</published><updated>2009-10-21T06:56:38.477-07:00</updated><title type='text'>Design and analysis of algorithm</title><content type='html'>&lt;div class="Section1"&gt;&lt;h1 style="text-align: center;margin-left: 0pt; margin-right: 0pt"&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style="font-family: &amp;#39;Times New Roman&amp;#39;"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;Exchanging of two variables&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Exchanging of two variables&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. without using temporary variable,&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. using temporary variable,&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;using arithmetic operators&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;h1 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;font size="5"&gt;Problem description:&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Given two variables a and b,&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Exchange the values of both a and b.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;h1 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;font size="5"&gt;Algorithm development: &lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;font size="5"&gt;&amp;nbsp; &lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Now the two values of a and b is exchanged without using the temporary variable.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.The&amp;nbsp; value of a is assigned to value of b.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.the sum(a+b) is stored in the variable a.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Hence a=a+b;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. the difference (a-b) is stored in the variable &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;b.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. again the difference (a-b) is stored in the variable a.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The values of a and b are exchanged&amp;nbsp; without using temporary variable.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;h1 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;font size="5"&gt;Program coding:&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;#include&amp;lt;conio.h&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;void main()&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;int a,b;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;printf("\n Enter the 2 numbers");&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp; scanf&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;("%d%d",&amp;amp;a,&amp;amp;b);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;//swap&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;p&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;ing of 2 numbers without using temp variable&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;a=a+b;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;b=a-b;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;a=a-b;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;printf("\n A = %d \n B = %d\n");&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;getch();&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;h1 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;font size="5"&gt;2. with using temporary variables:&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h2 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="5"&gt;Now the two variables a,b are assigned to the temporary variable t.&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;ol type="1"&gt;&lt;h2 style="font-family:'Arial'"&gt;&lt;li&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="4"&gt;The value of a is assigned to the value of b.&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/h2&gt;&lt;/ol&gt;&lt;h2 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=b;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;ol start="2" type="1"&gt;&lt;h2 style="font-family:'Arial'"&gt;&lt;li&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="4"&gt;The value of b is stored in the value of temporary variable t.&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/h2&gt;&lt;/ol&gt;&lt;h2 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b=t;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Now&amp;nbsp; the value which is assigned to the temporary variable t is stored in a.&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t=a;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;i&gt;&lt;font size="4"&gt;program coding:&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:108pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;#include&amp;lt;conio.h&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:108pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;void main()&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:72pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:108pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;int a,b,t;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:72pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;printf("\n enter the values of a,b");&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:72pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;scanf("%d",&amp;amp;a,&amp;amp;b);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:108pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;t=a;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:72pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;a=b;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:108pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;b=t;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:72pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;printf("%d",&amp;amp;t);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:108pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;getch();&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:108pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1044303426848405725-4232516204407601964?l=ash2win10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ash2win10.blogspot.com/feeds/4232516204407601964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ash2win10.blogspot.com/2009/10/design-and-analysis-of-algorithm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/4232516204407601964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/4232516204407601964'/><link rel='alternate' type='text/html' href='http://ash2win10.blogspot.com/2009/10/design-and-analysis-of-algorithm.html' title='Design and analysis of algorithm'/><author><name>ASHWIN SHANKAR</name><uri>http://www.blogger.com/profile/00920185556438852450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_APB8-Ys6aZ8/Sq-tgr5w2tI/AAAAAAAAAFw/XD70KHctOfQ/S220/P9100046.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044303426848405725.post-3326198983722695043</id><published>2009-10-21T06:53:00.001-07:00</published><updated>2009-10-21T06:53:11.007-07:00</updated><title type='text'>Application  Server</title><content type='html'>&lt;div class="Section1"&gt;&lt;p style="text-align: center;margin-left: 0pt; margin-right: 0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="6"&gt;Application &lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="6"&gt;Server&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;What is Application&amp;nbsp; Server ?&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;An application server is a component-based product that resides in the middle-tier of a server centric architecture. It provides middleware services for&amp;nbsp;&amp;nbsp;&amp;nbsp; security and state maintenance, along with data access and pe&lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;rsistence.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Java application servers are based on the Java™ 2 Platform, Enterprise Edition (J2EE™). J2EE uses a multi-tier distributed model. This model generally includes a Client Tier, a Middle Tier, and an EIS Tier. The Client Tier can be one or more app&lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;lications or browsers. The J2EE Platform is in the Middle Tier and consists of a Web Server and an EJB Server. (These servers are also called "containers.") There can be additional sub-tiers in the middle tier. The Enterprise Information System (EIS) tier has the existing applications, files, and databases.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;For the storage of business data, the J2EE platform requires a database that is accessible through the JDBC, SQLJ, or JDO API. The database may be accessible from web components, enterprise beans, and application client components. The database need not be accessible from applets.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;img src="http://docs.google.com/File?id=dcph6xxm_29g8hp34dm_b" width="564" height="594" alt="J2EE multi-tier architecture showing the client tier, middle tier, and EIS tier" border="0"&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Types of application servers:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;The simplest forms of servers are disk servers and file servers. With a file server, the client passes requests for files or file records over a network to the file server. This form of data service requires large bandwidth and can slow a network with many users down considerably. Traditional LAN computing allows users to share resources, such as data files and peripheral devices, by moving them from standalone PCUs onto a Networked File Server (NFS). The more advanced form of servers are database servers, transaction server and application servers.In database servers, clients passes SQL (Structured Query Language) requests as messages to the server and the results of the query are returned over the network. The code that processes the SQL request and the data resides on the server allowing it to use its own processing power to find the requested data, rather than pass all the records back to a client and let it find its own data as was the case for the file server. In transaction servers, clients invoke remote procedures that reside on servers which also contains an SQL database engine. There are procedural statements on the server to execute a group of SQL statements (transactions) which either all succeed or fail as a unit. The applications based on transaction servers are called On-line Transaction Processing (OLTP) and tend to be mission-critical applications which require 1-3 second response time, 100% of the time and require tight controls over the security and integrity of the database. The communication overhead in this approach is kept to a minimum as the exchange typically consists of a single request/reply (as opposed to multiple SQL statements in database servers). Application servers are not necessarily database centered but are used to server user needs, such as. download capabilities from Dow Jones or regulating a electronic mail process. Basing resources on a server allows users to share data, while security and management services, which are also based in the server, ensure data integrity and security.&lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&lt;br&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;When an application server should be used ?&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;You should consider an application server when you have a need for:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="square"&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Integration with existing systems and databases&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Web site support&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Secondary reasons to use application servers derive from the primary reasons. A few secondary reasons are:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="square"&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;E-Commerce&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Web-integrated collaboration&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;Component re-use.&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;One way to look at application servers is that they are a formalization of a solution to a problem that has been around for a long time. That problem can characterized as a need to create an integrated presentation and processing environment for existing systems and databases. The presentation has pretty much been decided with browsers now being the dominant interface. This is why you usually see a Web server paired with or included in an application server. The integrated processing has been moving towards components for some time. Application servers provide containers for such components along with application program interfaces (APIs) to support the components. These APIs are to the existing systems and databases.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#222222; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;ow does an application server work:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#222222; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;It would be interesting to consider what's inside of the application server and how it works. Some of the basic functionalities of an application server are transaction management, data persistence, object pooling, socket handling, and request handling. The flow between these responsibilities is seen in Figure 4. There are various components that handle these functionalities. These components need to synchronize the threads within the application server, in order to manage and maintain the sanctity of data and operations on them. This synchronization, although beneficial and necessary for the proper functioning of the application server, acts as a limitation at higher loads, even when there are enough hardware resources.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;img src="http://docs.google.com/File?id=dcph6xxm_30d7thf3cf_b" width="134" height="564" alt="http://onjava.com/onjava/2005/01/19/graphics/Fig4.gif" border="0"&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#222222; font-family:'Times New Roman'"&gt;&lt;font size="4"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1044303426848405725-3326198983722695043?l=ash2win10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ash2win10.blogspot.com/feeds/3326198983722695043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ash2win10.blogspot.com/2009/10/application-server_21.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/3326198983722695043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/3326198983722695043'/><link rel='alternate' type='text/html' href='http://ash2win10.blogspot.com/2009/10/application-server_21.html' title='Application  Server'/><author><name>ASHWIN SHANKAR</name><uri>http://www.blogger.com/profile/00920185556438852450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_APB8-Ys6aZ8/Sq-tgr5w2tI/AAAAAAAAAFw/XD70KHctOfQ/S220/P9100046.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044303426848405725.post-3303163243547935379</id><published>2009-10-21T06:48:00.001-07:00</published><updated>2009-10-21T06:48:05.180-07:00</updated><title type='text'>LAVANYA</title><content type='html'>&lt;div class="Section1"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#ff00ff; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: center;margin-left: 0pt; margin-right: 0pt"&gt;&lt;font class="Apple-style-span" color="#FF00FF" face="Algerian"&gt;&lt;font size="5"&gt;&lt;u&gt;NETWORKING&lt;/u&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#ff6600; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;What is a Network?&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;A network consists of two or more computers that are linked in order to share resources (such as printers and CDs), exchange files, or allow electronic communications. The computers on a network may be linked through cables, telephone lines, radio waves, satellites, or infrared light beams.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;The two basic types of networks include: &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;a href="http://fcit.usf.edu/NETWORK/chap1/chap1.htm#LocalAreaNetwork#LocalAreaNetwork"&gt;&lt;span style="color:#003366; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="3"&gt;Local Area Network (LAN)&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://fcit.usf.edu/NETWORK/chap1/chap1.htm#WideAreaNetwork#WideAreaNetwork"&gt;&lt;span style="color:#003366; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="3"&gt;Wide Area Network (WAN)&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;You may also see references to a Metropolitan Area Networks (MAN), a Wireless LAN (WLAN), or a Wireless WAN (WWAN).&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a name="LocalAreaNetwork"&gt;&lt;/a&gt;&lt;span style="color:#0000ff; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Local Area Network&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;A Local Area Network (LAN) is a network that is confined to a relatively small area. It is generally limited to a geographic area such as a writing lab, school, or building. Rarely are LAN computers more than a mile apart. &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;In a typical LAN configuration, one computer is designated as the file server. It stores all of the software that controls the network, as well as the software that can be shared by the computers attached to the network. Computers connected to the file server are called workstations. The workstations can be less powerful than the file server, and they may have additional software on their hard drives. On many LANs, cables are used to connect the network interface cards in each computer; other LANs may be wireless. See the &lt;/font&gt;&lt;/span&gt;&lt;a href="http://fcit.usf.edu/NETWORK/chap5/chap5.htm"&gt;&lt;span style="color:#003366; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="3"&gt;Topology&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;, &lt;/font&gt;&lt;/span&gt;&lt;a href="http://fcit.usf.edu/NETWORK/chap4/chap4.htm"&gt;&lt;span style="color:#003366; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="3"&gt;Cabling&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;, and &lt;/font&gt;&lt;/span&gt;&lt;a href="http://fcit.usf.edu/NETWORK/chap3/chap3.htm"&gt;&lt;span style="color:#003366; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="3"&gt;Hardware&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; sections of this tutorial for more information on the configuration of a LAN.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a name="WideAreaNetwork"&gt;&lt;/a&gt;&lt;span style="color:#0000ff; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Wide Area Network&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Wide Area Networks (WANs) connect larger geographic areas, such as &lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Florida&lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;, the &lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;United States&lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;, or the world. Dedicated transoceanic cabling or satellite uplinks may be used to connect this type of network. &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Using a WAN, schools in &lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Florida&lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; can communicate with places like &lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Tokyo&lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; in a matter of minutes, without paying enormous phone bills. A WAN is complicated. It uses &lt;/font&gt;&lt;/span&gt;&lt;a href="http://fcit.usf.edu/NETWORK/glossary.htm#multiplexer"&gt;&lt;span style="color:#003366; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="3"&gt;multiplexers&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; to connect local and metropolitan networks to global communications networks like the Internet. To users, however, a WAN will not appear to be much different than a LAN.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a name="AdvantagesofaSchoolNetwork"&gt;&lt;/a&gt;&lt;span style="color:#ff6600; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Advantages of Installing a School Network&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;Speed&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;. Networks provide a very rapid method for sharing and transferring files. Without a network, files are shared by copying them to memory cards or discs, then carrying or sending the discs from one computer to another. This method of transferring files (referred to as &lt;/font&gt;&lt;/span&gt;&lt;a href="http://fcit.usf.edu/NETWORK/glossary.htm#sneaker_net"&gt;&lt;span style="color:#003366; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="3"&gt;sneaker-net&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;) can be very time-consuming. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;Cost&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;. &lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Network able&lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; versions of many popular software programs are available at considerable savings when compared to buying individually licensed copies. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;Security&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;. Files and programs on a network can be designated as "copy inhibit," so that you do not have to worry about illegal copying of programs. Also, passwords can be established for specific directories to restrict access to authorized users. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;Centralized Software Management&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;. One of the greatest benefits of installing a network at a school is the fact that all of the software can be loaded on one computer (the file server). This eliminates that need to spend time and energy installing updates and tracking files on independent computers throughout the building. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;Resource Sharing&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;. Sharing resources is another advantage of school networks. Most schools cannot afford enough laser printers, fax machines, modems, scanners, and CD players for each computer. However, if these or similar peripherals are added to a network, they can be shared by many users. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;Electronic Mail&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;. The presence of a network provides the hardware necessary to install an &lt;/font&gt;&lt;/span&gt;&lt;a href="http://fcit.usf.edu/NETWORK/glossary.htm#email"&gt;&lt;span style="color:#003366; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="3"&gt;e-mail&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; system. E-mail aids in personal and professional communication for all school personnel, and it facilitates the dissemination of general information to the entire school staff. Electronic mail on a LAN can enable students to communicate with teachers and peers at their own school. If the LAN is connected to the Internet, students can communicate with others throughout the world. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;Flexible Access&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;. School networks allow students to access their files from computers throughout the school. Students can begin an assignment in their classroom, save part of it on a public access area of the network, then go to the media center after school to finish their work. Students can also work cooperatively through the network. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;Workgroup Computing&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;. Collaborative software allows many users to work on a document or project concurrently. For example, educators located at various schools within a county could simultaneously contribute their ideas about new curriculum standards to the same document, spreadsheets, or website. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a name="DisadvantagesofaSchoolNetwork"&gt;&lt;/a&gt;&lt;span style="color:#ff6600; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Disadvantages of Installing a School Network&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;Expensive to Install&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;. Although a network will generally save money over time, the initial costs of installation can be prohibitive. Cables, network cards, routers, and software are expensive, and the installation may require the services of a technician. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;Requires Administrative Time&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;. Proper maintenance of a network requires considerable time and expertise. Many schools have installed a network, only to find that they did not budget for the necessary administrative support. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;File Server May Fail&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;. Although a file server is no more susceptible to failure than any other computer, when the files server "goes down," the entire network may come to a halt. When this happens, the entire school may lose access to necessary programs and files. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;Cables May Break&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;. The &lt;/font&gt;&lt;/span&gt;&lt;a href="http://fcit.usf.edu/NETWORK/chap5/chap5.htm"&gt;&lt;span style="color:#003366; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="3"&gt;Topology&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; chapter presents information about the various configurations of cables. Some of the configurations are designed to minimize the inconvenience of a broken cable; with other configurations, one broken cable can stop the entire network. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;Must Monitor Security Issues&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;. Wireless networks are becoming increasingly common; however, security can be an issue with wireless networks. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#800000; font-family:'Algerian'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#800000; font-family:'Algerian'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#800000; font-family:'Algerian'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a name="Intro"&gt;&lt;/a&gt;&lt;span style="color:#ff0000; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;What is a Protocol?&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;A protocol is a set of rules that governs the communications between computers on a network. In order for two computers to talk to each other, they must be speaking the same language. Many different types of network protocols and standards are required to ensure that your computer (no matter which operating system, network card, or application you are using) can communicate with another computer located on the next desk or half-way around the world. The OSI (Open Systems Interconnection) Reference Model defines seven layers of networking protocols. The complexity of these layers is beyond the scope of this tutorial; however, they can be simplified into four layers to help identify some of the protocols with which you should be familiar (see fig 1). &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" width="555" style=" margin-left:0pt; width:416.25pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td width="88" style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;OSI Layer&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="112" style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;Name&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="10" style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td colspan="2" style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;Common Protocols&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;7&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Application&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td colspan="2" style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;6&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Presentation&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td colspan="2" style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;HTTP | FTP | SMTP | DNS&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Session&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td colspan="2" style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Transport&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="158" style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;TCP &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td width="154" style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;SPX&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;3&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Network&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;IP &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;IPX&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;2&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Data Link&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td colspan="2" rowspan="2" style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Ethernet&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;1&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Physical&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=" vertical-align:middle"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Fig 1. OSI model related to common network protocols&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Figure 1 illustrates how some of the major protocols would correlate to the OSI model in order to communicate via the Internet. In this model, there are four layers, including:&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Ethernet (Physical/Data Link Layers) &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;IP/IPX (Network Layer) &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;TCP/SPX (Transport Layer) &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;HTTP, FTP, Telnet, SMTP, and DNS (Session/Presentation/Application Layers) &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Assuming you want to send an e-mail message to someone in &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Italy&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;, we will examine the layers "from the bottom up" -- beginning with Ethernet (physical/data link kayers). &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a name="Ethernet"&gt;&lt;/a&gt;&lt;span style="color:#993300; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Ethernet (Physical/Data Link Layers)&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;The physical layer of the network focuses on hardware issues, such as cables, repeaters, and network interface cards. By far the most common protocol used at the physical layer is Ethernet. For example, an Ethernet network (such as 10BaseT or 100BaseTX) specifies the type of cables that can be used, the optimal topology (star vs. bus, etc.), the maximum length of cables, etc. (See the Cabling section for more information on Ethernet standards related to the physical layer).&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;The data link layer of the network addresses the way that data packets are sent from one node to another. Ethernet uses an access method called CSMA/CD (Carrier Sense Multiple Access/Collision Detection). This is a system where each computer listens to the cable before sending anything through the network. If the network is clear, the computer will transmit. If some other node is already transmitting on the cable, the computer will wait and try again when the line is clear. Sometimes, two computers attempt to transmit at the same instant. When this happens a collision occurs. Each computer then backs off and waits a random amount of time before attempting to retransmit. With this access method, it is normal to have collisions. However, the delay caused by collisions and retransmitting is very small and does not normally effect the speed of transmission on the network. &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;h2 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a name="client"&gt;&lt;/a&gt;&lt;span style="color:#000080; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Client/Server&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Client/server network operating systems allow the network to centralize functions and applications in one or more dedicated file servers (See fig. 2). The file servers become the heart of the system, providing access to resources and providing security. Individual workstations (clients) have access to the resources available on the file servers. The network operating system provides the mechanism to integrate all the components of the network and allow multiple users to simultaneously share the same resources irrespective of physical location. Novell Netware and Windows 2000 Server are examples of client/server network operating systems.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;img src="http://docs.google.com/File?id=dcph6xxm_27dhm9qxhq_b" width="473" height="265" alt="" border="0"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&lt;br&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="2"&gt;Fig. 2. Client/server network &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;font size="4"&gt;Advantages of a client/server network:&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Centralized - Resources and data security are controlled through the server. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Scalability - Any or all elements can be replaced individually as needs increase. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Flexibility - New technology can be easily integrated into system. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Interoperability - All components (client/network/server) work together. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Accessibility - Server can be accessed remotely and across multiple platforms. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Arial'"&gt;&lt;b&gt;&lt;font size="4"&gt;Disadvantages of a client/server network:&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Expense - Requires initial investment in dedicated server. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Maintenance - Large networks will require a staff to ensure efficient operation. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Dependence - When server goes down, operations will cease across the network. &lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 style=" margin-left:0pt; margin-right:0pt"&gt;&lt;a name="examples"&gt;&lt;/a&gt;&lt;span style="color:#333300; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Network Operating System Software&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;The following links include some of the more popular peer-to-peer and client/server network operating systems. &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;a href="http://www.apple.com/server/mocosx" target="_blank"&gt;&lt;span style="color:#003366; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="3"&gt;Macintosh OSX&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.microsoft.com/servers/home.mspx" target="_blank"&gt;&lt;span style="color:#003366; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="3"&gt;Microsoft Windows Server&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.novell.com/" target="_blank"&gt;&lt;span style="color:#003366; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="3"&gt;Novell&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://www.unix.org/" target="_blank"&gt;&lt;span style="color:#003366; font-family:'Times New Roman'"&gt;&lt;u&gt;&lt;font size="3"&gt;UNIX&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#800000; font-family:'Algerian'"&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1044303426848405725-3303163243547935379?l=ash2win10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ash2win10.blogspot.com/feeds/3303163243547935379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ash2win10.blogspot.com/2009/10/lavanya.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/3303163243547935379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/3303163243547935379'/><link rel='alternate' type='text/html' href='http://ash2win10.blogspot.com/2009/10/lavanya.html' title='LAVANYA'/><author><name>ASHWIN SHANKAR</name><uri>http://www.blogger.com/profile/00920185556438852450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_APB8-Ys6aZ8/Sq-tgr5w2tI/AAAAAAAAAFw/XD70KHctOfQ/S220/P9100046.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044303426848405725.post-7199571598277897682</id><published>2009-10-21T06:21:00.001-07:00</published><updated>2009-10-21T06:21:02.548-07:00</updated><title type='text'>Assignment-gcd</title><content type='html'>&lt;div class="Section1"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;Greatest Common Divisor of&amp;nbsp; 2 &lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;u&gt;&lt;font size="6"&gt;I&lt;/font&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;nteger&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt; numbers&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;Problem&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt; Definition&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;:&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;i&gt;&lt;font size="5"&gt;T&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;i&gt;&lt;font size="5"&gt;o&lt;/font&gt;&lt;/i&gt;&lt;/span&gt; &lt;span style="font-family:'Sylfaen'"&gt;&lt;i&gt;&lt;font size="5"&gt;find the greatest common divisor (GCD) of an two integer number.&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;i&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;Problem &lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;Description&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;:&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;i&gt;&lt;font size="5"&gt;Gcd for two numbers 20,30 &lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;i&gt;&lt;font size="5"&gt;Every gcd number will have greatest and smaller number.&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Sylfaen'"&gt;&lt;i&gt;&lt;font size="5"&gt;The first number will be smaller number and the second number will be greatest number.&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;i&gt;&lt;font size="5"&gt;If gcd is even number then gcd(u,v)=2.gcd(u\2,v\2).because 2 is a common divisor.&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;i&gt;&lt;font size="5"&gt;If gcd is odd number then gcd(u,v)=gcd(u\2,v),because 2 is not a common divisor.&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:18pt; margin-right:0pt"&gt;&lt;font class="Apple-style-span" face="Sylfaen"&gt;&lt;b&gt;&lt;font size="6"&gt;&lt;br&gt;&lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;Diagramatic Representation&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="6"&gt;:&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Common part&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20 U&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30 V&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;br&gt; &lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:144pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="5"&gt;Gcd=10&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:144pt; margin-right:0pt"&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:77.35pt"&gt;&lt;td width="417" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="5"&gt;Gcd(20,30)=gcd(10,20)&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Gcd=10&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;Gcd for same number:&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Sylfaen'"&gt;&lt;b&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;If gcd have same number then gcd will be the same number.&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;For example:6,6&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:22.5pt"&gt;&lt;td width="147" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;6&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Arial Rounded MT Bold'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;u&gt;&lt;font size="5"&gt;6&lt;/font&gt;&lt;/u&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;u&gt;&lt;font size="5"&gt;0&lt;/font&gt;&lt;/u&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;Gcd =6&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#333399; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;While (n1!=n2)&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;We have to use this condition to implement&amp;nbsp; for the same number in gcd.&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;Implementation: &lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;#include&amp;lt;conio.h&amp;gt;&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;Void main()&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;{&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;Int n1,n2;&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;Clrscr();&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;Printf(“/n enter two numbers:”);&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;Scanf(“%d%d”,&amp;amp;n1,&amp;amp;n2);&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;While(n1!=n2)&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;{&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;If(n1&amp;gt;=n2-1)&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;n 1=n1-n2;&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;else&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;n 2=n2-n1&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;}&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;Printf(“/n gcd=%d”,n1);&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;getch();&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;i&gt;&lt;font size="5"&gt;}&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;Algorithm:&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000000; font-family:'Arial Rounded MT Bold'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="square"&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;gcd(0, &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;) = &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;, because everything divides zero, and &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; is the largest number that divides &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;. Similarly, gcd(&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;, 0) = &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;, including &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u=0&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;If &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; and &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; are both even, then gcd(&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;, &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;) = 2·gcd(&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;/2, &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;/2), because 2 is a com&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;mon divisor.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;If &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; is even and &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; is odd, then gcd(&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;, &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;) = gcd(&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;/2, &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;), because 2 is not a common divisor. Similarly, if &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; is odd and &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; is even, then gcd(&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;, &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;) = gcd(&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;, &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;/2).&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;If &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; and &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; are both odd, and &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; ≥ &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;, then gcd(&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;, &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;) = gcd((&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;−&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;)/2, &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;). If both are o&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;dd and &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; &amp;lt; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;, then gcd(&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;, &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;) = gcd((&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;-&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;)/2, &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;). These are combinations of one step of the simple Euclidean algorithm, which uses subtraction at each step, and an application of step 3 above. The division by 2 results in an integer because the difference of two odd numbers is even&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;Repeat steps 3–4 until &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; = &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;, or (one more step) until &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;u&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; = 0. In either case, the result is 2&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;sup&gt;&lt;font size="3"&gt;k&lt;/font&gt;&lt;/sup&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;v&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;, where &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;i&gt;&lt;font size="5"&gt;k&lt;/font&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt; is the number of common factors of 2 found in step 2.&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:36pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="6"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:36pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="6"&gt;Application:&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:36pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reduces the fraction.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1044303426848405725-7199571598277897682?l=ash2win10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ash2win10.blogspot.com/feeds/7199571598277897682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ash2win10.blogspot.com/2009/10/assignment-gcd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/7199571598277897682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/7199571598277897682'/><link rel='alternate' type='text/html' href='http://ash2win10.blogspot.com/2009/10/assignment-gcd.html' title='Assignment-gcd'/><author><name>ASHWIN SHANKAR</name><uri>http://www.blogger.com/profile/00920185556438852450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_APB8-Ys6aZ8/Sq-tgr5w2tI/AAAAAAAAAFw/XD70KHctOfQ/S220/P9100046.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044303426848405725.post-8294573364217261971</id><published>2009-10-05T07:46:00.001-07:00</published><updated>2009-10-05T07:46:11.252-07:00</updated><title type='text'>ARRAY TECHNIQUES</title><content type='html'>&lt;div class="Section1"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="color:#800000; font-family:'Rockwell Extra Bold'"&gt;&lt;b&gt;&lt;u&gt;&lt;font size="4"&gt;ARRAY TECHNIQUES&lt;/font&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="color:#800000; font-family:'Rockwell Extra Bold'"&gt;&lt;b&gt;&lt;font size="5"&gt;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt; text-align:center"&gt;&lt;span style="color:#0000ff; font-family:'Franklin Gothic Medium'"&gt;&lt;b&gt;&lt;font size="4"&gt;FINDING THE KTH AMALLEST ELEMENT&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#800080; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#800080; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;PROBLEM&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp; Given a randomly ordered array of n element determine the k&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;sup&gt;&lt;font size="1"&gt;th&lt;/font&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; smallest element in the set.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#ff00ff; font-family:'Arial Black'"&gt;&lt;b&gt;&lt;font size="3"&gt;ALGORITHM DEVELOPMENT&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;To find the k&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;sup&gt;&lt;font size="1"&gt;th&lt;/font&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; smallest element would be to simply sort the element and then pick the k&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;sup&gt;&lt;font size="1"&gt;th&lt;/font&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; value. We may,&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;however,&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;suspect &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;that this problem in a similar fashion to the partitioning problem.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Eras Bold ITC'"&gt;&lt;b&gt;&lt;font size="3"&gt;K is number of passes in the array&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;K=1&amp;nbsp; =&amp;gt;O/P=5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;K=2 =&amp;gt;O/P=6&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; If n value is smallest fully sorted. If the value is greater we sorted lightly&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp; 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp; 30 is minimum value it should compared and inter change&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;By the default I consider this is my smallest element&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" style=" margin-left:0pt" class="zeroBorder"&gt;&lt;tbody&gt;&lt;tr style="height:12.7pt"&gt;&lt;td width="272" style=" vertical-align:top"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#000080; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;Minimum-&amp;gt;compared-&amp;gt;interchange&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Eras Bold ITC'"&gt;&lt;b&gt;&lt;font size="5"&gt;1&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Eras Bold ITC'"&gt;&lt;b&gt;&lt;sup&gt;&lt;font size="3"&gt;st &lt;/font&gt;&lt;/sup&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Eras Bold ITC'"&gt;&lt;b&gt;&lt;font size="5"&gt;pass&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;M&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;in&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;i&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;i&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;comparison &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp; is started here &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;I found the minimum element to swap and update the index&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Compare I found minimum element to swap and update the index&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;It is not minimum so update the index&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;I found minimum element to swap the element&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt; &lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;If the 1&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;sup&gt;&lt;font size="1"&gt;st&lt;/font&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; pass is finished found the first minimum element&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;2 pass&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; i&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30 &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;↔&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Compare I found minimum element&amp;nbsp; to swap and update the index&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;no swapping&amp;nbsp; update the index&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Compare I &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;found minimum element to swap and update the index&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Now we found second minimum element&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#333300; font-family:'Eras Bold ITC'"&gt;&lt;b&gt;&lt;font size="4"&gt;PROGRAM&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;#include&amp;lt;conio.h&amp;gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Void main()&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Int a[10],t,&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;k,n,i,j&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Printf(&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;“&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;enter the values&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;“&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;)&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Scanf(“%d”,&amp;amp;n);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;For(i=0;i&amp;lt;n;i++)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Scanf(“%d”,&amp;amp;k);&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;For(i=0;i&amp;lt;k-1;i++)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Min=a[i];&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;For(j=i+1;j&amp;lt;n;j++)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;If(a[j]&amp;lt;min)&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;{&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Min=a[j];&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;t=a[i];&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;a[i]=a[j];&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;a[j]=t;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#993366; font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#993366; font-family:'Rockwell Extra Bold'"&gt;&lt;font size="3"&gt;ALGORITHM DESCRIPTION&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;1.&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Establish the requirement that kth smallest element is sought.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;2. left and right partition do not overlap do&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;a. choose a[k] as the paritition value x;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;b.&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;set I to the upper limit l of the left partition&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;3. &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;extend the left partition whilea[i]&amp;lt;x;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;4. &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;exchange a[i]with &lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;a[&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;j&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;]&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;5&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;. i&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;f k&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;sup&gt;&lt;font size="1"&gt;th&lt;/font&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; smallest in left partition ,update the values&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;6.&lt;/font&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;if k&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;sup&gt;&lt;font size="1"&gt;th&lt;/font&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; smallest in right partition ,update the values&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;7.&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt; f&lt;/font&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;irst k position in array&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="color:#6600cc; font-family:'Times New Roman'"&gt;&lt;b&gt;&lt;font size="3"&gt;APPLICATIONS&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;Finding the median and finding percentiles&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman'"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;span style="color: rgb(102, 0, 102)"&gt;&lt;b&gt;&lt;font size="5"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1044303426848405725-8294573364217261971?l=ash2win10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ash2win10.blogspot.com/feeds/8294573364217261971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ash2win10.blogspot.com/2009/10/array-techniques.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/8294573364217261971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/8294573364217261971'/><link rel='alternate' type='text/html' href='http://ash2win10.blogspot.com/2009/10/array-techniques.html' title='ARRAY TECHNIQUES'/><author><name>ASHWIN SHANKAR</name><uri>http://www.blogger.com/profile/00920185556438852450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_APB8-Ys6aZ8/Sq-tgr5w2tI/AAAAAAAAAFw/XD70KHctOfQ/S220/P9100046.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044303426848405725.post-4637470276046296343</id><published>2009-09-26T23:20:00.001-07:00</published><updated>2009-09-26T23:28:48.936-07:00</updated><title type='text'>ARRAY ORDER REVERSAL</title><content type='html'>&lt;div class="Section1"&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt; TEXT-ALIGN:center"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: large; color: rgb(227, 108, 10); font-weight: bold; -webkit-text-decorations-in-effect: underline; "&gt;CONTENT&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;br /&gt;   &lt;li&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;AIM&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;   &lt;/li&gt;&lt;br /&gt;   &lt;li&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;PROBLEM DESCRITION&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;   &lt;/li&gt;&lt;br /&gt;   &lt;li&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;ALGORITHM DISCRIPTION&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;   &lt;/li&gt;&lt;br /&gt;   &lt;li&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;IMPLIMENTATION&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;   &lt;/li&gt;&lt;br /&gt;   &lt;li&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;APPLICATION&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;   &lt;/li&gt;&lt;br /&gt; &lt;/ul&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style=" ;font-family:'Times New Roman';color:#e36c0a;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size:130%;"&gt;AIM&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=" ;font-family:'Times New Roman';color:#e36c0a;"&gt;&lt;u&gt;&lt;span style="font-size:130%;"&gt;:&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;u&gt;&lt;span style="font-size:130%;"&gt;WE HAVE&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt; TO REVERSE THE NUMBERS IN THE PROBLEM GIVEN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style=" ;font-family:'Times New Roman';color:#e36c0a;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size:130%;"&gt;PROBLEM DISCRIPTION&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt; TEXT-ALIGN:center"&gt;&lt;/p&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;    &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;REVERSAL ORDER MEANS JUST REVERSE THE NUMBER. WE HAVE THE NUMBERS IN ORDER OF                         &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                                1,2,3,4,5,6,7&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;p&gt;&lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt; TEXT-ALIGN:center"&gt;&lt;/p&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;    &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;MEANS THE REVERSE OF THE NUMBERS ARE        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;              7,6,5,4,3,2,1.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;p&gt;&lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;WE TAKE  THIS AS AN EXAMPLE.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;table cellpadding="0" cellspacing="0" class="zeroBorder" style=" MARGIN-LEFT:63pt"&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;tbody&gt;&lt;tr style="HEIGHT:63pt"&gt;&lt;td style=" VERTICAL-ALIGN:top" width="72"&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;        &lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt; TEXT-ALIGN:center"&gt;&lt;br /&gt;         &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;       &lt;/p&gt;&lt;br /&gt;     &lt;/td&gt;      &lt;td style=" VERTICAL-ALIGN:top" width="60"&gt;&lt;br /&gt;       &lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt; TEXT-ALIGN:center"&gt;&lt;br /&gt;         &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;       &lt;/p&gt;&lt;br /&gt;     &lt;/td&gt;      &lt;td style=" VERTICAL-ALIGN:top" width="60"&gt;&lt;br /&gt;       &lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt; TEXT-ALIGN:center"&gt;&lt;br /&gt;         &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;3&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;       &lt;/p&gt;&lt;br /&gt;     &lt;/td&gt;      &lt;td style=" VERTICAL-ALIGN:top" width="60"&gt;&lt;br /&gt;       &lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt; TEXT-ALIGN:center"&gt;&lt;br /&gt;         &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;4&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;       &lt;/p&gt;&lt;br /&gt;     &lt;/td&gt;      &lt;td style=" VERTICAL-ALIGN:top" width="60"&gt;&lt;br /&gt;       &lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt; TEXT-ALIGN:center"&gt;&lt;br /&gt;         &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;5&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;       &lt;/p&gt;&lt;br /&gt;     &lt;/td&gt;      &lt;td style=" VERTICAL-ALIGN:top" width="60"&gt;&lt;br /&gt;       &lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt; TEXT-ALIGN:center"&gt;&lt;br /&gt;         &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;6&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;       &lt;/p&gt;&lt;br /&gt;     &lt;/td&gt;      &lt;td style=" VERTICAL-ALIGN:top" width="48"&gt;&lt;br /&gt;       &lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt; TEXT-ALIGN:center"&gt;&lt;br /&gt;         &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;7&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;       &lt;/p&gt;&lt;br /&gt;     &lt;/td&gt;    &lt;/tr&gt;    &lt;/tbody&gt;&lt;tbody&gt;  &lt;/tbody&gt;&lt;/table&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt; TEXT-ALIGN:center"&gt;&lt;/p&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;    &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;N=7 WE HAVE TO INTIALISE THE VALUE&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt; OF I IS1.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;p&gt;&lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;R IS THE NUMBER OF SWAPING.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;WE HAVE CALCULATE R VALUE R=N/2.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;      A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[1] &amp;lt;=&amp;gt;   A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[7]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;      A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[2] &amp;lt;=&amp;gt;   A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[6]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;      A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[3] &amp;lt;=&amp;gt;   A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[5]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;      A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[4] &amp;lt;=&amp;gt;   A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[4]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;I=1 INCREASE THE VALUE. N IS DECREASE VALUE.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;WE HAVE ACHIVE ONLY ONE VARIABLE USE BOTH RIGHT &amp;amp; LEFT SIDE.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;          SO THE FORMULA IS N=N-I+1.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 N=7-1+1=7&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 N=7-2+1=6&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 N=7-3+1=5&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 N=7-4+1=4&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 N=7-5+1=3&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 N=7-6+1=2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 N=7-7+1=1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style=" ;font-family:'Times New Roman';color:#e36c0a;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size:130%;"&gt;ALGORITHM DESCRIPTION&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;br /&gt; &lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;    &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;            READ THE VALUES&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;            INITIALIZ THE I VALUE&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;            FIND THE NO OF SWAP&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;            SUBSTUTE THE FORMULA N=N-I+1.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;            COLECT THE VALUES AND STORED&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;             STOP THE PROCESS.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;    &lt;span style=" ;font-family:'Times New Roman';color:#e36c0a;"&gt;&lt;b&gt;&lt;i&gt;&lt;u&gt;&lt;span style="font-size:130%;"&gt;IMPLEMENTATION&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;i&gt;&lt;u&gt;&lt;span style="font-size:130%;"&gt;:&lt;/span&gt;&lt;/u&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                #INCLUDE&amp;lt;STDIO.H&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                #INCLUDE&amp;lt;CONIO.H&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;        VOID &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;MAIN&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt; )&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 INT &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;A [&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;100]&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;, T, R, I, N&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 PRINTF (“ENTER THE VALUES’);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;SCANF (&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;“%D”, &amp;amp;N);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;FOR (&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;I=0; I&amp;lt;=N; I++)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 R=N/2;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;FOR (&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;I=0&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;; I&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;&amp;lt;=R;I++)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                T=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;A [&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;I];&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;A [&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;I&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;] =&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;A [&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;N-I+&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;1&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;];&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;A [&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;N-I+1&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;] =&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;T;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;FOR (&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;I=1;I&amp;lt;=N;I++)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;PRINTF (&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;“%D  “&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;, &amp;amp;D [&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;I]);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;               }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;IF ARRAY IS STARTING WITH 0 TH INDEX IT IS NOT WORK.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt; TEXT-ALIGN:center"&gt;&lt;/p&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;    &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;N=8 WE HAVE TO INTIALISE &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;THE VALUE&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt; OF I IS&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;0.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;p&gt;&lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;R IS THE NUMBER OF SWAPING.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;WE HAVE CALCULATE R VALUE R&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;= (&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;N+1)/2.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;      A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[0] &amp;lt;=&amp;gt;   A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[7]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;      A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[1] &amp;lt;=&amp;gt;   A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[6]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;      A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[2] &amp;lt;=&amp;gt;   A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[5]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;      A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[3] &amp;lt;=&amp;gt;   A&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;[4]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;I=0 INCREASE THE VALUE. N IS DECREASE VALUE.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;WE HAVE ACHIVE ONLY ONE VARIABLE &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;USES&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt; BOTH RIGHT &amp;amp; LEFT SIDE.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;          SO THE FORMULA IS N= N-I.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 N=7-0=7&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 N=7-1=6&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 N=7-2=5&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 N=7-3=4&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 N=7-4=3&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 N=7-5=2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 N=7-6=1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;u&gt;&lt;span style="font-size:130%;"&gt;PRO&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;u&gt;&lt;span style="font-size:130%;"&gt;GRAM FOR STARTING INDEX 0:&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;               #INCLIDE&amp;lt;STDIO.H&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;               #INCLUDE&amp;lt;CONIO.H&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;        VOID &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;MAIN&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt; (&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt; )&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;INT &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;A [&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;100]&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;, T, R,I,N&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 PRINTF (“ENTER THE VALUES’);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;SCANF (&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;“%D”, &amp;amp;N);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;FOR (&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;I=0; I&amp;lt;=N; I++)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 R=N/2;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                 &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;FOR (&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;I=0&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;; I&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;&amp;lt;=R&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;; I&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;++)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                T=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;A [&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;I];&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;A [&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;I&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;] =&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;A [&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;N-I];&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;A [&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;N-I&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;] =&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;T;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;FOR (&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;I=1&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;; I&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;&amp;lt;=N&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;; I&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;++)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;PRINTF (&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;“%D  “&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;, &amp;amp;D [&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;I]);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;               }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;h1 style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;span class="Apple-style-span"  style="font-size:130%;"&gt;&lt;span class="Apple-style-span" style="font-size: 16px; font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;    &lt;span style=" ;font-family:'Cambria';color:#ff6600;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size:130%;"&gt;APPLICATION:&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt; &lt;/h1&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-size:130%;"&gt;               SORTING IN MATHEMATICAL.&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;   &lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:130%;"&gt;               MATRIX MALTIPLICATION&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style=" MARGIN-LEFT:0pt; MARGIN-RIGHT:0pt"&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1044303426848405725-4637470276046296343?l=ash2win10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ash2win10.blogspot.com/feeds/4637470276046296343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ash2win10.blogspot.com/2009/09/array-order-reversal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/4637470276046296343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/4637470276046296343'/><link rel='alternate' type='text/html' href='http://ash2win10.blogspot.com/2009/09/array-order-reversal.html' title='ARRAY ORDER REVERSAL'/><author><name>ASHWIN SHANKAR</name><uri>http://www.blogger.com/profile/00920185556438852450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_APB8-Ys6aZ8/Sq-tgr5w2tI/AAAAAAAAAFw/XD70KHctOfQ/S220/P9100046.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044303426848405725.post-7099957551645202506</id><published>2009-09-26T23:12:00.001-07:00</published><updated>2009-09-26T23:16:43.481-07:00</updated><title type='text'>re</title><content type='html'>&lt;div class="Section1"&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:180%;"&gt;                  &lt;span class="Apple-style-span" style="font-size: 16px; font-weight: normal; font-family: Georgia, serif; "&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;u&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;REMOVAL   OF  DUPLICATES  FROM&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;u&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;u&gt;&lt;span&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;ORDEREDARRAY&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:180%;"&gt; &lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;span style="font-family:'Verdana';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;Problem definition:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;           &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;To design an algorithm for removal of duplicates using array.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;span class="Apple-style-span" style="font-family: Verdana; "&gt;Problem description:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;We can use array with duplicates and also array without duplicates.In both of this we can use sorted array with duplicates and sorted array without duplicates.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="font-family:'Verdana';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;Two methods:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Verdana';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;*Array without duplicates.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;*Array with duplicates.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="font-family:'Verdana';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;Two types of condition to compare the given two elements:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;(1).i=1; a[i]=a[i+1];&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;In this type we assign that the comparison is between the adjacent elements.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;And also this type may have the range of values in the outer bound.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;(2).i=2; a[i-1]=a[i];&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;In this type we assign that the current i index is compared with (i-1)th  index.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;This part also have the range of values and it is supply within the array.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;Comparing with this two type of range of values (2) type of values is best choice for doing removal of duplicates.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="font-family:'Verdana';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;Purpose of usage the condition(i&amp;lt;n) instead of i&amp;lt;=n:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;Though  (i&amp;lt;=n) condition is satisfied,no need to use this condition because that one value is count in out of range area.So,we can use the condition(i&amp;lt;n).&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;(Eg):n=3,i=2.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;Here i&amp;lt;n is condition is more applicable.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; @.&lt;span class="Apple-style-span" style="font-family: Verdana; "&gt;Explanations:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;(1).Array without duplicates:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;  &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;     &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;Consider an (eg): 10  20  30  40  50&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; -&amp;gt;While comparing the elements if they are equal then it is duplicate element.Orelse if the element is not equal then update the i value after that it move on to next comparison.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;(1a) &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;Necessary steps:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;span class="Apple-style-span" style="font-size: 16px; font-weight: normal; font-family: Georgia, serif; "&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;Initialize i=2;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;      &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;Check condition(i&amp;lt;n&amp;amp;&amp;amp;a[i-1]!=a[i])&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;If it is satisfy then update the I value.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;                          i=2&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;I (1). (eg) 10 _ 20  30  40  50&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;_ ( comparison symbol)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;Here condition is true .So,there is no duplicate element,update the i value.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;                      i=3&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;I(2).10  20 _ 30  40  50&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;Here  condition is true .So,there is no duplicate element,update the i value.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;                             i=4&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;I(3).10  20  30 _ 40  50&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;Here  condition is true .So,there is no duplicate element,update the i value.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; i=5&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;I(4).10  20  30  40 _ 50&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;If  i is reach the last element the comparison is not done for the 4 &amp;amp;5 element.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Verdana';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;So ,we have include this coding during ‘array without duplicates’:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;a[i-1]!=a[i]&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;if  this condition is satisfied then i is incremented to 6.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;J=i-1;//this above 6 is in out of range of array values.so,decrement the i value and assign it to ‘j’ value.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;   Then the result is:10  20  30  40  50&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="font-family:'Verdana';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;(2).sorted array with duplicates:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;Consider an (eg): 20  30  40  40  40  50&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;While comparing the elements if they are equal then it is duplicate element.Orelse if the element is not equal then update the i value after that it move on to next comparison.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;(2a)necessary steps:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;Initialize same as i=2;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;Then check (a[i-1]!=a[i]&amp;amp;&amp;amp;i&amp;lt;n).&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;If it is satisfy my condition i++ the index.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;                i=2&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;I(1).20 _ 30  40  40  40  50&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;The condition is true because the comparing element is not equal.then update the i value.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;                       i=3&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;I(2).20  30 _ 40  40  40  50&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;The condition is &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;true because the comparing element is not equal.then update the i value.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;                             i=3&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;I(3).20  30  40 _ 40  40  50&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;The condition is false because the comparing element is equal.then no update here.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;It move on to next comparison&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:36pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;Here we have to maintain the variable j is a unique index that have only the element which are not duplicated.It move on to next comparison.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;J=i-1//it assign the previous element which are not duplicate element by using loop.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;                     j              i=3&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;I(4).20  30  40  40 _ 40  50&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;span class="Apple-style-span" style="font-size: 16px; font-weight: normal; font-family: Georgia, serif; "&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;The condition is false because the comparing element is equal.then no update here.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt; &lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;It move on to next comparison.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:36pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;          j               i=4&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;I(5).20  30  40  40  40 _ 50  -&amp;gt; (1)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:36pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;The condition is true because the comparing element is not equal.then update the i value.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;                      j&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; 20  30  40  40/50  ||40  50||  -&amp;gt; (2)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;||  ||  -&amp;gt;virtual value.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;/ -&amp;gt; overwrite the value.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;Here no change is happen then j (unique index) is update.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;Overwritten the last element in the place of recent j variable.(40/50).&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;This means the duplicate value is removed from array.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;              &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;-&amp;gt;Then finally result is:20  30  40 50.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul type="disc"&gt;&lt;li&gt;&lt;span style="font-family:'Verdana';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;Program:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;Void main()&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;{&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;Int a[100],i,j,n;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;Scanf(“%d”,&amp;amp;n);&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;For(i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;Scanf(“%d”,&amp;amp;a[i]);&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;i=2;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;while(i&amp;lt;n&amp;amp;&amp;amp;a[i-1]!=a[i])&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;i++;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;if(a[i-1]!=a[i])&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;i++;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;j=i-1;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;while(i&amp;lt;n)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;{&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;  i++;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;if(a[i-1]!=a[i])&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;{&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;   j++;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;a[j]=a[i];&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;n=j;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;for(i=0;i&amp;lt;n;i++)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;printf(“%d”,a[i]);&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt; &lt;span class="Apple-style-span" style="font-family: Verdana; "&gt;Applications:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; "&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; "&gt;#Data compression&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=" margin-left:0pt; margin-right:0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;b&gt;&lt;span style="font-size:130%;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; "&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; "&gt;#Text processing problems.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1044303426848405725-7099957551645202506?l=ash2win10.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ash2win10.blogspot.com/feeds/7099957551645202506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ash2win10.blogspot.com/2009/09/re.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/7099957551645202506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1044303426848405725/posts/default/7099957551645202506'/><link rel='alternate' type='text/html' href='http://ash2win10.blogspot.com/2009/09/re.html' title='re'/><author><name>ASHWIN SHANKAR</name><uri>http://www.blogger.com/profile/00920185556438852450</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_APB8-Ys6aZ8/Sq-tgr5w2tI/AAAAAAAAAFw/XD70KHctOfQ/S220/P9100046.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1044303426848405725.post-399261759846206487</id><published>2009-09-23T06:15:00.001-07:00</published><updated>2009-09-23T06:33:26.776-07:00</updated><title type='text'>v.gokulapriya</title><content type='html'>&lt;p class="Section1" style="MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:100%;"&gt;                                  &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;PARTITIONING AN ARRAY&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Section1" style="MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:100%;"&gt;                                      &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Section1" style="MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:100%;"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;p class="Section1" style="MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:100%;"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;p class="Section1" style="MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Georgia';"&gt;&lt;b&gt;&lt;span style="font-size:180%;"&gt;PROBLEM DEFINITION:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Section1" style="MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Georgia';"&gt;&lt;span style="font-size:180%;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Georgia';"&gt;&lt;span style="font-size:180%;"&gt;                 &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Section1" style="MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Georgia';"&gt;&lt;span style="font-size:180%;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Georgia';"&gt;&lt;span style="font-size:180%;"&gt;              &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Section1" style="MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Times New Roman';"&gt;&lt;span style="font-size:100%;"&gt;                            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Georgia';"&gt;&lt;span style="font-size:180%;"&gt;To partitioning an array element in a given set.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Section1" style="MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Georgia';"&gt;&lt;span style="font-size:180%;"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;p class="Section1" style="MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;PROBLEM DESCRIPTION&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;b&gt;&lt;span style="font-size:180%;"&gt;:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Section1" style="MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;b&gt;&lt;span style="font-size:180%;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt; &lt;/p&gt;&lt;p class="Section1" style="MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;b&gt;&lt;span style="font-size:180%;"&gt;                     &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;To divide an array element based on some constrains and some rules.Given a randomly ordered array of n elements,partition the elements into two subsets such that elements &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;≤x are in one subset and elements &amp;gt;x are in the other subset.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Section1" style="MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;p class="Section1" style="MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Georgia';"&gt;&lt;b&gt;&lt;span style="font-size:180%;"&gt;ALGORITHM DEVELOPMENT:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Section1" style="MARGIN-LEFT: 0pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;                        94  64  14  74  26  7&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;It is random because array element are arranged randomly so,we are going to portioned the element based on the 1&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;sup&gt;&lt;span style="font-size:100%;"&gt;st&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt; element.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;  Input:  44  94  64 &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;14  74  26  7&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;Output: 14&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;   7  26  44  74  64  94&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;Here, we portioned is based on 44. The left hand side element must be less than or equal to 44 at the same time and right handside element must be greater than 44.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;            i→updated when elements is &amp;lt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;first value.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;            j→updated when elements j&amp;gt; first value.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;Whatever element in LHS or RHS must be in sorted from according to the rule.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;↓i                               ↓j&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;                 44  94  64  14  74  26  7&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;I am going to maintain i as the second element&lt;/span&gt;&lt;/span&gt; &lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;and j going to be the last element.If the 2&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;sup&gt;&lt;span style="font-size:100%;"&gt;nd&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt; no is greater than 1&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;sup&gt;&lt;span style="font-size:100%;"&gt;st&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt; no then it must be shifted to some another place.I am going to compare the jth  element.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;(ie)   94&amp;gt;44→swap&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;p style="MARGIN-LEFT: 91.5pt; MARGIN-RIGHT: 0pt"&gt;&lt;span style="font-family:'Franklin Gothic Medium';"&gt;&lt;span style="font-size:180%;"&
