Docsity

PnacHcol No. 5 and No. 55: Technique for Transforming Sequences, Lab Reports of Computer Science

Toggle sidebar
bg1
PnacHcol
No:5
Dals
1o//1
Aim:
Nnite
o
pnoanam
fon
Tnserion
5ont
50tune
Requned
Java
Online
Co
npi
n
Out
put
Topulisti5
12
A 3 1S
45
33
21t0
2
Sonttd
11st 1
2 3 4 10
12
15
21
33
45
Conclusion
TnsenHon
ount
1s
he
mo
cfffeient
all
he
theee
tchniques,
erpe,
We
assume
thot
the
finst
element
is
sonttd
ond
hen
nepealedl
Compane
eveny
elemen+
to
altIs
and
hen
place
he
cunnct
elemenl s
Connec
pos7Hoo
in+he
opnay
pf3

Partial preview of the text

Download PnacHcol No. 5 and No. 55: Technique for Transforming Sequences and more Lab Reports Computer Science in PDF only on Docsity!

PnacHcol No:

Dals 1o//

Aim: Nnite o pnoanam fon Tnserion 5ont

50tune Requned Java Online Co npi n

Out put Topulisti (^12) A (^3) 1S (^45 33) 21t0 2 Sonttd 11st 1

Conclusion TnsenHon ount 1s he mo cfffeient

all he theee tchniques, erpe, We

thot the (^) finst assume element is (^) sonttd (^) ond (^) hen

nepealedl Compane eveny elemen+ to

and hen place he cunnct altIs

Connec elemenl^ s

pos7Hoo in+he opnay

cIASSMAte| PoacHcol Noi

Aim Vaie a Pmaqeam fon Tscolioa 56nt 5a£tuaee Requined Jaca Onliae Campilen Lheamy Tathe^ iasentiso^ sonf^ kchaique,we^ slad Erom- e^ second^ elemcnt^ aind^ compane^ it.

wih he finst elemen and put itia a-

PeApen place^ Eacb^ element^ cospane^ with^ al

its pmrviouselcmends^ and^ put^ oe^ insen

he clemeat in is propen posLHon Alaonihm sep 1 Repeats^ 5teps^ to5^ fan k^ to^ N= Stcp 2set emp=Alk 6lep 3se^ T=^ k- 5lep 4 Repeat^ wbile^ tempsAG 5ct ALII=AT Set T=TI End of ianen lao 5kep 6 5etALTHLI=^ {enp Lend at laapl 5tep6 ex Proqnam Cade Eincludeciosneamx using namespace s-ld int main Q

Snt myanmaulLol= {12,4 3,1,15,45,33, 21, 10121, caudeTApuf lis is La? £onia i=o i<La; tE) coukmyanray i]<<P;