Anti-unification of Unordered Goals

07/01/2021
by   Gonzague Yernaux, et al.
0

Anti-unification in logic programming refers to the process of capturing common syntactic structure among given goals, computing a single new goal that is more general called a generalization of the given goals. Finding an arbitrary common generalization for two goals is trivial, but looking for those common generalizations that are either as large as possible (called largest common generalizations) or as specific as possible (called most specific generalizations) is a non-trivial optimization problem, in particular when goals are considered to be unordered sets of atoms. In this work we provide an in-depth study of the problem by defining two different generalization relations. We formulate a characterization of what constitutes a most specific generalization in both settings. While these generalizations can be computed in polynomial time, we show that when the number of variables in the generalization needs to be minimized, the problem becomes NP-hard. We subsequently revisit an abstraction of the largest common generalization when anti-unification is based on injective variable renamings, and prove that it can be computed in polynomially bounded time.

READ FULL TEXT

page 1

page 3

page 9

page 11

page 15

page 17

page 19

research
07/24/2019

Anti-unification in Constraint Logic Programming

Anti-unification refers to the process of generalizing two (or more) goa...
research
10/16/2019

Some Geometric Applications of Anti-Chains

We present an algorithmic framework for computing anti-chains of maximum...
research
10/19/2022

A Study of Obstacles in Plagiarism Software Subscribing by Colleges in Tamil Nadu

This article attempts to comprehend the current issues and hurdles that ...
research
10/18/2018

Complexity of computing the anti-Ramsey numbers

The anti-Ramsey numbers are a fundamental notion in graph theory, introd...
research
05/19/2021

Degrees and Gaps: Tight Complexity Results of General Factor Problems Parameterized by Treewidth and Cutwidth

For the General Factor problem we are given an undirected graph G and fo...
research
06/17/2022

Complexity of the Multiobjective Spanner Problem

In this paper, we take an in-depth look at the complexity of a hitherto ...
research
07/17/2021

Anti Tai Mapping for Unordered Labeled Trees

The well-studied Tai mapping between two rooted labeled trees T_1(V_1, E...

Please sign up or login with your details

Forgot password? Click here to reset