Algorithms For Dummies



Download 7,18 Mb.
Pdf ko'rish
bet94/651
Sana15.07.2021
Hajmi7,18 Mb.
#120357
1   ...   90   91   92   93   94   95   96   97   ...   651
Bog'liq
Algorithms

 

»

Breadth-first search: This technique begins at the root node, explores each of 

the child nodes first, and only then moves down to the next level. It progresses 

level by level until it finds a solution. The disadvantage of this algorithm is that 

it must store every node in memory, which means that it uses a considerable 

amount of memory for a large number of nodes. This technique can check for 

duplicate nodes, which saves time, and it always comes up with a solution.



 

»

Depth-first search: This technique begins at the root node and explores a set 

of connected child nodes until it reaches a leaf node. It progresses branch by 

branch until it finds a solution. The disadvantage of this algorithm is that it can’t 

check for duplicate nodes, which means that it might traverse the same node 

paths more than once. In fact, this algorithm may not find a solution at all, 

which means that you must define a cutoff point to keep the algorithm from 

searching infinitely. An advantage of this approach is that it’s memory efficient.


Download 7,18 Mb.

Do'stlaringiz bilan baham:
1   ...   90   91   92   93   94   95   96   97   ...   651




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
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