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+C1ar−1+⋯+Ckar−k=f(r)
kth-order recurrence relation
- ex) 2ar+3ar−1=2r : first order LRRwCC
- the values of k consecutive a′is
- 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)r−1+⋯+Cka(h)r−k=0
- particular solution a(p)=(a(p)0,a(p)1,⋯,a(p)r,⋯)
C0a(p)r+C1a(p)r−1+⋯+Cka(p)r−k=f(r)
- total solution a=a(h)+a(p)
C0(a(h)r+a(p)r)+C1(a(h)r−1+a(p)r−1)+⋯+Ck(a(h)r−k+a(p)r−k)=f(r)
Homogeneous Solutions
Substituting Aαr for ar
C0Aαr+C1Aαr−1+⋯+CkAαr−k=0
simplified to
C0αr+C1αr−1+⋯+Ckαr−k=0
α1 is one roots of characteristic equation (characteristic root)
a(h)r=A1αr1+A2αr−12+⋯+Akαr−kk
if α1 is root of multiplict m,
a(h)r=(A1rm−1+A2rm−2+⋯+Am−1r+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+F2rt−1+⋯+Ftr+Ft+1
corresponding particular solution will be of the form
P1rt+P2rt−1+⋯+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+F2rt−1+⋯+Ftr+Ft+1)βr
i) If β is not a characteristic root, corresponding particular solution is of the form
(P1rt+P2rt−1+⋯+Ptr+Pt+1)βr
ii) If β is characteristic root or multiplicity m, corresponding particular solution is of the form
rm(P1rt+P2rt−1+⋯+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+C1ar−1+⋯+Ckar−k=f(r)
multiplying both sides of equation by zr and summing from r=s to r=∞, we obtain
Σ∞r=s(C0ar+C1ar−1+⋯+Ckar−k)zr=Σ∞r=sf(r)zr

Matrix Multiplication Algorithms

![]() |
![]() |
4 addition 8 multiplication |
18 addition 7 multiplication |
i) classical multiplication
n3 multiplication operations
n2(n−1) addition operations
fr=n3+n2(n−1)=O(n3)
ii) second method
Let fr denote total number of arithmetic operations required to multiply two 2r×2r matrics.
fr=6fr−1+18⋅22(r−1), r≥1, f0=1
fr=7⋅7r−(18/3)⋅4r
for n=2r
fr=7⋅7lgn−(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 |