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

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

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

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

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

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 II Spring 2016 Anant Sahai and Michel Maharbiz Midterm 1. Exam location: 1 Pimentel (Odd SID + 61C)

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

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: 145 Dwinelle, last SID# 2

Designing Information Devices and Systems I Spring 2017 Babak Ayazifar, Vladimir Stojanovic Midterm 1

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

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

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

MATH 1553, JANKOWSKI MIDTERM 2, SPRING 2018, LECTURE A

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

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:

Math 54 First Midterm Exam, Prof. Srivastava September 23, 2016, 4:10pm 5:00pm, 155 Dwinelle Hall.

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

Discrete Mathematics and Probability Theory Summer 2014 James Cook Midterm 1

EECS 16A Designing Information Devices and Systems I Spring 2016 Elad Alon, Babak Ayazifar Final. Exam location: RSF Back Left, last SID# 1, 4, + 5

Efficient Algorithms and Intractable Problems Spring 2016 Alessandro Chiesa and Umesh Vazirani Midterm 2

Math 51 Midterm 1 July 6, 2016

Prob. 1 Prob. 2 Prob. 3 Total

MATH 1553, FALL 2018 SAMPLE MIDTERM 2: 3.5 THROUGH 4.4

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

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

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

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

Total 100

Problem Point Value Points

2. (10 pts) How many vectors are in the null space of the matrix A = 0 1 1? (i). Zero. (iv). Three. (ii). One. (v).

Discrete Mathematics and Probability Theory Summer 2014 James Cook Final Exam

Math 54 Second Midterm Exam, Prof. Srivastava October 31, 2016, 4:10pm 5:00pm, 155 Dwinelle Hall.

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

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:

MTH 234 Solutions to Exam 1 Feb. 22nd 2016

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

MATH 1553-C MIDTERM EXAMINATION 3

Prob. 1 Prob. 2 Prob. 3 Total

HKUST. MATH1013 Calculus IB. Directions:

Math 53 Final Exam, Prof. Srivastava May 11, 2018, 11:40pm 2:30pm, 155 Dwinelle Hall.

MATH 153 FIRST MIDTERM EXAM

MATH 1553, C. JANKOWSKI MIDTERM 3

Exam 3. Math Spring 2015 April 8, 2015 Name: } {{ } (from xkcd) Read all of the following information before starting the exam:

CS 170 Algorithms Spring 2009 David Wagner Final

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

Midterm Exam 1 Solution

Designing Information Devices and Systems I Fall 2017 Homework 3

University of Ottawa

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

This is a closed book exam. No notes or calculators are permitted. We will drop your lowest scoring question for you.

EECS 126 Probability and Random Processes University of California, Berkeley: Fall 2014 Kannan Ramchandran September 23, 2014.

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

Math 221 Midterm Fall 2017 Section 104 Dijana Kreso

MTH 132 Exam 2 November 21st, Without fully opening the exam, check that you have pages 1 through 11.

Designing Information Devices and Systems II Fall 2018 Elad Alon and Miki Lustig Homework 9

MTH 132 Solutions to Exam 2 Apr. 13th 2015

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

Designing Information Devices and Systems I Spring 2016 Elad Alon, Babak Ayazifar Midterm 2. Exam location: 145 Dwinelle, last SID# 2

Q1 Q2 Q3 Q4 Tot Letr Xtra

MATH 1553 SAMPLE FINAL EXAM, SPRING 2018

MATH 1553, SPRING 2018 SAMPLE MIDTERM 1: THROUGH SECTION 1.5

Physics Grading Sheet.

Problem Score Problem Score 1 /12 6 /12 2 /12 7 /12 3 /12 8 /12 4 /12 9 /12 5 /12 10 /12 Total /120

Math 51 First Exam October 19, 2017

Linear Algebra. Instructor: Justin Ryan

University of Maryland Department of Physics. Spring 2009 Final Exam 20. May (175 points) Post grades on web? (Initial, please) Yes No

Problem Points Problem Points Problem Points

MATH 1553, C.J. JANKOWSKI MIDTERM 1

MTH 132 Solutions to Exam 2 November 21st, Without fully opening the exam, check that you have pages 1 through 11.

Spring 2015 Midterm 1 03/04/15 Lecturer: Jesse Gell-Redman

EECS 16A: Designing Information Devices and Systems I Department of Electrical Engineering and Computer Sciences UNIVERSITY OF CALIFORNIA, BERKELEY

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

Without fully opening the exam, check that you have pages 1 through 11.

Without fully opening the exam, check that you have pages 1 through 10.

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

MTH 132 Solutions to Exam 2 Nov. 23rd 2015

You have 3 hours to complete the exam. Some questions are harder than others, so don t spend too long on any one question.

Midterm Exam 1 (Solutions)

MATH 1553, SPRING 2018 SAMPLE MIDTERM 2 (VERSION B), 1.7 THROUGH 2.9

Test 3 - Answer Key Version B

This is a closed book exam. No notes or calculators are permitted. We will drop your lowest scoring question for you.

MTH 234 Exam 1 February 20th, Without fully opening the exam, check that you have pages 1 through 11.

Without fully opening the exam, check that you have pages 1 through 11.

STUDENT NAME: STUDENT SIGNATURE: STUDENT ID NUMBER: SECTION NUMBER RECITATION INSTRUCTOR:

Solutions for week 1, Cryptography Course - TDA 352/DIT 250

Economics 345: Applied Econometrics Section A01 University of Victoria Midterm Examination #2 Version 2 Fall 2016 Instructor: Martin Farnham

Last Name: First Name: High School Name: Individual Exam 3 Solutions: Kinetics, Electrochemistry, and Thermodynamics

Name: Student ID: Instructions:

GOOD LUCK! 2. a b c d e 12. a b c d e. 3. a b c d e 13. a b c d e. 4. a b c d e 14. a b c d e. 5. a b c d e 15. a b c d e. 6. a b c d e 16.

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Midterm 1

Math 51 Second Exam May 18, 2017

MATH 1553 PRACTICE FINAL EXAMINATION

Designing Information Devices and Systems I Spring 2017 Babak Ayazifar, Vladimir Stojanovic Homework 6

Fall 2014 Math 109 Exam # 1 September 24, 2014

Designing Information Devices and Systems I Spring 2019 Lecture Notes Note 2

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

Question: Total Points: Score:

DON T PANIC! If you get stuck, take a deep breath and go on to the next question. Come back to the question you left if you have time at the end.

18.06 Quiz 2 April 7, 2010 Professor Strang

Transcription:

EECS 16A Designing Information Devices and Systems I Fall 2017 Midterm 1 Exam Location: 155 Dwinelle PRINT your student ID: PRINT AND SIGN your name:, (last name) (first name) (signature) PRINT your discussion section and GSI(s) (the one you attend): Name and SID of the person to your left: Name and SID of the person to your right: Name and SID of the person in front of you: Name and SID of the person behind you: 1. What did you do over the summer? (1 Point) 2. What activity do you really enjoy? (1 Point) Do not turn this page until the proctor tells you to do so. You may work on the questions above. EECS 16A, Fall 2017, Midterm 1 1

Extra page for scratchwork. If you want any work on this page to be graded, please refer to this page on the problem s main page. EECS 16A, Fall 2017, Midterm 1 2

3. Fun Times with Inverses (7 Points) Consider the following matrix A. 2 0 2 A = 2 0 2 0 1 1 (a) (5 Points) Calculate its inverse A 1 if it exists. (b) (2 Points) If an n n matrix A does not have an inverse, is the dimension of A s column space (i.e., the span of the column vectors of A) less than, greater than, or equal to n? Circle your answer(s). LESS THAN GREATER THAN EQUAL TO EECS 16A, Fall 2017, Midterm 1 3

4. Mechanical Basis (4 Points) 1 0 1 Given 1, 1, and 1, find a value of x such that these three vectors do not form a basis for R 3. Show 0 1 x why your choice of x makes it so these vectors do not form a basis for R 3. EECS 16A, Fall 2017, Midterm 1 4

5. Mechanical Eigenvalues (5 Points) Consider the matrix A below. A = [ ] 1 a b 1 Find the eigenvalues of A in terms of a and b. EECS 16A, Fall 2017, Midterm 1 5

Extra page for scratchwork. If you want any work on this page to be graded, please refer to this page on the problem s main page. EECS 16A, Fall 2017, Midterm 1 6

6. Operation Crypto (17 Points) Agent 16A, you have been tasked with an important mission. The Berkeley Intelligence Agency has been collecting important information on the other engineering schools (known as the adversary) using our field agents. Through their last reports, we have found out that our adversaries have been secretly sharing milk tea recipes through cryptographic ciphers in the form of Matrix Transformations, and we want to find out what these recipes are! p 2 The adversary uses n n preshared key matrices to encode plaintext vectors p =.. p n p 1, p 2,..., p n are real numbers from 0 to 25 that map to A through Z. That is, 0 maps to A, and 25 maps to Z. To get the ciphertext vector, they multiply their key matrix k 11 k 1n K =....., k n1 k nn where all the elements in K are real numbers, with their plaintext vector p to get c 1 c 2 K p = c =., c n where the elements in c are real numbers that don t necessarily map to anything. To a passive observer, the entries in c look like nonsense. (a) (4 Points) In a hypothetical scenario, MIT wants to send Stanford a milk tea recipe p by sending c = K p. What has to be true about K for Stanford be able to recover p? In that case, how would Stanford recover the plaintext recipe p (decrypt the ciphertext vector)? p 1 EECS 16A, Fall 2017, Midterm 1 7

(b) (4 Points) Agent 16A, your first objective is to find the key. Your mission is to perform what is called a Known Plaintext Attack, where the attacker (in this case, us) knows a plaintext vector p and its corresponding ciphertext vector c, which we will call a plaintext/ciphertext pair. One field agent was able to uncover a plaintext/ciphertext pair: ( [ ] 1 p 1 =, c 14 1 = [ ]) 29 72 For a 2 2 key matrix K, is it possible to fully determine K using just this pair? Briefly justify your answer. Hint: How many elements are there in K? (c) (4 Points) In general, for an n n key matrix K, at least how many plaintext/ciphertext vector pairs do we need to be able to fully determine K? EECS 16A, Fall 2017, Midterm 1 8

(d) (5 Points) Through her dedication to the mission, one of the field agents was able to uncover a second plaintext/ciphertext pair. Find the key matrix K, such that c i = K p i. Don t let her efforts be in vain! For your convenience, here are both plaintext/ciphertext pairs. ( [ ] 1 p 1 =, c 14 1 = [ ]) ( 29, p 72 2 = [ ] 1, c 0 2 = [ ]) 1 2 EECS 16A, Fall 2017, Midterm 1 9

Extra page for scratchwork. If you want any work on this page to be graded, please refer to this page on the problem s main page. EECS 16A, Fall 2017, Midterm 1 10

7. 3D Imaging (18 Points) In lab, you built a 2D imaging system. In this problem, we will explore how to build a 3D tomography system. We will be trying to image voxels, which are a generalization of pixels in 3 dimensions. Each voxel has a value associated with it that represents how much light passes through it. This is equivalent to how dark or light the voxel appears. We would like to image a 2 2 2 structure. Each incident light ray passes all the way through the structure. Figure 7.1 demonstrates a few different example rays passing through our 3D structure. Note that lighter colored voxels represent voxels through which the light ray passes. Figure 7.1: Three different incident rays. As in the imaging lab, we will represent the three-dimensional 2 2 2 structure as one column vector i with 8 elements. We will then apply rays that pass through the object represented by row vectors h T k. Let the matrix H be the matrix whose row vectors are h T k. Finally, we will measure the vector s where s = H i. (a) (5 Points) Suppose that we have the matrix H shown below. Find the null space of this matrix H. 1 0 0 0 1 0 0 0 H = 0 1 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 1 EECS 16A, Fall 2017, Midterm 1 11

(b) (5 Points) Find two objects that would give the same s when measured using the mask matrix H from part (a). Write down the corresponding i vectors for the two objects. Note that the two i vectors can contain any real number you would like them to, but the two vectors cannot be equal to each other. (For example i 1 = i 2 = 0 is not a valid solution.) EECS 16A, Fall 2017, Midterm 1 12

Extra page for scratchwork. If you want any work on this page to be graded, please refer to this page on the problem s main page. EECS 16A, Fall 2017, Midterm 1 13

(c) (8 Points) Our matrix H only has four rows corresponding to four measurements. Add another four rows to the original H matrix to make a new mask matrix H of dimensions 8 8 and select the entries of the additional four rows such that we can always uniquely reconstruct the imaged object. Each row of your new matrix can have at most two 1 s in it, and the rest of the entries must be 0. EECS 16A, Fall 2017, Midterm 1 14

8. The Art of Proving (14 Points) Dr. Alon and Dr. Sahai are two passionate scientists who are currently working on linear algebra. They have been working for a long time and have hit some major roadblocks. Help them out by proving some things that they are stuck on! Let A and B be two matrices with dimensions, such that AB is valid. (a) (4 Points) Show that if v is in the null space of B, then v is in the null space of AB. (b) (4 Points) Show that if λ is an eigenvalue of an n n matrix A, then for all c R, λ = λ + c is an eigenvalue of the matrix A + ci, where I is the n n identity matrix. EECS 16A, Fall 2017, Midterm 1 15

Extra page for scratchwork. If you want any work on this page to be graded, please refer to this page on the problem s main page. EECS 16A, Fall 2017, Midterm 1 16

(c) (6 Points) Suppose that A and B are n n matrices that share the same n distinct eigenspaces. That is, there exist n non-zero vectors v 1, v 2,..., v n, such that A v i = λ A,i v i and B v i = λ B,i v i, where λ A,i is not necessarily equal to λ B,i. Then, prove that the matrices A and B commute, that is, AB = BA. Hint: Choose an appropriate basis. EECS 16A, Fall 2017, Midterm 1 17

Extra page for scratchwork. If you want any work on this page to be graded, please refer to this page on the problem s main page. EECS 16A, Fall 2017, Midterm 1 18

9. Rabbits, Foxes, and the Circle of Life (21 Points) If rabbits are such notoriously fast breeders, why haven t we all been crushed under a (warm, comfortable) mountain of rabbits by now? Well, consider the hungry foxes... Let s examine the case of Tilden Park, circa 1000 CE. This vast beautiful space is initially filled with 200 foxes and 1000 rabbits. Since rabbits like to feast on the pleantiful greenery, the population of rabbits grows by 10% each month. Every month, 40% of the foxes either die or leave the park. The population of foxes increases by 20% of the population of rabbits each month. Similarly the population of rabbits decreases by 20% of the fox population each month. This can be summarized by the system shown below, where f [t] and r[t] represent the number of foxes and rabbits in the park each month t. [ ] f [t + 1] = r[t + 1] [ 0.6 0.2 0.2 1.1 ][ ] f [t] r[t] In this problem, we will use linear algebra to explore the predator-prey relationship to figure out if we should be submerged in rabbits, on the run from armies of foxes, or in some peaceful equilibrium state. (a) (8 Points) We want to know what will happen to the populations of the two species as time goes on. Will the population numbers converge? Note: You do not need to find what the populations converge to, just whether they converge or not. You may or may not find it useful to know that 1.7 2 = 2.89. EECS 16A, Fall 2017, Midterm 1 19

Extra page for scratchwork. If you want any work on this page to be graded, please refer to this page on the problem s main page. EECS 16A, Fall 2017, Midterm 1 20

(b) (5 Points) Assuming that there is some known total populaton of foxes and rabbits in the year 2000, calculate what fraction of that total population is rabbits. You can assume that 1000 years is a good approximation for an infinite amount of time. EECS 16A, Fall 2017, Midterm 1 21

(c) (8 Points) In the far future, a curious child digs up a strange fossil in the park. It seems like Ancient Dino-foxes once inhabited the park! Using advanced future Zoologic-Mathematics, graduate students from the University of MegaCalifornia, Berkeley derive the following eigenvalue/eigenvector pairs describing the species interactions from the fossils: ( λ 1 = 1, v 1 = Reconstruct the state transition matrix. [ 2 1 ]), ( λ 2 = 0.5, v 2 = [ ]) 1 1 EECS 16A, Fall 2017, Midterm 1 22

Doodle page! Draw us something if you want or give us suggestions, compliments, or complaints. You can also use this page to report anything suspicious that you might have noticed. EECS 16A, Fall 2017, Midterm 1 23

EECS 16A Fall 2017 Designing Information Devices and Systems I Midterm 1 Instructions Read the following instructions before the exam. You have 120 minutes for the exam. There are 9 problems of varying numbers of points. The problems are of varying difficulty, so pace yourself accordingly and avoid spending too much time on any one question until you have gotten all of the other points you can. There are 88 points possible on this exam. Partial credit will be given for substantial progress on each problem. Distribution of the points: Problem 1 2 3 4 5 6 7 8 9 Points 1 1 7 4 5 17 18 14 21 The exam is printed double-sided. Do not forget the problems on the back sides of the pages! There are 24 pages on the exam, so there should be 12 sheets of paper in the exam. Notify a proctor immediately if a page is missing. Do not tear out or remove any of the pages. Do not remove the exam from the exam room. Write your name and your student ID on each page before time is called. If a page is found without a name and a student ID, we are not responsible for identifying the student who wrote that page. You may consult ONE handwritten 8.5 11 note sheet (front and back). No phones, calculators, tablets, computers, other electronic devices, or scratch paper are allowed. No collaboration is allowed, and do not attempt to cheat in any way. Cheating will not be tolerated. Please write your answers legibly in the spaces provided on the exam; we will not grade outside a problem s designated space unless you specifically tell us where to find your work. In general, show all of your work in order to receive full credit. If you need to use the restrooms during the exam, bring your student ID card, your phone, and your exam to a proctor. You can collect them once you return from the restrooms. Our advice to you: if you can t solve the problem, state and solve a simpler one that captures at least some of its essence. You might get some partial credit, and more importantly, you will perhaps find yourself on a path to the solution. Good luck! EECS 16A, Fall 2017, Midterm 1 Instructions 1