【单选题】
设数据结构A=(D,R),其中D={1,2,3,4},R={r},r={<1,2>,<2,3>,<3,4>},则数据结构A是___
A. 线性结构
B. 树型结构
C. 图型结构
D. 集合
查看试卷,进入试卷练习
微信扫一扫,开始刷题
相关试题
【单选题】
线性表的顺序存储结构是一种________的存储结构.___
A. 随机存取
B. 顺序存取
C. 索引存取
D. 散列存取
【单选题】
线性表的链式存储结构是一种 的存储结构.___
A. 随机存取
B. 顺序存取
C. 索引存取
D. 散列存取
【单选题】
下列叙述中属于顺序存储结构的优点的是___
A. 删除运算方便
B. 插入运算方便
C. 存储密度大
D. 可以方便地用于各种逻辑结构的存储表示
【单选题】
一算法的执行时间函数为10n4-12n+1,则其时间复杂度是___。
A. O(1)
B. O(n)
C. O(n4)
D. O(log2n)
【单选题】
数据结构是指___。
A. 一种数据类型
B. 数据的存储结构
C. 一组性质相同的数据元素的集合
D. 相互之间存在一种或多种特定关系的数据元素的集合
【单选题】
链表不具有的特点是___.
A. 可随机访问任一元素
B. 插入删除不需要移动元素
C. 不必事先估计存储空间
D. 所需空间与线性表长度成正比
【单选题】
在一个长度为n的顺序表的任一位置插入一个新元素的渐进时间复杂度为___。
A. O(n)
B. O(log2n)
C. O(1)
D. O(n2)
【单选题】
带头结点的单链表first为空的判定条件是 ___
A. first == NULL
B. first->next == NULL
C. first->next == first
D. first != NULL
【单选题】
在一个单链表中,若删除p所指结点的后续结点,则执行___
A. p—>next= p—>next—>next;
B. p= p—>next; p—>next= p—>next—>next;
C. p—>next= p—>next
D. p= p—>next—>next;
【单选题】
在一个单链表中,若p所指结点不是最后结点,在p之后插入s所指结点,则执行___
A. s—>next=p; p—>next=s
B. s—>next=p—>next; p—>next=s
C. s—>next=p—>next; p=s
D. p—>next=s; s—>next=p
【单选题】
在一个单链表中,若q所指结点是p所指结点的前驱结点,若在q与p之间插入一个s所指的结点,则执行 ___
A. s→next=p→next; p→next=s
B. p→next=s; s→next=q
C. p→next=s→next; s→next=p
D. q→next=s; s→next=p
【单选题】
线性表是具有n个______的有限序列(n≠0)___
A. 表元素
B. 字符
C. 数据元素
D. 数据项
【单选题】
采用线性链表表示一个向量时,要求占用的存储空间地址___。
A. 必须是连续的
B. 部分地址必须是连续的
C. 一定是不连续的
D. 可连续可不连续
【单选题】
下面关于线性表的叙述错误的是___。
A. 线性表采用顺序存储必须占用一片连续的存储空间
B. 线性表采用链式存储不必占用一片连续的存储空间
C. 线性表采用链式存储便于插入和删除操作的实现
D. 线性表采用顺序存储便于插入和删除操作的实现
【单选题】
在一个长度为n 的顺序表中,向第i个元素(1≤i≤n+1)之前插入一个新元素时,需要向后移动________个元素。___
A. n-i
B. n-i+1
C. n-i-1
D. i
【单选题】
设一个链表最常用的操作是在末尾插入结点和删除尾结点,则选用___最节省时间。
A. 单链表
B. 单循环链表
C. 带尾指针的单循环链表
D. 带头结点的双循环链表
【单选题】
静态链表中指针表示的是___。
A. 内存地址
B. 数组下标
C. 下一元素地址
D. 左、右孩子地址
【单选题】
链表不具有的特点是___。
A. 插入、删除不需要移动元素
B. 可随机访问任一元素
【单选题】
用带头结点的单链表表示的链式队列的队头在链表的___位置。
A. 链头
B. 链尾
C. 链中
D. 第2个结点
【单选题】
顺序表和链表相比存储密度较大,这是因为 ___。
A. 顺序表的存储空间是预先分配的
B. 顺序表不需要增加指针来表示元素之间的逻辑关系
C. 链表中所有节点的地址是不连续的
D. 顺序表中所有元素的存储地址是连续的
【单选题】
判定一个循环队列Q(最多有MAXQSIZE个元素空间)为空的条件为 ___
A. Q.front==Q.rear
B. Q.front!=Q.rear
C. Q.front==(Q.rear+1)%MAXQSIZE
D. Q.front!=(Q.rear+1)%MAXQSIZE
【单选题】
判定一个循环队列Q(最多有MAXQSIZE个元素空间)为满的条件 ___
A. Q->front==Q->rear
B. Q->front!=Q->rear
C. Q->front==(Q->rear+1)%MAXQSIZE
D. Q->front!=(Q->rear+1)%MAXQSIZE
【单选题】
在循环队列中用数组A[0..m-1] 存放队列元素,其队头和队尾指针分别为front和rear,则当前队列中的元素个数是___
A. ( front - rear + 1) % m
B. ( rear - front + 1) % m
C. ( front - rear + m) % m
D. ( rear - front + m) % m
【单选题】
栈和队列的共同点是 ___
A. 都是先进后出
B. 都是先进先出
C. 只允许在端点处插入和删除元素
D. 没有共同点
【单选题】
栈操作的特点是 ___
A. 只能进行插入
B. 只能进行删除
C. 先进先出
D. 先进后出
【单选题】
4个元素进S栈的顺序是A,B,C,D,经操作POP(S)后栈顶元素是 ___
【单选题】
一个栈的输入序列为 a b c d e,则不能是出栈序列的为 ___
A. b c d a e
B. b c a d e
C. e d a c b
D. a e d c b
【单选题】
一个栈的输入序列为 1 2 3 4 ,则不能是出栈序列的为 ___
A. 2 3 4 1
B. 2 3 1 4
C. 4 1 3 2
D. 1 4 3 2
【单选题】
若用一个大小为6的数组来实现循环队列,且当前rear和front的值分别为0和3。当从队列中删除一个元素,再加入两个元素后,rear和front的值分别为 ___
A. 1和5
B. 2和4
C. 4和2
D. 5和1
【单选题】
引起队尾指针改变的操作是___。
A. 出队和入队
B. 入队
C. 出队
D. 取队头元素
【单选题】
对于栈操作数据的原则是___。
A. 先进先出
B. 后进先出
C. 后进后出
D. 不分顺序
【单选题】
设有两个串p和q,求q在p中首次出现的位置的运算称作___
A. 连接
B. 模式匹配
C. 求子串
D. 求串长
【单选题】
串是一种特殊的线性表,其特殊性体现在___
A. 可以顺序存储
B. 数据元素是一个字符
C. 可以链接存储
D. 数据元素可以是多个字符
【单选题】
串的长度是___
A. 串中不同字母的个数
B. 串中不同字符的个数
C. 串中所含字符的个数,且大于0
D. 串中所含字符的个数
【单选题】
数组M[1..4,1..5]的每个元素占5个单元,按行优先次序存储在起始地址为1000的连续的内存单元中,则最后一个元素M[4,5] 的地址为 _________
A. 1005
B. 1015
C. 1100
D. 1095
【单选题】
三维数组A[4][5][6]按行优先存储方法存储在内存中,若每个元素占2个存储单元,且数组中第一个元素的存储地址为120,则元素A[3][4][5]的存储地址为___
A. 356
B. 358
C. 360
D. 362
【单选题】
稀疏矩阵可以用三元组顺序表来表示,其中一个三元组数据中不包括非零元的___.
A. 行号
B. 列号
C. 元素值
D. 元素总数
【单选题】
一般数组常采用的存储顺序为___。
A. 先存上三角,再存下三角
B. 以行序为主序或以列序为主序
C. 只能以行序为主序
D. 只能以列序为主序
【单选题】
深度为5的二叉树至多有__________个结点。___
【单选题】
设a,b为一棵二叉树上的两个结点,在中序遍历时,a在b前的条件是___
A. a在b的右方
B. a在b的左方
C. a是b的祖先
D. a是b的子孙
推荐试题
【单选题】
No sooner had we reached the top of the hill ______ we all sat down to rest.
A. when
B. then
C. than
D. until
【单选题】
___ energy under the earth must be released in one form or another, for example, an earthquake.
A. Accumulated
B. Gathered
C. Assembled
D. Collected
【单选题】
Please ___ me for my rudeness. I really do not know the custom here.
A. engaged
B. comfort
C. execute
D. forgive
【单选题】
Sometimes it is very difficult to ___ some of the English words. Even the native speaker cannot help.
A. decrease
B. create
C. define
D. delight
【单选题】
In the wife’s eyes, his ___ to their marriage life is far from perfect.
A. requirement
B. commitment
C. participation
D. reflection
【单选题】
This newspaper often ___ the government’s opinion, not the public opinion.
A. affects
B. reacts
C. reflects
D. recognizes
【单选题】
It is predicted that heavy rains are ___ to flood the area in a few days.
A. frightening
B. threatening
C. scattering
D. warning
【单选题】
I chose to work abroad to improve my career ___.
A. future
B. path
C. prospect
D. expect
【单选题】
Long before I ever went there, Africa was alive in my ___.
A. image
B. imaginary
C. imaginative
D. imagination
【单选题】
The spectacle of the aurora may appear to dazzle and ___ the observer’s eye.
A. enchant
B. charm
C. fascinate
D. draw
【单选题】
The top prize has enhanced the musician’s ___.
A. fame
B. status
C. courage
D. faith
【单选题】
Compared with Westerners, the ___ use less butter. They prefer the very healthful peanut oil.
A. foreigners
B. Southerners
C. Northerners
D. Orientals
【单选题】
Within a few days she had become seriously ill, ___ great pain and discomfort.
A. surviving
B. suffering
C. affecting
D. accepting
【单选题】
People of their generation who lived through World War II have ___ memories of confusion and incompetence.
A. vivid
B. strong
C. acute
D. profound
【单选题】
Not a breath of fresh air ___ the long white curtains.
A. blew
B. stirred
C. whirled
D. stung
【单选题】
Figures showed customer complaints had ___ to record levels and profits were falling.
A. added
B. climbed
C. accumulated
D. soared
【单选题】
Thanks for the advice, but this is something I have to ___ out myself.
A. fulfill
B. identify
C. figure
D. claim
【单选题】
A ___ monument has been erected in Tian An Men Square in honor of the people’s heroes.
A. magnificent
B. gorgeous
C. huge
D. marvelous
【单选题】
Vietnam made an official ___ that the meeting be postponed.
A. require
B. requirement
C. request
D. agreement
【单选题】
Luke was allowed to sit directly behind the pilot and ___ with him.
A. converse
B. inverse
C. perverse
D. diverse
【单选题】
Maybe this work is not ___, but it will live for a while.
A. mortal
B. deadly
C. immortal
D. worldly
【单选题】
This is why emerging economies set themselves to ___ vast foreign currency reserves in this decade.
A. gather
B. accumulate
C. accelerate
D. assemble
【单选题】
This will enable the audience to sit in ___ while watching the shows.
A. comfort
B. rest
C. relax
D. cozy
【单选题】
Throughout the house, the views are a constant source of surprise and ___.
A. grief
B. pleasant
C. happy
D. delight
【单选题】
Imagination is sometimes more ___ than reality.
A. vivid
B. real
C. bright
D. rich
【单选题】
It is but a step from the ___ to the ridiculous.
A. interest
B. top
C. bottom
D. sublime
【单选题】
My educational ___ is simple: learning should be fun.
A. philosophy
B. psychology
C. physiology
D. physics
【单选题】
I chose to work abroad to improve my career ___.
A. future
B. path
C. prospect
D. expect
【单选题】
Meg stared at her ___ in the bedroom mirror.
A. shadow
B. reflection
C. figure
D. shape
【单选题】
Such technology, however, remains firmly in the ___ of science fantasy.
A. realm
B. region
C. direction
D. district
【单选题】
Long before I ever went there, Africa was alive in my ___.
A. image
B. imaginary
C. imaginative
D. imagination
【单选题】
As a member of the International Olympic Committee her fares and hotel ___ were paid by the IOC.
A. fees
B. allowances
C. expenses
D. money
【单选题】
If they were captured they wished to die, believing that they would go to ___.
A. parasite
B. paradise
C. paraphrase
D. paralyze
【单选题】
Have you ever read Jane Austin's ___ novel Pride and Prejudice?
A. classical
B. class
C. classified
D. classic
【单选题】
She says that being with a ___ mate, one will naturally forget all the worries.
A. heart
B. spirit
C. soul
D. brain
【单选题】
For teenagers, pregnancies, alcoholism, drugs and ___ are all part of the same sad resume.
A. dropouts
B. drop-in
C. drop-off
D. drop-by
【单选题】
The teacher required that no books ___ all over the place in the study.
A. are scattered
B. be scattered
C. were scattered
D. have scattered
【单选题】
Herbs have been used for centuries to endow a whole range of foods ___ subtle flavors.
A. for
B. in
C. with
D. by
【单选题】
He ___receive two specific compliments than twenty vague generalities.
A. should rather
B. would rather
C. would better
D. had rather
【单选题】
Orlando, a city in Florida, ___ for its main attraction, Magic Kingdom.
A. which is well known
B. is well known
C. well known
D. being well known