期刊文献+

一种构建严格平衡二叉搜索树的非递归算法 被引量:4

A non-recursive algorithm of constructing strict balance two binary search tree
下载PDF
导出
摘要 针对传统算法所构造的平衡二叉搜索树并非真正平衡的二叉搜索树,设计了一种构建严格平衡二叉搜索树的非递归算法。改进后的算法具有计算速度快、占用内存小、计算机易于实现等优点。改进算法的核心是生成严格二叉搜索树的先序序列,提出了对升序序列的进行二分得到严格二叉搜索树的先序序列,讨论并给出了构建严格二叉搜索树的快速算法,该算法充分利用了栈在计算过程中提供的二分信息得到严格二叉搜索树的先序序列,该算法与传统算法相比可更快地构建严格二叉搜索树。 In view of the balance two binary search tree constructed with the traditional algorithm is not a really bal- ance binary search tree,this paper idesigns a non- recursive algorithm of constructing a strict balance two binary search tree. The improved algorithm has the advantages of faster calculation speed,small memory space,being easy to be realized by computers. The core of the improved algorithmto is to generate the first order sequence of the strict two binary search tree. It is proposed to find the optimal solution of routing problem. It presents a method to gain the the first order sequence of the strict two binary search tree by dividing the ascending sequence into half,discusses and gives a s fast algorithm to construct the strict binary search tree. The algorithm makes full use of the information divided by two to gain the first order sequence of the strict two binary search tree. The algorithm has higher efficien- cy compared with the traditional algorithm to construct a strict two binary search tree.
作者 王防修 周康
出处 《武汉工业学院学报》 CAS 2013年第4期32-34,43,共4页 Journal of Wuhan Polytechnic University
基金 国家自然科学基金资助项目(61179032)
关键词 二叉搜索树 平衡二叉树 严格平衡二叉树 平衡二叉搜索树 严格平衡二叉搜索树 two binary search tree balance two binary tree strict balance two binary tree balance two binary search tree strict balance two binary search tree
  • 相关文献

参考文献9

二级参考文献20

  • 1Foster C C. Information storage and retrieval using AVL trees [C]. Proc. ACM 20th Nat. Conf. 1965, pp. 192-205.
  • 2Gaiperin,Rivest R.Scapegoat Trees[C].In Proceedings of the 4th Annual ACM-SIAM Symposium on Discrete Algorithms(SODA 93),1993:165-174.
  • 3Sleator D D,Tarjan R E.Self-adjusting Binary Search Trees[J].JACM,1985,32:652-686.
  • 4Bent S W,Driscoli J R.Randomly Balanced Search Trees[M].Manuscript,1991.
  • 5Haeupler B,Sen S,Tarjan R E.Rank-Balanced Trees[C].11th International Workshop on Algorithms and Data Structures(WADS 2009),Aug 21-23,2009 Banff Canada.Algorithms and Data Structures,2009:351-362.
  • 6Adelson-Velskii G M,Landis E M.An Algorithm for the Organization of Information[J].Soviet.Mat.Doklady,1962.
  • 7Baer J L.Weight-balanced Trees[C].Proceedings of AFIPS 1975 NCC.,1975,44:467-472.
  • 8CollinsWJ.影印版:数据结构与STL[N].北京:机械工业出版社,2003.353-380.
  • 9严蔚敏 吴伟民.数据结构[M].北京:清华大学出版社,1997..
  • 10Yan WM,Wu WM.Data Structures (C Language).Beijing:Tsinghua University Press,1997.233 ~ 238(in Chinese)

共引文献21

同被引文献22

  • 1岑岗,周炳生.严格平衡二叉排序树及其构造[J].计算机工程与应用,2005,41(13):57-60. 被引量:7
  • 2朱宇,张红彬.平衡二叉树的选择调整算法[J].中国科学院研究生院学报,2006,23(4):527-533. 被引量:11
  • 3徐孝凯,贺桂英.数据结构(c语言描述)[M].北京:清华大学出版社,2008.
  • 4SHAVIT N. Data structures in the multicore age[J]. Communications of the ACM, 2011,54(3):76-84.
  • 5JUAN B, YADRAN E. A concurrent red black tree[J]. Journal of Parallel and Distributed Computing, 2013,73(4):434-449.
  • 6BRONSON N G, CASPER J, CHAFI H, et al. A practical concurrent binary search tree[C]//Proceedings of the 15th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming. New York:ACM, 2010:257-268.
  • 7AFEK Y, KAPLAN H, KORENFELD B, et al. CBTree: a practical concurrent self-adjusting search tree[C]//Proceedings of the 26th International Conference on Distributed Computing. Berlin: Springer, 2012,7611:1-15.
  • 8LARSEN K S. AVL trees with relaxed balance[J]. Journal of Computer and System Sciences, 2000,61(3):508-522.
  • 9FAITH E, PANAGIOTA F, ERIC R, et al. Non-blocking binary search trees[C]//Proceedings of the 29th ACM SIGACT-SIGOPS Symposium on Principles of Distributed Computing. New York: ACM, 2010:131-140.
  • 10HERLIHY M, LEV Y, LUNCHANGCO V, et al. A provably correct scalable concurrent skip list[C]//Proceedings of the 22nd Annual Symposium on Principles of Distributed Computing. New York: ACM, 2003:92-101.

引证文献4

二级引证文献4

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部