Computer Engineering and Applications ›› 2008, Vol. 44 ›› Issue (28): 60-61.DOI: 10.3778/j.issn.1002-8331.2008.28.021

• 理论研究 • Previous Articles     Next Articles

Improvement of Warshall algorithm based on sparse matrix

ZHANG Shi-long,SHEN Yu-li   

  1. College of Information,Guangdong Ocean University,Zhanjiang,Guangdong 524088,China
  • Received:2007-11-19 Revised:2008-02-25 Online:2008-10-01 Published:2008-10-01
  • Contact: ZHANG Shi-long

稀疏矩阵情况下Warshall算法的改进

张世龙,沈玉利   

  1. 广东海洋大学 信息学院,广东 湛江 524088
  • 通讯作者: 张世龙

Abstract: This paper analyses and compares the famous Warshall algorithm,and presents a column-added algorithm,which is faster than Warshall algorithm when the relation matrix of binary relation is sparse.

Key words: binary relation, transitive closure, warshall algorithm, Column-Added algorithm

摘要: 围绕二元关系的传递闭包分析比较了著名的Warshall算法,给出了一个加列算法。当关系矩阵是稀疏矩阵时,该算法效率比Warshall算法高。

关键词: 二元关系, 传递闭包, Warshall算法, 加列算法