• Keine Ergebnisse gefunden

Problem Set 1

N/A
N/A
Protected

Academic year: 2022

Aktie "Problem Set 1"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Institut f¨ur Informatik Prof. Dr. Heiko R¨oglin Clemens R¨osner

Probabilistic Analysis of Algorithms Summer 2015

Problem Set 1

Problem 1

We flip a fair coinntimes. Fork∈N, find an upper bound on the probability that there is a sequence ofdlog2ne+k consecutive heads. Your bound should decrease exponentially ink.

Problem 2

A monkey types on a 26-letter keyboard that has lowercase letters only. Each letter is chosen independently and uniformly at random from the alphabet. If the monkey types 1,000,000,000 letters, what is the expected number of times the sequence “banana” appears?

Problem 3

Each box of cereal contains one out ofnpossible coupons. Once you obtain allncoupons, you win a prize. Assuming that the coupon in each box is chosen independently and uniformly at random from the n possibilities, what is the expected number of boxes you have to buy before you can claim the prize?

Problem 4

In a quiz show 100 participants P1, . . . , P100 can win a trip to Hawaii. The host of the show sets up a room with 100 closed boxes. Every box contains a sheet with a unique number from {1,2, . . . ,100}, and the boxes are placed one after another in a random order in the room.

The participants, who can agree upfront on a strategy but cannot communicate anymore once the show has started, enter the room one after another.

The first participant P1 enters the room first. He can open 50 of the boxes. If none of these boxes contains his own number 1, then all participants lose. Otherwise, he closes all the boxes again and leaves the room. He is not allowed to reorder the boxes or to leave any other hints.

Then the second participant P2 enters the room. He can also open 50 of the boxes. If none of these boxes contains his own number 2, then all participants lose. Otherwise, he closes all the boxes again and leaves the room. He is not allowed to reorder the boxes or to leave any other hints. This is continued until the last participantP100.

The participants win if and only if each of them opens the box with his own number. If there is a single participant who does not open the box with his own number, everybody loses.

Advise the participants on a strategy and compute the probability of winning according to your strategy.

Referenzen

ÄHNLICHE DOKUMENTE

If the message appears to prompt you to replace the PicturePack, follow the steps below... If banding appears on

This kind of explication of determinism is aimed at by Popper ([38], pp. 1-2): "what I call 'scientific' determinism the doctrine that the structure of the world is such that

Compared to older American jets, to say nothing of the latest Russian and Chinese fighter designs, the F-35 is looking worse and worse.. "Can't turn, can't climb, can't run,"

15 Appellate Body Report, European Communities and Certain Member States – Measures Affecting Trade in Large Civil Aircraft, WT/DS316/AB/R.. 16 Panel Report, European Communities

Attempts to generate a new framework or new umbrella term (e.g., NPR, 2015; EdWeek, 2015) while well-intentioned, are not designed to address what we see as the

So wurde ja bereits in Punkt 2.2.3 angeführt, dass Selbstdarstellungen im Internet tendenziell sehr authentisch sind (vgl. McKenna, Buffardi, Seidmann 2005), aufgrund

Jedes Stationenlernen bietet einen einheitlichen Handlungskontext, ist also situativ angelegt, damit die Schülerinnen und Schüler nicht von Satz zu Satz und von Station zu

☛ As long as you are a minor (less than 18 years old) and have an Aufenthaltserlaubnis acording to the new residence right regulations (§ 25a Aufenthaltsgesetz), your parents and