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

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

View Full Document Right Arrow Icon
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" 10000" 1000" 100" f" 10" 1" 0" 5" 10" 15" 20" 25" The semi-log plot does not give a straight line, so f is not exponential Is f exponential? No! f" 10000" f is not exponential because on a semi-log plot it curves down (not a straight line) 1000" 100" f" 10" 1" 0" 5" 10" 15" 20" 25" 7 Is f polynomial? n 1 2 2 12 3 f" f(n) 36 4 150 7 400 10 1100 12 1000" 80 5 10000" 1872 100" f" 10" 1" 1" 10" 100" 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