由于博主太菜,题目集还不完整,有待更新。

判断题

1.m阶B树的根结点最多有m棵子树。

    
T
    
F

2.In a B+ tree, leaves and nonleaf nodes have some key values in common.

    
T
    
F

3.A 2-3 tree with 12 leaves may have at most 10 nonleaf nodes.

    
T
    
F

选择题

1.下列叙述中,不符合m阶B树定义要求的是:

    A.叶结点之间通过指针链接

    B.根结点最多有m棵子树

    C.所有叶结点都在同一层上

    D.各结点内关键字均升序或降序排列

2.Among the following statements, which one does NOT satisfy the definition of a B tree of order m?

    A.All the leaf nodes are linked by pointers

    B.The root has at most m subtrees

    C.All the leaf nodes are on the same level

    D.Inside each node, the keys are arranged in sorted order

3.B+树不同于B树的特点之一是:

    A.能支持顺序查找

    B.结点中含有关键字

    C.根结点至少有两个分支

    D.所有叶结点都在同一层上

4.After deleting 9 from the 2-3 tree given in the figure, which one of the following statements is FALSE?

    A.the root is full

    B.the second key stored in the root is 6

    C.6 and 8 are in the same node

    D.6 and 5 are in the same node

5.Which of the following statements concerning a B+ tree of order M is TRUE?

    A.the root always has between 2 and M children

    B.not all leaves are at the same depth

    C.leaves and nonleaf nodes have some key values in common

    D.all nonleaf nodes have between ⌈M/2⌉ and M children

6.下列关于M阶B+树的说法,哪一句是对的?

    A.根结点一定有2到M个孩子

    B.不是所有的叶结点都有同样的深度

    C.叶结点和非叶结点中存的有一些键值是一样的

    D.所有非叶结点都有⌈M/2⌉到M个孩子

10.Which one of the following is NOT true about B+ trees and AVL trees: they are both __。

    A.balanced binary trees

    B.fit for sequential searches

    C.fit for random searches

    D.fit for range searches

13.高度为 5 的 3 阶 B 树含有的关键字个数至少是:

    A.15

    B.31

    C.62

    D.242

14.The minimum number of keys in a B tree with order 3 and height 5 is __.

    A.15

    B.31

    C.62

    D.242

15.After inserting 0 into the 2-3 tree given in the figure, how many of the following statements are FALSE?

  • (S1) The tree grows higher;
  • (S2) 2 and 4 are in the same interior node;
  • (S3) the root node still contains 9 only;
  • (S4) the interior node containing 12 keeps unchanged.
    A.0

    B.1

    C.2

    D.3

16.在图中给定的 2-3 树中插入 0,以下描述有几句是错误的?

  • (S1) 树变高了;
  • (S2) 2 和 4 在同一个内部结点里;
  • (S3) 根结点仍然只包含 9;
  • (S4) 包含 12 的那个内部结点没有改变。
    A.0

    B.1

    C.2

    D.3

17.下面关于B-和B+树的叙述中,不正确的是( )。

    A.B-树和B+树都是平衡的多叉树

    B.B-树和B+树都可用于文件的索引结构

    C.B-树和B+树都能有效地支持顺序检索

    D.B-树和B+树都能有效地支持随机检索

18.m阶B-树是一棵( )。

    A.m叉排序树

    B.m叉平衡排序树

    C.m-1叉平衡排序树

    D.m+1叉平衡排序树

19.To sort N records by merge sort, the worst-case time complexity is:

    A.O(logN)

    B.O(N)

    C.O(NlogN)

    D.O(N2)

20.To sort N records by merge sort, the space complexity is:

    A.O(logN)

    B.O(N)

    C.O(NlogN)

    D.O(N2)

数据结构与算法(周测9-B树与B+树)的更多相关文章

  1. PTA数据结构与算法题目集(中文) 7-31

    PTA数据结构与算法题目集(中文)  7-31 7-31 笛卡尔树 (25 分)   笛卡尔树是一种特殊的二叉树,其结点包含两个关键字K1和K2.首先笛卡尔树是关于K1的二叉搜索树,即结点左子树的所有 ...

  2. 数据结构与算法(周测3-Huffman树)

    判断题 1.Given a Huffman tree for N (≥2) characters, all with different weights. The weight of any non- ...

  3. 浅谈算法和数据结构: 十 平衡查找树之B树

    前面讲解了平衡查找树中的2-3树以及其实现红黑树.2-3树种,一个节点最多有2个key,而红黑树则使用染色的方式来标识这两个key. 维基百科对B树的定义为“在计算机科学中,B树(B-tree)是一种 ...

  4. 转 浅谈算法和数据结构: 十 平衡查找树之B树

    前面讲解了平衡查找树中的2-3树以及其实现红黑树.2-3树种,一个节点最多有2个key,而红黑树则使用染色的方式来标识这两个key. 维基百科对B树的定义为"在计算机科学中,B树(B-tre ...

  5. 浅谈算法和数据结构: 七 二叉查找树 八 平衡查找树之2-3树 九 平衡查找树之红黑树 十 平衡查找树之B树

    http://www.cnblogs.com/yangecnu/p/Introduce-Binary-Search-Tree.html 前文介绍了符号表的两种实现,无序链表和有序数组,无序链表在插入的 ...

  6. 数据结构与算法系列研究五——树、二叉树、三叉树、平衡排序二叉树AVL

    树.二叉树.三叉树.平衡排序二叉树AVL 一.树的定义 树是计算机算法最重要的非线性结构.树中每个数据元素至多有一个直接前驱,但可以有多个直接后继.树是一种以分支关系定义的层次结构.    a.树是n ...

  7. 数据结构与算法(九):AVL树详细讲解

    数据结构与算法(一):基础简介 数据结构与算法(二):基于数组的实现ArrayList源码彻底分析 数据结构与算法(三):基于链表的实现LinkedList源码彻底分析 数据结构与算法(四):基于哈希 ...

  8. Android版数据结构与算法(七):赫夫曼树

    版权声明:本文出自汪磊的博客,未经作者允许禁止转载. 近期忙着新版本的开发,此外正在回顾C语言,大部分时间没放在数据结构与算法的整理上,所以更新有点慢了,不过既然写了就肯定尽力将这部分完全整理好分享出 ...

  9. Java数据结构和算法 - 什么是2-3-4树

    Q1: 什么是2-3-4树? A1: 在介绍2-3-4树之前,我们先说明二叉树和多叉树的概念. 二叉树:每个节点有一个数据项,最多有两个子节点. 多叉树:(multiway tree)允许每个节点有更 ...

  10. Java数据结构和算法(七)B+ 树

    Java数据结构和算法(七)B+ 树 数据结构与算法目录(https://www.cnblogs.com/binarylei/p/10115867.html) 我们都知道二叉查找树的查找的时间复杂度是 ...

随机推荐

  1. JavaScript中的内存溢出与内存泄漏

    内存溢出 是一种程序运行出现的错误: 当程序运行需要的内存超过了剩余的内存时, 就出抛出内存溢出的错误 var obj = {} for (var i = 0; i < 100000; i++) ...

  2. Windows安装Python3 curses模块

    目录 0.前提 1.pip install wheel 2.下载.whl文件 3.pip install 它 参考 0.前提 确定你已经配置好了Python相关环境,可以正常在命令行使用pip安装. ...

  3. winrunner 测试工具

    WinRunner在项目中的作用     (winrunner测试设计:http://blog.chinaunix.net/uid/301743/year-2013-list-81.html?/178 ...

  4. 本地git工作流

    一:add后的回退代码 1.在原有已经的基础上,又新增加了一个小需求 经过修改,添加到暂存区. 这个时候,会存在modified文件: 2.然后,又说需求不需要存在了 可以进行丢弃 在reset后,需 ...

  5. 解决Ubuntu系统“无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系”的有效方法

    ubuntu系统下安装东西,很多时候会出现版本冲突的情况: 有效的解决方法是使用aptitude来帮助降级. 首先安装aptitude 而后使用aptitude来安装前面有冲突的构建,同样也是要使用r ...

  6. Java基础 throw 抛出异常后,用try...catch捕获

        JDK :OpenJDK-11      OS :CentOS 7.6.1810      IDE :Eclipse 2019‑03 typesetting :Markdown   code ...

  7. Node add Test1

    root_group->addChild(node22); osg::Vec3f vec3f1 = node22->getBound().center(); osg::NodePathLi ...

  8. [译]如何在红帽系统(RHEL)上源码安装python3?

    原文来源: https://stackoverflow.com/questions/8087184/installing-python-3-on-rhel 很容易手动安装. 1.下载对应的python ...

  9. python初级(302) 3 easygui简单使用二

    一.复习 1.easygui 信息提示对话框 2.easygui 是否对话框 二.easygui其它组件 1.选择对话框:choicebox(msg, title, choices) import e ...

  10. 【linux基础err】NVIDIA-SMI has failed because it could't communicate with the NVIDIA driver.

    问题 安装nvidia driver和cuda关机重启之后出现不能进入系统的问题,进入命令行模式使用nvidia-smi检查驱动的问题. nvidia-smi NVIDIA-SMI has faile ...