计算机应用 ›› 2014, Vol. 34 ›› Issue (5): 1263-1266.DOI: 10.11772/j.issn.1001-9081.2014.05.1263

• 先进计算 • 上一篇    下一篇

基于重复数的最短循环请求集生成算法

刘恒,李美安,苏萌   

  1. 内蒙古农业大学 计算机与信息工程学院,呼和浩特 010018
  • 收稿日期:2013-11-13 修回日期:2013-12-27 出版日期:2014-05-01 发布日期:2014-05-30
  • 通讯作者: 李美安
  • 作者简介:刘恒(1988-),男,河南开封人,硕士研究生,主要研究方向:云计算;李美安(1973-),男,四川大竹人,教授,博士,主要研究方向:分布式操作系统、分布式算法;苏萌(1988-),女,黑龙江牡丹江人,硕士研究生,主要研究方向:软件工程与测试。

Shortest cyclic quorum generation algorithm based on number of repetitions

LIU Heng,LI Meian,SU Meng   

  1. College of Computer and Information Engineering, Inner Mongolia Agricultural University, Hohhot Nei Mongol 010018, China
  • Received:2013-11-13 Revised:2013-12-27 Online:2014-05-01 Published:2014-05-30
  • Contact: LI Meian

摘要:

在分布式循环请求集长度最短时,针对请求集生成算法的时间复杂度和空间复杂度过高问题,提出了一种基于重复数的最短循环请求集生成算法。算法在基于循环松弛差集的思想上,以当前请求集差集允许的最大重复数作为判断条件,依次向请求集中添加元素。实验结果表明,系统节点数为70到90时,该算法在保证请求集长度最短,且空间复杂度为O(2N)的前提下,使得时间复杂度是穷搜方法的3.6E-03到6.8E-07,降低了最短循环请求集生成算法的时间复杂度。

Abstract:

When the length of the cyclic quorum is the shortest in distributed system, the space complexity and the time complexity of the existing quorum generation algorithm are too high, a new shortest cyclic quorum generation algorithm was presented. Based on the theory of relaxed cyclic difference set, adding elements to the quorum in turn was judged by the condition of maximum allowable number of repetitions. The simulation results show that, when the system node number is 70 to 90, the length of the cyclic quorum is the shortest and the space complexity is O(2n), the time complexity is 3.6E-03 to 6.8E-07 of that of the exhaustive search, and the time complexity of the shortest cyclic quorum generation algorithm is reduced.

中图分类号: