题目
英语翻译
Let S = s1 s2...s2n be a well-formed string of parentheses.S can be encoded in two different ways:
q By an integer sequence P = p1 p2...pn where pi is the number of left parentheses before the ith right parenthesis in S (P-sequence).
q By an integer sequence W = w1 w2...wn where for each right parenthesis,say a in S,we associate an integer which is the number of right parentheses counting from the matched left parenthesis of a up to a.(W-sequence).
Following is an example of the above encodings:
S (((()()())))
P-sequence 4 5 6666
W-sequence 1 1 1456
请把意思说清楚~
不要谷歌在线翻译的东西~
Let S = s1 s2...s2n be a well-formed string of parentheses.S can be encoded in two different ways:
q By an integer sequence P = p1 p2...pn where pi is the number of left parentheses before the ith right parenthesis in S (P-sequence).
q By an integer sequence W = w1 w2...wn where for each right parenthesis,say a in S,we associate an integer which is the number of right parentheses counting from the matched left parenthesis of a up to a.(W-sequence).
Following is an example of the above encodings:
S (((()()())))
P-sequence 4 5 6666
W-sequence 1 1 1456
请把意思说清楚~
不要谷歌在线翻译的东西~
提问时间:2020-09-25
答案
s是一组括弧.有两种编码方法.方法一,可获得数列P.其中每个Pi是指在第i个右括弧左边的左括弧数目.(((()比如以上在第一个右括弧左边有4个左括弧.所以P1是4,p2是5...方法二,可获得数列W.把这堆括弧左右一一对应起来.Wi...
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
最新试题
- 1“呆呆”(一个字)怎么念?
- 2The girl with iong blonde hair is from_______.
- 3(3x+1)²=4(x-2)²用因式分解法解方程
- 4若1x2x3x.xn+7是一个自然数的平方,求n
- 5ab两站间的距离为448千米,一列慢车从a站出发,每小时行60千米,一列快车从b地站出发,每小时行80千米.
- 6I have to start right now because i have no time left.
- 7为什么做简易启普发生器时,要有玻璃丝在固体液体之间
- 8世界著名的童话故事有哪些?
- 9a的绝对值等于6,b的绝对值等于3,求ab的值
- 10若P(A)>0,P(B)>0,证明(1)当AB两事件相互独立时,AB=空集(2)当AB=空集,即A,B互不相容时,有A与B不独立
热门考点
- 1甲、乙两个均匀实心正方体放在水平地面上=
- 2中秋节是农历8月15日 译成英文是什么?
- 3已知A.B为相反数,C,D为倒数X的绝对值为2,Y不能做除数,求2(A+b)的2010次方—2(CD)的2009次方+X/1+Y的2008
- 4三分之二和二分之一通分
- 5英语辩论开场白
- 6this dress is pretty.ham much is it?
- 7Many people are waiting in excitement to donate their blood to the ________(injure)
- 8秋天来了作文400字,有景物
- 9《小桥流水人家》中,作者借什么景物抒发什么的情感?
- 1012 12 3 1 算24点