Algorithms For Dummies



Download 7,18 Mb.
Pdf ko'rish
bet477/651
Sana15.07.2021
Hajmi7,18 Mb.
#120357
1   ...   473   474   475   476   477   478   479   480   ...   651
Bog'liq
Algorithms

 

»

The Dijkstra shortest-path algorithm works only with edges having positive 

weights. (Negative weights will cause the algorithm to loop around some 

nodes indefinitely.)

Demonstrating that a greedy algorithm works the best is a hard task, requiring a 

solid  knowledge  of  mathematics.  Otherwise,  you  can  devise  a  proof  in  a  more 

empirical way by testing the greedy solution against one of the following:

 

»

Against a known optimal solution, when the greedy algorithm produces the 

optimal solution or you can change such a solution by exchanging its ele-

ments into an equivalent best solution (without any loss of performance or 

success). When a greedy solution matches the result of an optimal solution

you know that the greedy solution is equivalent and that it works best (this is 

the exchange proof).


Download 7,18 Mb.

Do'stlaringiz bilan baham:
1   ...   473   474   475   476   477   478   479   480   ...   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