COS 341: Discrete Mathematics

Similar documents
COS 341: Discrete Mathematics

Final Examination. Adrian Georgi Josh Karen Lee Min Nikos Tina. There are 12 problems totaling 150 points. Total time is 170 minutes.

Course Staff. Textbook

Randomized Algorithms

EECS 70 Discrete Mathematics and Probability Theory Fall 2015 Walrand/Rao Final

MOCK MATHCOUNTS Chapter Competition Sprint Round Problems Signature Date. Printed Name School

CS155: Probability and Computing: Randomized Algorithms and Probabilistic Analysis

COMP 2804 Assignment 4

Midterm Exam 1 Solution

June If you want, you may scan your assignment and convert it to a.pdf file and it to me.

Today s Menu. Administrativia Two Problems Cutting a Pizza Lighting Rooms

Discrete Mathematics and Probability Theory Summer 2015 Chung-Wei Lin Midterm 2

MAT 271E Probability and Statistics

Machine Learning: Homework Assignment 2 Solutions

CS173 Lecture B, November 3, 2015

Page Max. Possible Points Total 100

CSE 21 Practice Exam for Midterm 2 Fall 2017

6.042/18.062J Mathematics for Computer Science December 14, 2004 Tom Leighton and Eric Lehman. Final Exam

Midterm 2. Your Exam Room: Name of Person Sitting on Your Left: Name of Person Sitting on Your Right: Name of Person Sitting in Front of You:

This exam contains 13 pages (including this cover page) and 10 questions. A Formulae sheet is provided with the exam.

Machine Learning. Instructor: Pranjal Awasthi

Discrete Structures Prelim 1 Selected problems from past exams

CS261: Problem Set #3

P (A B) P ((B C) A) P (B A) = P (B A) + P (C A) P (A) = P (B A) + P (C A) = Q(A) + Q(B).

Handout 1: Mathematical Background

CS684 Graph Algorithms

UC Berkeley Department of Electrical Engineering and Computer Science. EE 126: Probablity and Random Processes. Solutions 5 Spring 2006

CS 70 Discrete Mathematics and Probability Theory Summer 2016 Dinh, Psomas, and Ye Final Exam

ORF 363/COS 323 Final Exam, Fall 2018

Physics 141 Course Information

CSC Discrete Math I, Spring Discrete Probability

ORF 363/COS 323 Final Exam, Fall 2015

Recitation 6. Randomization. 6.1 Announcements. RandomLab has been released, and is due Monday, October 2. It s worth 100 points.

ORF 363/COS 323 Final Exam, Fall 2016

Physics 141 Course Information

State High School Mathematics Tournament

1 Basic continuous random variable problems

MATH 137 : Calculus 1 for Honours Mathematics. Online Assignment #2. Introduction to Sequences

CS 246 Review of Proof Techniques and Probability 01/14/19

Exam III #1 Solutions

CS 70 Discrete Mathematics and Probability Theory Spring 2018 Ayazifar and Rao Final

Math 416 Lecture 3. The average or mean or expected value of x 1, x 2, x 3,..., x n is

Introductory Probability

Kousha Etessami. U. of Edinburgh, UK. Kousha Etessami (U. of Edinburgh, UK) Discrete Mathematics (Chapter 7) 1 / 13

1,1 1,2 1,3 1,4 1,5 1,6 2,1 2,2 2,3 2,4 2,5 2,6 3,1 3,2 3,3 3,4 3,5 3,6 4,1 4,2 4,3 4,4 4,5 4,6 5,1 5,2 5,3 5,4 5,5 5,6 6,1 6,2 6,3 6,4 6,5 6,6

IE 4521 Midterm #1. Prof. John Gunnar Carlsson. March 2, 2010

Lecture 5: Introduction to Markov Chains

STA 247 Solutions to Assignment #1

ECE 302, Final 3:20-5:20pm Mon. May 1, WTHR 160 or WTHR 172.

CSE548, AMS542: Analysis of Algorithms, Fall 2016 Date: Nov 30. Final In-Class Exam. ( 7:05 PM 8:20 PM : 75 Minutes )

CS483 Design and Analysis of Algorithms

ORF 363/COS 323 Final Exam, Fall 2017

MAT 271E Probability and Statistics

With Question/Answer Animations. Chapter 7

Handout 1: Mathematical Background

Discrete Mathematics and Probability Theory Summer 2017 Hongling Lu, Vrettos Moulos, and Allen Tang HW 6

Math 493 Final Exam December 01

CS 170 Algorithms Spring 2009 David Wagner Final

Math 110 (Fall 2018) Midterm II (Monday October 29, 12:10-1:00)

Honors Algebra II / Trigonometry

9.1 HW (3+3+8 points) (Knapsack decision problem NP-complete)

Monty Hall Puzzle. Draw a tree diagram of possible choices (a possibility tree ) One for each strategy switch or no-switch

Name: for students entering. Algebra 2/Trig* For the following courses: AAF, Honors Algebra 2, Algebra 2

Discrete Probability

Introduction Propositional Logic

CSE548, AMS542: Analysis of Algorithms, Spring 2014 Date: May 12. Final In-Class Exam. ( 2:35 PM 3:50 PM : 75 Minutes )

CSE 312 Final Review: Section AA

Stat 609: Mathematical Statistics I (Fall Semester, 2016) Introduction

Course: Math 111 Pre-Calculus Summer 2016

UC Berkeley Department of Electrical Engineering and Computer Sciences. EECS 126: Probability and Random Processes

Midterm Exam Information Theory Fall Midterm Exam. Time: 09:10 12:10 11/23, 2016

Test 2 VERSION B STAT 3090 Spring 2017

Homework 4 Solutions

CS 124 Math Review Section January 29, 2018

Prerequisite: Math 40 or Math 41B with a minimum grade of C, or the equivalent.

Discrete Mathematics and Probability Theory Fall 2017 Ramchandran and Rao Midterm 2 Solutions

Archdiocese of Washington Catholic Schools Academic Standards Mathematics

Machine Learning CSE546

CSI 4105 MIDTERM SOLUTION

Discrete Event Systems Exam

Chemistry 883 Computational Quantum Chemistry

SHOW ALL YOUR WORK IN A NEAT AND ORGANIZED FASHION

Midterm Exam 1 (Solutions)

Physics 321 Theoretical Mechanics I. University of Arizona Fall 2004 Prof. Erich W. Varnes

The topics in this section concern with the first course objective.

NORTHWESTERN UNIVERSITY Tuesday, Oct 6th, 2015 ANSWERS FALL 2015 NU PUTNAM SELECTION TEST

Math 31 Lesson Plan. Day 2: Sets; Binary Operations. Elizabeth Gillaspy. September 23, 2011

CS280, Spring 2004: Final

MATH STUDENT BOOK. 12th Grade Unit 9

2. Variance and Covariance: We will now derive some classic properties of variance and covariance. Assume real-valued random variables X and Y.

2. Suppose (X, Y ) is a pair of random variables uniformly distributed over the triangle with vertices (0, 0), (2, 0), (2, 1).

Last/Family Name First/Given Name Seat # Exam # Failure to follow the instructions below will constitute a breach of the Honor Code:

Lectures in Discrete Mathematics Math 1165 Professors Stanislav Molchanov and Harold Reiter

1 Basic continuous random variable problems

Math489/889 Stochastic Processes and Advanced Mathematical Finance Solutions for Homework 7

Math 218 Supplemental Instruction Spring 2008 Final Review Part A

Course Content (visit for details)

ORF 523 Final Exam, Spring 2016

The probability of an event is viewed as a numerical measure of the chance that the event will occur.

Great Theoretical Ideas in Computer Science

Transcription:

COS 341: Discrete Mathematics Final Exam Fall 2006 Print your name General directions: This exam is due on Monday, January 22 at 4:30pm. Late exams will not be accepted. Exams must be submitted in hard copy to my office, room 407 of the Computer Science Building. (If I am not around, you can slide your exam under my door.) Please attach this cover page as well as the following page with the grading table (preferably printed back-toback) when you turn in your exam, and be sure to sign the pledge below. During the exam, you may not collaborate or discuss the exam or any course material with fellow classmates, friends, TA s or anyone else. Of course, you can ask me to clarify specific questions if they are unclear or ambiguous. During the exam, you may use only the following materials: 1. your own lecture notes; 2. the Lehman & Leighton notes; 3. other miscellaneous materials that may have been distributed, such as homeworks, precept problem sets, miscellaneous readings or email help messages sent by the course staff. In addition, in case you need to review relevant material covered in MAT 103/104, the prerequisites for this course, you may use Karl s Calculus Tutor at www.karlscalculus.org, which includes such topics as factoring polynomials (in Prependix C), limits (Chapter 2), and the method of partial fractions (Section 11.7). Alternatively, you can use another standard single-variable calculus textbook; if you do, please indicate on your exam which book you are using. (Let me know if you are aware of a better on-line calculus resource.) Other than what is listed above, you may not use any other materials, including books, articles, materials from previous years or other courses, or any materials taken from the web. On all of the questions below, unless indicated otherwise, be sure to show your work and justify all your answers. As on the homeworks, this means to give an explanation of why your answers are correct and legitimate. In some cases, a proof is called for, a more stringent requirement demanding a complete, rigorous, formal, logical argument. In general, the only facts, lemmas, theorems, etc. that can be used without proof are the ones provided in lecture, precept or the Lehman & Leighton notes. The grading criteria will be similar to what is described for homeworks on the course Assignments web page. Approximate point values are given in brackets. Good luck! Honor pledge: I pledge my honor that I have not violated the Honor Code during this examination. Please write the pledge in full and sign:

Please turn in this page, but do not write on it for grader use only. 1 a / 5 b / 7 2 a / 3 b / 4 c / 2 d / 3 e / 5 3 / 10 4 a / 9 b / 9 c / 9 5 / 11 TOTAL: / 77 2

1. Sam has two coins, F and B. Coin F is a fair coin, i.e., it comes up heads and tails with equal probability. Coin B is a biased coin that comes up heads with probability 3/4, and tails with probability 1/4. Sam flips the coins according to the following process. For the very first flip, Sam flips coin F. Then, for each subsequent flip, Sam continues to flip the coin he is currently using with probability 4/5, or switches to the other coin with probability 1/5. Thus, for example, since coin F was used for the first flip, he will flip the same coin F again for the second flip with probability 4/5, but will switch to flipping coin B for the second flip with probability 1/5. (His decision of which coin to flip only depends on which coin was used last; it is not influenced, for instance, by the outcome of previous flips or which coins were used prior to the previous round.) Let X t be a random variable indicating which coin (F or B) was used for the t-th flip, and let Y t be a random variable indicating the outcome of the t-th flip (heads or tails). a. [5] Given the description above, indicate whether each of the statements below are true or false. (Your justifications for your answers to this part can be brief and somewhat informal, but should still be convincing.) (i) Y 3 and Y 5 are independent. (ii) Y 3 and Y 5 are conditionally independent given Y 4. (iii) Y 3 and Y 5 are conditionally independent given X 4. (iv) Y 4 and Y 5 are conditionally independent given X 3. (v) X 3 and Y 5 are conditionally independent given X 5. b. [7] Suppose the first flip comes up tails, and the next two flips are heads. What is the probability that coin F was used for the third flip? 2. Consider a simple graph G that is generated randomly on a set of n vertices as follows: for each distinct pair of vertices u and v, an edge {u, v} is included in the graph with probability 1/2 (independent of all other edges). In a graph, a triangle is a cycle of length three. Let X be the random variable denoting the number of distinct triangles in the random graph G. (Note that two triangles are considered distinct even if they have one or two vertices in common.) For instance, this graph has five triangles: a. [3] Compute the expected value of X. Give a general expression in terms of n, and also evaluate this expression numerically when n = 1000. b. [4] Compute the variance of X. Give a general expression in terms of n, and also evaluate the standard deviation of X numerically when n = 1000. c. [2] Use Markov s inequality to compute an upper bound on the probability that X exceeds its expectation by 10% (i.e., that X is at least 1.1E[X]). Give a general expression in terms of n, and also evaluate your bound numerically when n = 1000. 3

d. [3] Use Chebyshev s inequality to compute an upper bound on the probability that X exceeds its expectation by 10%. Give a general expression in terms of n, and also evaluate your bound numerically when n = 1000. e. [5] Use Chernoff bounds to compute an upper bound on the probability that X exceeds its expectation by 10%. Give a general expression in terms of n, and also evaluate your bound numerically when n = 1000. For this part, you can use any of the Chernoff bounds discussed in class, precept or the readings, provided that the assumptions of the bound you are using are appropriately satisfied. (For these purposes, we will count both Hoeffding s inequality and McDiarmid s inequality as Chernoff bounds.) 3. [10] Let n be a positive integer. Let A be a sequence of n decimal digits, where each digit is selected uniformly and independently at random from {0,..., 9}. Let B be the reverse of A. Finally, regarding A and B as decimal integers, let S be their sum. (For instance, if n = 4 and A = 0743 then B = 3470 and S = 4213. Or if n = 4 and A = 1790 then B = 0971 and S = 2761.) As a function of n, compute the exact probability that S is divisible by 11. 4. Below are a list of pairs of statements, each pair consisting of one true and one false statement. For each pair, prove that one of the two statements is true, and prove that the other statement is false (be sure to clearly indicate which one is true and which is false). For instance, a pair might be something like the following: z. (i) For every integer n, if n is even, then n + 1 is even. (ii) For every integer n, if n is even, then n + 1 is odd. Then your job would be to prove that (ii) is true and to give a second proof that (i) is false. a. [9] b. [9] (i) For any two real-valued random variables X and Y, E[min{X, Y }] min{e[x], E[Y ]}. (ii) For any two real-valued random variables X and Y, E[min{X, Y }] min{e[x], E[Y ]}. (i) For any two positive integers a and b, if a and b are relatively prime then gcd(a+b, a b) divides 2. (ii) For any two positive integers a and b, if a and b are relatively prime then gcd(a+b, a b) is divisible by 2. c. [9] The complement of a graph G = (V, E) is the graph G = (V, E ) where {u, v} E if and only if {u, v} E. That is, G has the same vertex set as G, and includes exactly those edges that do not occur in G. (As usual, we only consider simple graphs.) (i) For any graph G, if G is connected, then its complement is not connected. (ii) For any graph G, if G is not connected, then its complement is connected. 4

5. [11] Teams A and B are competing against one another for the world championship of the new sport bayesball. According to the arcane rules of such a championship tournament, the two teams continue to play game after game against one another until one of the teams has won W games more than the other team, where W is a small positive integer. (Ties are not possible in bayesball.) Suppose that teams A and B are very evenly matched so that each team is equally likely to win the first game. Further, since psychological momentum is so important in this sport, assume that the winner of each game has a 2/3 chance of winning the next game. For instance, if team A wins game 4, then team A will go on to also win game 5 with probability 2/3, while team B will have only a 1/3 chance of winning game 5. What is the expected number of games of bayesball that will be played until the tournament finally ends? (Hint: Focus on the difference between the number of games won by team A and the number of games won by team B. Initially, this difference is zero, and with each game, it increases or decreases by one. The tournament ends when this difference reaches W or W.) 5