Algorithms For Dummies


ALGORITHMS HAVE NO ABSOLUTES



Download 7,18 Mb.
Pdf ko'rish
bet84/651
Sana15.07.2021
Hajmi7,18 Mb.
#120357
1   ...   80   81   82   83   84   85   86   87   ...   651
Bog'liq
Algorithms

ALGORITHMS HAVE NO ABSOLUTES

You may think that you can create a scenario in which you can say that you always use a 

particular kind of algorithm to solve a particular kind of problem. However, this isn’t the 

case. For example, you can find discussions of the relative merits of using brute-force 

techniques against certain problems as compared to divide and conquer. It shouldn’t 

surprise you to discover that divide and conquer doesn’t win in every situation. For 

example, when looking for the maximum value in an array, a brute-force approach can 

win the day when the array isn’t sorted. You can read a discussion of this particular topic 

at  

http://stackoverflow.com/questions/11043226/why-do-divide-and- 



conquer-algorithms-often-run-faster-than-brute-force

. The interesting 

thing is that the brute-force approach also uses fewer resources in this particular case. 

Always remember that rules have exceptions and knowing the exceptions can save you 

time and effort later.



CHAPTER 2


Download 7,18 Mb.

Do'stlaringiz bilan baham:
1   ...   80   81   82   83   84   85   86   87   ...   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