Line 30: Line 30:
 
Find the asymptotic run time complexity of this algorithm. Give detail of your computation.
 
Find the asymptotic run time complexity of this algorithm. Give detail of your computation.
  
(b) Assume functions <math>$f$</math> and <math>$g$</math> such that <math>$f(n)$<.math> is <math>$O(g(n))$</math>. Prove or disprove that <math>$3^{f(n)}$</math> is <math>$O(3^{g(n)})$</math>.
+
(b) Assume functions <math>f</math> and <math>f</math> such that <math>f(n)</math> is <math>O(g(n))</math>. Prove or disprove that <math>3^{f(n)}</math> is <math>O(3^{g(n)})</math>.

Revision as of 16:27, 20 July 2017


ECE Ph.D. Qualifying Exam

Computer Engineering (CE)

Question 1: Algorithms

August 2013



Question

Part 1. (a) Assume the run time for some algorithm is given by the following recurrence: $ \begin{equation} T(n) = 2T(\sqrt[]{n}) + \log n \end{equation} $ Find the asymptotic run time complexity of this algorithm. Give detail of your computation.

(b) Assume functions $ f $ and $ f $ such that $ f(n) $ is $ O(g(n)) $. Prove or disprove that $ 3^{f(n)} $ is $ O(3^{g(n)}) $.

Alumni Liaison

Correspondence Chess Grandmaster and Purdue Alumni

Prof. Dan Fleetwood