{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Computer Science 174 - Spring 1998 - Canny - Midterm 1

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

This preview shows pages 1–3. Sign up to view the full content.

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. file:///C|/Documents%20and%20Settings/Jason%20Raft...%20Spring%201998%20-%20Canny%20-%20Midterm%201.htm (1 of 3)1/27/2007 6:46:39 PM

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

View Full Document
CS174 a.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern