Algorithms For Dummies


Understanding the Need to Sort and Search



Download 7,18 Mb.
Pdf ko'rish
bet237/651
Sana15.07.2021
Hajmi7,18 Mb.
#120357
1   ...   233   234   235   236   237   238   239   240   ...   651
Bog'liq
Algorithms

 Understanding the Need to Sort and Search

As the output shows, the 

traverse

 function doesn’t print anything until it gets to 

the first leaf. It then prints both leaves and the parent of those leaves. The traversal 

follows the left branch first, and then the right branch. The root node comes last.

There  are  different  kinds  of  data  storage  structures.  Here  is  a  quick  list  of  the 

kinds of structures you commonly find:



 

»

Balanced trees: A kind of tree that maintains a balanced structure through 

reorganization so that it can provide reduced access times. The number of 

elements on the left size differs from the number on the right side by 

at most one.



 

»

Unbalanced trees: A tree that places new data items wherever necessary in 

the tree without regard to balance. This method of adding items makes 

building the tree faster but reduces access speed when searching or sorting.


Download 7,18 Mb.

Do'stlaringiz bilan baham:
1   ...   233   234   235   236   237   238   239   240   ...   651




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2025
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish