Computer Science 174 - Spring 1998 - Canny - Midterm 1

Computer Science 174 - Spring 1998 - Canny - Midterm 1 -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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.

Page1 / 3

Computer Science 174 - Spring 1998 - Canny - Midterm 1 -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online