Lec8Perf

# No f 10000 f is not exponential because on a semi log

This preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: )3n)=log(1+(2/3)n) + nlog(3) log(n3+n2) = log((1+(1/n))n3)=log(1+(1/n)) + 3log(n) log(1+(2/3)n) and log(1+(1/n)) go to zero for large n 6 Back to the data: f n f(n) 1 2 2 12 3 36 4 80 5 150 7 400 10 1100 12 1872 f&quot; 10000&quot; 1000&quot; 100&quot; f&quot; 10&quot; 1&quot; 0&quot; 5&quot; 10&quot; 15&quot; 20&quot; 25&quot; The semi-log plot does not give a straight line, so f is not exponential Is f exponential? No! f&quot; 10000&quot; f is not exponential because on a semi-log plot it curves down (not a straight line) 1000&quot; 100&quot; f&quot; 10&quot; 1&quot; 0&quot; 5&quot; 10&quot; 15&quot; 20&quot; 25&quot; 7 Is f polynomial? n 1 2 2 12 3 f&quot; f(n) 36 4 150 7 400 10 1100 12 1000&quot; 80 5 10000&quot; 1872 100&quot; f&quot; 10&quot; 1&quot; 1&quot; 10&quot; 100&quot; YES! The log–log plot goes asymptotically to a strai...
View Full Document

## This note was uploaded on 02/12/2014 for the course CS 475 taught by Professor Staff during the Fall '08 term at Colorado State.

Ask a homework question - tutors are online