This paper presents a system prototype implementing NP Datalog, a Datalog-like language for expressing NP search and optimization problems. NP Datalog extends DATALOG-s (DATALOG with stratified negation) with intuitive and efficient constructs, i.e. constraints and a restricted form of (exclusive) disjunction used to define (nondeterministically) subsets (or partitions) of relations. The system translates NP Datalog queries into OPL programs, then solves them by using the ILOG Solver [16]. Thus, it combines an easy formulation of problems, expressed by means of a declarative logic language, and an efficient execution of the ILOG Solver. Several experiments show the effectiveness of this approach.
Implementation and Experimentation of the Logic Language NP Datalog
GRECO, Sergio;MOLINARO, Cristian;Trubitsyna I.
2006-01-01
Abstract
This paper presents a system prototype implementing NP Datalog, a Datalog-like language for expressing NP search and optimization problems. NP Datalog extends DATALOG-s (DATALOG with stratified negation) with intuitive and efficient constructs, i.e. constraints and a restricted form of (exclusive) disjunction used to define (nondeterministically) subsets (or partitions) of relations. The system translates NP Datalog queries into OPL programs, then solves them by using the ILOG Solver [16]. Thus, it combines an easy formulation of problems, expressed by means of a declarative logic language, and an efficient execution of the ILOG Solver. Several experiments show the effectiveness of this approach.I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.