当前位置:网站首页>Derivation of child numbering formula for nodes numbered I in full k-ary tree
Derivation of child numbering formula for nodes numbered I in full k-ary tree
2022-06-11 17:05:00 【wozaizhe. fifty-five】
Conclusion
full k The fork tree number is i The number of the first child of the node j Satisfy
;
Derivation process
set up : node i In this m The second of a fork tree h layer , (h = 1, 2, 3...)
be front h - 1 There are layers in total
Nodes
Empathy front h There are layers in total
Nodes
obviously i It's No h Layer of
Nodes , namely node i Yes
A left brother
So node i The first child of j Yes
A left brother
It can be obtained. j In the h + 1 The position in the layer is 
that node j The whole tree is full k The number of the fork tree is 
namely 
You can get : 
边栏推荐
- Global and China Mobile Network Optimization (MnO) industry development panoramic survey and Investment Strategy Research Report 2022-2028
- Is the securities account given by qiniu business school safe? Do you charge for opening an account
- LeetCode-1005. Maximized array sum after K negations
- 微服务连接云端Sentinel 控制台失败及连接成功后出现链路空白问题(已解决)
- Rdkit tutorial
- Redis - learn five types of NoSQL
- 【pytest学习】pytest 用例执行失败后其他不再执行
- Rdkit installation
- Redis --- 学习 NoSQL 五大类型
- 二级造价工程师值得考吗?发展前景如何?
猜你喜欢

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

VLAN partition and routing between VLANs

API management artifact that allows you to call wow directly

C语言:使用.h和.c文件遇到的问题总结

Development planning of China's stainless steel market and suggestions on the development direction of the 14th five year plan 2022-2028

Docker安装mysql5.7(开启binlog功能、修改字符)

Elasitcsearch基础学习笔记(1)

核密度估计(二维、三维)

pycharm和anaconda的基础上解决Jupyter连接不上Kernel(内核)的问题--解决方案1

From a "trendsetter" to a "wind chaser", can master Kang still lead the market?
随机推荐
A simple understanding of closures
Song of the sea in 5g Era
Elasitcsearch基础学习笔记(1)
Analysis report on competition pattern and future development strategy of China's corn industry 2022-2028 Edition
用实际案例分析PMP与ACP应该考哪个?哪个更有用?
Analyze which should be tested in PMP and ACP with actual cases? Which is more useful?
Learning C language from scratch day 039
【clickhouse专栏】新建库、用户及角色
LeetCode——42. Connected to rainwater (double pointer)
《DAMA数据管理知识体系指南》:章节分值占比
Wechat applet timestamp conversion time format + time subtraction
Leetcode 450. 删除二叉搜索树中的节点
Connection and difference of network streaming media protocol (RTP RTCP RTMP HLS)
我的CのERROR们
2022 high altitude installation, maintenance and demolition test simulation 100 questions and online simulation test
满k叉树编号为 i 的节点的孩子编号公式推导
数据库全量SQL分析与审计系统性能优化之旅
solr(一)solr的安装及权限控制
tornado环境搭建及基本框架搭建——熟悉的hello world
Oracle database merge row records, wmsys WM_ Use of the concat function and group in MySQL_ Use and comparison of concat (ID).