首页 | 本学科首页   官方微博 | 高级检索  
     

并查集的树型存储表示及优化实现
引用本文:曾志雄. 并查集的树型存储表示及优化实现[J]. 现代计算机, 2001, 0(7): 61-63
作者姓名:曾志雄
作者单位:云南广播电视大学 昆明650223
摘    要:本文简单介绍一种特殊的集合—并查集,用树的双亲表示法静态存储并查集的方法,给出了相应的类声明和构造函数,特别是并查集的三种关键操作的实现算法及性能分析,最后通过加权规则改进Union操作,从而消除形成退化树的可能。

关 键 词:并查集  集合  双亲表示法  退化树  加权规则
修稿时间:2001-06-27

The Storage Describing of Union-find Sets in Tree-form and Optimal Realization
ZENG Zhi-xiong. The Storage Describing of Union-find Sets in Tree-form and Optimal Realization[J]. Modem Computer, 2001, 0(7): 61-63
Authors:ZENG Zhi-xiong
Abstract:This paper simply described a special kind of set which is named Union-find sets,which can be store statically through the method of parents describing of tree.Corresponding class-describing and constructed function of that union-find sets were alsogiven in this paper.The realizing method and capability analyzing to three key operation of union-find sets were present also.How the possibility of forming degenerated-tree can be destroyed by an improved operation which in weighted rule was discussed in the last part of this paper.
Keywords:Union-find Sets  Set  Parents-describing  Degenerated-tree  Weighted Rule  
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号