登录
首页 » Windows开发 » 以深度为k的满二叉树(n=2k

以深度为k的满二叉树(n=2k

于 2023-08-09 发布 文件大小:1.07 kB
0 200
下载积分: 2 下载次数: 1

代码说明:

以深度为k的满二叉树(n=2k-1)为例,假设表中每个记录的查找概率相等,即 pi=1/n(1≤i≤n),而树的第i层上有2i-1个结点,因此,折半查找的平均查找长度为: 所以,折半查找的平均时间复杂度为O(log2n)。 -To a depth of k over the binary tree (n = 2k-1) as an example, suppose the table to find the probability of each record the same, that is, pi = 1/n (1 ≤ i ≤ n), and the tree layer of the first i There are 2i-1 nodes, therefore, to find half the average length of search as follows: Therefore, to find half the average time complexity is O (log2n).

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 一个数字化的时钟,希望对大家有用
    一个数字化的时钟,希望对大家有用-A digital clock, in the hope that useful U.S.
    2022-03-21 05:38:25下载
    积分:1
  • 样品的正方体Delphi 7
    样品用超立方体作为包装tesseract.dll和修改的源代码用Delphi 7到下一个版本也使用。样本包括GIF演示模拟使用Tesseract。放在正确的地方,其内容目录tessadata很重要(多种语言)。
    2022-06-03 18:34:43下载
    积分:1
  • flash p2p dianbo
    FLASH P2P 相关,视频点播视频点播视频点播视频点播先关的源代码。自己可以通过源代码学习AS编程,原理比较简单。
    2022-01-31 21:49:45下载
    积分:1
  • VB编写的,对INI文件的读写操作的例子源码。
    VB编写的,对INI文件的读写操作的例子源码。-VB prepared to read and write operations to the INI file example source code.
    2022-05-05 17:18:21下载
    积分:1
  • CRC编码算法,用VC实现
    CRC编码算法,用VC实现-CRC coding algorithm, with VC
    2023-07-13 05:00:03下载
    积分:1
  • flash网站素材,做网站的朋友们可以收集
    flash网站素材,做网站的朋友们可以收集-flash web site material, so the site can collect friends
    2023-08-06 04:10:03下载
    积分:1
  • vc下socket编程例子
    vc下socket编程例子-the example of socket program in vc
    2023-02-25 07:00:03下载
    积分:1
  • 杰克CFile质量更好的膨胀。
    wince的CFile的扩展..比较好用-Jack CFile the expansion of better quality ..
    2022-01-25 15:18:20下载
    积分:1
  • 读取rinex文件的完整vc程序
    RINEX(接收机自主交换格式/接收机无关交换格式)是在GPS测量应用的标准数据格式常用。的格式使用的文本文件来存储数据,独立于制造商和接收机数据记录格式和具体模型你想读的RINEX files.this是一个项目塔可以帮助你做到这一点!试试吧!
    2022-03-02 09:24:25下载
    积分:1
  • 制度管理体系
    Institution Management System
    2022-02-01 11:01:44下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载