聚合答案库

免费查题,不限次数,
扫描二维码立即使用。

了解更多
免费中国大学MOOC 数据结构与算法实战(湖北科技职业学院)1450319639 最新慕课答案-聚合答案库
作者:20782912023-03-04 00:00 点赞 收藏 热度:18

第一章 概论 测验

1、单选题:
下列不属于线性结构的是:‍Which one of the followings does not belong to linear structure:(There is only one correct answer)‍
选项:
A: 队列(queue)
B: 散列表(hash table)
C: 向量(vector)
D: 图(graph)
答案: 【 图(graph)

2、单选题:
以下哪种结构是逻辑结构,而与存储和运算无关:‍Which of the following structure is a logical structure regardless of the storage or algorithm:(There is only one correct answer)‍
选项:
A: 队列(queue)
B: 双链表(doubly linked list)
C: 数组(array)
D: 顺序表(Sequential list)
答案: 【 队列(queue)

3、多选题:
​‏​‏关于算法特性描述正确的有:‏Which one is right about algorithm’s characterization:(there are more than one correct answers)‏​‏​‏
选项:
A: 算法保证计算结果的正确性。Algorithm will ensure the correctness of the calculation results.
B: 组成算法的指令可以有限也可能无限。 Instructions which composite algorithms can be infinite or finite
C: 算法描述中下一步执行的步骤不确定。 The next step in the implementation of the algorithm described is uncertain.
D: 算法的有穷性指算法必须在有限步骤内结束。The finite nature of algorithms means algorithm must be completed within a limited step.
答案: 【 算法保证计算结果的正确性。Algorithm will ensure the correctness of the calculation results.;
算法的有穷性指算法必须在有限步骤内结束。The finite nature of algorithms means algorithm must be completed within a limited step.

4、多选题:
下列说法正确的是:‌Which options may be correct?(there are more than one correct answers)‌
选项:
A: 如果函数f(n)是O(g(n)),g(n)是O(h(n)),那么f(n)是O(h(n))【  if f(n) is O(g(n)),g(n) is O(h(n)),then  f(n) is O(h(n))】
B: 如果函数f(n)是O(g(n)),g(n)是O(h(n)),那么f(n)+g(n)是O(h(n))【if f(n) is O(g(n)),g(n) is O(h(n)),so f(n)+g(n) is O(h(n))】
C: 如果a>b>1,,但不一定是【if a>b>1, is ,  may not be
D: 函数f(n)是O(g(n)),当常数a足够大时,一定有函数g(n)是O(af(n))【if f(n)是O(g(n)),When constant a is big enough ,there must be g(n) is O(af(n))】
答案: 【 如果函数f(n)是O(g(n)),g(n)是O(h(n)),那么f(n)是O(h(n))【  if f(n) is O(g(n)),g(n) is O(h(n)),then  f(n) is O(h(n))】;
如果函数f(n)是O(g(n)),g(n)是O(h(n)),那么f(n)+g(n)是O(h(n))【if f(n) is O(g(n)),g(n) is O(h(n)),so f(n)+g(n) is O(h(n))】

5、多选题:
已知一个数组a的长度为n,求问下面这段代码的时间复杂度: ​An array of a, its length is known as n. Please answer the time complexity of the following code.(There are more than one answers.)​for (i=0,length=1;i<n-1;i++){​  for (j = i+1;j<n && a[j-1]<=a[j];j++)​    if(length<j-i+1)​      length=j-i+1;​}​​
选项:
A:
B:
C:
D:
答案: 【 ;

6、填空题:
计算运行下列程序段后m的值:‏Calculate the value of m after running the following program segment‏n = 9; m = 0; ‏for (i=1;i<=n;i++)‏  for (j = 2*i; j<=n; j++)‏    m=m+1;‏求m的值‏
答案: 【 20

7、填空题:

由大到小写出以下时间复杂度的序列: 答案直接写标号,如:(1)(2)(3)(4)(5) (提示:系统基于字符匹配来判定答案,所以您的答案中不要出现空格)

Write the following time complexity in descending sequence:Write down the answer labels such as (1)(2)(3)(4)(5). (Hint:This problem is judged by string matching, Please make sure your answer don’t contain any blanks. )

‎答案: 【 (5)(1)(2)(4)(3)

第二章 线性表

第二章 线性表测验

1、多选题:
下面关于线性表的叙述中,正确的是哪些?‍Which of the followings about linear list are correct?(There are more than one answers.)‍‍Select the answer that matches‍
选项:
A: 线性表采用顺序存储,必须占用一片连续的存储单元。Linear lists use sequential storage which must occupy a continuous memory units.
B: 线性表采用顺序存储,便于进行插入和删除操作。Linear lists using sequential storage, it is easy to do insert and delete operations.
C: 线性表采用链接存储,不必占用一片连续的存储单元。Linear lists using the linked storage, do not occupy a continuous memory units.
D: 线性表采用链接存储,便于插入和删除操作。Linear lists using the linked storage, it is easy for insert and deleting operations.
答案: 【 线性表采用顺序存储,必须占用一片连续的存储单元。Linear lists use sequential storage which must occupy a continuous memory units.;
线性表采用链接存储,不必占用一片连续的存储单元。Linear lists using the linked storage, do not occupy a continuous memory units.;
线性表采用链接存储,便于插入和删除操作。Linear lists using the linked storage, it is easy for insert and deleting operations.

2、多选题:
下面的叙述中正确的是:​Select the answer that matches (There are more than one correct answers)​
选项:
A: 线性表在链式存储时,查找第i个元素的时间与i的数值无关。When the linear list stored in linked form, the time to find the i-th element is regardless of the value of i.
B: 线性表在顺序存储时,查找第i个元素的时间与i的数值成正比。When the linear list stored sequentially, the time to find the i-th element is proportional to value with i.
C: 线性表在顺序存储时,查找第i个元素的时间与i的数值无关。When the linear list stored sequentially, the time to find the i-th element is regardless of the value of i.
D: 线性表在链式存储时,插入第i个元素的时间与i的数值成正比。When linear lists stored in the linked form, the time to insert the i-th element is proportional to value with i.
答案: 【 线性表在顺序存储时,查找第i个元素的时间与i的数值无关。When the linear list s

欢迎您对本文章进行评论
文明留言,请勿恶意评论,包括但不限于纯数字、敏感内容、非法昵称等
暂无讨论,说说你的看法吧
学习通答案

学习通答案

学习通答案
职教云答案

职教云答案

Q&A

备案号:冀ICP备20010840号 2020-2099辉辉网络科技 All Rights Reserved