Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Findf(n)whenn=2k, wherefsatisfies the recurrence relation

f(n)=8f(n/2)+n2 withf(1)=1.

Short Answer

Expert verified

The required expressions are:

f(n)=3·8log4n-2·16log4n

f4k=3·8k-2·16k

Step by step solution

01

Given expression

f(n)=8f(n/4)+n2f(1)=1

02

Define the Recursive formula

A recursive formula is a formula that defines any term of a sequence in terms of its preceding terms.

03

Use the Recursive formula to findf(n)

Letak=f4kand usen=4k

localid="1668608368221" ak=8ak-1+42kak=8ak-1+16k40ao=f(1)ao=1

Letak=randak-1=1

r=8(Root Characteristic equation)

The solution of the recurrence relation is of the forman=α1r1n+α2r2nwhenr1andr2the distinct roots of the characteristic equation.

ak(h)=α·8kF(k)=16k

IfF(n)=btnt+bt-1nt-1++b1n+b0snand is not root of the characteristic equation, thenptnt+pt-1nt-1++p1n+p0snis the particular solution.

ak(p)=p0·16k

The particular solution needs to satisfy the recurrence relation:

an=8ak-1+16kp0.an=8p0·16k-1+16k8p0=16p0=2

Thus, the particular solution then becomes:

ak(p)=p0·16kak(p)=2·16k

The solution of the non-homogeneous recurrence relation is the sum of the solution of the homogeneous recurrence relation and the particular solution.

ak=α·8k-2·16k

04

Check the solution that satisfies the initial condition 

The solution needs to satisfy the initial conditiona0=1:

3=α

Then useak=f4k,n=4kandk=log4n:

f(n)=3.8log4n-2·16log4n

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Study anywhere. Anytime. Across all devices.

Sign-up for free