English

Computing H-Partitions in ASP and Datalog

Databases 2022-02-09 v1 Artificial Intelligence Logic in Computer Science

Abstract

A HH-partition of a finite undirected simple graph GG is a labeling of GG's vertices such that the constraints expressed by the model graph HH are satisfied. For every model graph HH, it can be decided in non-deterministic polynomial time whether a given input graph GG admits a HH-partition. Moreover, it has been shown by Dantas et al. that for most model graphs, this decision problem is in deterministic polynomial time. In this paper, we show that these polynomial-time algorithms for finding HH-partitions can be expressed in Datalog with stratified negation. Moreover, using the answer set solver Clingo, we have conducted experiments to compare straightforward guess-and-check programs with Datalog programs. Our experiments indicate that in Clingo, guess-and-check programs run faster than their equivalent Datalog programs.

Keywords

Cite

@article{arxiv.2202.03730,
  title  = {Computing H-Partitions in ASP and Datalog},
  author = {Chloé Capon and Nicolas Lecomte and Jef Wijsen},
  journal= {arXiv preprint arXiv:2202.03730},
  year   = {2022}
}

Comments

17 pages, 8 figures

R2 v1 2026-06-24T09:25:47.296Z