首页> 外国专利> K-ARY TREE TO BINARY TREE CONVERSION THROUGH COMPLETE HEIGHT BALANCED TECHNIQUE

K-ARY TREE TO BINARY TREE CONVERSION THROUGH COMPLETE HEIGHT BALANCED TECHNIQUE

机译:通过完整的高度平衡技术从K-ARY树到二叉树的转换

摘要

Technologies are generally provided for converting a k-ary tree to an equivalent height balanced binary tree. A k-ary tree root may be first set as the binary tree root. Nodes may then be inserted in the binary tree based on nodes of the k-ary tree. First two children of each k-ary tree node may be inserted as left and right children in the binary tree. If there are additional children, those may be inserted into a child queue. If there are less than two children in the k-ary tree, children from the child queue may be used to fill the left and right child nodes in the equivalent binary tree repeating the process level-wise until all nodes in the k-ary tree are processed.
机译:通常提供用于将k元树转换为等效高度平衡的二叉树的技术。可以首先将k元树的根设置为二叉树的根。然后可以基于k进制树的节点将节点插入到二进制树中。每个k元树节点的前两个子级可以作为左子级和右子级插入二叉树中。如果还有其他子代,则可以将其插入子代队列。如果k元树中的子节点少于两个,则可使用子队列中的子节点填充等效二叉树中的左右子节点,逐级重复此过程,直到k元树中的所有节点为止被处理。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号