Introduction to Algorithms, Third Edition



Download 4,84 Mb.
Pdf ko'rish
bet97/618
Sana07.04.2022
Hajmi4,84 Mb.
#534272
1   ...   93   94   95   96   97   98   99   100   ...   618
Bog'liq
Introduction-to-algorithms-3rd-edition

Exercises
5.4-1
How many people must there be in a room before the probability that someone
has the same birthday as you do is at least
1=2
? How many people must there be
before the probability that at least two people have a birthday on July 4 is greater
than
1=2
?
5.4-2
Suppose that we toss balls into
b
bins until some bin contains two balls. Each toss
is independent, and each ball is equally likely to end up in any bin. What is the
expected number of ball tosses?
5.4-3
?
For the analysis of the birthday paradox, is it important that the birthdays be mutu-
ally independent, or is pairwise independence sufficient? Justify your answer.
5.4-4
?
How many people should be invited to a party in order to make it likely that there
are
three
people with the same birthday?
5.4-5
?
What is the probability that a
k
-string over a set of size
n
forms a
k
-permutation?
How does this question relate to the birthday paradox?
5.4-6
?
Suppose that
n
balls are tossed into
n
bins, where each toss is independent and the
ball is equally likely to end up in any bin. What is the expected number of empty
bins? What is the expected number of bins with exactly one ball?
5.4-7
?
Sharpen the lower bound on streak length by showing that in
n
flips of a fair coin,
the probability is less than
1=n
that no streak longer than lg
n
2
lg lg
n
consecutive
heads occurs.


Problems for Chapter 5
143
Problems
5-1

Download 4,84 Mb.

Do'stlaringiz bilan baham:
1   ...   93   94   95   96   97   98   99   100   ...   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