Question: d ) ( 1 0 points ) f ) ( 1 0 points ) Assume that void some _ fet 2 ( int S ,

d)(10 points) f)(10 points)
Assume that void some_fet 2(int S, int k); has time complexity (S2)
Solve:
Fill in:
Final answer:
if ( check (T)){// O(T)
S&This, (M, T)//O(T).
}
else {
SlsTbat(T)// O(1)
}
Final answer: worst C??
| best O|
in general OI
Show your work as done in class.
Extra, self gractica (not part of homewark. Do sot write the answer for it here.) What would yoar answer be if fe[biblM, TI) had tiee complexity OHabb?
e)(10 points)
for (v=0;vN;v=v+1)
Z8me Befl0(V) :
Fill in:
Final answer: O(
d ) ( 1 0 points ) f ) ( 1 0 points ) Assume that

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!