北京理工大学《数据结构》(双语)B卷

更新时间:2023-07-28 00:37:56 阅读: 评论:0

ONE. Single-Choice
1.In the following data structure, (      ) is linear structure.
AForest                            BStack           
CGraph                              DBinary Tree
2.The Linked List is designed for conveniently (      ) data item.
A.getting                            B.inrting         
C.finding                            D.locating
3.In the four choices, (      ) is not the principles that algorithm designing must obey.
A.Correctness(正确性)                  B.Readability(可读性)
C.Robustness(健壮性)                D.Cyclicity(周期性)
4.Assume a quence list as 654321 is pushed in a stack, an impossible output quence list is (      ).
A.3,4,6,5,2,1                B.4,5,3,1,2,6
sodasC.5,4,3,6,1,2                D.2,3,4,1,5,6
5.A stack is a structure that follows the principle of (      ).
AFirst-In/First-Out                  BLirst-In/Last-Out 
CLast-In/First-Out                  DRandom In and Out
6.Removing the data item at index i in an array with n items, (      ) items need to be shifted(移动) left one position.
A.n-i                                B.n-i+1           
C.i                                  D.n-i-1
7.There is an algorithm with inrting an item to a ordered SeqList(顺序链表) and still keeping the SeqList ordered. The computational efficiency of this inrting algorithm is (      ).
A.Otouristy(log2n)                            B.O(1)           
C.O(n)                                D.O(n2)
8.The address which store Linked List (      ).
A.must be quential                  B.must be partly quential 
C.must be no quential              D.can be quential or discontinuous
9.According to the definition of Binary Tree, there will be (      ) different Binary Trees with 3 nodes.
A.6                                  B.5     
C.4                                  D.3
10.The depth of a Binary Tree is 5, it will have (      ) nodes at most.
    A31                                Bstrong的反义词.32       
C16                                D10
11.In the following sorting algorithm, (      ) is an unstable algorithm.
A.the inrtion sort(插入排序)        B.the bubble sort(气泡法排序)   
C.quicksort(快速排序)                D.mergesort(归并排序)
12.Assume that there is an ordered list consisting of 100 data items, using binary arch(二分法查找) to find a special item, the maximum comparisons is (      ).
itchA.25                                  B.1                 
C.10                                    D.7
金酸梅奖提名13.The result from scanning a Binary Search Tree (二叉排序树) in inorder traversal is in
tips(      ) order.
A.descending or ascending            B.descending   
C.ascending                        D.out of order
14.To connect n vertices in an undirected graph, it needs (      ) edges at least.
A.n                                    B.n-1
C.n+1                                  D.1
15.In a directed graph with n vertexes, the maximum edges is (      ).
An(n+1)/2                            Bn(n-1)/2         
Cn(n-1)                              Dn2
16.The output from scanning a minimum heap(小顶堆) with level traversal algorithm (      ).
A.must be an ascending quence.
B.must be descending quence.
C.must have a minimum item at the head position.
D.must have a minimum item at the rear position.
17.When a recursive algorithm (递归算法) is transformed into a no recursive algorithm, a structure (      ) is generally ud.
ASeqList                            BStack           
CQueue                              DBinary Tree
18.A algorithm is referred to (教育部考试中心托福      ).
A.a calculating method               
B.a sorting method
C.a quential t of instructions to solve a problem
D.a arching method
19.A circular queue(循环队列) is full if (      ).
A(rear+1)% Maxsize == front        Bfront == rear
Crear+1 == front                      D(rear-1)% Maxsize == front
20.The difference between static sorting table(静态查找表) and dynamic sorting table(动态查找表) is (      ).
A.the difference in logical structure           
B.the difference in storage structure
C.the difference of data type
D.inrtion and deletion only can be done in dynamic sorting table
TWOBlank filling questions
1A connected graph has     【1】      component(s).
2In a complete binary tree,
the quence number of node is parent ( if exist ) is         【2】       
the quence number of node is left child ( if exist ) is       【3】     
the quence number of node is right child ( if exist ) is       【4】       
3    【5】    is the fastest known sorting algorithm in practice.
4纯洁的意思A full binary tree of a given height h(h>=1) has   【6】    nodes.
5An undirected graph G has N vertices. The number of edges of a MST (最小生成树)of this graph is    【7】        .
机械英语6Commonly ud graph arch methods are     【8】     and     【9】      benchmark是什么意思.
7Complete the one pass of quicksorting operations. (一趟快速排序算法)
int Partition ( RedType& R[ ], int low, int high )
{          R[0] = R[low]
pivotkey = R[low].key;  // 枢轴 

本文发布于:2023-07-28 00:37:56,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/90/190774.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:查找   排序   算法   顺序   酸梅   队列
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图