Linear Programs with Conjunctive Database Queries

10/29/2022
by   Florent Capelli, et al.
0

In this paper, we study the problem of optimizing a linear program whose variables are the answers to a conjunctive query. For this we propose the language LP(CQ) for specifying linear programs whose constraints and objective functions depend on the answer sets of conjunctive queries. We contribute an efficient algorithm for solving programs in a fragment of LP(CQ). The natural approach constructs a linear program having as many variables as there are elements in the answer set of the queries. Our approach constructs a linear program having the same optimal value but fewer variables. This is done by exploiting the structure of the conjunctive queries using generalized hypertree decompositions of small width to factorize elements of the answer set together. We illustrate the various applications of LP(CQ) programs on three examples: optimizing deliveries of resources, minimizing noise for differential privacy, and computing the s-measure of patterns in graphs as needed for data mining.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/12/2014

Relational Linear Programs

We propose relational linear programming, a simple framework for combing...
research
01/11/2019

Dependency Weighted Aggregation on Factorized Databases

We study a new class of aggregation problems, called dependency weighted...
research
03/29/2022

Finding Structure and Causality in Linear Programs

Linear Programs (LP) are celebrated widely, particularly so in machine l...
research
05/18/2019

Strong equivalence for LP^MLN programs

Strong equivalence is a well-studied and important concept in answer set...
research
01/18/2014

Unfounded Sets and Well-Founded Semantics of Answer Set Programs with Aggregates

Logic programs with aggregates (LPA) are one of the major linguistic ext...
research
05/11/2017

Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problems

Solving algebraic word problems requires executing a series of arithmeti...
research
12/22/2018

On Functional Aggregate Queries with Additive Inequalities

Motivated by fundamental applications in databases and relational machin...

Please sign up or login with your details

Forgot password? Click here to reset