Hostname: page-component-5db58dd55d-bthnr Total loading time: 0 Render date: 2026-06-04T01:50:37.641Z Has data issue: false hasContentIssue false

Anti-unification in Constraint Logic Programming

Published online by Cambridge University Press:  20 September 2019

GONZAGUE YERNAUX
Affiliation:
University of Namur, BelgiumNamur Digital Institute (e-mail: gonzague.yernaux@unamur.be)
WIM VANHOOF
Affiliation:
University of Namur, BelgiumNamur Digital Institute (e-mail: gonzague.yernaux@unamur.be)

Abstract

Anti-unification refers to the process of generalizing two (or more) goals into a single, more general, goal that captures some of the structure that is common to all initial goals. In general one is typically interested in computing what is often called a most specific generalization, that is a generalization that captures a maximal amount of shared structure. In this work we address the problem of anti-unification in CLP, where goals can be seen as unordered sets of atoms and/or constraints. We show that while the concept of a most specific generalization can easily be defined in this context, computing it becomes an NP-complete problem. We subsequently introduce a generalization algorithm that computes a well-defined abstraction whose computation can be bound to a polynomial execution time. Initial experiments show that even a naive implementation of our algorithm produces acceptable generalizations in an efficient way.

Information

Type
Original Article
Copyright
© Cambridge University Press 2019 

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Article purchase

Temporarily unavailable