Surya Bhupatiraju MIT PRIMES May 20 th, 2012 On the Complexity of the Marginal Consistency Problem.

Slides:



Advertisements
Similar presentations
Chapter 11 Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
Advertisements

Orthogonal Drawing Kees Visser. Overview  Introduction  Orthogonal representation  Flow network  Bend optimal drawing.
Seminar In Game Theory Algorithms, TAU, Agenda  Introduction  Computational Complexity  Incentive Compatible Mechanism  LP Relaxation & Walrasian.
The Theory of NP-Completeness
On the limitations of efficient computation Oded Goldreich Weizmann Institute of Science.
Solving Equations with the Variable on Both Sides Objectives: to solve equations with the variable on both sides.
1 CSC 421: Algorithm Design & Analysis Spring 2013 See online syllabus: (also on BlueLine2) Course.
A 3-Query PCP over integers a.k.a Solving Sparse Linear Systems Prasad Raghavendra Venkatesan Guruswami.
The number of edge-disjoint transitive triples in a tournament.
Phase Transitions of PP-Complete Satisfiability Problems D. Bailey, V. Dalmau, Ph.G. Kolaitis Computer Science Department UC Santa Cruz.
Computational problems, algorithms, runtime, hardness
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
NP-Complete Problems Problems in Computer Science are classified into
Chapter 10: Iterative Improvement
Chapter 11: Limitations of Algorithmic Power
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 22 Instructor: Paul Beame.
Chapter 11 Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
Ref: Pfleeger96, Ch.31 NP-Complete Problems Reference: Pfleeger, Charles P., Security in Computing, 2nd Edition, Prentice Hall, 1996.
Data reduction lower bounds: Problems without polynomial kernels Hans L. Bodlaender Joint work with Downey, Fellows, Hermelin, Thomasse, Yeo.
Joint Distribution of two or More Random Variables
1.1 Chapter 1: Introduction What is the course all about? Problems, instances and algorithms Running time v.s. computational complexity General description.
Systems of Linear Equation and Matrices
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
Chapter 11 Limitations of Algorithm Power. Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples:
Computational Complexity Polynomial time O(n k ) input size n, k constant Tractable problems solvable in polynomial time(Opposite Intractable) Ex: sorting,
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
1 Chapter 1 Analysis Basics. 2 Chapter Outline What is analysis? What to count and consider Mathematical background Rates of growth Tournament method.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
Section 6.1 Rational Expressions. OBJECTIVES A Find the numbers that make a rational expression undefined.
MIT and James Orlin1 NP-completeness in 2005.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
1 Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples: b number of comparisons needed to find the.
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
P, NP, and Exponential Problems Should have had all this in CS 252 – Quick review Many problems have an exponential number of possibilities and we can.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
Class Opener:. Identifying Matrices Student Check:
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
1 Chapter 34: NP-Completeness. 2 About this Tutorial What is NP ? How to check if a problem is in NP ? Cook-Levin Theorem Showing one of the most difficult.
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
1/19 Minimizing weighted completion time with precedence constraints Nikhil Bansal (IBM) Subhash Khot (NYU)
Lecture 6 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
NP-Complete problems.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
NP-Complete Problems Algorithm : Design & Analysis [23]
How to Multiply Two Matrices. Steps for Matrix Multiplication 1.Determine whether the matrices are compatible. 2.Determine the dimensions of the product.
CS 3343: Analysis of Algorithms Lecture 25: P and NP Some slides courtesy of Carola Wenk.
OR Chapter 7. The Revised Simplex Method  Recall Theorem 3.1, same basis  same dictionary Entire dictionary can be constructed as long as we.
10-1 An Introduction to Systems A _______ is a set of sentences joined by the word ____ or by a ________________. Together these sentences describe a ______.
CPS Computational problems, algorithms, runtime, hardness (a ridiculously brief introduction to theoretical computer science) Vincent Conitzer.
CS6045: Advanced Algorithms NP Completeness. NP-Completeness Some problems are intractable: as they grow large, we are unable to solve them in reasonable.
NPC.
Young CS 331 D&A of Algo. NP-Completeness1 NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong NP-complete.
Complexity ©D.Moshkovitz 1 Our First NP-Complete Problem The Cook-Levin theorem A B C.
Approximation Algorithms based on linear programming.
1 The Theory of NP-Completeness 2 Review: Finding lower bound by problem transformation Problem X reduces to problem Y (X  Y ) iff X can be solved by.
Solving Equations with Variables on Both Sides. Review O Suppose you want to solve -4m m = -3 What would you do as your first step? Explain.
Hongyu Liang Institute for Theoretical Computer Science Tsinghua University, Beijing, China The Algorithmic Complexity.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
P & NP.
Chap 10. Sensitivity Analysis
Copyright 2013, 2010, 2007, 2005, Pearson, Education, Inc.
Analysis and design of algorithm
2 Understanding Variables and Solving Equations.
Chapter 11 Limitations of Algorithm Power
Our First NP-Complete Problem
Systems of equations and the substitution method
Presentation transcript:

Surya Bhupatiraju MIT PRIMES May 20 th, 2012 On the Complexity of the Marginal Consistency Problem

Marginal Constraint Problems Suppose we have constraints on the sums of entries in a 3  3 grid: Entries must be nonnegative.

Marginal Constraint Problems Suppose we have constraints on the sums of entries in a 3  3 grid: Entries must be nonnegative. = 3 

Marginal Constraint Problems Suppose we have constraints on the sums of entries in a 3  3 grid: Entries must be nonnegative. = 3  = 6 

Marginal Constraint Problems Suppose we have constraints on the sums of entries in a 3  3 grid: Entries must be nonnegative. = 3  = 6  marginals

Marginal Constraint Problems Suppose we have constraints on the sums of entries in a 3  3 grid: Entries must be nonnegative. = 3  = 6  marginals

Marginal Constraint Problems Suppose we have constraints on the sums of entries in a 3  3 grid: Entries must be nonnegative. = 3  = 6  marginals

Marginal Constraint Problems Suppose we have constraints on the sums of entries in a 3  3 grid: Entries must be nonnegative. For these marginal constraints, there exists a tableau that satisfies them. If a solution exist, the constraint problem is satisfiable. Question: Given constraints, how hard is it to check if a solution exists and to find one if it does?

A Probabilistic Example XY-marginals Pr[(0, 0, ?)] = 0.5 Pr[(0, 1, ?)] = 0 Pr[(1, 0, ?)] = 0 Pr[(1, 1, ?)] = (X, Y, Z) X = 1 X = 0 Y = 0 Z = 1 Z = 0 Y = 1 YZ-marginals Pr[(?, 0, 0)] = 0.5 Pr[(?, 1, 0)] = 0 Pr[(?, 0, 1)] = 0 Pr[(?, 1, 1)] = 0.5 XZ-marginals Pr[(0, ?, 0)] = 0.5 Pr[(1, ?, 0)] = 0 Pr[(0, ?, 1)] = 0 Pr[(1, ?, 1)] = 0.5

A Probabilistic Example (X, Y, Z) X = 1 X = 0 Y = 0 Z = 1 Z = 0 Y = 1 XY-marginals Pr[(0, 0, ?)] = 0.5 Pr[(0, 1, ?)] = 0 Pr[(1, 0, ?)] = 0 Pr[(1, 1, ?)] = 0.5 YZ-marginals Pr[(?, 0, 0)] = 0.5 Pr[(?, 1, 0)] = 0 Pr[(?, 0, 1)] = 0 Pr[(?, 1, 1)] = 0.5 XZ-marginals Pr[(0, ?, 0)] = 0.5 Pr[(1, ?, 0)] = 0 Pr[(0, ?, 1)] = 0 Pr[(1, ?, 1)] = 0.5

A Probabilistic Example (X, Y, Z) X = 1 X = 0 Y = 0 Z = 1 Z = 0 Y = 1 XY-marginals Pr[(0, 0, ?)] = 0.5 Pr[(0, 1, ?)] = 0 Pr[(1, 0, ?)] = 0 Pr[(1, 1, ?)] = 0.5 YZ-marginals Pr[(?, 0, 0)] = 0.5 Pr[(?, 1, 0)] = 0 Pr[(?, 0, 1)] = 0 Pr[(?, 1, 1)] = 0.5 XZ-marginals Pr[(0, ?, 0)] = 0.5 Pr[(1, ?, 0)] = 0 Pr[(0, ?, 1)] = 0 Pr[(1, ?, 1)] = 0.5

A Probabilistic Example (X, Y, Z) X = 1 X = 0 Y = 0 Z = 1 Z = 0 Y = 1 XY-marginals Pr[(0, 0, ?)] = 0.5 Pr[(0, 1, ?)] = 0 Pr[(1, 0, ?)] = 0 Pr[(1, 1, ?)] = 0.5 YZ-marginals Pr[(?, 0, 0)] = 0.5 Pr[(?, 1, 0)] = 0 Pr[(?, 0, 1)] = 0 Pr[(?, 1, 1)] = 0.5 XZ-marginals Pr[(0, ?, 0)] = 0.5 Pr[(1, ?, 0)] = 0 Pr[(0, ?, 1)] = 0 Pr[(1, ?, 1)] = 0.5

Given desired marginal distributions D S for every subset S of c variable indices from [1…n], does there exist a distribution D over n-tuples of values in [1…m] with those S-marginals D S ? Marginal Satisfiability Problem (MSP)

Questions to Ask How hard is it to algorithmically solve the marginal satisfiability problem? Are there efficient algorithms to: Check that an assignment is valid? Predict whether solutions exist? Give an explicit satisfying assignment?

Introduction to Complexity Theory Complexity theory: A field that tries to classify the hardness of computational problems. Complexity classes: P NP NP-hard NP-complete Harder

Past Work [Loera, et al. 2002]: The MSP with 3 dimensions, (A  B  C) is NP- complete, even when the tableaus are slim, i.e. A = 3. Table counting and uniqueness are also hard. [Liu 2006]: MSP is NP-hard. The quantum variant of this problem is known to be QMA-complete, the quantum analog of NP-complete. [Gusfield 1988]: Studies table uniqueness when some of the entries are given.

Bounds on Computation Past results are based on fixed dimensions only. We can vary these parameters: (n dimensions, m variables, c-variable marginals, entries precise to 1/K) When c is small, we can write down all the constraint equations. Varying dimension makes it hard to even write down a solution – not obviously in NP. Explicit FormulasAsymptotic growth # entries in tableau # potential tableaus # constraint equations # bits to describe tableau # steps to verify tableau

2D Solution Theorem: A 2D constraint problem is satisfiable if and only if the sum of the row and column marginal sums are equal. Proof: (Only If): Easy – Add up entries in both directions. (If): Show construction is always possible = = 16

Fractional Construction Fractional Construction: Multiply by row and column sum and divide by total sum

Fractional Construction / /31 Fractional Construction: Multiply by row and column sum and divide by total sum

Fractional Construction /3130/ /3130/ /3130/ /3130/ /3135/31 Fractional Construction: Multiply by row and column sum and divide by total sum

Fractional Construction /3130/3136/3142/3154/ /3130/3136/3142/3154/ /3130/3136/3142/3154/ /3130/3136/3142/3154/ /3135/3142/3149/3163/31 Fractional Construction: Multiply by row and column sum and divide by total sum

Sorted Construction Sorted Construction: Assign entry to lower of row or column sum, recurse

Sorted Construction Sorted Construction: Assign entry to lower of row or column sum, recurse.

Sorted Construction Sorted Construction: Assign entry to lower of row or column sum, recurse.

Sorted Construction Sorted Construction: Assign entry to lower of row or column sum, recurse.

Sorted Construction Sorted Construction: Assign entry to lower of row or column sum, recurse.

Sorted Construction Sorted Construction: Assign entry to lower of row or column sum, recurse.

Sorted Construction Sorted Construction: Assign entry to lower of row or column sum, recurse.

Sorted Construction Sorted Construction: Assign entry to lower of row or column sum, recurse.

Local Consistency V(0, 0, +) = a V(0, 1, +) = b V(1, 0, +) = c V(1, 1, +) = d V(0, +, 0) = e V(0, +, 1) = f V(1, +, 0) = g V(1, +, 1) = h V(+, 0, 0) = i V(+, 0, 1) = j V(+, 1, 0) = k V(+, 1, 1) = l c d j l b a f e h g i k

Local Consistency V(0, 0, +) = a V(0, 1, +) = b V(1, 0, +) = c V(1, 1, +) = d V(0, +, 0) = e V(0, +, 1) = f V(1, +, 0) = g V(1, +, 1) = h V(+, 0, 0) = i V(+, 0, 1) = j V(+, 1, 0) = k V(+, 1, 1) = l c d j l b a f e h g i k a + b  i + k  unsatisfiable

Local Consistency A marginal constraint on a subset S induces marginal constraints on subsets S’  S. Two marginal constraints over two subsets S 1 and S 2 are locally consistent if they induce the same constraints on S 1  S 2. Theorem: If a constraint problem is satisfiable, then each pair of marginal constraints is locally consistent, but local consistency does not imply global satisfiability. c d j l b a f e h g i k Z-marginal: a + b = i + k YZ-marginals: a, b XZ-marginals: i, k X = 1 X = 0 Y = 0 Z = 1 Z = 0 Y = 1

Local Consistency A marginal constraint on a subset S induces marginal constraints on subsets S’  S. Two marginal constraints over two subsets S 1 and S 2 are locally consistent if they induce the same constraints on S 1  S 2. Theorem: If a constraint problem is satisfiable, then each pair of marginal constraints is locally consistent, but local consistency does not imply global satisfiability

Local Consistency A marginal constraint on a subset S induces marginal constraints on subsets S’  S. Two marginal constraints over two subsets S 1 and S 2 are locally consistent if they induce the same constraints on S 1  S (X, Y, Z) X = 0 X = 1 Y = 0 Z = 1 Z = 0 Y = 1

Future Steps Extend Sorted Construction to 3D and higher. Pinpoint complexity of higher-dimensional cases. General constraints problem: Does the problem become harder if constraints may omit some sums? Integral conjecture: Does a satisfiable constraint problem with integer constraints always have an integral solution?

Closing Thanks to Alex Arkhipov for proposal of the problem, and for excellent mentorship throughout the progress. Thanks to Tanya Khovanova for suggestions and edits with the presentation. Much thanks to MIT PRIMES for providing this opportunity for research! Thank you for attending!