Algorithms For Dummies



Download 7,18 Mb.
Pdf ko'rish
bet106/651
Sana15.07.2021
Hajmi7,18 Mb.
#120357
1   ...   102   103   104   105   106   107   108   109   ...   651
Bog'liq
Algorithms

 

»

Cubic complexity O(n

3

): Operations grow even faster than quadratic 

complexity because now you have multiple nested iterations. When an 

algorithm has this order of complexity and you need to process a modest 

amount of data (100,000 elements), your algorithm may run for years. When 

you have a number of operations that is a power of the input, it is common to 

refer to the algorithm as running in polynomial time.



 

»

Exponential complexity O(2

n

): The algorithm takes twice the number of 

previous operations for every new element added. When an algorithm has 

this complexity, even small problems may take forever. Many algorithms 

doing exhaustive searches have exponential complexity. However, the classic 

example for this level of complexity is the calculation of Fibonacci numbers 

(which, being a recursive algorithm, is dealt with in Chapter 5).




Download 7,18 Mb.

Do'stlaringiz bilan baham:
1   ...   102   103   104   105   106   107   108   109   ...   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