Source code online books for professionals by professionals



Download 4,67 Mb.
Pdf ko'rish
bet64/266
Sana31.12.2021
Hajmi4,67 Mb.
#213682
1   ...   60   61   62   63   64   65   66   67   ...   266
Bog'liq
2 5296731884800181221

Dependencies. The prereqs for CPSC 357, the class on package management, are CPSC 432, CPSC 357, and glibc2.5 or 
later (
http://xkcd.com/754
)
Stronger Assumptions
The default induction hypothesis when designing algorithm is “We can solve smaller instances with this,” but sometimes 
that isn’t enough to actually perform the induction step or to perform it efficiently. Choosing the order of the subproblems 
can be important (such as in topological sorting), but sometimes we must actually make a stronger assumption to 
piggyback some extra information on our induction. Although a stronger assumption might seem to make the proof 
harder,
14
 it actually just gives us more to work with when deducing the step from n–1 (or n/2, or some other size) to n.
Consider the idea of balance factors. These are used in some types of balanced trees (discussed in Chapter 6) and 
are a measure of how balanced (or unbalanced) a tree or subtree is. For simplicity, we assume that each internal node 
has two children. (In an actual implementation, some of the leaves might simply be None or the like.) A balance factor 
is defined for each internal node and is set to the difference between the heights of the left and right subtrees, where 
height is the greatest distance from the node (downward) to a leaf. For example, the left child of the root in Figure 
4-6
 
has a balance factor of –2 because its left subtree is a leaf (with a height of 0), while its right child has a height of 2.

Download 4,67 Mb.

Do'stlaringiz bilan baham:
1   ...   60   61   62   63   64   65   66   67   ...   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