Prob. 1 Prob. 2 Prob. 3 Total

Similar documents
Prob. 1 Prob. 2 Prob. 3 Total

Coding for Digital Communication and Beyond Fall 2013 Anant Sahai MT 1

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

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

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Homework 3. This homework is due September 22, 2014, at 12:00 noon.

Midterm 1. Total. CS70 Discrete Mathematics and Probability Theory, Spring :00-9:00pm, 1 March. Instructions:

Discrete Mathematics and Probability Theory Summer 2014 James Cook Midterm 1

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

Assignment 3 Logic and Reasoning KEY

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Midterm 1

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Midterm 1

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

CS 70 Discrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand Midterm 1 Solutions

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

Discrete Mathematics for CS Fall 2003 Wagner MT2 Soln

Designing Information Devices and Systems I Spring 2018 Midterm 1. Exam Location: 155 Dwinelle Last Name: Cheng - Lazich

Practice Exam Winter 2018, CS 485/585 Crypto March 14, 2018

Name: Mathematics 1C03

Discrete Mathematics and Probability Theory Spring 2015 Vazirani Midterm #2 Solution

Midterm 1. Name: TA: U.C. Berkeley CS70 : Algorithms Midterm 1 Lecturers: Anant Sahai & Christos Papadimitriou October 15, 2008

Designing Information Devices and Systems II Spring 2016 Anant Sahai and Michel Maharbiz Midterm 1. Exam location: 1 Pimentel (Odd SID + 61C)

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:

CS 170 Algorithms Spring 2009 David Wagner Final

Designing Information Devices and Systems I Fall 2015 Anant Sahai, Ali Niknejad Midterm 1. Exam location: 60 Evans, last digit SID= 6

Designing Information Devices and Systems I Fall 2017 Midterm 2. Exam Location: 150 Wheeler, Last Name: Nguyen - ZZZ

Calculator Exam 2009 University of Houston Math Contest. Name: School: There is no penalty for guessing.

Designing Information Devices and Systems I Fall 2015 Anant Sahai, Ali Niknejad Final Exam. Exam location: RSF Fieldhouse, Back Left, last SID 6, 8, 9

Designing Information Devices and Systems I Fall 2016 Babak Ayazifar, Vladimir Stojanovic Midterm 1. Exam location: 2050 VLSB, Last Name: Tong-Zzz

PROBLEMS OF MARRIAGE Eugene Mukhin

Designing Information Devices and Systems I Fall 2017 Midterm 1. Exam Location: 155 Dwinelle

CS 170 Algorithms Fall 2014 David Wagner MT2

Designing Information Devices and Systems II Spring 2016 Anant Sahai and Michel Maharbiz Midterm 2

Designing Information Devices and Systems I Summer 2017 D. Aranki, F. Maksimovic, V. Swamy Midterm 2. Exam Location: 100 Genetics & Plant Bio

1/ 17 2/20 3/19 4/12 5/14 6/13 7/10 Total /105. Please do not write in the spaces above.

University of New Mexico Department of Computer Science. Midterm Examination. CS 261 Mathematical Foundations of Computer Science Spring, 2010

MATH UN Midterm 2 November 10, 2016 (75 minutes)

Discrete Mathematics and Probability Theory Summer 2014 James Cook Final Exam

8. Given a rational number r, prove that there exist coprime integers p and q, with q 0, so that r = p q. . For all n N, f n = an b n 2

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

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Midterm 2

Math 407: Probability Theory 5/10/ Final exam (11am - 1pm)

Physics 218 Exam I. Spring 2017 (all sections) February 13 th, 2017

Math 13, Spring 2013, Lecture B: Midterm

Midterm 1 for CS 170

Solutions to the Mathematics Masters Examination

Univ.-Prof. Dr. rer. nat. Rudolf Mathar. Written Examination. Cryptography. Tuesday, August 29, 2017, 01:30 p.m.

University of Regina Department of Mathematics & Statistics Final Examination (April 21, 2009)

Practice Final Exam Winter 2017, CS 485/585 Crypto March 14, 2017

Simple Math: Cryptography

CS2800 Questions selected for fall 2017

Designing Information Devices and Systems I Fall 2016 Babak Ayazifar, Vladimir Stojanovic Midterm 1. Exam location: 145 Dwinelle, last SID# 2

1. Given the public RSA encryption key (e, n) = (5, 35), find the corresponding decryption key (d, n).

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

Admin. ! Will post sample questions soon. 1. Choose a bit-length k. 2. Choose two primes p and q which can be represented with at most k bits

Number theory (Chapter 4)

Candidates must show on each answer book the type of calculator used. Only calculators permitted under UEA Regulations may be used.

Do not open this exam until you are told to begin. You will have 75 minutes for the exam.

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

Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography

Physics 101. Hour Exam I Spring Last Name: First Name Network-ID Discussion Section: Discussion TA Name:

Physics Grading Sheet.

For your quiz in recitation this week, refer to these exercise generators:

MTH 132 Solutions to Exam 2 Apr. 13th 2015

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

Cryptosystem. Traditional Cryptosystems: The two parties agree on a secret (one to one) function f. To send a message M, thesendersendsthemessage

CS/MATH 111 Winter 2013 Final Test

Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography

and problem sheet 1

Cryptography and Security Midterm Exam

STAT/MA 416 Midterm Exam 3 Monday, November 19, Circle the section you are enrolled in:

Math 230 Final Exam, Spring 2008

Attempt QUESTIONS 1 and 2, and THREE other questions. penalised if you attempt additional questions.

Math 160 Calculus for Physical Scientists I Exam 1 - Version 1 February 9, 2017, 5:00-6:50 pm

Practice Midterm Solutions, MATH 110, Linear Algebra, Fall 2013

Name: Exam 2 Solutions. March 13, 2017

Discrete Mathematics and Probability Theory Spring 2015 Vazirani Final Exam Solution

Greedy Homework Problems

Designing Information Devices and Systems I Spring 2016 Elad Alon, Babak Ayazifar Midterm 1

MATH 114 Fall 2004 Solutions to practice problems for Final Exam

6.2b Homework: Fit a Linear Model to Bivariate Data

Math 51 First Exam October 19, 2017

Network Security Technology Spring, 2018 Tutorial 3, Week 4 (March 23) Due Date: March 30

Math 223, Spring 2009 Final Exam Solutions

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

RYERSON UNIVERSITY DEPARTMENT OF MATHEMATICS

MATH 341, Section 001 FALL 2014 Introduction to the Language and Practice of Mathematics

University of Connecticut Department of Mathematics

Written examination. Tuesday, August 18, 2015, 08:30 a.m.

MA554 Assessment 1 Cosets and Lagrange s theorem

MATH 158 FINAL EXAM 20 DECEMBER 2016

MTH 132 Solutions to Exam 2 Nov. 23rd 2015

Physics 206 Exam I. Spring 2019 (all UP sections) February 18 th, 2019

Math 230 Final Exam, Spring 2009

*Final Exam* EECS 203 Spring 2016

Designing Information Devices and Systems I Fall 2015 Anant Sahai, Ali Niknejad Final Exam. Exam location: You re Done!!

*Final Exam* EECS 203 Spring 2015

Designing Information Devices and Systems I Spring 2019 Midterm 2. Exam Location: Cory 521 (DSP)

Designing Information Devices and Systems I Summer 2017 D. Aranki, F. Maksimovic, V. Swamy Midterm 1. Exam Location: 2050 VLSB

Exam Security January 19, :30 11:30

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

Transcription:

EECS 70 Discrete Mathematics and Probability Theory Spring 2013 Anant Sahai MT 1 PRINT your student ID: PRINT AND SIGN your name:, (last) (first) (signature) PRINT your Unix account login: cs70- PRINT your discussion section and GSI: Mark Here Section Time Location GSI 1 9-10am 6 Evans Ramtin 2 10-11am 71 Evans Ramtin 3 11-12pm 71 Evans Nima 4 12-1pm 2 Evans Nima 5 1-2pm 87 Evans Sridhar 6 2-3pm 2070 VLSB Sridhar 7 3-4pm 85 Evans Chung-Wei 8 4-5pm 9 Evans Chung-Wei 9 5-6pm 9 Evans Richard 10 1-2pm 3105 Etch. Chenyu 11 2-3pm 151 Barr. Kate 12 4-5pm B51 Hilde. Richard 13 6-7pm 70 Evans Sibi 14 12-1pm 101 Wheel. Chenyu 15 4-5pm 156 Dwin. Sibi Prob. 1 Prob. 2 Prob. 3 Total Names of the people sitting next to you: You may consult your one handwritten note sheet. (You must turn it in with your exam.) Phones, calculators, tablets, and computers are not permitted. No collaboration is allowed at all and you are not allowed to look at another s work. Please write your answers in the spaces provided in the test; in particular, we will not grade anything on the back of an exam page unless we are clearly told on the front of the page to look there. You have 120 minutes. There are 3 questions, of varying numbers of points. The questions are of varying difficulty, so avoid spending too long on any one question. Do not turn this page until your instructor tells you to do so. EECS 70, Spring 2013, MT 1 1

Problem 1. Stable Marriage (20 points) a. (5 points) Assume that there are three men 1, 2, and 3 and three women A, B, and C. Their preference lists are given below. Man Preference List 1 A > C > B 2 A > B > C 3 C > A > B Woman Preference List A 3 > 1 > 2 B 2 > 3 > 1 C 1 > 2 > 3 Is the pairing {(1,C),(2, A),(3, B)} stable? Why? b. (5 points) Run the traditional propose and reject algorithm on the example above and write down the pairing that is produced. Show your work (i.e. the intermediate steps of the algorithm). EECS 70, Spring 2013, MT 1 2

c. (10 points) Karl and Emma are having a disagreement regarding the traditional propose-and-reject algorithm. They both agree that it favors men over women. But they disagree about what, if anything, can be done without changing the ritual form of men proposing, women rejecting, and people getting married when there are no more rejections. Karl mansplains: It s hopeless. Men are obviously going to propose in the order of their preferences. It s male optimal so why would they do anything else? As far as the women are concerned, given that they face a specific choice of proposals at any given time, they are obviously going to select the suitor they like the most. So unless we smash the system entirely, it is going to keep all women down. Emma says: People are more perceptive and forward-looking that you think. Women talk to each other and know each other s preferences regarding men. They can also figure out the preferences of the men they might be interested in. A smart and confident woman should be able to do better for herself in the long run by not trying to cling to the best man she can get at the moment. By rejecting more strategically, she can simultaneously help out both herself and her friends. Is Emma ever right? If it is impossible, prove it. If it is possible, construct and analyze an example (a complete set of people and their preference lists) in which a particular woman acting on her own (within the traditional ritual form of men proposing and women rejecting) can get a better match for herself while not hurting any other woman. Show how she can do so. The resulting pairing should also be stable. EECS 70, Spring 2013, MT 1 3

[Extra Page] EECS 70, Spring 2013, MT 1 4

Problem 2. [True or false] (48 points) Circle TRUE or FALSE. Prove all statements that you think are true and disprove (e.g. by showing a counterexample) all statements that you think are false. Reminder: N = {0, 1, 2, 3,...} represents the set of non-negative integers. (a) TRUE or FALSE: Suppose that P,Q are propositions, ( (P Q)) is logically equivalent to (Q P). (b) TRUE or FALSE: Consider the Fibonacci numbers F(n) = F(n) is even if and only if n is a multiple of 3. 0 if n = 0 1 if n = 1 F(n 1) + F(n 2) if n 2 EECS 70, Spring 2013, MT 1 5

(c) TRUE or FALSE: If a N and m N are such that 0 < a < m and gcd(a,m) = 1, then a m 1 = 1 mod m. (d) TRUE or FALSE: If n is an integer and n 3 + 5 is odd then n is even. EECS 70, Spring 2013, MT 1 6

(e) TRUE or FALSE: a b mod m = a x b x mod m (assume that a, b, m, and x are all positive integers) (f) TRUE or FALSE: a b mod m = x a x b mod m (assume that a, b, m, and x are all positive integers) EECS 70, Spring 2013, MT 1 7

[Extra Page] EECS 70, Spring 2013, MT 1 8

Problem 3. RSA. (45 points) Rather than doing traditional RSA based on two prime numbers, suppose that your friend suggests using three prime numbers. She decides to use N = 105 = 3 5 7 and selects e = 5 so that the public key is (N,e) = (105,5). a. (4 points) Encrypt the message 2 using this public key. b. (6 points) Encrypt the message 3 using this public key. EECS 70, Spring 2013, MT 1 9

c. (15 points) What property should the secret key d satisfy? Calculate what you think the secret key d should be for this public key (N = 105,e = 5). Explain your reasoning and show your work. It is alright if you don t prove that this is the right property, proofs are required in the next part. No proofs needed in part c. d = EECS 70, Spring 2013, MT 1 10

d. (20 points) Prove that the encryption function E(x) = x e mod N and the decryption function D(y) = y d mod N above are inverses. (i.e. x,(0 x < N) (D(E(x)) = x).) (HINT: Follow the RSA proof from class and just adapt it for when there are three primes involved.) EECS 70, Spring 2013, MT 1 11

[Extra Page.] EECS 70, Spring 2013, MT 1 12