Sorting Algorithms: Analysis and Examples
Sorting Algorithms: Analysis and Examples
Table ß conten
Soria Algofbijac
Aetge sot
N F B
Subjcct Date No.
Binary? Seareh
Tke art one
Dijkstres Alsarith
TaPlogical sort
+
Linear lime Sorrirg
N B
Subject
Algorithms () Bisladl Date
Matmaie
Data sirUttuYe
J aA
feblen
Alyot
A
Algetiah Algatihi
Subject Date No.
Best solutian oß
That
Constaht wt
Date
No.
Subject
eficiewe Algorthn
Refresets
An)srunnny
of The Afyoritlen
E B
T N
salutise est
Solutin
e
em? Te inwark AHow
to
Case worsf
the thaA lese lite tess order in
Case
«rantee wilAgorihn Atri Te
hotation little-o The
Date Subject
No
Subjcct
Agorihms (2) aalal D:atc No
Sum = A+Btc
Avep Sum 13 cz
N T
Subjcct Date No.
oBack To amles
(asb)
S t S t a t ment
else
Subject Date No.
4far (i0h)
forli c h)
dse
Heto wsrkinTeon
n:n2,
N
Subject Date No
ate
Lago)
lagcn)ll
TA we eorite Te Pre xamk
Ctt ole
Cihy
hete so The st comix3
N OT E B
Subject Dale No.
if lab)
for Cio-n) atn) On)
else
Lools l be eCute
fo ion)
N O TE
Subject Date No.
etesi
Alyar:n
Base Dumber of Stat meht
N
Subject Date No.
if azb
for Cion)
Sume en)
else
Sum odt
O while li ty)
ila b)
farlion) axCnsn)
else
for (io’m)
for (io k)
Lor
Answer in exemle
(2)
N0
Subject Date No.
lcoo, by considerm
m) bceones
constnt
aBia-Os On+k)
0TEB
Subject Date
Ta May humber
Answa -
arr
Maxarrol
N T
Subject No.
inserfion Sort
O simPle soCh
Selacion SorE
tysime As Timllenenteian f azl)
Lacald be writteh in Any rogpamminy
Longeuge
2 £icieht SoTK
Quics Sort eherl
Heaf sort The Bigo
ALSicient in Th
Kannen of The Bi2-0
Bubble Soft
Comb sort
*shetl sor
4 Distibutian Sorh
(Linest Soting Buckel
Algothns )
T B
Subject Date No.
atesi
orening what2
FoX Eimile Mumbers
oY orderin? umbens
B&scd what?
Ta Base oh. Cam farisan ( álea)
O5eomanAlZ
Jumber
of
itelns
(4) N O TE BO o
Subject Date No
Dktrbuton Radix
EPfici nt
pbblk
B
Subject Date No.
statebethsh
)SePtion
) selcction
)Bubble
MergDln logcn)
Te Aars Tanee Alyotithems Are The Pandemenl
Alyoritams Por Fhe Pacter Sortin?
Enst
froblem Size
Main Resene)Th Do Meed
An ektra deute Strucure
N 0 TE B K
Date No.
Subject
APlaing Crablem
OBfoblem sizes if The
O--- slecxian.
nsCAton
selecaion
2 Melee
3Quics
tatst'sTs
inselioh, Beeause n is snel
an if h dta is Sotted
become Och)
seleplon Because 4 is smal.
N T E B
Subject Date No.
Ansluee
inserion
N 0 T
Daie No.
Subjcct
Bubblesort Jl
los'e
SPaninnn ree
DSA
ysy DSA
Gomtleke
Dihary rec
(T0) N 0 TE B
Subject
Algocihms (5)ayeladl Date No.
outlines
selectian So lracingY
Comflixity haty
ComlerisSian f
inseltioh SorE
iall< aEmin)
min
Suuallati aLmin]
Datc
No.
Subjcct
Jhen we
irst
Awe il Trace
Tu Ait one it 4s wi be
i s n - ) why n ?
Te Last oil be Alrealy sorel.
No.
Date
Subjcct
Te Unsa>red fat
)"j<n'whu
N OTE
K
Subject Date No.
nin
Unsortt
Size:o
Ain.
in
Size-4
aIj7s af min]
Sioal (as:1, aZmin)
6s5 Salsc
alilsa Lmin]
mn: 2
-tE7ar
nin
Subject Datc No.
min 2
size-l
allsal2l
Sortel Uhsotr
break
too
T R
Subjcct Date No.
Ahase 3 2
min 3
N:5
breas
Phase4 i 3 3 4
min
4
swatlalsla)
break:
No
Subject Date
44 kalse
breals ta outer Lool
irems
NO E B
Subject Date No
NThkYe is o Bst or Av
SaY
why The code wl alwayse be Yunning even
reotder
t tak Somc Tracwy
Best
selecion Avg
Sor
Date No
Subiect
InseChoh Sort
Lscesle
Fentlate Sdeta iterm
Void 0nsertion SoYtitcm 4L],in n)
warks?
SuPfose Tleat
The first Elenent isAlready softed
Atote
Selection %inseCtion
Sort Sort
Th Egseement
is Relerselly is ärbitasily
Lar Th Min Elenekt Soted
we sler Seurzh in
Element we Hele
CommeNts oh TheCode
why
Brcause le sullased That the Lixst Aemet is sorka
(
O N (I3
bteulsy
=FEJse 5<3 ah
220
tner The 2
ofEnel 2
=2 2:- Phase
breaki
1) 5 And O70
2=3
23
Siees4 1
Size1
Sott
1:1 fhase
3
6 omberss Sollaing Te
sullose cim Tra *
No. Date Subject
Subject Date No
fhase 3s 3
1 2 4
2
220 And <3T 23/35
af2lalil
3
130 A s2
aIjtm, 1235
(14) B O
Subject Date No
b'es 5
Phase 5 i 5
breaki
Best, Av,nd worSA Cases Fap the inseTkion?
ßest case
|nsertioh
Sort
N
B
Subject Date
Cocct
Q Giye a case which e Sele chiay sort
is betten Than Jh inseYian sarER
T B O 0
leal inner ofEnl
fulse salted
}; jwaR
i]>«] if
j--) izi last (int For
ruei Sorted
elit) Jast)89 izo,(is Cint For
h-ls last int
false, sorheed bool
Cirem
n)int allBubble-sart Void
itcm) <class kemPlate
ajiladl C6) Algotithms
No Date Subjcct
No
Date
Subject
Bubblk
*Sorting The biESt Erant
Babble
4Back
Bubble sot
D
o Bubble sort
The Main Ddea sto comlate Bekween Tavo
TE B
Subject Datc No
57 4 =
fhase2 L245.4
(254.156
N o TE B00 K
(47
false bewll
le) bool Soted rhe_Play
The Lahd
Btttate ttit Tenolerabias
iterate inyswaPP any an SisThele Ad
Afer sarted Alcealy is
Aneag The
suplasesThae sort Bubble Kal
sort Bubble ioe
COThe
Phuse
471-T
eRns rue tes4sl,
6)5)
Subject
No Date
Subject Date No.
Acommehts on Th Cele
N
No.
Date
Subject
5.2,4ba
fhase 1 4 o
Solte ast o23y
(5,2,Lbt
C592, 4,1, 6)
5.(15bs 2, 4,
phase 24 i21
Sotte
476 F
s2,
B K
Subject Date No.
Sortl
hase 3 i-2
Sorte!
2
3
F
Phase 4 i3
Sort
Salte
iklask
break,
Subject Datc No
qh
Best Case
sorted Avg ca[e
N B
Subjcct Date No
2) whais Tk BiQ-0?
if The Array is Sartel the Bie?-o ik )
Cuse
Shars whar we
16 E B
Subject Date No.
bcambine
Quick See
- Hard Disizn
Fasy comojnation N 0 T
whg?
Subject
Algecithns (7)ayioladl Date No.
erge Sott
Sort Conquer
calnbine
2- 3
4 5 67
R
4 2
3
nl2
,
4<3E Then Gleak etr Than 3
Subject Date No
5 6
X
3
3<4, 7s4,7 <5,
3457
NO T E B
Subiect Date No.
nle
3/2 -|:5 3/2-l.5
5
?
Yesta on
Lo Be The hav Te sane acst?>How
L The Psesat Bequire An Extle DSA
Sos They Haye The Same KoSt
754T49
Aliea
Sorte
Subject Date No
Main BeAGehs.
Case SEylyi
74 12
olnlagzla))ohg?
Duge Canguer cambine
Conquer Con bine
But, we lone ha make oteThere is
cny camla'siens Best Cese
Bestarineg oleration
No.
Subject Date
Notes
Pselacaesg
N T B
Here So[t
K 0BO T N
combne
uen tGon
Divide
Basel Alanithm ting Sat isSale Quick
ah
Bescces: Lallowing Reliew
Te ae
Sort CQuick
Date Subject
No
Datc No.
Subject
ADiuide
Quick solt
we ivideHece BaSel on Some
Value
Element
in List 1 Rivar L) Element
in Sublisr 2
NO T B 0K
Subject Date No.
Sublis 1:
tess or sublist 2
equal (s) GreetelC Thth
Pivor Pivor (z)
But, Ha) To kne) cither Te Eleehts cle
ess a etel equa
we Hale to iterate oh LyArree
kyow That
LHa much i takes2
23 4 5 67
last
tast
So, beauSe le q is
Than fo we
biger
heeto
a Place To fut Tee q
in Tze secenle sublist
Bur whet is Thet Ee
Rlace?
Tle fasitih af a
number is less or caualL
Subjcct
Date No
a2l&/31lo)21
457=E Jast 77
tast 277
Slwal (q2)
SwaplamTart zI)
Firr tt last --5
Last
last --
12
SWatlz,)
3s7.7 4t77
Subject Date Noar 29
2143|12e9
N O T K
Subjcct Date No.
IÝacihy 2
25T
42)145/8/7
3) NO T B
No
Date
Subject
ast
bleas
Pivot
6 7
B2/14 /5| 7
321 4 5 / s6
12
374/5
Combihe
N T E B O
Subject Date No.
T B B
No
Subject Date
StrucUre
Binar
T BO
Subject Date No.
GYa Ph
GraPh
Laa GraPh an LeaPWade
The Loc i I0S a Wode
reletes, to Xit sele
B Dilfes AromThe Cycle
ah
Pact Does Wat Exisip
N O TE R
Subjcct Datc No
AGalh
owh? T we sat in An
ndieekl ode wil bacs sto
Gcalh tThe Sract and The
En.l ele Are The Sane)
Gralh
Gralh
conncctel GrPh
Ubolictl Griab
Wheel Gra?h
Unloheit GrePh
Thy artafh That it is
lges Doest Wat Have
a
wheigee
%Comleke Bilaite
Th Gph is
Parrs
colori sLystcm
(6)
No,
Subject Date
Biireckiohal Scalh
am Tais Brafh
in Th Netuwatk
ABale Calalutexs in
f2,3ht,5 3)
Page Wumbe
Not ode:)
Date No
Subject
B B o
No
Date
Subject
Thte is a de
eThat Hate Thrce chill,
Subject
Tree
3inary No
The
teltee Te Biglet
is Also let Tree
Atso
BST
Is Bsla Gealhe Yes
Subject Date No.
2o Grade
Lor The
fraject
Simseeo"
cole 2 TB B
No
Subjcct Date
KTh B5T
LThe ath
In BST There is ohly oE ath
PorEecchole
6-5-3-2 X
4-5-s5-3-2X
Koferations o BST;
Bil BST Srom Th Palowin lata
S34l,2
stach ram Sdesin The Boeh
ha anly
lef side So hay
and there is No farionng
TraVese To
fost-oel
olecThseelica
ire-oder
The The Talass
in-oree
arder sleaili in
IRaversels
Thseliia Delekia
BSTiaVers oonsolerati
No. Date Subject
Subject Date No
in-oroer TreNerse
L,LARClelteAelefigle
12 Rrgla
Bigle is
y In-dere 2 3 5
That is usel ro Ihlelke Gives me sotted clemes
in asehdina ofde
Jsnaw wher is Te Boor
Irordel The lef subie
htis Jele theq aseCt:sg Ayeitk
No.
Date
Subject
bLRleLeft-Rigle
Post-otdes
Scapah
foande
TE B
Date No.
Subject
inserhon:
9Pwo child
NO
No
Date
Subject
Ole chill
And ie has
T B
Date
Subject
Two ch;
olle chil
No
Date
Subject
Boot
E Consilerng 7he reu BsT,delete The
Cont
4)
Subject Date No
(14
(
No.
Date
Subject
LRealasd ucstian
The e):-avent Por the
Sote
delete
IraVelsal
subiesis CCM)’wy?
oTetans
No
Subject
Alaorihns C02) brialadl Date
Greedy Alorihn
be heleht
No.
Subjcct Datc
SoluttonAmony
Trese i The
Caleel Alzorshin
Gree y echhique
But 4ou?
To Ansthe east
BankWotes
50 P
20 -
These Are
lo frsolosal
solueian
Ohe
50- 2o = [Link]
N
Subject Date
he t ofrimal
hThh info frou: Sol'tion Amony
prblem Greely
cho,ce
Locul Souloons Globe!
ofrmum oftimwm
*Enods
Note
The Grely Algarichn Guarahtee
CAGtobal
offjnum
The leal ofimun
Buk ir Dese ot Guatantee Tee Globale Samin
+Algohm
aclobal
choie offinum
Gtobet
Also
'5(o= 5
B-7-tCan
This is
slaiaa ich is Gbkal
otBmun ZocAL
Ofime
Subject
Date No
Glabal oftim em ís
Globel
otmum
Rablem
ThAlyo
Wen PrniriNe 2 orher Alg2ritoim
be ohange Does The iaces Buns a a l
in crese
Subject Date No.
Time loret
lo
3 5 i s 35
34
2shot hest
Torel
29
Thtoatu
34
20
Subject Date Nc.
Better
lotd
20144 34
34
solution which
isThe Bekter Algathas.
Bettee SHces suhe2 nds The
olimel Sallsls
Suhiect
Date
S HuPfmah colei
Camiress Dale
b qd a
Eikellenghe each letter
which is bit.
Hoauch
q7b-3, c= 4,l1
Subicct Date No.
az56
b38- 24
each etter
oR
N B
No.
Datc
Subject
Corlec
How to ltale a cade wth oaly che
Meanihg?
Detait
ext
iT
irudas o 56
Date
Subjcct
Letkex.
Thele ais 4 chace whelz asigle Sinle eAke
The
Both
/s
Tà Have The canreat Nesuil in
Ekam
&.RigleeQctex min ):
insert (z);
(14
BO N
onnCost Jess
so
Heat
Adtttye The
Tinel Cas less
CQuick Henge, Sort Bubbe
ainsetEion Selecti
an
ieat usina itcns Sarin Sort +HraP
emanDuynaical? Alleantin
Dginanicaly
Menat Allecating Aemery Heaf Te
Heal Lhatis
Sort: Heaf
No. Date Subject
Subject ) Date
AComfleke BT
we das Kole Brom ahe Jelel ka Anather
in Thut Level
NU
Subject Date
b/94/2
index
Biglst 2AF 2J atay
(2
check O N 7)-7 Jaxtb
576=F,577-F
cklds
we
s Beteh 52T
at isole
check Le
Swang Altcn
.de aobills The Tiwsdhill
a) The
Lswhy
che Prst The
childs
beAust
in
ieheliny
ng
ax
scelin
Sorr JoHow
Datc Subjcct
enor Saldewhy?
e lo Beot TeDlele Then
acheck childs Tlwa hat
Pl,3) Stoa
deckel
5
(3swa
No. Date Subject
Subject Datc No.
SwaP
f0swalllo2)
chelekelle) Maxl97)
Altex
Slwal
chect
SManl3.3) SLoat(955)
checs
Aftel
Subject Date No
ER522
Stwatbo)
25-FZ>k-F
Stoapl2,6)
Swalls2)
Jletela)
No.
Subject Date
tetete to
533=T522T Z3=F72=T
swafl52) Shall2,3safC32)
helete s)
56
N
N0
T
og/)) Case warst cASe se The
Alter sort HesP Por ’Camllete
Traci
OCloyl)) iscost Totad Te
lemehts Irelateoler Owhy
Subject
No. Date
lyocishnL.
Subject Date
tamah Codee
L Hals
B usin The
is imflenentel?
Lo ica kind
Eseh lebter is
Date No.
Subject
O.12
Ho
E B
Date
EwYalf
h
5 12
los>bres
55
45
25 30
tog
130
2
other
in The EXam
is Jot
ConYeco
No
Subject Date
e loo
111
Toral Tat
Dumber f'bits Mumberefbits
belore Hatfmanc
The a unber
al bit in Huflman Cle
Pao ohe bìr
Date No
AGrPh:
wbak is Goalhe
The GraPh cosists a! lWo Scti set af
Diteted Qrafhi
eachable eamb"2
Gekenel Gr
LoTie ons Weighe teresents an Abstact Ua
-Ahd The Grah reresents othig
ARflicatian GraPh
42 ditctieinel Graih
These in o Caul'se There is aesei
sch as bdectionel Gra>h
N
Subject Date
feineseLbs
GrPh.
to braee alle 2b
3 fchets
12Rackets
2
isth
dstinabn
Sottte
Soulee se to istinekien_lode
Bive
C-e-d
-e
No.
Subject Date
i Usire
Mo thah cae
Connectd, disconnestelGrafhs
Uhiresial,wnwedael
Conneckel GraPh
Unditeckel GraPh
pwhy
Subject No
Date
PirectelJaen?1
Laif the Grah is_cirestel
Wek!
Conhectcl
Strongey,
Connectcd
The /s
js et feast Path Arom
oheole
isat ahotherNoles
Beachable in The Grah
Ayam ather
oes in
basy onsists at
Two sets
liyes
Questioh'. whut s the rlatian betwcen
Jo ih The Answer bask to
discrete Math
Subject
Algerithms (lb) ilad
sfecial Gralhs:
1- Complte Graph.
2-Cyle GraPb..
3. wheel Grafh.
4. Bifrite Grafh.
helitected
wheres he Jumber af
Edyes sum(Jegrees)
&&hamPle Veriiytmbat
Cohhectrol
wibh
-3+2+2+ 2}1 l
in
ih.deg1)-1
Oleeleli):2
Sum lelez)= Suminj S4mou)
(n-1
5
sun lo)2+1lo
SabmCleg. 5+5-lo
in [Link] ohe
Suhject Date
-sfecial GraPh
A1 Comlete Grelhs
anles
Lacantleke hew?
-degree
Canilete
Subicct Dat
Lconlele
ae
No.
Subject Datc
C2
Cyla Gatb
Cy
bcyck Grah
les
4
Subject Date No
a setiad Gruth
Give s Yules sleeiln Te anbey of edgs
de yreeec
Subject No.
Date
3wheel GyaPh:
o Te wheel Graihis_a cycly GraPh buk
ht1
shoulelat echange
NO T E BO
Subject Date
amls
Wn
Rheel Grafhla
Mamber Jumbe 2
-Bh) th th-2h
2
Wumber
Center
Subject N
Date
2xh
Vn
afles
setwecn ' i d ?
yes Ae ro Set 2
Subject Date No
BIue
e)
Subiect
Date
bot Bifal'hje
"2'' a"y'' ne
ad adjacent Weles
Celar
2comflee
is o a el between any
Tlo aJes in The Sane Set
AD
There Hust bean
betweeh a
anl anole Eram ^S42
2
*oftes
2
Grafh
4
bhsi2e Sels
conlek
kn,m
UNotes Having Graph Locomflte
Date Subject
No.
Subicct Date
4
2
bcomllete
BiPar GraPh
6
Leach ode
in"nConbecte
$ilte
ssumldgre) (4*h)+&*)
2
= 24 12
Subject Date No.
Tterval Graph
Lswe Cn Say Fet th itarve Gra
is a Grah ahere eech ole Refrschis
Tay ,Neles Refresehk The itefse intersestiah,
Betwen Two ihkcrveks
Grapb IraPlementalson
OAdjacehcy Zis
Th dance arices
0Aacency atrix
that there is
6)
Subjsct Dat: No
4 | 5
1
2
4
4
0
1
we Et Can
yoleched Aacency Mati
Vndirecte Gralh Thut
No.
Subject Date
(Hate, th Sqm e
ge Thee is "1" beween "12'an Alsa thete
betweeh "2,4"
N O TE B
Subject Date No
Losfecil Cesc
ieAL 1'% in he Gre?h
That 1's 'are oeighe
were weigy Hoy to
dallerehtiate i Aram
Uhweiglrel araPh
La By s kiry the user
whoinsertel the
GraPh ih To The ComPuien
| 2 3
2 2
1 2 |3
1
2 1
3
5
No
Subject Date
ee column = in leree
Adjacencf List:
T Beireçehtin De GraPh by usiny elit,
with size caual te the Uunber alosss
And Ench ade hus is on List consiskes
Subject No
Date
uhweigh
tcle Uhelinectel GraPh
Mattix Coulel
be AfPlicel
on The Adiaceheq
How to hnow
weisatel hlectl GraPb
Node Directed is weigutel
Nut
Date No.
Subject
Ihcilance atrices.
e2
Bouws in
Matrix
Re'resens
The Joes
And ~ench
Bow Beresent
The connetkeel
Eyes with Calumns Reitesents ges
The WerixVn
(4
Subject Date No
in
Wumb
Lo Befresen's Tke Existence ch Exactly
Tus etes in an Edge
Subject Date No
Nate'
The in oudegree ain Ihe Adjacehcy List
The size ot the Aljacent Lst ol
That ode
An The in-derec in The Adja cehey bist
Codld be Calewlatal bye
L The freauehcy o The Nole in The All
Adcen Lists
Subiect Date No
ot Dullicatal or relad
Dpethirst scach
Breh Eist scarch
Aexeheble
Siactiny rom Seleeting astatiny ode ta
Start ralers1 STom jt.
hat
Then we o Rro Ceed ta al other ole
is Seachable Prom The staring Pojn aal i uhUisiel
ohey Loke
eachatle ale
Lasoee eelko Als ohe Conditian ko Hale
The sabne sealece foc the same Staltina Nele
The coniticn is APhabeg el crden
LettersA,B,c,D.
sRenchable
8Uhusited
AIPhaeeical oclesed
K
Subject Datc No
Tracin Pirectieh
Wot an dyc Usiteo!
Ste?1) Stelce)
Stell3)
Stell)
Path 1-2-3-4-5-6
AJote we elee the Ele between "2 ak ""
feethwill be
No.
Date
Subject
(1 NO T E B O o
stefl2)
Stef)
bheacaable DES
by'oe level Caks Tiaverine Lo
BES): Search( Arst Breadth
No. Date Subject
Subject Date No
-o fath 2-3-45-6
T B
Date No.
Subject
ologcl saltiny
LoDES
khan' Algarithi
he Soulee le?
oHa who iden:es Selteiiatto
shot hest ashin Uamlber bet ween T le
(17)
Subject Date No
The cost in
D
ol'shattes
Date No.
Subject
20
Subject Date No.
kamtle 2
ao,why?
Wote Cinsrtan
21) N OT Bo
M
Thenbekweeh, feth Co[t Les The
silecis Then Grath, The inDole Same LeudineyT
lihhabion. al Souree Joetuxin Leiee) Cost Kin The is
PethAlaritao shorkest Th
eel QalPa. Jirected aor
ah
Algonthon Dijksres
Alyaithm krskals
sfahniny
Iree Minimun
Algyoritbm Dilkshras +
koutlines
Alyorihms Subject: >
P Subject:
i The Zeatle
en, Do The sane far the other rachabe ales
-ohe eXisits,DPiF
1 T
2
2 4
brAacs co lor For nseleched or proP ode ne eth
Subject
Dirert FAe Pistnce
fran
evje
Far Toaciy Wol
1
3 T
3
if The.
fail isertt
into the
fath
Flse
Lodet Shart with3" (vtfu
1
213 1
)3-2 Drofiriwhy?
Beehs
The reu
Ckisiin, th-2)
Seit willbeDlaied sisce
Fere t Shortest
Path untl
Subject Date No.
3
2 3
3 T
2
5 s5
6
Q2-l Drafi. Alrdy seselechel
a23Dral ij Aigher csk is ad
425lis Lets
selectiwhy
Aat selecte
Paz
1
2 1
2
lo 1
4
PDrelel 5 o
Eath
1)
Subyect Date No
be less
2 3 1
2 1 T
5
The Pne GraPh i
ath
2
Droled Path
Subject Date No.
Cast af (5)1
Subject Date No
bbat is r|ep
DBoat
The Raat in As is Ahyc ole
in The GrPh
7 occles ia The Tree aheh Convetihg
aeralh into ST lwehale ta elaale
The cydes fvol Tae Grh
is a bac7
toT Alled
Subject Date No.
ExamPle
A fE esible aths
in The Ioee
Srel2)
Toes All Phs Bram "5' anl "
The Min Path is (5- 4)
Cyely fach
Cos
Peths cycle selected
or Eher
4
whiach ohe Min The select
54fDeliAlkoly
steatel
seleael DsbDofi
Alealy
selectel Alkea it
Prol 4s
Path cycle iaDrof 4-2
bench brom (ath Al
-Thy
4
No Date Subject
Subject Date
A tat
Anathec oe
or sefah
Subjcct Date No.
A T
in he B T A
Total Cust= 25 2
T
(12
Subject Date No.
lo
-oYareye colas
fer seleetel
-Blackicalap
kluskals Alszrim
selestnay Ehges
Since We
in an Ascealisa tler
(13)
Subject Date No.
Ang onecst
atehee kruckals_Alygaithm Gives you e
(14,
Subject Date
False
2
DG 2
CE
H6
GE
BC 4
BF
BH +
BE F
AH
DF
AB X
kraskals Alsarithm AF
5)
Coslses efher Al
has
frerequsit conflis
etiry Sortin
lololoicd Examfles
wh
Asks Some
Comleiaay fciatity
of friefetg isa Thele
orber each on
leenetny katk ofereetians
se Some halie we
Sorti logjal ofa
Sort Bucher Sottiny Tine Linear
Sorr hadik
DFS CutLines
Aotbps Subject
Date
Subject Date
Goltions
khans Alah
DES
Lo Araceit by yo sll.
Ps k DFS have The Same fth oerof
the sha's
&kha's Alerirhb slgyorythn2Look for The Answer
L How it works ?
in-dejee
(4)
betwecn cydy a Theis al
2
2
2
indegee
1234
21
Die
Subject
Subject Date
2
staYhney Prale"1"
.2 1
Subject
Date
laths
4-3-l4-5-b-1
Subjec: Date N
cdit r(MsD)
linit
unbe ohe Thn More
cantisns Thar uuls
in
itt Secaal
lerte eansa the with conare
Lihe AleteThe
Black
424 421
871 871 410
460
209
tto
370
241 370 370 370
204 241
9123
209 294
123 24_
24
11D 312 127
127 921
t23
11U 127
Cormlariny
Eramle.
toAhethey Grauf one Aeem Moves
Date Subject
Subject Date No.
in Virtul etwalss
(2
Subject Date No.
q21 204
127 410
291 110 427
23 q21 26
921 423 241
460 291
370 871
209 123
127 871
110 2o9 291 q_21
we iteyate on numbers
tachum ber TLye
ekgities which is
Lonstient
Subject Date No.
S
BucketSort :
idcaafTk Hash Table
bench Buchet Kelresehhs an Ctoeory a
Aulily AU Nambcrs by lo
(1) TE
Subject Date
o.42,o31,0.2,6.q1,
Aditly by la
Bucket umber
T33031
J 4 ] 2 , t o42, O.44
91o1,O 92
ake Dekermininay wheAinbes Ar the umbers
belatg ha which Bucset eeiay oh The
BJT, DeVasles a ik in Eeach buche
is Tae vales Baferuellyirs by' lo
Date N
Subject
%Couhtiny Sort
The Range is
The Mak Valde
The Junbers j s
(1)
Subject Date
Betse A aes"
-Tk size l'c' is = s
(T)
Subject Date No.
ExamPlee 12
A 3 4 3 s
2 3 4
12 5
B
Ccssbe An Tiacigi
1 2 The frequenct
for Each Eemets
Iracing Th Loof:.
CL3] : CIs7 +1
:1
cCa) C[ac] +1
CI5]CIsJ +1
CLs] = O+1
e
C[ab]zcIas]+1 1 2
2
-C[3ec[3]+1
0112 o| 1
-2
Subject Date No.
2
c[il= CI1T+1
1 2
-1
C[4l:CH41 2
=1
12 4
C[3]C[3J+1
-2+1 1123I17
C6l- CrE] +1 2 -3
5
1 32
(20
Date
Subject
CLil: Ci]tCZi-1
Coul be eleeteal
Hencejwe have T alcuate
Arequencies
(D
Subject Date No.
[Link]-1] 2 3
CrA21C[2l+CL2
|1/22/312
2
CB)B]+C[2] 1 2 4
5
2(s5|12
1 2 4 5
CrleCr]+C3
C[s]= C[s1+CL41 12 4 5
Value
(22
Subject Date
Value -L
3
Subject Date
B[CCAA]AC
B[cIAi AC3
12
|125 6
CtALT0-C[ACIj-1
CIE] G[57 -
BIS] $3 12 s4|/7c
5 -1
(24
NG.
Date
Subject
B[CCO7:A T61,
CEAL17: c[ACAI
5 678
C[4T CI4I-1
=6-1 B
1 2
BICA-A[S1
BI11
C[ATsJ -CCAEI -1
BCI] AT4 B
2
cCAT4fC[A[]]-1 642
(25
Subjec: Date
BIc[21]- AC1
BC27 =2
B A5 2
=Cs] 1
7-1
B[Ca]-AT1l
123
(26)