Question: 6 . Big - O - ver it [ 1 2 points ] Give the tightest big - O estimate in simplest form for each

6. Big-O-ver it [12 points]
Give the tightest big-O estimate in simplest form for each of these functions and algorithms.
Show your steps to arrive at the final expression, and explain your answer.
(a) f (n)=(n2+203n)(n!+ nn)+(n2+ n!)(203n + nn)
(b) g(n)=(log n +n)(2n +3n)
4
(c) function sumOddIndices(a1,..., aN in R)
i 1
s 0
while i N do
s s + ai
i i +2
end while
return s
end function
(d) function findMinPowerAboveN(N in Z+)
i 1
while i N do
i 2i
end while
return i
end function
(e) function findMaxDifference(a1,..., aN in R)
d 0
for i :=1 to N do
for j :=1 to N do
if |ai aj |> d then
d |ai aj |
end if
end for
end for
return d
end function

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!