Quiz5 for Thu Mar 03-LUpivot - [1/3 Naive Gaussian...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
3/15/2016 [1/3] Naive Gaussian Elimination Code - Quiz: LUpivot - RELATE https://relate.cs.illinois.edu/course/cs357-sp16/flow-session/94426/0/ 1/1 Naive Gaussian Elimination Code Consider the following Python code, in which A is an matrix. for k in range(n): for i in range(k+1, n): # INSERT LINE HERE Recall the algorithm for Gaussian Elimination (pdf page 21) . n×n n × n
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
3/15/2016 [1/3] Naive Gaussian Elimination Code - Quiz: LUpivot - RELATE https://relate.cs.illinois.edu/course/cs357-sp16/flow-session/94426/0/ 1/1 Which of the following lines, inserted in the marked spot above, will lead to an implementation of Gaussian elimination? Your answer is correct. A correct answer is: ' A[i] -= A[k]*A[i,k]/A[k,k] '. Choice* A[i] -= A[k]*A[k,k]/A[i,k] A[k] -= A[i]*A[k,k]/A[i,k] A[k] -= A[i]*A[i,k]/A[k,k]
Image of page 2
3/15/2016 [2/3] Naive Gaussian Elimination - Quiz: LUpivot - RELATE https://relate.cs.illinois.edu/course/cs357-sp16/flow-session/94426/1/ 1/1 Naive Gaussian Elimination Using naive Gaussian Elimination to solve the following matrix problem, what is the Frst pivot element?
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern