Final Examination. CS 205A: Mathematical Methods for Robotics, Vision, and Graphics (Spring 2016), Stanford University

Similar documents
Final Examination. CS 205A: Mathematical Methods for Robotics, Vision, and Graphics (Fall 2013), Stanford University

CS 234 Midterm - Winter

EE 278 October 26, 2017 Statistical Signal Processing Handout #12 EE278 Midterm Exam

you expect to encounter difficulties when trying to solve A x = b? 4. A composite quadrature rule has error associated with it in the following form

Name: ID.NO: Fall 97. PLEASE, BE NEAT AND SHOW ALL YOUR WORK; CIRCLE YOUR ANSWER. NO NOTES, BOOKS, CALCULATORS, TAPE PLAYERS, or COMPUTERS.

Preliminary Examination, Numerical Analysis, August 2016

Review. Numerical Methods Lecture 22. Prof. Jinbo Bi CSE, UConn

Numerical Analysis Preliminary Exam 10 am to 1 pm, August 20, 2018

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

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

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

MLC Practice Final Exam

ECE580 Exam 1 October 4, Please do not write on the back of the exam pages. Extra paper is available from the instructor.

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

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

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

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

Do not turn over until you are told to do so by the Invigilator.

Numerical Analysis Preliminary Exam 10.00am 1.00pm, January 19, 2018

MA/OR/ST 706: Nonlinear Programming Midterm Exam Instructor: Dr. Kartik Sivaramakrishnan INSTRUCTIONS

Math 2114 Common Final Exam May 13, 2015 Form A

Page Points Score Total: 210. No more than 200 points may be earned on the exam.

Math 215/255 Final Exam (Dec 2005)

No calculators, cell phones or any other electronic devices can be used on this exam. Clear your desk of everything excepts pens, pencils and erasers.

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b)

Fall 2016 Exam 1 HAND IN PART NAME: PIN:

I have read and understood the instructions regarding academic dishonesty:

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

Spring 2018 Exam 1 MARK BOX HAND IN PART NAME: PIN:

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

Spring 2016 Exam 1 without number 13.

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

ECE580 Exam 2 November 01, Name: Score: / (20 points) You are given a two data sets

Interpolation and Approximation

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

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

MA EXAM 1 INSTRUCTIONS VERSION 01 September 13, Section # and recitation time

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

MA162 EXAM III SPRING 2017 APRIL 11, 2017 TEST NUMBER 01 INSTRUCTIONS:

Lynch 2017 Page 1 of 5. Math 150, Fall 2017 Exam 1 Form A Multiple Choice

MATH 251 Final Examination August 10, 2011 FORM A. Name: Student Number: Section:

DEPARTMENT OF MATHEMATICS

Math 51 Second Exam May 18, 2017

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

x n+1 = x n f(x n) f (x n ), n 0.

MA2501 Numerical Methods Spring 2015

Integration, differentiation, and root finding. Phys 420/580 Lecture 7

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

APPM 2360: Final Exam 10:30am 1:00pm, May 6, 2015.

Lynch, October 2016 Page 1 of 5. Math 150, Fall 2016 Exam 2 Form A Multiple Choice Sections 3A-5A

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

Fixed point iteration and root finding

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by

5. Hand in the entire exam booklet and your computer score sheet.

Fall 2018 Exam 1 NAME:

Chapter 5: Numerical Integration and Differentiation

MTH 133 Solutions to Exam 2 November 15, Without fully opening the exam, check that you have pages 1 through 13.

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

MTH 133 Exam 2 November 16th, Without fully opening the exam, check that you have pages 1 through 12.

Math 19 Practice Exam 2B, Winter 2011

Preliminary/Qualifying Exam in Numerical Analysis (Math 502a) Spring 2012

MLC Practice Final Exam

Poisson Equation in 2D

LHS Algebra Pre-Test

CLASS NOTES Models, Algorithms and Data: Introduction to computing 2018

ASSIGNMENT BOOKLET. Numerical Analysis (MTE-10) (Valid from 1 st July, 2011 to 31 st March, 2012)

Q1 Q2 Q3 Q4 Tot Letr Xtra

COURSE Numerical integration of functions

University of British Columbia Math 307, Final

No calculators, cell phones or any other electronic devices can be used on this exam. Clear your desk of everything excepts pens, pencils and erasers.

Physics 115/242 Romberg Integration

Math 164 (Lec 1): Optimization Instructor: Alpár R. Mészáros

COURSE Numerical integration of functions (continuation) 3.3. The Romberg s iterative generation method

Bindel, Spring 2012 Intro to Scientific Computing (CS 3220) Week 12: Monday, Apr 16. f(x) dx,

MA EXAM 3 INSTRUCTIONS VERSION 01 April 14, Section # and recitation time

MA EXAM 3 INSTRUCTIONS VERSION 01 April 18, Section # and recitation time

Math Makeup Exam - 3/14/2018

Sign the pledge. On my honor, I have neither given nor received unauthorized aid on this Exam : 11. a b c d e. 1. a b c d e. 2.

MA EXAM 2 INSTRUCTIONS VERSION 01 March 10, Section # and recitation time

Exam in Numerical Methods (MA2501)

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.

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 5. Nonlinear Equations

MTH 133 Solutions to Exam 2 April 19, Without fully opening the exam, check that you have pages 1 through 12.

Answer Key b c d e. 14. b c d e. 15. a b c e. 16. a b c e. 17. a b c d. 18. a b c e. 19. a b d e. 20. a b c e. 21. a c d e. 22.

MA2501 Numerical Methods Spring 2015

MATH 52 FINAL EXAM DECEMBER 7, 2009

MA 126 CALCULUS II Wednesday, December 14, 2016 FINAL EXAM. Closed book - Calculators and One Index Card are allowed! PART I

Fall 2017 Exam 1 MARK BOX HAND IN PART NAME: PIN:

CS224N: Natural Language Processing with Deep Learning Winter 2018 Midterm Exam

Computation Fluid Dynamics

Course Information Course Overview Study Skills Background Material. Introduction. CS 205A: Mathematical Methods for Robotics, Vision, and Graphics

Math Exam 2-11/17/2014

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

Examples of solutions to the examination in Computational Physics (FYTN03), October 24, 2016

Department of Mathematics California State University, Los Angeles Master s Degree Comprehensive Examination in. NUMERICAL ANALYSIS Spring 2015

MA 125 CALCULUS I SPRING 2007 April 27, 2007 FINAL EXAM. Name (Print last name first):... Student ID Number (last four digits):...

Test 3 Version A. On my honor, I have neither given nor received inappropriate or unauthorized information at any time before or during this test.

An Introduction to Numerical Methods for Differential Equations. Janet Peterson

Math 51 Midterm 1 July 6, 2016

Transcription:

Final Examination CS 205A: Mathematical Methods for Robotics, Vision, and Graphics (Spring 2016), Stanford University The exam runs for 3 hours. The exam contains seven problems. You must complete the first problem and five of problems 2-7. Circle the problems you want graded on the chart below; otherwise we will grade the first five questions on which you have provided any written answer. The exam is closed-book. You may use two double-sided 8 1 /2 11 sheets of notes. Write your solutions in the space provided. If you need more space, write on the back of the sheet and indicate that you have done so. Additional pages are provided at the back; please indicate on the original problem if you continue your answer there. Do not spend too much time on any problem. Read them all before beginning. Show your work, as partial credit will be awarded. Circle the five additional problems you want graded. Problem 1 2 3 4 5 6 7 Total Score The Stanford Honor Code 1. The Honor Code is an undertaking of the students, individually and collectively: (a) that they will not give or receive aid in examinations; that they will not give or receive unpermitted aid in class work, in the preparation of reports, or in any other work that is to be used by the instructor as the basis of grading; (b) that they will do their share and take an active part in seeing to it that others as well as themselves uphold the spirit and letter of the Honor Code. 2. The faculty on its part manifests its confidence in the honor of its students by refraining from proctoring examinations and from taking unusual and unreasonable precautions to prevent the forms of dishonesty mentioned above. The faculty will also avoid, as far as practicable, academic procedures that create temptations to violate the Honor Code. 3. While the faculty alone has the right and obligation to set academic requirements, the students and faculty will work together to establish optimal conditions for honorable academic work. Signature Name SUID 1

You must complete this problem. Problem 1 (Short answer). (a) Given a quadrature rule of the form 1 1 f(x)dx n i=1 w if(x i ) what is a quadrature rule for b a f(x)dx expressed in terms of the w i and x i values? [2 points] ( ) A x λ x (b) (Heath 4.29) Consider the roots of the function f( x, λ) = x mapping R x 1 n+1 R n+1. ( ) ( ) ( ) ( ) δ xk xk+1 xk δ xk Derive an expression for the Newton update where = +. δλ k λ k+1 λ k δλ k (Hint: First derive the Jacobian J( x, λ) R (n+1) (n+1).) [3 points] 2

You must complete this problem. (c) Consider the degree-n polynomial p(x) = n k=0 C kx k where C n = 1. Its companion matrix is the n-by-n sparse matrix 0 1 0... 0 0 0 1... 0 M = 0 0 0... 0........ C 0 C 1 C 2... C n 1 Show that if λ j is a root of p, i.e., p(λ j ) = 0, then v = [1 λ j λ 2 j... λj n 1 ] is an eigenvector of M corresponding to eigenvalue λ j. [2 points] (d) Give three reasons why it may be preferrable to compute the roots of a degree-n polynomial p(x) by computing the eigenvalues of M instead of using root-finding techniques. [3 points] (1) (2) (3) 3

Circle which five of problems 2-7 you want graded on page 1. Problem 2 (Optimization). Consider the problem of finding the smallest ellipse enclosing n points p i R 2, i = 1... n. The ellipse can be parameterized by ( c 1, c 2, s) where the location of its two focii are c 1 and c 2 R 2, and s is the length of an inextensible virtual string (dashed line) which connects the two focii to any point p on the ellipse s surface, S. If we define a string-like length function as l( p, c 1, c 2 ) p c 1 2 + p c 2 2, then all points p S satisfy s = l( p, c 1, c 2 ). Furthermore, all points inside the ellipse will have l values smaller than s. (a) Write down an optimization problem to determine the parameters of the smallest-area ellipse that encloses all n points. Note that an ellipse has major axis length 2a = s, minor axis length 2b, and area πab. (Hint: Express b in terms of ellipse parameters, ( c 1, c 2, s).) [5 points] 4

(b) Write down the KKT conditions for your optimization problem. [5 points] 5

Problem 3 (ODE). Circle which five of problems 2-7 you want graded on page 1. (Solomon 15.11(a)) Fehlberg s method: Suppose we carry out a single time step of y = F [ y] with size h starting from y(0) = y 0. Make the following definitions: We can write two estimates of y(h): v 1 F [ y 0 ] v 2 F [ y 0 + h v 1 ] v 3 F [ y 0 + h 4 ( v 1 + v 2 )]. y (1) y 0 + h 2 ( v 1 + v 2 ) y (2) y 0 + h 6 ( v 1 + v 2 + 4 v 3 ). (a) Show that there is some constant K R such that y (1) = y(h) + Kh 3 + O(h 4 ). [5 points] 6

(b) Show that y (2) = y(h) + O(h 4 ). [5 points] 7

Circle which five of problems 2-7 you want graded on page 1. Problem 4 (Gauss-Newton Matrix Inversion). Suppose A R n n is nonsingular and X 0 R n n is given. The iteration defined by X k+1 = X k (2I AX k ) is the matrix analog of Newton s method for the function f(x) = a (1/x). Define the error at the k th step by E k A 1 X k, and the (easier to compute) residual by R k I AX k. (a) Derive an expression for R k+1 in terms of R k. [3 points] (b) Derive an expression for E k+1 in terms of E k. [3 points] (c) What is a good choice for X 0? Why? [4 points] 8

Circle which five of problems 2-7 you want graded on page 1. Problem 5 (Extrapolating to Zero). Recall that Richardson extrapolation and Romberg integration exploit the specific polynomial structure of the error versus h to reduce truncation error. Consider the case where you can numerically evaluate an expensive function f(h), but only know that the leading order error is of the form f(h) f 0 + Ch α where f 0 = f(0), but C and α > 0 are unknown. Given three function evaluations at f 1 = f(h 1 ), f 2 = f(h 2 ), f 3 = f(h 3 ), h 1 = h, h 2 = 2h, h 3 = 4h, derive a method to estimate f 0. (Hint: First solve for α, then C, and finally f 0.) [10 points] 9

Circle which five of problems 2-7 you want graded on page 1. Problem 6 (Integration and Differentiation). (a) (C&K 11.2.9) The problem x (t) = x + y 2x + 3y + logt y (t) = 2x 3y + 5x + ty sint x(0) = 1, x (0) = 2 y(0) = 3, y (0) = 4 is to be put into the form of an autonomous system of five first-order equations, i.e., without explicit t dependence. Give the resulting system and the appropriate initial values. [4 points] (b) Derive a numerical integration formula of the form h h f(x)dx Af(0) + Bf ( h) + Cf (h), that is exact for polynomials of as high a degree as possible. [3 points] 10

(c) Consider a lattice of square cells with vertices (x i, y j ) = (ih, jh), and a function u(x, y) discretized at uniformly spaced vertices, u i,j = u(x i, y j ). Provide an estimate for the directional derivative, u n = ˆn u (where ˆn is a unit vector) at a location (x, y), where x [x i, x i+1 ] and y [y j, y j+1 ] and so (x, y) is in the cell with corner values u i,j, u i+1,j, u i,j+1 and u i+1,j+1. (Hint: Compute the gradient of a bilinear interpolant.) [3 points] 11

Problem 7 (PDEs). Circle which five of problems 2-7 you want graded on page 1. In this problem you will discretize the 2D Laplacian on a graded mesh, i.e., a nonuniform 2D rectilinear grid (see figure). Specifically you will determine the 5-point finitedifference approximation to the Laplacian 2 u on nonuniform grids with varying δx and δy spacing. (a) First, consider the simpler 1D problem of interpolating u(x) at three nonuniform locations, (x, u) : ( δx-1, u-1), (0, u 0 ), (δx 1, u 1 ). Give an expression for a quadratic 1D interpolant, f(x), passing through these values. [4 points] 12

(b) Derive an expression for the interpolant s second derivative at zero, f (0). [4 points] (c) Use this result to write an expression for the Laplacian 2 u = u xx + u yy. (Hint: Evaluate it at the origin (0, 0), and use neighboring values at (±δx ±1, 0) and (0, ±δy ±1 ).) [2 points] 13

This page is for additional work. Problem number: Problem number: 14