网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
1、设有两个串p和q,其中q是p的子串,求q在p中首次出现的位置的算法称为()(单选) There are two strings p q, q is p’s substring. The algorithm to search the first time q appeared in p is called ()(There is only one correct answer)
A.求子串 Seeking substring
B.联接 Concatenation
C.匹配 Matching
D.求串长 Seeking length
参考答案和解析
C
更多 “1、设有两个串p和q,其中q是p的子串,求q在p中首次出现的位置的算法称为()(单选) There are two strings p q, q is p’s substring. The algorithm to search the first time q appeared in p is called ()(There is only one correct answer)A.求子串 Seeking substringB.联接 ConcatenationC.匹配 MatchingD.求串长 Seeking length” 相关考题
考题
双链表的每个结点包括两个指针域。其中rlink指向结点的后继,llink指向结点的前驱。如果要在P所指结点后插入q所指的新结点,下列( )操作序列是正确的。A) q↑.rlink:=p; q↑.llink:=p↑.llink; p↑.rlink↑.rlink:=q; p↑.11ink:=q;B) q↑llink:=p; q↑.rlink:=p↑.rlink; p↑rlink↑.llink:=q; p↑rlink:=q;C) p↑.llink↑.rlink:=q; p↑.llink:=q; q↑rlink:=p; q↑.llink:=p↑.llink;D) p↑.rlink↑.llink:=q; p↑.rlink:=q; q↑llink:=p; q↑rlink:=p↑.rlink;
考题
假定双寡头各有固定成本24元,但没有可变成本,并且它们具有相同的需求曲线为:厂商1的需求曲线为:Q1=18-3P1+P2,厂商2的需求曲线为:Q2=18-3P2+P1,下列说法正确的是().A.非串谋时,P1=P2=3.6,Q1=Q2=10.8B.串谋时,P1=P2=3.6,Q1=Q2=10.8C.非串谋时,P1=P2=4.5;Q1=Q2=9D.串谋时,P1=P2=4.5;Q1=Q2=10.8
考题
双链表的每个节点包括两个指针域。其中rlink指向节点的后继,llink指向节点的前驱。如果要在p所指节点后插入q所指的新节点,下面哪一个操作序列是正确的?A.p↑.rlink↑.llink:=q;p↑.rlink:=q;q↑.llink:=p;q↑.rlink:=p↑,rlink;B.p↑.llink↑.rlink:=q;p↑.llink:=q;q↑.rlink:=p;q↑.llink:=p↑.llink;C.q↑.llink:=p;q↑.rlink:=p↑.rlink;p↑.rlink↑.llink:=q;p↑.rlink:=q↑;D.q↑.rlink:=p;q↑.llink:=p↑.llink;p↑.1link↑.rlink:=q;p↑.llink:=q;
考题
以下函数实现的功能是void fun (char *s){ char *p,*q,temp; p=s; q=s+ strlen(s)-1; while (p<q) { temp=*p; *p=*q; *p=temp; p++; q--; }}A.将一个字符串首尾颠倒B.计算字符串的长度C.统计字符串中的空格个数D.将字符串中的小写字母变成大写字母
考题
假定双寡头各有固定成本24元,但没有可变成本,并且它们具有相同的需求曲线为:厂商1的需求曲线为:Q1=18-3P1+P2,厂商2的需求曲线为:Q2=18-3P2+P1,下列说法正确的是().A非串谋时,P1=P2=3.6,Q1=Q2=10.8B串谋时,P1=P2=3.6,Q1=Q2=10.8C非串谋时,P1=P2=4.5;Q1=Q2=9D串谋时,P1=P2=4.5;Q1=Q2=10.8
考题
在以下二难推理中,无效式是()A、(((p→q)∧(r→s))∧(p∨r))→(q∨s)B、(((p→q)∧(r→s))∧(∨)C、((p→q)∧(p→r))∧(∨))→pD、(((p→q)∧(r→q))∧(p∨r))→q
考题
在下列选言推理形式中,无效的有()。A、(p∨q)∧p├﹁qB、(pqr)∧﹁p├q∧rC、(pqr)∧﹁p├qrD、(p∨q∨r)∧﹁p├q∨rE、(p∨q∨r∨s)∧(﹁p∧﹁q)├r∨s
考题
下列推理形式中,无效的有()。A、((p∨~q)∧q)→~pB、((p∧q)∧r)→(p∧r)C、((~p→q)∧q)→~pD、((p→q)∧(r∧p))→qE、(p→q)∧(r→s)∧(q∨s))→(p∨r)
考题
问答题试判断以下各式是否为重言式。 (1)(P→Q)→(Q→P) (2)P→(P→Q) (3)Q→(P→Q) (4)(P∧Q)→(P→Q) (5)((P→Q)∨(R→Q))→((P∨R)→Q) (6)((P→Q)∨((R→S))→((P∨R)→(Q∨S))
考题
多选题下列推理形式中,无效的有()。A((p∨~q)∧q)→~pB((p∧q)∧r)→(p∧r)C((~p→q)∧q)→~pD((p→q)∧(r∧p))→qE(p→q)∧(r→s)∧(q∨s))→(p∨r)
考题
单选题在以下二难推理中,无效式是()A
(((p→q)∧(r→s))∧(p∨r))→(q∨s)B
(((p→q)∧(r→s))∧(∨)C
((p→q)∧(p→r))∧(∨))→pD
(((p→q)∧(r→q))∧(p∨r))→q
考题
单选题假定双寡头各有固定成本24元,但没有可变成本,并且它们具有相同的需求曲线为:厂商1的需求曲线为:Q1=18-3P1+P2,厂商2的需求曲线为:Q2=18-3P2+P1,下列说法正确的是().A
非串谋时,P1=P2=3.6,Q1=Q2=10.8B
串谋时,P1=P2=3.6,Q1=Q2=10.8C
非串谋时,P1=P2=4.5;Q1=Q2=9D
串谋时,P1=P2=4.5;Q1=Q2=10.8
考题
单选题数据结构里,设有两个串p和q,其中q是p的子串,求q在p中首次出现的位置的算法称为()。A
求子串B
联接C
匹配D
求串长
热门标签
最新试卷