Introduction to Algorithms, Third Edition



Download 4,84 Mb.
Pdf ko'rish
bet67/618
Sana07.04.2022
Hajmi4,84 Mb.
#534272
1   ...   63   64   65   66   67   68   69   70   ...   618
Bog'liq
Introduction-to-algorithms-3rd-edition

Exercises
4.3-1
Show that the solution of
T .n/
D
T .n
1/
C
n
is
O.n
2
/
.
4.3-2
Show that the solution of
T .n/
D
T .
d
n=2
e
/
C
1
is
O.
lg
n/
.
4.3-3
We saw that the solution of
T .n/
D
2T .
b
n=2
c
/
C
n
is
O.n
lg
n/
. Show that the so-
lution of this recurrence is also
.n
lg
n/
. Conclude that the solution is
‚.n
lg
n/
.
4.3-4
Show that by making a different inductive hypothesis, we can overcome the diffi-
culty with the boundary condition
T .1/
D
1
for recurrence (4.19) without adjusting
the boundary conditions for the inductive proof.
4.3-5
Show that
‚.n
lg
n/
is the solution to the “exact” recurrence (4.3) for merge sort.
4.3-6
Show that the solution to
T .n/
D
2T .
b
n=2
c C
17/
C
n
is
O.n
lg
n/
.
4.3-7
Using the master method in Section 4.5, you can show that the solution to the
recurrence
T .n/
D
4T .n=3/
C
n
is
T .n/
D
‚.n
log
3
4
/
. Show that a substitution
proof with the assumption
T .n/
cn
log
3
4
fails. Then show how to subtract off a
lower-order term to make a substitution proof work.
4.3-8
Using the master method in Section 4.5, you can show that the solution to the
recurrence
T .n/
D
4T .n=2/
C
n
2
is
T .n/
D
‚.n
2
/
. Show that a substitution
proof with the assumption
T .n/
cn
2
fails. Then show how to subtract off a
lower-order term to make a substitution proof work.


88
Chapter 4
Divide-and-Conquer
4.3-9
Solve the recurrence
T .n/
D
3T .
p
n/
C
log
n
by making a change of variables.
Your solution should be asymptotically tight. Do not worry about whether values
are integral.

Download 4,84 Mb.

Do'stlaringiz bilan baham:
1   ...   63   64   65   66   67   68   69   70   ...   618




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