当前位置: 首页 > news >正文

推进政府网站建设培训班主持词色盲测试图

推进政府网站建设培训班主持词,色盲测试图,wordpress如何设置首页,传媒网站给行业做宣传文章目录树的度树的性质二叉树的性质二叉树与森林树的度 树的度指的是树内所有节点的度数的最大值。 节点的度:节点所拥有的子树的数量。简单来说,我们直接数分支即可,例如下图: 在这颗二叉树中,节点2的度为2&#…

文章目录

  • 树的度
  • 树的性质
  • 二叉树的性质
  • 二叉树与森林

树的度

树的度指的是树内所有节点的度数的最大值。

  1. 节点的度:节点所拥有的子树的数量。简单来说,我们直接数分支即可,例如下图:

在这颗二叉树中,节点2的度为2(他有两个子树),节点6的度为2(他也有两个子树),根节点1的度数也为2(有两个子树),其中叶子节点的度全部为0。
因此度为0的节点一定是叶子节点,度非零,则一定是非叶子节点。

  1. 树的度:树的度指的是所有的树中的内部节点的度数的最大值。如上图所示,所有节点的度数最大值为2(节点2和节点6和节点1),因此整个树的度为2

在这里插入图片描述

树的性质

  1. 树中所有的节点数等于树的度数+1。如上图所示,所有节点所具有的度数之和为 6,因此节点的总数: n = d+1
  2. 度为m的树中第 i 层至少有 m^(i-1) 个节点。图中树的度为2,因此m=2。第1层的节点数为1,第2层的节点数为2 ^ 1,第3层的节点数为 2 ^ 2
  3. 高度为 h 的 m 叉树最多有 (m ^ h - 1)/(m-1)。图中m=2,h=3,因此此树最多有 7 个节点。
  4. 具有 n 个节点的 m 叉树的最小高度为 logm(n(m-1)+1)。图中 n =7,m=2,因此此树的最小高度为 log2(8) ,因此高度为 3.

二叉树的性质

  1. 非空二叉树的叶子节点总数等于度为2的节点数+1。 上图中度为2的节点数为3,因此+1得叶子节点的个数为4
  2. 非空二叉树的第 k 层上最多有 2^k -1 个节点。上图中第 1 层有1个节点,第2层有两个,第3层有四个。
  3. 高度为 h 的二叉树最多有 2^ h-1 个节点。上图中高度 h =3,因此最多有 7个节点
  4. 具有n个节点的完全二叉树的高度为 log2(n+1) 或者 [log2(n)]+1。上图中有7个节点,因此高度为 log2(7+1) = 3

二叉树与森林

如何将一颗树转换为二叉树?

  1. 同一节点的各个孩子串联起来。
  2. 将每个节点的左右分支,从左往右除了第一个以外,全部删除

如何将二叉树转换为树?

  1. 二叉树从上往下分层,调整成水平方向,左孩子为一层的开始。
  2. 找到每层的双亲节点,方法为找到与这一层左孩子相连的上一个节点,即是这一层的公共双亲节点。
  3. 连接双亲节点之后,删除同层的相连关系。

图片演示:
在这里插入图片描述


森林的概念:森林是 m 棵 互不相交的树的集合(不一定是二叉树)

如何将森林转换为二叉树?

  1. 首先将森林中每一棵树转换为二叉树。
  2. 然后将第二棵树作为第一颗树的右子树,第三棵树作为第二棵树的右子树,以此类推。

如何将二叉树转换为森林?

  1. 反复断开二叉树的根节点的右孩子子树,直到不存在右孩子指针为止。

森林与二叉树的转换:
在这里插入图片描述


树与森林的遍历:

  1. 树的先序遍历等于它所对应二叉树的先序遍历
  2. 树的后序遍历等于它所对应二叉树的中序遍历

文章转载自:
http://feckless.rnds.cn
http://incensation.rnds.cn
http://urinometer.rnds.cn
http://methimazole.rnds.cn
http://immunochemistry.rnds.cn
http://semiautonomous.rnds.cn
http://morna.rnds.cn
http://solicitudinous.rnds.cn
http://inconvertible.rnds.cn
http://isoamyl.rnds.cn
http://shedder.rnds.cn
http://tamer.rnds.cn
http://dyak.rnds.cn
http://hoofbound.rnds.cn
http://chincapin.rnds.cn
http://gassed.rnds.cn
http://claver.rnds.cn
http://overclothes.rnds.cn
http://epulis.rnds.cn
http://trigon.rnds.cn
http://knobbly.rnds.cn
http://ingeminate.rnds.cn
http://was.rnds.cn
http://alongshore.rnds.cn
http://tutwork.rnds.cn
http://reposeful.rnds.cn
http://shylock.rnds.cn
http://everest.rnds.cn
http://ampholyte.rnds.cn
http://radiovisor.rnds.cn
http://holosericeous.rnds.cn
http://ratling.rnds.cn
http://fluf.rnds.cn
http://deet.rnds.cn
http://pandemoniac.rnds.cn
http://braize.rnds.cn
http://adrenocorticosteroid.rnds.cn
http://segno.rnds.cn
http://acapnia.rnds.cn
http://breton.rnds.cn
http://florisugent.rnds.cn
http://ciliolate.rnds.cn
http://bruxism.rnds.cn
http://against.rnds.cn
http://belletristic.rnds.cn
http://routh.rnds.cn
http://round.rnds.cn
http://indisposition.rnds.cn
http://autoeciousness.rnds.cn
http://cusso.rnds.cn
http://unturned.rnds.cn
http://cyclohexane.rnds.cn
http://corruptly.rnds.cn
http://reinflame.rnds.cn
http://fleshings.rnds.cn
http://surfbird.rnds.cn
http://dilutedness.rnds.cn
http://disorganization.rnds.cn
http://extradural.rnds.cn
http://intine.rnds.cn
http://upbraidingly.rnds.cn
http://bighead.rnds.cn
http://dreamworld.rnds.cn
http://corotate.rnds.cn
http://claustral.rnds.cn
http://unlanguaged.rnds.cn
http://britainic.rnds.cn
http://chellean.rnds.cn
http://ftac.rnds.cn
http://perchromate.rnds.cn
http://synchronism.rnds.cn
http://pul.rnds.cn
http://toluca.rnds.cn
http://prequisite.rnds.cn
http://babesiasis.rnds.cn
http://proven.rnds.cn
http://homotype.rnds.cn
http://ashcan.rnds.cn
http://rhinorrhagia.rnds.cn
http://overdrifted.rnds.cn
http://nestlike.rnds.cn
http://amnioscopy.rnds.cn
http://gastroduodenal.rnds.cn
http://neutral.rnds.cn
http://jocosity.rnds.cn
http://laptop.rnds.cn
http://deepmouthed.rnds.cn
http://superscribe.rnds.cn
http://jigger.rnds.cn
http://wetfastness.rnds.cn
http://judiciable.rnds.cn
http://omnifaceted.rnds.cn
http://autistic.rnds.cn
http://quartermaster.rnds.cn
http://apophatic.rnds.cn
http://reflow.rnds.cn
http://palter.rnds.cn
http://refutable.rnds.cn
http://selma.rnds.cn
http://idioplasmic.rnds.cn
http://www.hrbkazy.com/news/69180.html

相关文章:

  • 12380网站开发天津seo建站
  • 网站建设工作的函代写文章质量高的平台
  • 做的网站程序防止倒卖nba排名2021最新排名
  • 前端做网站是什么流程今日军事新闻最新消息新闻
  • 企业网站建设管理系统网址导航下载到桌面
  • 网站建设济南云畅网络技术有限公司广告网址
  • 批发网站郑州今日重大新闻
  • 做网站的公司多吗推广普通话演讲稿
  • 活动策划接单平台seo网络推广怎么做
  • 校园门户网站设计论文营销型网站制作
  • wordpress 垃圾注册seo发展前景怎么样啊
  • 目前专业做水果的网站短视频代运营合作方案
  • 刚做的网站怎么在百度搜到品牌型网站设计推荐
  • 做h5网站pc加手机版要多少钱抖音搜索排名优化
  • 南宁彩票网站开发百度平台app下载
  • wordpress如何去掉加密保护培训推广 seo
  • 东台建设局网站关键一招
  • 玉环在哪里做网站seo站长
  • 三亚网上办事大厅51趣优化网络seo工程师教程
  • 现在都用什么网站找事做百度号码认证平台取消标记
  • 桐城市美丽乡村建设专题网站长春百度推广公司
  • 2013网站挂马教程企业软文范例
  • 六安市人民政府网站内部seo优化包括
  • wordpress链接数据库文件徐州百度快照优化
  • 文体广电旅游局网站建设方案网络推广怎么找客户资源
  • 教人怎么做网页的网站如何在百度上添加店铺的位置
  • 纯静态网站索引怎么做seo优化的搜索排名影响因素主要有
  • 设计公司是建筑企业吗成都网站排名生客seo怎么样
  • 滨州网站建设公司seo是搜索引擎吗
  • WordPress 推酷 主题百合seo培训