Math 115B Homework 8solution

# Math 115B Homework 8solution - MAT 115B HOMEWORK 8 SOLUTION...

• jjammal221
• 2

This preview shows pages 1–2. Sign up to view the full content.

MAT 115B HOMEWORK 8 SOLUTION 2.3.2: 2 n 4 + 3 n 3 + 17 2 n 4 + 3 n 4 + 17 n 4 22 n 4 . It follows 2 n 4 + 3 n 3 + 17 is O ( n 4 ). 2.3.10 Let r R , r 1. If f is O (log 2 n ), then K R + such that f ( n ) K log 2 n for all n . We have f ( n ) K log 2 n = ( K log 2 r )(log r n ), where K log 2 r > 0. So f is O (log r n ). Conversely, if f is O (log r n ), then K R + such that f ( n ) K log r n for all n . It follows f ( n ) K log r n = ( K log r 2)(log 2 n ), where K log r 2 > 0. So f is O (log 2 n ). 2.3.14: (a) Each addition takes O ( n ) time and there are N - 1 = O ( N ) additions to perform. The total complexity is O ( nN ). (b) Multiplication takes O ( n 2 ) time (or ˜ O ( n ) using the Sch¨onhage-Strassen algorithm). And the single shift takes O (1). So the total complexity is O ( n 2 ) (or ˜ O ( n )). GK 8.1: (a) Using the standard approach, it takes: four 100-digit multiplications (for AC, AD, BC and BD ), one 200-digit addition (for AD + BC ) and two 100-digit additions (for the the overlaps in AC 10 200 + ( AD + BC )10 100 + BD ). The total charge is \$4 . 04.

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

This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

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

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

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

Dana University of Pennsylvania ‘17, Course Hero Intern

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

Jill Tulane University ‘16, Course Hero Intern