首页> 外文期刊>Indian Journal of Computer Science and Engineering >A Sorting based Algorithm for the Construction of Balanced Search Tree Automatically for smaller elements and with minimum of one Rotation for Greater Elements from BST
【24h】

A Sorting based Algorithm for the Construction of Balanced Search Tree Automatically for smaller elements and with minimum of one Rotation for Greater Elements from BST

机译:BST中基于排序的自动构建平衡搜索树的算法,对于较小的元素,最小的旋转至少一个

获取原文
           

摘要

Tree is a best data structure for data storage and retrieval of data whenever it could be accommodated in the memory. At the same time, this is true only when the tree is height-balanced and lesser depth from the root. In this paper, we propose a sorting based new algorithm to construct the Balanced search tree from Binary Search Tree with minimum of one rotation for the given elements n >14. If the given elements n 14 , it requires one rotation from the BST., and the search cost is minimum as possible. In this paper, few case studies have been carried out and analyzed in terms of height and space requirement. Hence, the height of the output BST, normally obtain by maximum height as N/2 or (N/2) ? 3.
机译:无论何时将树容纳在内存中,树都是用于数据存储和检索的最佳数据结构。同时,这仅在树是高度平衡且距根的深度较小时才成立。在本文中,我们提出了一种基于排序的新算法,该算法可从二元搜索树构造出平衡搜索树,其中给定元素n> 14至少旋转一圈。如果给定元素n 14,则需要从BST。旋转一圈,并且搜索成本尽可能最小。在本文中,很少进行案例研究并根据高度和空间需求进行分析。因此,输出BST的高度通常以最大高度为N / 2或(N / 2)≤N获得。 3。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号