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

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

于 2023-08-09 发布 文件大小:1.07 kB
0 220
下载积分: 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 small fee charged Internet software
    2022-04-17 10:56:50下载
    积分:1
  • 滑动条的显示状态
    滑动条的显示状态-sliding strip"s state
    2022-08-03 14:26:52下载
    积分:1
  • 另类Windows关机程序
    另类Windows关机程序-alternative Windows shutdown procedure
    2023-01-22 20:00:03下载
    积分:1
  • failed to translate
    可以轻松的实现查看程序窗口的句柄和dll等属性-failed to translate
    2023-03-10 21:10:04下载
    积分:1
  • 这是一个用Hook屏蔽鼠标与键盘的小程序。 用F12退出。
    这是一个用Hook屏蔽鼠标与键盘的小程序。 用F12退出。-This is a shield with Hook mouse and keyboard of small programs. Using F12 withdrawal.
    2023-06-07 02:55:03下载
    积分:1
  • MFC简单计算器:可以输入任何有效数字进行加减乘除运算
    MFC简单计算器:可以输入任何有效数字进行加减乘除运算-calculator:have function by+,-,*,/
    2022-10-11 01:25:03下载
    积分:1
  • NS的编程和调试
    NS编程与调试 - NOAH 模块 noah是一个无线路由代理(相对于DSDV ,路由, ... )只支持直接沟通的无线节点之间或基站和移动节点的情况下移动IP的使用。这使得模拟的情况下多跳无线路由是不受欢迎的。noah不会发送任何路由相关的数据包。-NS programming and debugging- NOAH Module NOAH is a wireless routing agent that (in contrast to DSDV, DSR, ...) only supports direct communication between wireless nodes or between base stations and mobile nodes in case Mobile IP is used. This allows to simulate scenarios where multi-hop wireless routing is undesired. NOAH does not send any routing related packets.
    2022-03-10 12:11:40下载
    积分:1
  • 方便企业的各项管理,具有多种强大的现代企业管理功能
    方便企业的各项管理,具有多种强大的现代企业管理功能-facilitate the management of enterprises with a variety of powerful modern enterprise management capabilities
    2022-06-18 08:22:14下载
    积分:1
  • 获取 Windows 外壳窗口的句柄
    获取 Windows 外壳窗口的句柄-access to the Windows shell window handle
    2022-12-13 10:40:03下载
    积分:1
  • 对韦伯抛物线柱函数的计算程序
    Routines for computation of Weber s parabolic cylinder functions and their derivatives are provided for both moderate and great values of the argument. Standard, real solutions are considered. Tables of values are included. -Routines for computation of Weber s parabolic cylinder functions and their derivatives are provided for both moderate and great values of the argument. Standard, real solutions are considered. Tables of values are included.
    2023-02-19 23:45:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载