Simple DFS on the complement of a graph and on partially complemented digraphs
详细信息    查看全文
文摘
A complementation operation on a vertex of a digraph changes all outgoing arcs into non-arcs, and outgoing non-arcs into arcs. Given a digraph G, a partially complemented digraph  View the MathML source is a digraph obtained from G by performing a sequence of vertex complement operations on G  . Dahlhaus et al. showed that, given an adjacency-list representation of View the MathML source, depth-first search (DFS) on G   can be performed in View the MathML source time, where n   is the number of vertices and View the MathML source is the number of edges in View the MathML source. This can be used for finding a depth-first spanning forest and the strongly connected components of the complement of G in time that is linear in the size of G  , and Dahlhaus et al. give applications to finding the modular decomposition of an undirected graph that require that some adjacency lists be complemented and others not. To achieve this bound, their algorithm makes use of a somewhat complicated stack-like data structure to simulate the recursion stack, instead of implementing it directly as a recursive algorithm. We give a recursive View the MathML source algorithm that requires no such data-structures.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700