题目内容

[2015统考真题]已知字符串S为' abaabaabacacaabaabcc',模式串t为'abaabc'.采用KMP算法进行匹配,第- -次出现“失配”(s[i]≠t[j]) 时,i=j=5,则下次开始匹配时,i和j的值分别是()。

A. i=1 , j=0
B. i=5 , j=0
C. i=5 , j =2
D. i=6 , j=2

查看答案
更多问题

[2019统考真题]设主串T=' abaabaabcabaabc',模式串S= 'abaabc', 采用KMP算法进行模式匹配,到匹配成功时为止,在匹配过程中进行的单个字符间的比较次数是( )。

A. 9
B. 10
C. 12
D. 15

When Jane returns to Thornfield what does she find?

A. That it has been remodeled and is unrecognizable
B. That it has been sold to greedy neighbors
C. That it has burned
D. That it is for sale

Rochester and Jane rebuild their relationship and soon marry. After two years of blindness, Rochester regained sight in one eye and was able to behold their first son at his birth.

A. 对
B. 错

下列输出结果是()。int a = 0 ;while ( a < 5 ) {switch(a){case 0:case 3 : a = a + 2;case 1 :case 2 : a = a + 3;default : a = a + 5;}}System.out.print ( a ) ;

A. 0
B. 5
C. 10
D. 其它

答案查题题库