当前位置:网站首页>[combinatorics] recursive equation (the non-homogeneous part is an exponential function and the bottom is the characteristic root | example of finding a special solution)
[combinatorics] recursive equation (the non-homogeneous part is an exponential function and the bottom is the characteristic root | example of finding a special solution)
2022-07-03 17:23:00 【Programmer community】
List of articles
- One 、 The nonhomogeneous part is Exponential function And The bottom is the case of characteristic root
- Two 、 The nonhomogeneous part is Exponential function And The bottom is the case of characteristic root Example
One 、 The nonhomogeneous part is Exponential function And The bottom is the case of characteristic root
Linear Nonhomogeneous recurrence equation with constant coefficients :
H
(
n
)
−
a
1
H
(
n
−
1
)
−
⋯
−
a
k
H
(
n
−
k
)
=
f
(
n
)
H(n) - a_1H(n-1) - \cdots - a_kH(n-k) = f(n)
H(n)−a1H(n−1)−⋯−akH(n−k)=f(n) ,
n
≥
k
,
a
k
≠
0
,
f
(
n
)
≠
0
n\geq k , a_k\not= 0, f(n) \not= 0
n≥k,ak=0,f(n)=0
The left side of the above equation And “ Linear homogeneous recurrence equation with constant coefficients ” It's the same , But not on the right
0
0
0 , It's based on
n
n
n Of function
f
(
n
)
f(n)
f(n) , This type of recursive equation is called “ Linear Nonhomogeneous recurrence equation with constant coefficients ” ;
The nonhomogeneous part is Exponential function And The bottom is the case of characteristic root :
If the above “ Linear Nonhomogeneous recurrence equation with constant coefficients ” Of Nonhomogeneous part
f
(
n
)
f(n)
f(n) It's an exponential function ,
β
n
\beta^n
βn ,
If
β
\beta
β yes
e
e
e Heavy characteristic root ,
The special solution form of the nonhomogeneous part is :
H
∗
(
n
)
=
P
n
e
β
n
H^*(n) = P n^e \beta^n
H∗(n)=Pneβn ,
P
P
P Is constant ;
The above special solution
H
∗
(
n
)
=
P
n
e
β
n
H^*(n) = P n^e \beta^n
H∗(n)=Pneβn , Into the recursive equation , Solve the constant
P
P
P Value , Then the complete special solution is obtained ;
“ Linear Nonhomogeneous recurrence equation with constant coefficients ” The general solution is
H
(
n
)
=
H
(
n
)
‾
+
H
∗
(
n
)
H(n) = \overline{H(n)} + H^*(n)
H(n)=H(n)+H∗(n)
Use the above solution Special solution , And recurrence equation General solution of homogeneous part , Form the complete general solution of the recursive equation ;
Two 、 The nonhomogeneous part is Exponential function And The bottom is the case of characteristic root Example
Recurrence equation :
H
(
n
)
−
5
H
(
n
−
1
)
+
6
H
(
n
−
2
)
=
2
n
H(n) - 5H(n-1) + 6H(n-2)=2^n
H(n)−5H(n−1)+6H(n−2)=2n, Seeking special solution ?
View its characteristic root :
The standard form of recurrence equation is :
H
(
n
)
−
5
H
(
n
−
1
)
+
6
H
(
n
−
2
)
=
2
n
H(n) - 5H(n-1) + 6H(n-2)=2^n
H(n)−5H(n−1)+6H(n−2)=2n ,
Homogeneous part is
H
(
n
)
−
5
H
(
n
−
1
)
+
6
H
(
n
−
2
)
=
0
H(n) - 5H(n-1) + 6H(n-2)=0
H(n)−5H(n−1)+6H(n−2)=0
Write the characteristic equation :
x
2
−
5
x
+
6
=
0
x^2 - 5x + 6 = 0
x2−5x+6=0 ,
Characteristic root
q
1
=
2
,
q
2
=
3
q_1= 2, q_2 = 3
q1=2,q2=3
Find the recurrence equation Special solutions corresponding to Nonhomogeneous parts ,
The standard form of recurrence equation is :
H
(
n
)
−
5
H
(
n
−
1
)
+
6
H
(
n
−
2
)
=
2
n
H(n) - 5H(n-1) + 6H(n-2)=2^n
H(n)−5H(n−1)+6H(n−2)=2n
The nonhomogeneous part is
2
n
2^n
2n , It's an exponential function , But the bottom line is
1
1
1 Heavy characteristic root ,
At this time, the bottom is
e
e
e The special solution is constructed by repeating the special solution form of the characteristic root
H
∗
(
n
)
=
P
n
e
β
n
H^*(n) = P n^e \beta^n
H∗(n)=Pneβn
The form of the special solution is
H
∗
(
n
)
=
P
n
1
2
n
=
P
n
2
n
H^*(n) = P n^1 2^n = Pn2^n
H∗(n)=Pn12n=Pn2n , among
P
P
P Is constant ;
The special solution is substituted into the above recursive equation :
P
n
2
n
−
5
P
(
n
−
1
)
2
n
−
1
+
6
P
(
n
−
2
)
2
n
−
2
=
2
n
Pn2^n - 5P(n-1)2^{n-1} + 6P(n-2)2^{n-2} = 2^n
Pn2n−5P(n−1)2n−1+6P(n−2)2n−2=2n
All items are constructed
2
n
2^n
2n
P
n
2
n
−
5
P
(
n
−
1
)
2
n
2
+
6
P
(
n
−
2
)
2
n
4
=
2
n
Pn2^n - \cfrac{5P(n-1)2^{n}}{2} + \cfrac{6P(n-2)2^n}{4} = 2^n
Pn2n−25P(n−1)2n+46P(n−2)2n=2n
Divide left and right by
2
n
2^n
2n
P
n
−
5
P
(
n
−
1
)
2
+
3
P
(
n
−
2
)
2
=
1
Pn - \cfrac{5P(n-1)}{2} + \cfrac{3P(n-2)}{2} = 1
Pn−25P(n−1)+23P(n−2)=1
P
n
−
5
P
n
2
+
5
P
2
+
3
P
n
2
−
3
P
=
1
Pn - \cfrac{5Pn}{2} + \cfrac{5P}{2} + \cfrac{3Pn}{2} -3P = 1
Pn−25Pn+25P+23Pn−3P=1
5
P
2
−
3
P
=
1
\cfrac{5P}{2} -3P = 1
25P−3P=1
−
P
2
=
1
-\cfrac{P}{2} = 1
−2P=1
P
=
−
2
P=-2
P=−2
The form of special solution
H
∗
(
n
)
=
P
n
2
n
H^*(n) = Pn2^n
H∗(n)=Pn2n , among
P
P
P Constant value is
−
2
-2
−2 ;
The special solution is
H
∗
(
n
)
=
−
2
n
2
n
H^*(n) = -2n2^n
H∗(n)=−2n2n
边栏推荐
- [RT thread] NXP rt10xx device driver framework -- RTC construction and use
- 国内如何购买Google Colab会员
- [error reporting] omp: error 15: initializing libiomp5md dll, but found libiomp5md. dll already initialized.
- 1164 Good in C
- QT adjust win screen brightness and sound size
- 【RT-Thread】nxp rt10xx 设备驱动框架之--rtc搭建和使用
- List of financial products in 2022
- Solution to long waiting time of SSH connection to remote host
- 跨境电商:外贸企业做海外社媒营销的优势
- Open vsftpd port under iptables firewall
猜你喜欢
Thread pool: the most common and error prone component of business code
Kubernetes resource object introduction and common commands (4)
[RT thread] NXP rt10xx device driver framework -- pin construction and use
29: Chapter 3: develop Passport Service: 12: develop [obtain user account information, interface]; (use VO class to package the found data to meet the requirements of the interface for the returned da
Prepare for the golden three silver four, 100+ software test interview questions (function / interface / Automation) interview questions. win victory the moment one raises one 's standard
QT学习日记9——对话框
[UE4] brush Arctic pack high quality Arctic terrain pack
Life is still confused? Maybe these subscription numbers have the answers you need!
PS screen printing brush 131, many illustrators have followed suit
Kubernetes resource object introduction and common commands (III)
随机推荐
One brush 142 monotone stack next larger element II (m)
How to read the source code [debug and observe the source code]
Enterprise custom form engine solution (XI) -- form rule engine 1
Apache service suspended asynchronous acceptex failed
[combinatorics] recursive equation (the relationship theorem between the solution of the recursive equation and the characteristic root | the linear property theorem of the solution of the recursive e
How to enforce parameters in PowerShell- How do I make parameters mandatory in PowerShell?
Kubernetes resource object introduction and common commands (4)
Electronic Science and technology 20th autumn "Microcomputer Principle and application" online assignment 2 [standard answer]
简单配置PostFix服务器
vs2013已阻止安装程序,需安装IE10
Vs code plug-in korofileheader
Talk about several methods of interface optimization
Type conversion, variable
互聯網醫院HIS管理平臺源碼,在線問診,預約掛號 智慧醫院小程序源碼
RedHat 6.2 配置 Zabbix
[RT thread] NXP rt10xx device driver framework -- pin construction and use
An example of HP array card troubleshooting
一位普通程序员一天工作清单
LeetCode13.罗马数字转整数(三种解法)
Kubernetes resource object introduction and common commands (V) - (NFS & PV & PVC)