hw1solution

# Hw1solution - CS 161 Summer 2009 Homework#1 Sample Solutions Regrade Policy If you believe an error has been made in the grading of your homework

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

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

View Full Document
2 Alternative answer: Θ( n 1 . 15 ). Notice that when n doubles, the data points grow by a factor of approximately 2 1 . 15 , meaning that when x grows by a factor of n , f ( x ) grows by a factor of n 1 . 15 , meaning this is Θ( n 1 . 15 ). You can ﬁgure out the factor of 1 . 15 by looking at pairs of datapoints, and solving the equation factor = log ( y 2 /y 1 ) log ( x 2 /x 1 ) , where ( x 1 ,y 1 ) and ( x 2 ,y 2 ) are two datapoints. Solving this for each consecutive pairs of points in the data gives factors of 1.13, 1.18, 1.11, 1.18, and 1.12, which are all around 1.15. Problem 3 [10 points]
This is the end of the preview. Sign up to access the rest of the document.

## This document was uploaded on 05/25/2011.

### Page1 / 7

Hw1solution - CS 161 Summer 2009 Homework#1 Sample Solutions Regrade Policy If you believe an error has been made in the grading of your homework

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

View Full Document
Ask a homework question - tutors are online