Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 1 ) 5 netaton of T ( n ) = { 4 T ( n 4 ) + c n , n 2 k

(1)5 netaton of
T(n)={4T(n4)+cn,n2k,n=1
H+ Consider n=4k
(2) Let T(n) be the totd running time of the following recursive fon on on inpont of size n.e Write rec. relation for T(n).
My Func (A[], stant, end)
if start end:
m1= stant +end-stant4
m2=stat+2(ewl-stat)4
m3= start +(3(an)-stat)
else:
11 f.lm of assiguments
(A) Write suce for
Marge (A[J,ab,c,d
whica menges range a-b whth range c-1 in arrey A.
OR
(B) Write aste for k-hop granch for k=14 on on array of size n. Dort forget the are if 14 doesn't parfectly dirite n. What's the worst case of number of componims of yar cote for n=300.
(4) Consiter this Mengesont for: Menge ort (A[], start, end).
if staut
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions