Question: Possible points: 6 0 Big - Oh: Determine the Big - Oh of the growth functions below: 2 0 points I. 5 N + 4

Possible points: 60
Big-Oh: Determine the Big-Oh of the growth functions below: 20 points
I. 5N+4
II.9N2+8N-7
III. 2logN
IV.3Nlog4N
V.6*27N
VI.,3N!+12*N3
VII. 42
VIII. ,2*N3+999*N2+123456789*N
Stuck? Plug in some numbers to get a better idea.
What does the following algorithm do? Analyze (provide detail explanation) its worst-case running
time, and express it using "Big-Oh" notation. 20 points
Algorithm Foo (a,n):
Input: two integers, a and n
Output: ?
k}\leftarrow
b}\leftarrow
k\leftarrowk+1
b\leftarrowb*a
return b
What does the following algorithm do? Analyze (provide detail explanation) its worst-case running
time, and express it using "Big-Oh" notation. 20 points
Algorithm Bar (a, n):
Input: two integers, a and n
Output:?
k}\mp@subsup{\mathrm{ n}}{}{2
b}\leftarrow
c &
while k>0 do
k}\leftarrowk/
c \leftarrowc*c
b \leftarrowb*c
return b
Submission: Please submit a single PDF containing all the answers.
Possible points: 6 0 Big - Oh: Determine the Big

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!