0% found this document useful (0 votes)
49 views

EE16A Spring 2020 MT1

1. The document is an exam for EECS 16A that collects information from students about their sections, neighbors, and asks short response questions. 2. Question 4 presents a passage with smudged characters labeled 1-10 and asks students to identify the correct expressions for each smudge from multiple choices. 3. Question 7 defines matrices Q and R and asks students to find eigenvalues, determine if a system has non-zero solutions, draw a state transition diagram, and write expressions for the state vector at different times as matrix-vector products.

Uploaded by

Annabel Yau
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

EE16A Spring 2020 MT1

1. The document is an exam for EECS 16A that collects information from students about their sections, neighbors, and asks short response questions. 2. Question 4 presents a passage with smudged characters labeled 1-10 and asks students to identify the correct expressions for each smudge from multiple choices. 3. Question 7 defines matrices Q and R and asks students to find eigenvalues, determine if a system has non-zero solutions, draw a state transition diagram, and write expressions for the state vector at different times as matrix-vector products.

Uploaded by

Annabel Yau
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

1

EECS 16A Designing Information Devices and Systems I


Spring 2020 Midterm 1

Exam Location: Soda 380

P RINT your student ID:

P RINT AND S IGN your name: ,


(last name) (first name) (signature)

P RINT time of your Monday section and the GSI’s name:

P RINT time of your Wednesday section and the GSI’s name:

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 are you looking forward to over Spring Break? (3 points)

2. Approximately what % of lectures do you watch regularly, either online or in person? (0 points)
For statistical purposes only.
0% 25% 50% 75% 100%

3. Tell us about something that makes you happy. (3 points)

Do not turn this page until the proctor tells you to do so. You may work on the questions above.

EECS 16A, Spring 2020, Midterm 1 1


2

P RINT your student ID:

Extra page for scratchwork.


Work on this page will NOT be graded.

EECS 16A, Spring 2020, Midterm 1 2


3

P RINT your student ID:

4. Splotchy Writing (10 points)


Professor Courtade writes with a sharpie to accommodate the vision of as many people as possible. Unfortu-
nately, some characters get smudged, which makes them difficult to read. The following is a (hypothetical)
passage from lecture notes, and the smudges are labeled 1 , 2 , . . . , 10 . Your task is to identify correct
expressions for each of the smudges.

Let A ∈ Rn× 1 be a matrix with rank r. It is always possible to write A in terms of its compact SVD

A = UΣV > ,

where Σ is a diagonal r × r matrix, and U ∈ R 2 × 3 and V ∈ R 4 × 5 have orthonormal columns. This


means that U >U = I and V >V = I , where we write Im to denote the m × 8 identity matrix, for an
6 7
integer m. The columns of U form a basis for the range of A, which is is defined as

range(A) = {A~x | ~x ∈ Rk }.

Note that range(A) is a subspace of R 9 , which has dimension 10 .

Select the values for each smudge from the multiple choice below. For each smudge, completely fill in the
circle next to the correct answer. (Hint: Resist the temptation to get distracted by unfamiliar terminology...
that isn’t what this question is about.)

1 k m n r
2 k m n r
3 k m n r
4 k m n r
5 k m n r
6 k m n r
7 k m n r
8 k m n r
9 k m n r
10 k m n r

EECS 16A, Spring 2020, Midterm 1 3


4

P RINT your student ID:

5. Matrix Inversion (10 points)


You landed your first job at 16Atech (the Bay Area’s newest and hottest tech company), and your first
assignment is to invert a matrix A ∈ Rn×n . You say “no problem”, and implement Gaussian elimination.
You obtain the following reduction of the augmented matrix:
[A|I] −→ [I|P].
The dimension n is extremely large, so the computation takes several days to complete, and you give your
boss the matrix P ∈ Rn×n just minutes before the deadline.

(a) (2 points) Your boss panics, saying “Oh, no! Your procedure only guarantees that AP = I and not
necessarily that PA = I.” In one sentence, concisely explain why your boss thinks this might be an
issue.

(b) (8 points) You try to calm them down, saying “Don’t worry, the matrix also satisfies PA = I, and
therefore P is the inverse of A just like you wanted. I’ll prove it to you...”
Your proof consists of the following two steps (fill in the details as your answer to this question):
Step 1: Argue that your matrix P is the unique Q ∈ Rn×n satisfying AQ = I.
Step 2: Prove that PA = AP = I. (Hint: consider the matrix A(P + PA − I))
As suggested by part (a), you should not assume that A−1 exists. Proving that it does is the point of
this problem.

EECS 16A, Spring 2020, Midterm 1 4


5

P RINT your student ID:

6. Tomography (19 points)


Recall that in our simple tomography example of 4 pixels arranged into a 2 × 2 matrix, our initial set of mea-
surements produced the following system of equations with unknowns x1 , . . . , x4 and measured intensities
b1 , . . . , b4 :

x1 +x2 = b1
x3 +x4 = b2
x1 +x3 = b3
x2 +x4 = b4

(a) (3 points) Write the above system of equations in matrix-vector form A~x = ~b.

(b) (8 points) Use Gaussian elimination to find a basis for the nullspace of your matrix in part (a). Show
your work.

EECS 16A, Spring 2020, Midterm 1 5


6

(c) (2 points) Suppose ~x0 denotes the correct pixel values, which of course satisfy A~x0 = ~b. Give another
solution ~x1 to the system of equations A~x = ~b, satisfying ~x1 6= ~x0 . Leave your answer in terms of ~x0 .

(d) (2 points) Suppose we add the measurement

x1 + x4 = b5 .

Will the resulting new system of equations always have a solution for any values b1 , b2 , . . . , b5 ? Com-
pletely fill in the circle next to the correct answer.

Yes No

EECS 16A, Spring 2020, Midterm 1 6


7

P RINT your student ID:

(e) (4 points) Assuming a solution exists for the new system of equations in part (d), will the solution be
unique? Justify your answer by showing work to support your conclusion.

EECS 16A, Spring 2020, Midterm 1 7


8

P RINT your student ID:

7. Dynamical Systems (26 points)


Define matrices Q, R ∈ R2×2 according to

0 3/4 0 1
   
Q= , R= .
1 1/4 1 0

(a) (5 points) Find the eigenvalues for the matrix Q.

(b) (4 points) Consider a system with state vector ~x[n] ∈ R2 at time n ≥ 1 given by

~x[n] = Q~x[n − 1].

Is there a non-zero vector ~x satisfying ~x = Q~x ? If yes, give one such vector.

EECS 16A, Spring 2020, Midterm 1 8


9

(c) (3 points) Draw the state-transition diagram for the system in part (b). Label your nodes "A" and "B".

(d) (4 points) Now, consider a system with state vector ~w[n] ∈ R2 at time n ≥ 1 given by:
(
Q~w[n − 1] if n is odd
~w[n] =
R~w[n − 1] if n is even.

Write expressions for ~w[1], ~w[2], ~w[3] and ~w[4] in terms of ~w[0] and Q and R. Write each answer in the
form of a matrix-vector product.

EECS 16A, Spring 2020, Midterm 1 9


10

P RINT your student ID:

>
(e) (10 points) Suppose we start the system of part (d) with state ~w[0] = 11/14 3/14 . Find expres-


sions for ~weven and ~wodd , which are defined according to

~weven = lim ~w[2k], ~wodd = lim ~w[2k + 1].


k→∞ k→∞

In words, ~weven and ~wodd describe the long-term behavior of the system at even and odd time-instants,
respectively. (Hint: you can avoid computation by thinking about the system at even time-instants in
terms of a state-transition diagram.)

EECS 16A, Spring 2020, Midterm 1 10


11

P RINT your student ID:

8. Linearly Independent Solutions (5 points)


Let A ∈ R17×32 satisfy dim(C(A)) = 9, where C(A) denotes the column-space of A. How many linearly
independent solutions can be found to the system of equations A~x = ~0?
Note: Be careful. You are not being asked how many solutions exist for this system of equations, but rather
how many linearly independent solutions can be found. You may just give a numerical answer; no work is
required.

EECS 16A, Spring 2020, Midterm 1 11


12

P RINT your student ID:

9. Inverses and Transposes (8 points)


Given an invertible matrix A ∈ Rn×n , use the definition of matrix inverse to prove that

(AT )−1 = (A−1 )T .

EECS 16A, Spring 2020, Midterm 1 12


13

P RINT your student ID:

10. Orthogonal Complements (16 points)


Consider the vector space Rn , and let U be a subspace of Rn . We define the set U⊥ ⊂ Rn , called the
orthogonal complement of U, according to

U⊥ = {~x ∈ Rn | ~u>~x = 0 for all ~u ∈ U}.

(a) (4 points) Show that U⊥ is a subspace of Rn .

(b) (4 points) Find a concise expression for the intersection U ∩ U⊥ . Justify your answer.

EECS 16A, Spring 2020, Midterm 1 13


14

(c) (6 points) Working in dimension n = 3, consider the subspace

 1 0 
   

U = span 2 , 1 .


3 1
 

Find a basis for U⊥ .

(d) (2 points) For the subspaces U and U⊥ of part (c), show that U + U⊥ = R3 .

EECS 16A, Spring 2020, Midterm 1 14


15

P RINT your student ID:

Extra page for scratchwork.


Work on this page will NOT be graded.

EECS 16A, Spring 2020, Midterm 1 15


16

P RINT your student ID:

Extra page for scratchwork.


Work on this page will NOT be graded.

EECS 16A, Spring 2020, Midterm 1 16


17

P RINT your student ID:

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, Spring 2020, Midterm 1 17


EECS 16A Designing Information Devices and Systems I
Spring 2020 Midterm 1 Instructions

Read the following instructions before the exam.

There are 9 problems of varying numbers of points. You have 120 minutes for the exam. 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 18 pages on the exam, so there should be 9 sheets of paper in the exam. The exam is printed
double-sided. Do not forget the problems on the back sides of the pages! 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.

No collaboration is allowed, and do not attempt to cheat in any way. Cheating will not be tolerated.

Write your student ID on each page before time is called. If a page is found without 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.

Please write your answers legibly in the boxed spaces provided on the exam. The space provided should
be adequate. If you still run out of space, please use a boxed space for another part of the same problem
and clearly tell us in the original problem space where to look.

In general, show all of your work in order to receive full credit.

Partial credit will be given for substantial progress on each problem.

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 will perhaps find yourself on a path to the solution.

Good luck!

Do not turn this page until the proctor tells you to do so.

EECS 16A, Spring 2020, Midterm 1 Instructions

You might also like