Transitive closure of a directed graph: различия между версиями

Материал из WikiGrapp
Перейти к навигации Перейти к поиску
(Новая страница: «'''Transitive closure of a directed graph''' --- транзитивное замыкание орграфа. Given a digraph <math>G = (V,A)</math>, the ''' transit…»)
 
(нет различий)

Текущая версия от 13:59, 4 августа 2011

Transitive closure of a directed graph --- транзитивное замыкание орграфа. Given a digraph [math]\displaystyle{ G = (V,A) }[/math], the transitive closure of [math]\displaystyle{ G }[/math] is the digraph [math]\displaystyle{ G^{+} = (V,A^{+}) }[/math] such that an arc [math]\displaystyle{ (x,y) }[/math] belongs to [math]\displaystyle{ A^{+} }[/math] iff there exists a path [math]\displaystyle{ P(x,y) }[/math] in [math]\displaystyle{ G }[/math].

Warshall's algorithm computes transitive closures in [math]\displaystyle{ {\mathcal O}(n^{3}) }[/math] time.