You are on page 1of 4

Stop +.

2
Stas 1.t
Pseudo 8Stup 4. 2. 1. 2IBcEIlG90
atiwchFlo d)7(2xa)
X2<-(-b-
G. S. 4. ?SCadeul 3. Stat Singh
Inputabc Wt Wart Indicate
Declane Otep Shsavani
Priht
Xi(-L+d SPlaying
usinq
a
Fotm
xi
Alqoi
Code Bo te
xesu
thelt
UsUL the he the tlgosi
X)<-tbtd)/
X2 (2xa) ) the suita
ineuta,t, c Stas t X2 )/(2 USee3equis
p
-(-b tu Scahf()
soots
PihtX)
X2. ble thmi
xa) to eol
preds sen ente
d)-
o tences vaiables
unctioh
/(2xa)
a the
keyquadsatic
usingquadrats
Sin Goscoepficieh
g the
getch equation psin+
vs
C) eC)
O&
Guhctio to
sithne (unction the
en
h te

the
tic
ihput
eqoation
.
ne Stu ihSert igo deleting3.
6o
hext
hu||
hew hew’ dF
else whiie =headpty j nodept
Stuct tlgo
heed;
vetyh headhe (stru ct
ßey Yetush
head 1
3pt-ptr
>hext headheadhext hea pt
al else Psiht (stYuct
d node and 6ee ==hull)
Chead
(pty ota ihs
c p
(styuct estËn (pty)’ (Cst
’hext ino hode ptr ho
g de
a
=hull) heh hade deilocate is *head
no a
nall ) enpty
de hode
oc *ixed,int i
(size -
mem
of. cy
(s ibßo)
uct

hode ))
3. 2 di
a applicatiah. It Oyantag
def hey It
(22-J
keys indexl-1:
<lse!Yetusn
def
Ch+)/)
seturn lhde
i hleCa)
Provide. ehables
aneNage else high
lobnay-
w it
:L clse:
X 6ets-1n Yetuh elit +hish)/2miCldo low es
3, Yetugh tush
mid Ye
Cin
bihasy-Scasch asy ßox of
7 dex compaiso Seas 3eflexine moye e,icieht
I5 Cmi Douly
bin binay Ras
t1)
ayse ch te
22 d]l<ey:
72 -Seaich (aw lexibi lih
) sCany verese
44, an and del kecl
C lity
a ch , eti
low easie
List
S ,0h-l, Ca (ayi ib on
6, lkey shigh,ieyi travets
701 cestain
Or
es
i owy to hode.
l<ey) d al.
+l Sibqly
,high mid algo

-i Linkeol
l<ey) tJces n qnd
leey ,
dat a
List
else
Pih vesult
(element
PTibtis
("elemen
-
1
;

is
hot
Pzeseh
resent t
at
ih ih
de
x
)
y)

You might also like