This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: CS174 CS174 Spring 98 Feb24 J. Canny MIDTERM I This is a closed book exam with 5 questions. You are allowed to use the formula sheet that will be handed out with the exam. No other notes are allowed. Calculators are OK. Write all your answers in this booklet. The score for each question is shown alongside the question. Make sure you attempt all of them. Good Luck! •@ Name: _____________________________________ •@ •@ SID Number: _______________________________ •@ •@ •@ •@ 1.(20 points) Let a biased coin have Pr [Heads] = p , where p is not necessarily 0.5. This coin can still be used to simulate fair coin tosses by tossing it twice, where if the actual sequence of tosses is HT, the output is "H", while if the actual sequence of tosses is TH, the output is "T". If the actual tosses are both the same, repeat the process. Let an "event" be a pair of tosses, and let the random variable X count the number of events until "h" or "T" is output, including the last, so X >= 1....
View
Full
Document
This test prep was uploaded on 04/20/2008 for the course CS 174 taught by Professor Canny during the Spring '98 term at University of California, Berkeley.
 Spring '98
 Canny
 Computer Science

Click to edit the document details