Clique-Width and Directed Width Measures for Answer-Set Programming

Bernhard Bliem, Sebastian Ordyniak, Stefan Woltran

Abstract Answer-Set Programming (ASP) is a powerful paradigm for solving complex combinatorial problems, yet its core decision problems are typically $\Sigma^P_2$-complete. This paper investigates the boundaries of computational tractability for ASP by exploring structural properties of logic programs. We demonstrate that while most directed graph measures fail to provide tractability, the parameter of signed clique-width on a program's incidence graph enables a novel, efficient fixed-parameter tractable (FPT) algorithm.

Introduction

Answer-Set Programming (ASP) has emerged as a dominant tool for knowledge representation and reasoning. However, the high computational cost—specifically the $\Sigma^P_2$-completeness of checking answer set existence—poses a significant barrier. To address this, researchers seek "tractable fragments" where specific structural parameters, when bounded, allow for polynomial-time solutions. While undirected measures like treewidth have been successful, they do not capture all instances of "easy" structures. This study evaluates whether more general measures, particularly those for directed graphs or clique-width, can expand the known tractable classes of ASP.

The Failure of Directed Width Measures

A common approach to analyzing program structure is through the dependency graph, where nodes represent atoms and edges represent dependencies within rules. The researchers tested a wide array of directed width measures, including cycle-rank, DAG-width, and Kelly-width.

Hierarchy of directed width measures and their relationships.

Despite the intuitive appeal of these measures for directed structures, the results were largely negative. The authors proved that ASP consistency remains $\Sigma^P_2$-complete even when the dependency graph is extremely simple (e.g., having a cycle-rank of 2). This suggests that the directionality of dependencies alone is insufficient to mitigate the inherent complexity of subset-minimality checks required in ASP.

Signed Clique-Width and the Incidence Graph

Shifting focus from dependency graphs to incidence graphs proved more fruitful. In an incidence graph, both atoms and rules are represented as nodes, with edges connecting atoms to the rules in which they appear. Crucially, these edges are "signed" or labeled based on the atom's role: head ($h$), positive body ($p$), or negative body ($n$).

The authors focused on clique-width, a parameter more general than treewidth. They developed a Dynamic Programming (DP) algorithm that operates on a "cwd-expression"—a sequence of operations used to construct the graph.

A cwd-expression tree (top) and the corresponding signed incidence graph (bottom).

The algorithm processes this expression bottom-up, maintaining sets of triples and pairs to track potential models and satisfy subset-minimality requirements. This approach yields the first explicit FPT algorithm for ASP on bounded clique-width.

The Importance of Edge Labels

A key finding is that the labels ($h, p, n$) are not merely descriptive but mathematically necessary for tractability. The authors established that merging certain labels—such as treating head atoms and positive body atoms identically—renders the problem W[1]-hard. This indicates that the structural distinction between how an atom is defined (head) and how it is used (body) is vital for maintaining efficiency.

Conclusion

This research identifies signed clique-width on incidence graphs as a powerful parameter for achieving tractability in ASP. While directed measures on dependency graphs do not offer a shortcut, the DP algorithm for bounded clique-width provides a theoretical foundation for more efficient solvers. Future work includes addressing the NP-hardness of computing optimal clique-width and implementing these algorithms in practical ASP systems to evaluate their performance against state-of-the-art heuristics.

Summary updated

BibTeX
@inproceedings{bliem2016clique,
  author = {Bernhard Bliem and Sebastian Ordyniak and Stefan Woltran},
  title = {{Clique-Width and Directed Width Measures for Answer-Set Programming}},
  booktitle = {ECAI},
  year = {2016},
  doi = {10.3233/978-1-61499-672-9-1105},
}
Figure