Computing H-Partitions in ASP and Datalog

02/08/2022
by   Chloé Capon, et al.
0

A H-partition of a finite undirected simple graph G is a labeling of G's vertices such that the constraints expressed by the model graph H are satisfied. For every model graph H, it can be decided in non-deterministic polynomial time whether a given input graph G admits a H-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 H-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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/22/2023

Testing Isomorphism of Graphs in Polynomial Time

Given a graph G, the graph [G] obtained by adding, for each pair of vert...
research
06/29/2022

Finding k-community structures in special graph classes

For a fixed integer k≥ 2, a k-community structure in an undirected graph...
research
11/09/2022

Description Graphs, Matrix-Power Stabilizations and Graph Isomorphism in Polynomial Time

It is confirmed in this work that the graph isomorphism can be tested in...
research
10/27/2018

Minimizing Branching Vertices in Distance-preserving Subgraphs

It is NP-hard to determine the minimum number of branching vertices need...
research
06/12/2018

Exponential Weights on the Hypercube in Polynomial Time

We address the online linear optimization problem when the decision set ...
research
01/13/2020

Scattering and Sparse Partitions, and their Applications

A partition P of a weighted graph G is (σ,τ,Δ)-sparse if every cluster h...
research
02/08/2021

A full complexity dichotomy for immanant families

Given an integer n≥ 1 and an irreducible character χ_λ of S_n for some p...

Please sign up or login with your details

Forgot password? Click here to reset