Professional Documents
Culture Documents
Koll 31308320005
3'd sem, sc, Geretie
-
dendes e
middley lookion 6t a agmant of te elamea a.
bsun otamay whah
bsDmol ot amay
wheh
UB sthe kower om upper
and
is nder cndonakim
and olota to he
element
1) Tnput on Array A n
Sorted
V =n, mid ind ((Le +08)/2
2 LB o,
and 5 hie (LB=VB) omd a n Jed
s) epart step y
(a b - mid4
5 Ese
mid +1
(a) CB =
f A (id r datn -
7
(a) Dicply The
dta foumd"
6) LoC J
5
(aSwap- t)
a (loc]
6) a0)
=
a loc Swop