Docsity

EECS 203 Final Exam: Spring 2016, Exercises of Cryptography and System Security

Toggle sidebar
bg1
*Final Exam*
EECS 203
Spring 2016
Name (Print): ________________________________________________
uniqname (Print): ________________________________________________
Instructions. You have 120 minutes to complete this exam. You may have two page 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.
________________________________________________________________
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download EECS 203 Final Exam: Spring 2016 and more Exercises Cryptography and System Security in PDF only on Docsity!

Final Exam

EECS 203

Spring 2016

Name (Print): ________________________________________________

uniqname (Print): ________________________________________________

Instructions. You have 120 minutes to complete this exam. You may have two page 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โ€? ๏‚ท โˆ€๐’™โˆƒ๐’šโˆ€๐’› ((๐‘ฉ(๐’™, ๐’š) โˆง ๐‘ฉ(๐’™, ๐’›)) โ†’ (๐’š = ๐’›)) ๏‚ท โˆ€๐’™โˆƒ๐’šโˆƒ๐’› (((๐’™ โ‰  ๐’š) โ†’ ๐‘ฉ(๐’™, ๐’š)) โˆง ((๐’™ โ‰  ๐’›) โ†’ ยฌ ๐‘ฉ(๐’™, ๐’›)))

๏‚ท โˆ€๐’™โˆƒ๐’š (๐‘ฉ(๐’™, ๐’š) โˆง โˆ€๐’›((๐’› โ‰  ๐’š) โ†’ ยฌ๐‘ฉ(๐’™, ๐’›)))

๏‚ท โˆƒ๐’™โˆ€๐’š (๐‘ฉ(๐’™, ๐’š) โˆง โˆ€๐’›((๐’› โ‰  ๐’š) โ†’ ยฌ ๐‘ฉ(๐’™, ๐’›))) ๏‚ท โˆ€๐’™โˆƒ๐’šโˆ€๐’› ((๐‘ฉ(๐’™, ๐’š) โˆง (๐‘ฉ(๐’™, ๐’›) โ†’ (๐’š = ๐’›)))

  1. 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)
  2. 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(A๏ƒ‡B)>P(A)

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

๏‚ท - ๏‚ท -

๏‚ท 10

  1. 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

  1. 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(nlog(n))

  1. Circle zero or more of the following which are tautologies where A and B are subsets of โ„•. ๏‚ท (๐ด โˆฉ ๐ต) โŠ‚ ๐ด ๏‚ท ๐ด โŠ‚ (๐ด โˆช {-5})

๏‚ท ๐ด โІ (๐ด โˆฉ ๐ต)

๏‚ท ๐ด โŠƒ ๐œ™

  1. The equation 3N^3 log(N)+4Nlog(N) is

๏‚ท ๏‘(N^2 log(N))

๏‚ท O(N^2 )

๏‚ท ๏—(N^2 log(N)) ๏‚ท ๏‘(N^3 )

  1. The function on the right has a runtime that can be characterized as having a runtime of

๏‚ท ๏‘(Nlog(N)) ๏‚ท ๏—(Nlog(N))

๏‚ท ๏‘(N^2 )

๏‚ท O(N)

  1. 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.

j:= while(j<N) j=j* for (i:= 1 to 5) if(A[i]>A[j]) A[j]=A[j]+

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): ___________________ P(A๏ƒ‡B): ___________________

P(C|A): ___________________ P(A๏ƒˆC): ___________________

P(A|B):___________________ P(B|A): ____________________

  1. 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)

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]

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]

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]

b. If G is connected, what is the minimum number of edges G can have? [2]

c. Show that if the minimum degree of any vertex of G is greater than or equal to ๐‘›โˆ’ 2 , then G must be connected. [ 6]

H. Solving a recurrence relation (8 points)

Find a closed-form solution to the following recurrence relation:

๐‘Ž๐‘› = 2๐‘Ž๐‘›โˆ’1 + 8๐‘Ž๐‘›โˆ’2; ๐‘Ž 0 = 1, ๐‘Ž 1 = 7

J. Last problem (5 points) 20 hockey players have scored a total of 155 points this season. Show that at least two of them must have scored the same number of points.