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

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

于 2023-08-09 发布 文件大小:1.07 kB
0 165
下载积分: 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 个回复

  • idct the code to achieve common DCT, fast DCT, fast IDCT algorithm
    idct the code to achieve common DCT, fast DCT, fast IDCT algorithm
    2023-04-07 10:45:03下载
    积分:1
  • 工厂设计模式的示例 C#
    这是在 Visual Studio 2012 上使用 C#.NET 的工厂设计模式执行的一个例子。 在软件设计迟早要用到一家工厂中有许多方案。基本上,当你使用一个家庭类多态性-盟友,你可以从使用工厂获益。通常一家工厂提供了以下好处: 脱钩了解如何创建具体类型的实例的客户端代码 (您使用这些类的代码) 将分离的客户端代码从这些具体的类本身的知识。这就是客户端代码只知道的抽象基类或接口,但不是派生或混凝土类 下面是同样的示范。
    2022-04-10 18:35:56下载
    积分:1
  • Tubor C
    Tubor C下写的五子棋 Tubor C下写的五子棋 Tubor C下写的五子棋-Tubor C
    2022-10-16 14:10:02下载
    积分:1
  • wince 手机界面编程,全屏的手机程序。
    wince 手机界面编程,全屏的手机程序。-wince mobile phone interface programming, full-screen cell phone program.
    2022-02-06 15:13:04下载
    积分:1
  • 计算机图形学作业,一个正方形绕圆转动并自转
    计算机图形学作业,一个正方形绕圆转动并自转-computer graphics operation, a rotating circle around the square and rotation
    2022-05-22 19:25:49下载
    积分:1
  • WinCE串口通信,包括X86、ARM处理器体系结构。
    Wince下的串口通讯,包括x86、Arm CPU架构。-Wince of serial communications, including x86, Arm CPU architecture.
    2022-01-30 11:27:28下载
    积分:1
  • small win32
    小巧的win32反汇编程序-small win32- assembler
    2023-03-03 02:30:04下载
    积分:1
  • Mewtocol vs2012
    PLC 通讯 Mewtocol 计算机发送命令 (说明) 到可编程控制器,和接收响应的回报。这将使计算机和可编程序控制器交谈与对方,这样可以得到的各种信息和提供。
    2022-01-26 05:03:23下载
    积分:1
  • 根据IP地址得出内网中相应主机的主机名,便于C/S程序
    根据IP地址得出内网中相应主机的主机名,便于开发C/S程序 -come under the IP addresses within the network corresponding host name of the host to facilitate the development of the C/S procedures
    2022-01-28 23:51:59下载
    积分:1
  • 实现unicode及其它字符编码的转换源码
    实现unicode及其它字符编码的转换源码-To achieve and other unicode character encoding conversion source
    2022-06-19 06:11:52下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载