Processing math: 100%
본문 바로가기

Study/이산수학

Recurrence Relations and Recursive Algorithms

반응형

Recurrence Relations and Recursive Algorithms


Recurrence Relations

recurrence relations (difference equation)

- for a n.f. (a0,a1,,ar,), an equation relating ar for any r to one or more of ai (i<r)

- also called difference equation

boundary condition : values of function at one or more points so that initialtize the function

 

linear recurrence relation with constant coefficients (LRRwCC) : C0ar+C1ar1++Ckark=f(r)

kth-order recurrence relation

- ex) 2ar+3ar1=2r : first order LRRwCC

- the values of k consecutive ais

 - Fewer than k values of n.f. will not be sufficient to determine function uniquely

 - More than k values of n.f. might make it impossible for existence of n.f.


solution of linear difference equation with constant coefficients

- homogeneous solutoin a(h)=(a(h)0,a(h)1,,a(h)r,)

   C0a(h)r+C1a(h)r1++Cka(h)rk=0

- particular solution a(p)=(a(p)0,a(p)1,,a(p)r,)

   C0a(p)r+C1a(p)r1++Cka(p)rk=f(r)

- total solution a=a(h)+a(p)

   C0(a(h)r+a(p)r)+C1(a(h)r1+a(p)r1)++Ck(a(h)rk+a(p)rk)=f(r)


Homogeneous Solutions

Substituting Aαr for ar

C0Aαr+C1Aαr1++CkAαrk=0

simplified to 

C0αr+C1αr1++Ckαrk=0

 

α1 is one roots of characteristic equation (characteristic root)

a(h)r=A1αr1+A2αr12++Akαrkk

if α1 is root of multiplict m,

a(h)r=(A1rm1+A2rm2++Am1r+Am)αr1


Particular Solutions

There is no general procedure for determining particular solution of difference equation

 

when f(r) is of the form of polynomial of degree t in r

 F1rt+F2rt1++Ftr+Ft+1

corresponding particular solution will be of the form

 P1rt+P2rt1++Ptr+Pt+1

 

when f(r) is of the form of βr

corresponding particular solution will be of the form Pβr if β is not a characteristic root

 

when f(r) is of the form of

 (F1rt+F2rt1++Ftr+Ft+1)βr

i) If β is not a characteristic root, corresponding particular solution is of the form

 (P1rt+P2rt1++Ptr+Pt+1)βr

ii) If β is characteristic root or multiplicity m, corresponding particular solution is of the form

 rm(P1rt+P2rt1++Ptr+Pt+1)βr


Total Solutions

just put both homogeneous and particular solution in together

ar=a(h)r+a(p)r


Solution by Method of Generation Functions

general procudre for determining generating functino of numerif function a from difference equation

C0ar+C1ar1++Ckark=f(r)

multiplying both sides of equation by zr and summing from r=s to r=, we obtain

Σr=s(C0ar+C1ar1++Ckark)zr=Σr=sf(r)zr


Matrix Multiplication Algorithms

4 addition
8 multiplication
18 addition
7 multiplication

i) classical multiplication

n3 multiplication operations

n2(n1) addition operations

fr=n3+n2(n1)=O(n3)

 

ii) second method

Let fr denote total number of arithmetic operations required to multiply two 2r×2r matrics.

  fr=6fr1+1822(r1), r1, f0=1

  fr=77r(18/3)4r

for n=2r

 fr=77lgn(18/3)n2=O(n2.81)


학교 강의를 토대로 개인 공부 목적으로 작성되어 오타가 및 오류가 있을 수 있으며, 문제가 될 시 삭제될 수 있습니다.

반응형

'Study > 이산수학' 카테고리의 다른 글

Logic  (0) 2021.12.17
Discrete Numeric Functions and Generating Functions  (0) 2021.12.13
Analysis of Algorithms  (2) 2021.12.13
Graphs  (2) 2021.12.13
Relations and Functions  (0) 2021.12.12