A set of vertices of an acyclic digraph is convex if $X\neq \emptysetX$ which contains a vertex not in . A set is connected if and the underlying undirected graph of the subgraph of induced by is connected. Connected convex sets and convex sets of acyclic digraphs are of interest in the area of modern embedded processor technology. We construct an algorithm for enumeration of all connected convex sets of an acyclic digraph of order . The time complexity of is , where is the number of connected convex sets in . We also give an optimal algorithm for enumeration of all (not just connected) convex sets of an acyclic digraph of order . In computational experiments we demonstrate that our algorithms outperform the best algorithms in the literature. Using the same approach as for , we design an algorithm for generating all connected sets of a connected undirected graph . The complexity of the algorithm is where is the order of and is the number of connected sets of The previously reported algorithm for connected set enumeration is of running time , where is the number of edges in

生成讲解博客的中文版本

生成AI智能校验的中文版本