Algorithms For Dummies


PART 5   Challenging Difficult Problems



Download 7,18 Mb.
Pdf ko'rish
bet508/651
Sana15.07.2021
Hajmi7,18 Mb.
#120357
1   ...   504   505   506   507   508   509   510   511   ...   651
Bog'liq
Algorithms

 

   


  PART 5 

 Challenging Difficult Problems

Discovering the Best Dynamic Recipes

Even dynamic programming has limitations. The biggest limitation of all relates 

to its main strength: If you keep track of too many partial solutions to improve 

running time, you may run out of memory. You may have too many partial solu-

tions in store because the problem is complex, or simply because the order you use 

to produce partial solutions is not an optimal one and too many of the solutions 

don’t fit the problem requirements.

The order used to solve subproblems is something you must track. The order you 

choose should make sense for the efficient progression of the algorithm (you solve 

something that you’re going to reuse immediately) because the trick is in smart 

reuse of previously built building blocks. Therefore, using memoization may not 

provide enough benefit. Rearranging your problems in the right order can improve 

the results. You can learn how to correctly order your subproblems by learning 

directly from the best dynamic programming recipes available: knapsack, travel-

ing salesman, and approximate string search, as described in the sections that 

follow.



Download 7,18 Mb.

Do'stlaringiz bilan baham:
1   ...   504   505   506   507   508   509   510   511   ...   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