早教吧作业答案频道 -->英语-->
inductionprove```Here'sareallysimplelanguagewe'llcallP(forparentheses):1.Atoms:λinP.2.Moregenerally,ifuisinP,sois(u).Inotherwords,Pisthesetofallstringsoverthealphabet{(,)}inwhichparenthesesarepaired.Useinductionto
题目详情
induction prove```
Here's a really simple language we'll call P(for parentheses):
1.Atoms:λ in P.
2.More generally,if u is in P,so is (u).
In other words,P is the set of all strings over the alphabet{(,)}in which parentheses are paired.
Use induction to prove that,for every expression in P,the number of left parentheses is equal to the number of right parentheses.
Here's a really simple language we'll call P(for parentheses):
1.Atoms:λ in P.
2.More generally,if u is in P,so is (u).
In other words,P is the set of all strings over the alphabet{(,)}in which parentheses are paired.
Use induction to prove that,for every expression in P,the number of left parentheses is equal to the number of right parentheses.
▼优质解答
答案和解析
对于P中一个元素u,定义k(u)为左括号数-右括号数
More generally,if u is in P,so is (u).
则对任何u,k(u)=0,
所以the number of left parentheses is equal to the number of right parentheses.
详细点,大概就是这样的
首先
对于Atoms:λ in P.so k(λ )=0-0=0
假设对于u in P 有 k(u)=0
则对于(u)
k((u))=k(u)+1-1=k(u)=0
用数学归纳法就知道所有P中的元素,都有k(u)=0
其实我也不一定保证就是对的,只是我是这样认为的.
More generally,if u is in P,so is (u).
则对任何u,k(u)=0,
所以the number of left parentheses is equal to the number of right parentheses.
详细点,大概就是这样的
首先
对于Atoms:λ in P.so k(λ )=0-0=0
假设对于u in P 有 k(u)=0
则对于(u)
k((u))=k(u)+1-1=k(u)=0
用数学归纳法就知道所有P中的元素,都有k(u)=0
其实我也不一定保证就是对的,只是我是这样认为的.
看了 inductionprove...的网友还看了以下:
P(A/B)+P(A非/B非)=1证明AB独立我这样证:原始=P(A/B)+1-P(A/B非)=1 2020-04-06 …
(1+p)+(1+p)(1+p)+(1+p)(1+p)(1+p)+......+(1+p)(1+p 2020-06-03 …
已知p^2-p-1=0,1-q-q^2=0,且pq不等于1.则pq+1/q1-q-q^2=0因为q 2020-06-07 …
设两个随机变量X与Y相互独立且同分布:P{X=-1}=P{Y=-1}=1/2P{X=1}=P{Y= 2020-06-12 …
1,P(A)=0.4P(AB)=0.2P(A|B)+P(A非|B非)=1求P(A并B)2,证明若P 2020-06-14 …
求渐化式~急已知:p(n)=1/2p(n-1)+1/2p(n-2)求p(n)用n表示由已知可得:p 2020-07-08 …
设随机变量X,Y相互独立且同分布,P(X=-1)=P(Y=-1)=1/2,P(X=1)=P(Y=1 2020-07-18 …
P(n)推导已知p(1)=1;p(n)=(1-1/(n^2))p(n-1)+2/n-1/(n^2) 2020-08-01 …
几何分布无记忆性证明中证:P{x=m+n|x>m}=P(X=m+n,x>m)/P{x>m}=P(X= 2020-10-31 …
概率论的问题.P(A)=0.6P(B)=0.7求P(AB)的最大值就是0.6但是下面的做法看起来对, 2020-11-28 …