教材95页代码4.7中的evaluate()算法,需借助orderBetween(op1,op2)函数,判定操作符op1和op2之间的优先级关系,试利用如代码4.6(教材94页)所示的优先级表,实现该画数。
第3题
第5题
第6题
第7题
第8题
a)任意字符比对的成功与失败概率分别为1/s和(s-1)/s,其中s=|∑|为字符表的规模;
b)在P与T的每一对齐位置,需连续执行恰好k次字符比对操作的概率为(s-1)/sk;
c)在P与T的每一对齐位置,需连续执行字符比对操作的期望次数不超过s/(s-1)≤2=o(1)。
第9题
A、preserve the unity of your lesson
B、evaluate students’ success at the end of, or after, the lesson
C、gain more praise
第10题
(9)
A.If future contracts are standardized, brokers would not assess contract specifications.
B.As long as future contracts are standardized, floor trading would be made slow accordingly for brokers to evaluate contract specifications.
C.Whether future contracts are standardized or not, floor trading will not be influenced.
D.Futures contracts must be standardized, otherwise, floor trading would be made very slowly since specifications of each contract would be assessed.