BinaryTree 判别二叉树是否为二叉排序树

上传者: Ang_go | 上传时间: 2021-06-07 17:03:19 | 文件大小: 316KB | 文件类型: RAR
请编写一个判别给定二叉树是否为二叉排序树的算法。 递归遍历,若根结点的左子树不空,则左子树上所有结点的值均小于它的根结点的值。若根结点的右子树不空,则右子树上所有结点的值均大于它的根结点的值。如果左子树结点的值比根结点的大,或者右子树结点的值比根结点的小,则不是二叉排序树。

文件下载

资源详情

[{"title":"( 22 个子文件 316KB ) BinaryTree 判别二叉树是否为二叉排序树","children":[{"title":"readme -.docx <span style='color:#111;'> 97.11KB </span>","children":null,"spread":false},{"title":"BinaryTree.sln <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"BinaryTree.pdb <span style='color:#111;'> 588.00KB </span>","children":null,"spread":false},{"title":"BinaryTree.exe <span style='color:#111;'> 50.50KB </span>","children":null,"spread":false},{"title":"BinaryTree.ilk <span style='color:#111;'> 429.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"BinaryTree","children":[{"title":"Main.cpp <span style='color:#111;'> 754B </span>","children":null,"spread":false},{"title":"BinaryTree.vcxproj.user <span style='color:#111;'> 168B </span>","children":null,"spread":false},{"title":"BinaryTree.h <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"BinaryTree.log <span style='color:#111;'> 79B </span>","children":null,"spread":false},{"title":"BinaryTree.tlog","children":[{"title":"CL.write.1.tlog <span style='color:#111;'> 356B </span>","children":null,"spread":false},{"title":"BinaryTree.lastbuildstate <span style='color:#111;'> 149B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 762B </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 11.65KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 680B </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 334B </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false}],"spread":true},{"title":"vc142.pdb <span style='color:#111;'> 404.00KB </span>","children":null,"spread":false},{"title":"vc142.idb <span style='color:#111;'> 147.00KB </span>","children":null,"spread":false},{"title":"BinaryTree.exe.recipe <span style='color:#111;'> 250B </span>","children":null,"spread":false},{"title":"Main.obj <span style='color:#111;'> 59.35KB </span>","children":null,"spread":false}],"spread":true},{"title":"BinaryTree.vcxproj.filters <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"BinaryTree.vcxproj <span style='color:#111;'> 7.10KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明