0% found this document useful (0 votes)
13 views

DSA Notes

Uploaded by

Mohd. Kaif
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

DSA Notes

Uploaded by

Mohd. Kaif
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

hat need

r a4
Data Dala
Data Can Somdthing imple
be Qnd
and
do be rnocemed,

random
Tandum
nd wolas Unil 14 s brganize6
Seepirgly
Od
Ktuchued
when data pnoves ed organied, ,

nformaho
to make
r hesnd n &
ven Coniont o Os

uAgul + Called informohon

Data fo.

Ijust ten and wmben S is ins d douta

Kecody ard obseurohm KAnalyt1


Orgaini2ed
Unorgaied
Huays sglul
Nobe

k ho depend. n ino.
without dada nformation
Cannobenotesed.

Program Data Sthruchue


Plgovithm
ouHine the eScece o Cunmpuu-ahunal
Hlgorihm
prote dune Slep oySep htuchon CIeyic

Program An Implementolion Agerithn in ome


PTOrammi Jaggunge
data needed to
Daka Struchune OTgahi 2ohun
Solue he poblem
Algorith m
Pseuda tode
hh Jagyes.pon
0,
2 cne
O. Uel datnod nehod u
unn bee we
gp p pmtrdung a 4ry n n
cbows Cnps,
dw o tdu
gi. tor
progrom

Horthng Can e
be
oMo
enpessed frdude 2e,6 tntol
aburol Prdue ut a ie *
Mous thar ehc Papees unitl f r os4
hid r Pres

Deta Struchure
Tye OF

PAnhve daba Stnuduw e NOnPrimiire


8tru etur e
Bac dalo re

load Poine

oped On Mathn Noninea


eval
Bequanka) Lineon
8tak Tre
Doived rm pnimatiu
* Primitive Data Shrtwus hose e h basic
opari pon ho mathins
data stchuhe ha dinecy
nshuchon
* NoN- fRiNITIVC. DATA STRUCTURES These
hese ane
mre

dada ghuehurub and ans. cortvesnrm


Compliraled
Phfmlive. he enphasize dn
9ouping20n. (ir dtporon
b Tlem
uh dala lem.
Clata lemd wh Jeladioshlp

and
inoan DS @Ueny ilem
eveny nelated to pievious nont
yre
data. 8 Cunange d n Jinean 3equonct
dala ilems Cancan bee tvanvens ed I n ng e Tun

'implemenddbion eo
eay

NON- LiN¬AA DS eve tem S atlached th mans othen


iden.
data i& not uanged in oonce
data Can no de tseweyed 1 Single un
tmplem entatim
dtieul

Staic Stahc data Shohnes Ne Shoke tvhote gi tes ano


Stnuchunes asyo cialed memury locatiung an d , ak
Compil me Erample, Array
Dynamic Dynomic Structuw oe hoRe h jch enpands or
Shoints depondin uPt» th Rrognam eed and
neaion Ago, heie sodated memo locakion thange)
thange :
Erample t- Lnko d iSt Create d ing fcinten
HomogeneoUs- In homogorous dala Stnsures, a tha
Clements ae ame ype aple :Prmay
Non-
Homoqene0 uS In Non- Homgenoous dala Stthuo s tha
eements may C may not beth.
Bume pe ample
d

Hsymphotic Notaion
Running 'me CMo Tmp. tnamdu,
Ecieny Space Uged us

Megwing Theunning Kme

Expeimental Sthdy
Writt a piogram That mplem ents a algo.
th nodram uith
algo
Run data 2ets vaying Si2e
the method 4st
uent fmemil()
to Het an accunat meawe be achual runn
nunnin
neceBsay o implemund Qnd t
Limitati un in orden to dakiming. 4
the algo
Uunning ms
Can be dene nly tm c linTed
im7hed
foyperments
Seb npus.
eroor Compane algemithm h lam
Bhould be
delset hardwane and Ahwau
Byend xpontmental udy 7
We deuelop a. genenc methodolo9y for analy2ing

wmin ne algoithm8.

Use kig evel deoi phion algoith Tngleod tein


me 7s implementeln
akay
Takoy tnto acova all poseible inpus
One to evalude. the eiciony any
în a hat s indoaondeh gh/w 4S/
alpo.
woTS cOne

Average Coa

Bes Case

Toput Istane

Asymptohic Anolpss
Tus Bosic Kuley hop alt dowes orde eno
oop all Cndans6.

fon) t6ijó
ttn) 2
Asymptofic Notations
Big 0h C0) mpem tm

big Theba (e) A (


(es Cost)
Omega Ca)
Omega cyrmptuhie
dooen o nn

cgh)
Ccpg

fn)

fm algo unm
9Cn)- abiay
Yo
fn- 0(g6 )
d r Some Ccro)
rel. Censlants C CC20)
and h(tn) =gn) fo ery pu
gt2e n Cn7no

6ig- Ome9a Noiahn

ia(gtn),is
Spme al Cn
and h Cno0), ftn) it cgiu
UY evtay inpu
Stne C n n o ) Fn)
gn
Big-Theta Jotahon Co)

Asym þtotic ally sAght bou d

Hug. me Jneyujree algo


Avg. a

Pcn) 9tn)
wurb
Bex

no

Comm om ASSgmptote Notaon

Corstant
O)
OClon) Soganithie
inen
n
padaakic
n) Polynon'al algebraic
-

erpohenhal

NOTE Lite 'o P n ) o(gtn))


Hle co) fn)coCgCa))

You might also like