Algorithms For Dummies


Challenging Difficult Problems



Download 7,18 Mb.
Pdf ko'rish
bet501/651
Sana15.07.2021
Hajmi7,18 Mb.
#120357
1   ...   497   498   499   500   501   502   503   504   ...   651
Bog'liq
Algorithms

 Challenging Difficult Problems

results that you won’t use later. On the other hand, bottom-up approaches better 

reflect the approach that you’d take in everyday life when facing a problem (think-

ing recursively, instead, needs abstraction and training before application). Both 

top-down and bottom-up approaches aren’t all that easy to understand at times. 

That’s because using dynamic programming transforms the way you solve prob-

lems, as detailed in these steps:

1. 


Create a working solution using brute-force or recursion. The solution works 

but it takes a long time or won’t finish at all.

2. 

Store the results of subproblems to speed your computations and reach a 



solution in a reasonable time.

3. 


Change the way you approach the problem and gain even more speed.

4. 


Redefine the problem approach, in a less intuitive but more efficient way to 

obtain the greatest advantage from dynamic programming.

Transforming algorithms using dynamic programming to make them work effi-

ciently makes them harder to understand. In fact, you might look at the solutions 

and  think  they  work  by  magic.  Becoming  proficient  in  dynamic  programming 

requires repeated observations of existing solutions and some practical exercise. 

This proficiency is worth the effort, however, because dynamic programming can 

help you solve problems for which you have to systematically compare or compute 

solutions.

Dynamic programming is especially known for helping solve (or at least make less 

time demanding) combinatorial optimization problems, which are problems that 

require obtaining combinations of input elements as a solution. Examples of such 

problems solved by dynamic programming are the traveling salesman and the 

knapsack problems, described later in the chapter.




Download 7,18 Mb.

Do'stlaringiz bilan baham:
1   ...   497   498   499   500   501   502   503   504   ...   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