*Final Exam* EECS 203 Spring 2016

Similar documents
*Final Exam* EECS 203 Spring 2016

*Final Exam* EECS 203 Spring 2015

*EXAM 1* EECS 203 Spring 2016

*EXAM 1 Answer key* EECS 203 Spring 2016

Intermediate Math Circles November 8, 2017 Probability II

4/17/2012. NE ( ) # of ways an event can happen NS ( ) # of events in the sample space

Math 230 Final Exam, Spring 2009

Year 10 Mathematics Probability Practice Test 1

3.2 Probability Rules

Math 230 Final Exam, Spring 2008

Name: Exam 2 Solutions. March 13, 2017

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

Statistics 100 Exam 2 March 8, 2017

If S = {O 1, O 2,, O n }, where O i is the i th elementary outcome, and p i is the probability of the i th elementary outcome, then

CS1800 Discrete Structures Spring 2018 February CS1800 Discrete Structures Midterm Version A

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:

Exam Practice Problems

Chapter 2.5 Random Variables and Probability The Modern View (cont.)

Spring 2018 Exam 2 MARK BOX HAND IN PART NAME: PIN: INSTRUCTIONS

(1) Which of the following are propositions? If it is a proposition, determine its truth value: A propositional function, but not a proposition.

Probability Year 9. Terminology

UCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis

Probability Year 10. Terminology

Probability Long-Term Memory Review Review 1

Discrete Mathematics and Probability Theory Summer 2014 James Cook Final Exam

Chapter 5 : Probability. Exercise Sheet. SHilal. 1 P a g e

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

CS173 Lecture B, September 10, 2015

2. AXIOMATIC PROBABILITY

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

MATH MW Elementary Probability Course Notes Part I: Models and Counting

First Digit Tally Marks Final Count

Discrete Mathematics and Probability Theory Summer 2014 James Cook Midterm 1 (Version B)

MTH302 Quiz # 4. Solved By When a coin is tossed once, the probability of getting head is. Select correct option:

Midterm Exam 1 (Solutions)

Math , Fall 2012: HW 5 Solutions

Chapter 6: Probability The Study of Randomness

6.041/6.431 Spring 2009 Quiz 1 Wednesday, March 11, 7:30-9:30 PM. SOLUTIONS

Discrete Mathematics and Probability Theory Fall 2011 Rao Midterm 2 Solutions

Quiz 1 Date: Monday, October 17, 2016

REVIEW QUESTIONS. Chapter 1: Foundations: Sets, Logic, and Algorithms

CSCE 750 Final Exam Answer Key Wednesday December 7, 2005

5.3 Conditional Probability and Independence

CSC 125 :: Final Exam December 14, 2011

CMSC 250 Spring 2016: Final Exam Review Questions Key

Set/deck of playing cards. Spades Hearts Diamonds Clubs

STAT 516: Basic Probability and its Applications

Discrete Mathematics for CS Fall 2003 Wagner MT2 Soln

CS1800 Discrete Structures Fall 2016 Profs. Gold & Schnyder April 25, CS1800 Discrete Structures Final

Problem # Number of points 1 /20 2 /20 3 /20 4 /20 5 /20 6 /20 7 /20 8 /20 Total /150

the time it takes until a radioactive substance undergoes a decay

Unit 4 Probability. Dr Mahmoud Alhussami

Midterm Exam Solution

Math 21a Practice Final Exam (Fall 2000) 1) 2) 3) 4) 5) 6) 7) 8) 9) 10) 11) 12) : Total

Exam in Discrete Mathematics

1. Discrete Distributions

Reexam in Discrete Mathematics

Department of Mathematics Comprehensive Examination Option I 2016 Spring. Algebra

Probability & Random Variables

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

Discrete Mathematics and Probability Theory Summer 2014 James Cook Midterm 1

HW2 Solutions, for MATH441, STAT461, STAT561, due September 9th

THE KENNESAW STATE UNIVERSITY HIGH SCHOOL MATHEMATICS COMPETITION PART I MULTIPLE CHOICE (A) 0 (B) 1 (C) 2 (D) 3 (E) 4

Lecture Lecture 5

Probability- describes the pattern of chance outcomes

4. Suppose that we roll two die and let X be equal to the maximum of the two rolls. Find P (X {1, 3, 5}) and draw the PMF for X.

CMSC Discrete Mathematics SOLUTIONS TO FIRST MIDTERM EXAM October 18, 2005 posted Nov 2, 2005

Math 20 Spring Discrete Probability. Midterm Exam

(i) Given that a student is female, what is the probability of having a GPA of at least 3.0?

Name: Mathematics 1C03

(a) Fill in the missing probabilities in the table. (b) Calculate P(F G). (c) Calculate P(E c ). (d) Is this a uniform sample space?

Problem Point Value Points

Design and Analysis of Algorithms April 16, 2015 Massachusetts Institute of Technology Profs. Erik Demaine, Srini Devadas, and Nancy Lynch Quiz 2

Discrete Random Variables (1) Solutions

FORTY-SEVENTH ANNUAL MICHIGAN MATHEMATICS PRIZE COMPETITION. sponsored by The Michigan Section of the Mathematical Association of America.

One side of each sheet is blank and may be used as scratch paper.

Chapter 6. Probability

Basic Concepts of Probability

Spring 2017 Exam 2 NAME: PIN:

SSEA Math 51 Track Final Exam August 30, Problem Total Points Score

5. Conditional Distributions

1 Probability Theory. 1.1 Introduction

Chapter 3 : Conditional Probability and Independence

Please do NOT write in this box. Multiple Choice Total

SCHOOL OF MATHEMATICS AND STATISTICS

MATH 363: Discrete Mathematics

Fall 2015 Exam 3 PIN: 17

Math 51 Midterm 1 July 6, 2016

Probability the chance that an uncertain event will occur (always between 0 and 1)

CMPSCI 240: Reasoning about Uncertainty

Lecture Notes 1 Basic Probability. Elements of Probability. Conditional probability. Sequential Calculation of Probability

Discrete Structures Homework 1

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points

Computer Science Foundation Exam

Chapter 01: Probability Theory (Cont d)

MA 110 Algebra and Trigonometry for Calculus Spring 2017 Exam 1 Tuesday, 7 February Multiple Choice Answers EXAMPLE A B C D E.

452 FINAL- VERSION E Do not open this exam until you are told. Read these instructions:

November 8th, 2018 Sprint Round Problems 1-30

CLASS XI Maths : Sample Paper-1

Math 141 Final Exam December 18, 2014

Transcription:

*Final Exam* EECS 203 Spring 2016 Name (Print): uniqname (Print): Instructions. You have 120 minutes to complete this exam. You may have two pages of notes (8.5x11.5 two-sided) but may not use any other sources of information, including electronic devices, textbooks, or notes. Leave at least one seat between yourself and other students. Please write clearly. If we cannot read your writing, it will not be graded. Honor Code. This course operates under the rules of the College of Engineering Honor Code. Your signature endorses the pledge below. After you finish your exam, please sign on the line below: I have neither given nor received aid on this examination, nor have I concealed any violations of the Honor Code.

A. Multiple choice (18 points) In this section, each question will have zero or more correct answers. You are to circle each correct answer and leave uncircled each incorrect answer. [3 points each, -1 per incorrect circle/non-circle, minimum 0 points per problem] 1. Let B(x,y) be the proposition y is the best friend of x. Which of the following, if any, expresses the statement: Everyone has exactly one best friend? x y z ((B(x, y) B(x, z)) (y = z)) x y z (((x y) B(x, y)) ((x z) B(x, z))) x y (B(x, y) z((z y) B(x, z))) x y (B(x, y) z((z y) B(x, z))) x y z ((B(x, y) (B(x, z) (y = z))) 2. Which of the following pairs of values (n, k) (if any) make the following statement true: If 50 chairs are distributed into n piles, there must be a pile with at least k chairs. (100, 3) (3, 15) (7, 8) (51, 2) (15, 3) 3. Let A and B be two events, with A B, and suppose that 0 < P(A) < 1 and 0 < P(B) < 1. Which of the following, if any, must be true? P(A B) = 1 P(B A) = 1 A and B are not independent P(B A) > 0 P(AB)>P(A)

4. Circle each of the following (if any) that are satisfiable (p q) (p q) (p q) T (p q) (q p) p p p p 5. Circle each of the following that is a tautology (p q) (p q) (p q) T (p q) (q p) p p p p 6. Consider the above graphs. Which of the following statements are true? G1 and G3 are bipartite G1 and G2 are connected G1 and G2 are bipartite G3 has a Eulerian path G1 has a Eulerian circuit

B. More multiple choice (14 points) In this section, each question will have zero or more correct answers. You are to circle each correct answer and leave uncircled each incorrect answer. [2 points each, -1 per incorrect circle/non-circle, minimum 0 points per problem] 1. Circle each of the following which are a (multiplicative) inverse of 1 modulo 7. 3 1-6 -4 10 2. Which of the following are independent of each other (circle zero or more) Roll two dice A: The first die is a 1 B: The second die is a 1 Flip two coins A: The first coin is a head B: The two coins are the same Flip three coins. A: The first coin is a head B: The second and the third are tails Draw two cards from a deck of 52 cards without replacement A: The first card is a jack B: The second card is an ace 3. Consider an application whose runtime can be expressed as f(n)=4f(n/3)+4n. Which of the following (if any) would be true of the runtime? It is Ω (n) It is (n 2 ) It is (n log n) It is O(n log(n) )

4. Circle zero or more of the following which are tautologies where A and B are subsets of N. (A B) A A (A {-5}) A (A B) A φ 5. The equation 3N 3 *log(n)+4n*log(n) is (N 2 log(n)) O(N 2 ) (N 2 log(n)) (N 3 ) 6. The function on the right has a runtime that can be characterized as having a runtime of (N * log(n)) (N*log(N)) (N 2 ) O(N) j:=1 while(j<n) j=j*2 for (i:= 1 to 5) if(a[i]>a[j]) A[j]=A[j]+1 7. Which of the following are true? The shortest path between two vertices in a weighted graph is unique if the weights of edges are distinct. It is possible to cross all of the bridges shown exactly once and finish at the place where you started. It is possible to cross all of the bridges shown exactly once and not finish to the place where you started. Dijkstra s algorithm does the same thing as the Floyd-Warshall algorithm, but faster.

C. Functions (6 points) Each part has one correct answer. (-2 for each wrong or blank answer, minimum 0) For each of the following mappings indicate what type of function they are (if any). Use the following key: i. Not a function ii. A function which is neither onto nor one-to-one iii. A function which is onto but not one-to-one iv. A function which is one-to-one but not onto v. A function which is both onto and one-to-one 1. The mapping f from Z to N defined by f(n) = 2n. i ii iii iv v 2. The mapping f from {1, 3} to {2, 4} defined by f(n) = 2n. i ii iii iv v 3. The mapping f from R to R defined by f(n) = 8 2n. i ii iii iv v 4. The mapping f from R to Z defined by f(x) = x + 1 i ii iii iv v 5. The mapping f from R + to R + defined by f(x) = x 1. i ii iii iv v

D. Conditional probability (12 points) 1. Consider the following events when drawing two cards from a standard deck of cards without replacement. A. The first card is a Spade B. The second card is a Heart C. The first card is the Ace of Clubs Compute the following values (you can provide an answer that can trivially be input into a calculator): (7 points -1.5 per wrong or blank answer, minimum 0) P(B): 1/4 P(AB): 13*13/(52*51) P(C A): 0 P(AC): 14/52 P(A B): 13/51 P(B A): 13/51 2. A diagnostic test has a probability 0.98 of giving a positive result when applied to a person suffering from a certain cancer, and a 0.05 probability of giving a false positive when testing someone without that cancer. Say that 1 person in 20,000 suffers from this cancer. What is the probability that someone will be misclassified by the test? Your answer should be in a form we could easily enter it into a calculator. (5 points) 1/20000*.02+19999/20000*.05

E. Public key encryption (8 points) a. Let n=22, and e=3. What is the decryption key, d? Briefly explain/justify your answer. [5] d=7 b. In your own words, explain why it is that one can find the decryption key in part a, but in general having only n and e won t let you easily find the decryption key for real-world instances of RSA. [3] In this case we can easily factor n into p and q (2 and 11) and then compute (p-1)(q-1) and find the needed modular inverse. But in general n is such a large number and is the factor of two large primes and finding those factors is generally considered intractable.

F. Finding recurrence relations (10 points) Suppose you are writing a quiz with n questions each with 5 options, a,b,c,d,e. a. Say you choose not to have any two questions in a row have the same answer. Write a recurrence relation to count how many possible sets of answers you could have on a quiz with n questions. Provide sufficient base cases. [4] a n = 4a n 1 a 1 = 5 b. Later you decide this is too restrictive and choose instead to just require that you never have 3 of the same answer in a row. Write a new recurrence relation and provide base case(s) for this new restriction. [6] a n = 4a n 1 + 4a n 2 a 1 = 5 a 2 = 25

G. Graphs (10 points) Let G be a simple graph with n vertices. a. What is the maximum number of edges G can have? [2] nc2 b. If G is connected, what is the minimum number of edges G can have? [2] n-1 c. Show that if the minimum degree of any vertex of G is greater than or equal to n 1 2, then G must be connected. [6] By means of contradiction, assume that the minimum vertex degree is n 1 and 2 that G is not connected. Then G has (at least) two connected components. In each of the components, the minimum vertex degree is still n 1 and that means that each connected component must have at least n 1 + 1 vertices. Since there are at least two components, that means that the graph has at least 2 ( n 1 + 1) = n + 1 vertices, which is a contradiction 2 2 2

H. Solving a recurrence relation (8 points) Find a closed-form solution to the following recurrence relation: a n = 2a n 1 + 8a n 2 ; a 0 = 1, a 1 = 7 r 2-2r-8 = (r-4)(r+2) roots are 4 and -2. a n = α 1 (4) n + α 2 ( 2) n a 0 = 1 = α 1 + α 2 a 1 = 7 = 4α 1 2α 2 α 1 = 3 2, α 2 = 1 2 a n = 3 2 (4)n 1 2 ( 2)n

I. Induction (9 points) Let x R and x 1 0. Show, using mathematical induction, that for all integers n 0, n x i i=0 = xn+1 1 x 1 I will perform induction on P(n) = n i=0 x^i Base case: P(0) = 0 i=0 x i = 1 = x0+1 1 = 1 Inductive case: Assume P(k) = k+1 x 1 k i=0 x i = xk+1 1 x 1 = xn+1 1 x 1 x i = x k+1 + x i = x k+1 + xk+1 1 x 1 = xk+1 (x 1) x 1 i=0 k i=0 = xk+2 1 x 1 + xk+1 1 x 1 = xk+2 x k+1 + x k+1 1 x 1

J. Last problem (5 points) 20 hockey players have scored a total of 155 points this season. Show that two of them must have scored the same number of points. Assume no two players have scored the same number of points. Then the least points they could have scored is 0+1+2+3 +19=190. 190>155, so we have a contradiction and it must be the case that two or more players must have scored the same number of points.