当前位置:网站首页>满k叉树编号为 i 的节点的孩子编号公式推导
满k叉树编号为 i 的节点的孩子编号公式推导
2022-06-11 16:58:00 【wozaizhe.55】
结论
满k叉树编号为i的节点第一个孩子的编号 j 满足
;
推导过程
设: 节点 i 处在该 m 叉树的第 h层, (h = 1, 2, 3...)
则 前 h - 1 层共有
个节点
同理 前 h 层共有
个节点
显然 i 是第 h 层的
个节点, 即 节点i 有
个左兄弟
故节点i 的第一个孩子 j 有
个左兄弟
由此可得 j在第h + 1 层中的位置为 
那么 节点j 在整棵满 k叉树的编号为
即 
整理可得: 
边栏推荐
- Intranet penetration based on UDP port guessing
- GemBox.Bundle 43.0 Crack
- Regression prediction | realization of RBF RBF neural network with multiple inputs and single output by MATLAB
- select into from 和 insert into select 区别
- Le compte de titres de l'école de commerce kainiu est - il sécurisé? Frais d'ouverture de compte
- 【clickhouse专栏】新建库、用户及角色
- Oracle database merge row records, wmsys WM_ Use of the concat function and group in MySQL_ Use and comparison of concat (ID).
- Characteristics of interfaces & comparison between interfaces and abstract classes
- R1 Quick Open Pressure Vessel Operation test Library and Simulation Test in 2022
- 我的CのERROR们
猜你喜欢

2022年R1快開門式壓力容器操作考試題庫及模擬考試

Leetcode 1974. Minimum time to type words using a special typewriter (yes, once)

Research Report on operation mode and investment opportunities of China's aluminum industry 2022-2028

一套ThinkPHP微信小程序商城源码带后台管理

Meituan won the first place in fewclue in the small sample learning list! Prompt learning+ self training practice

^31 prototype interview questions

Environment configuration and pymysql installation

Using MATLAB and dcraw to process digital camera raw files

Connection and difference of network streaming media protocol (RTP RTCP RTMP HLS)

2022年危险化学品经营单位主要负责人考试模拟100题及模拟考试
随机推荐
美团获得小样本学习榜单FewCLUE第一!Prompt Learning+自训练实战
485 days, 21 experiences of my remote office sharing | community essay solicitation
Composition of JVM
ShellBrowser .NET Crack
Learn about Prometheus from 0 to 1
接口的特点&&接口与抽象类的对比
(验证文件)validateJarFile...报错
Leetcode 450. 删除二叉搜索树中的节点
JSP page initial loading method
SQL injection attack under seed emulator (including SQL environment configuration)
Config: user attribute configuration framework
Oracle 分析函数 over 和MySQL 实现类似效果写法
web安全-靶场笔记
从0到1了解Prometheus
网络流媒体协议的联系与区别(RTP RTCP RTSP RTMP HLS)
二级造价工程师值得考吗?发展前景如何?
Simulated 100 questions and simulated examination for main principals of hazardous chemical business units in 2022
2022高压电工特种作业证考试题库及在线模拟考试
VLAN partition and routing between VLANs
Message queue push / pull mode Learning & ActiveMQ and JMS learning