Source code online books for professionals by professionals


T (n ) n 0 Figure 2-1



Download 4,67 Mb.
Pdf ko'rish
bet16/266
Sana31.12.2021
Hajmi4,67 Mb.
#213682
1   ...   12   13   14   15   16   17   18   19   ...   266
Bog'liq
2 5296731884800181221

2
()
n
0
Figure 2-1.  For values of n greater than n
0
, T(n) is less than cn
2
, so T(n) is O(n
2
)


Chapter 2 

 the BasiCs
14
Rules of the Road
While the definitions of the asymptotic operators can be a bit tough to use directly, they actually lead to some of the 
simplest math ever. You can drop all multiplicative and additive constants, as well as all other “small parts” of your 
function, which simplifies things a lot.
As a first step in juggling these asymptotic expressions, let’s take a look at some typical asymptotic classes, or 
orders. Table 
2-1
 lists some of these, along with their names and some typical algorithms with these asymptotic 
running times, also sometimes called running-time complexities. (If your math is a little rusty, you could take a look at 
the sidebar “A Quick Math Refresher” later in the chapter.) An important feature of this table is that the complexities 
have been ordered so that each row dominates the previous one: If f is found higher in the table than g, then f is O(g).
5
Table 2-1.  Common Examples of Asymptotic Running Times

Download 4,67 Mb.

Do'stlaringiz bilan baham:
1   ...   12   13   14   15   16   17   18   19   ...   266




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