Algorithms For Dummies


Challenging Difficult Problems



Download 7,18 Mb.
Pdf ko'rish
bet471/651
Sana15.07.2021
Hajmi7,18 Mb.
#120357
1   ...   467   468   469   470   471   472   473   474   ...   651
Bog'liq
Algorithms

 Challenging Difficult Problems

analysis and design of algorithms. The remainder of this book discusses the fol-

lowing general approaches:

 

»

Greedy algorithms (explained in this chapter)



 

»

Dynamic programming



 

»

Randomization, local search, and farsighted heuristics



 

»

Linear programming and optimization problems



Deciding When It Is Better to Be Greedy

When  faced  with  difficult  problems,  you  quickly  discover  that  no  magic  potion 

exists for making wishes come true or silver bullets to dispel bad things. Similarly, 

no  algorithmic  technique  saves  the  day  every  time.  That’s  the  no-free-lunch 

principle often quoted in the book. The good news is, you can arm yourself with 

different general techniques and test them all on your problem, because you have 

a good chance that something will work well.

Greedy algorithms come in handy for solving a wide array of problems, especially 

when drafting a global solution is difficult. Sometimes, it’s worth giving up com-

plicated plans and simply start looking for low-hanging fruit that resembles the 

solution you need. In algorithms, you can describe a shortsighted approach like 

this as greedy. Looking for easy-to-grasp solutions constitutes the core distin-

guishing characteristic of greedy algorithms. A greedy algorithm reaches a prob-

lem solution using sequential steps where, at each step, it makes a decision based 

on  the  best  solution  at  that  time,  without  considering  future  consequences  or 

implications.

Two elements are essential for distinguishing a greedy algorithm:


Download 7,18 Mb.

Do'stlaringiz bilan baham:
1   ...   467   468   469   470   471   472   473   474   ...   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