HW5sol

# HW5sol - (Partial Solutions to Homework 5 For this homework...

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

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

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

Unformatted text preview: (Partial) Solutions to Homework 5 For this homework, due to some requests, Ill give more solutions but less detail on how to think about things. Just the solutions. Problem 14.3: In computer science, the complexity of an algorithm is com- puted (roughly) by counting the number of times a given operation is performed. Suppose adding or subtracting any two numbers takes a seconds, and multiply- ing two numbers takes m seconds. Then, for example, computing 2 6- 5 would take a + m seconds. i. How many additions and multiplications does it take to compute the de- terminant of a general 2 2 matrix? ii. Write a formula for the number of additions and multiplications it takes to compute the determinant of a general n n matrix using the definition of the determinant. Assume that finding and multiplying by the sign of a permutation is free. iii. How many additions and multiplications does it take to compute the de- terminant of a general 3 3 matrix using expansion by minors? (Assume3 matrix using expansion by minors?...
View Full Document

## This note was uploaded on 03/23/2010 for the course MAT 022A taught by Professor Pon during the Spring '10 term at UC Davis.

### Page1 / 2

HW5sol - (Partial Solutions to Homework 5 For this homework...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online