Constrained Counting and Sampling Bridging Theory and Practice

Size: px
Start display at page:

Download "Constrained Counting and Sampling Bridging Theory and Practice"

Transcription

1 Constrained Counting and Sampling Bridging Theory and Practice Supratik Chakraborty, IIT Bombay [ Joint work with Kuldeep S. Meel (NUS, Singapore), Moshe Y. Vardi (Rice University), Rakesh Mistry (currently at Oracle Corp.) ]

2 Constrained Counting and Sampling in IITB How many in IITB like green tea or black coffee? Universe: Residents of IITB Constraint: Must like green tea or black coffee Naïve method: Ask everybody, tabulate and count Not efficiently scalable Can we do better with Sample uniformly randomly from those in IITB who like green tea or black coffee? provable guarantees? Universe: Residents of IITB Constraint: Must like green tea or black coffee Naïve method: Find out all those who like green tea or black coffee, and sample uniformly from them Not efficiently scalable 1

3 An Abstract View All IITB Residents 2

4 Abstract Problem Formulation Given X 1, X n : variables with finite domains D 1, D n Constraint (logical formula) over X 1, X n Weight function W: D 1 D n Q 0 Sol() : set of assignments of X 1, X n satisfying Determine W() = y Sol() W(y) If W(y) = 1 for all y, then W() = Sol() Constrained Discrete Counting Randomly sample from Sol() such that Pr[y is sampled] W(y) If W(y) = 1 for all y, then uniformly sample from Sol() Constrained Discrete Sampling For this talk, D i s are {0,1} Boolean variables 3

5 Application 1: Probabilistic Inference An alarm rings if it s in a working state when an earthquake happens or a burglary happens The alarm can malfunction and ring without earthquake or burglary happening Given that the alarm rang, what is the likelihood that an earthquake happened? Given conditional dependencies (and conditional probabilities) calculate Pr[event evidence] What is Pr [Earthquake Alarm]? Efficiently reduced to constrained weighted counting 4

6 Application 2: Network Reliability s t Graph G = (V, E) represents a (power-grid) network Nodes (V) are towns, villages, power stations Edges (E) are power lines Assume each edge e fails with prob g(e) [0,1] Assume failure of edges statistically independent What is the probability that s and t become disconnected? Efficiently reduced to constrained weighted counting 5

7 Application 3: Quantitative Information Flow A password-checker PC takes a secret password (SP) and a user input (UI) and returns Yes iff SP = UI [Bang et al 2016] Suppose passwords are 4 characters ( 0 through 9 ) long PC1 (char[] SP, char[] UI) { for (int i=0; i<sp.length(); i++) { if(sp[i]!= UI[i]) return No ; } return Yes ; } PC2 (char[] H, char[] L) { match = true; for (int i=0; i<sp.length(); i++) { if (SP[i]!= UI[i]) match=false; else match = match; } if match return Yes ; else return No ; } Which of PC1 and PC2 is more likely to leak information about the secret key through side-channel observations? 6

8 Unweighted Counting Suffices in Principle Probabilistic Inference Network Reliability Quantified Information Flow KML 1989, Karger 2000 DMPV 2017 Weighted Constrained Counting Weighted Constr Counting Unweighted Constr Counting IJCAI 2015 Reduction polynomial in #bits representing weights 7

9 Application 4: Constr Random Verification Functional Verification Formal verification Challenges: formal requirements, scalability ~10-15% of verification effort Dynamic verification: dominant approach No. of test vectors needed exceedingly large Can we sample uniformly from good test vectors 8

10 A Practical Approach Constrained Random Verification a b Set of Constraints on Inputs 64 bit 64 bit c = f(a,b) Logical Formula 64 bit c Sample satisfying assignments uniformly at random Efficiently reduced to constrained sampling 9

11 Application 5: Automated Problem Generation Large class sizes, MOOC offerings require automated generation of related but randomly different problems Randomness makes it hard for students to guess what the solution would be Allows instructors to focus on broad parameters of problems, rather than on individual problem instances Filling question templates with values satisfying constraints Efficiently reduced to constrained sampling 10

12 How Hard is it to Count? Trivial if we could enumerate R F : Almost always impractical Computational complexity of counting (discrete integration): Exact unweighted/weighted counting: #P-complete Approximate unweighted/weighted counting: Randomized: Poly-time prob Turing Machine with NP oracle Pr R F 1 RandEstima te(f,, ) R F (1 ) 1, for 0, 0 1 Probably Approximately Correct (PAC) algorithm 11

13 How Hard is it to Sample? Computational complexity of sampling: Uniform sampling: Poly-time prob. Turing Machine with NP oracle [Bellare,Goldreich,Petrank 2000] Pr[ y UniformGen erator(f)] c, where indep Almost uniform sampling: Poly-time prob. Turing Machine with NP oracle [Jerrum,Valiant,Vazirani 1986, also from Bellare,Goldreich,Petrank 2000] c c 0 0 if and y R F of y if y R F c c 0 if y R F Pr[ y AUGenerato r(f, )] c (1 ), where 1 c 0 and indep of y if y R F Pr[Algorithm outputs some y] ½, if F is satisfiable 12

14 Markov Chain Monte Carlo Techniques Rich body of theoretical work with applications to sampling and counting Convergence to desired distribution guaranteed only after large number of steps In practice, steps truncated early heuristically Nullifies/weakens theoretical guarantees 13

15 Approximate Counting and Sampling: Close Cousins Seminal paper by Jerrum, Valiant, Vazirani 1986 Almost-Uniform Generator Polynomial reduction PAC Counter Yet, no practical algorithms that scale to large problem instances were derived from this work No scalable PAC counter or almost-uniform generator existed until a few years back The inter-reductions are practically computation intensive 14

16 Guarantees Empirical Performance Prior Work BGP BDD/ other exact tech. Theoretical guarantees Our Work Existing approx. techniques MCMC SAT- Based Performance 15

17 A High-Level View of Core Idea in our Work 16

18 Counting Dots Solution to constraints 17

19 Partitioning into equal small cells 18

20 Partitioning into equal small cells Pick a random cell Estimate = # of solutions (dots) in cell * # of cells 19

21 How to Partition? How to partition into roughly equal small cells of solutions without knowing the distribution of solutions? 2-Universal Hashing using parity XOR constraints [Carter-Wegman 1977] 20

22 Partitioning 1. How large is the small cell? 2. How do we compute solutions inside a cell? 3. How many cells? 21

23 Question 1: Size of cell Too large Hard to enumerate Too small Ratio of variance to mean is very high 22

24 Question 2: Solving a cell m XORs 23

25 Question 3: How many cells? (CP 2013) 24

26 #sols < pivot NO 25

27 #sols < pivot NO 26

28 YES #sols < pivot 27

29 28

30 Runtime Performance of ApproxMC 29

31 Time (seconds) Can Solve a Large Class of Problems ApproxMC Cachet Benchmarks Large class of problems that lie beyond the exact algorithms but can be computed by ApproxMC 30

32 Count Mean Error: Only 4% (allowed: 75%) 3.6E E E E E E E E E E+03 Cachet*1.75 Cachet/1.75 ApproxMC 3.2E E Benchmarks Mean error: 4% much smaller than the theoretical guarantee of 75% 31

33 Almost Same Idea Works for Sampling Too! 32

34 Theoretical Guarantees 33

35 Runtime Performance of UniGen 34

36 case47 case_3_b14_3 case105 case8 case203 case145 case61 case9 case15 case140 case_2_b14_1 case_3_b14_1 squaring14 squaring7 case_2_ptb_1 case_1_ptb_1 case_2_b14_2 case_3_b14_2 1-2 Orders of Magnitude Faster Time(s) UniGen XORSample' 0.1 Benchmarks 35

37 Frequency Results: Uniformity #Solutions Benchmark: case110.cnf; #var: 287; #clauses: 1263 Total Runs: 4x10 6 ; Total Solutions :

38 Frequency Results: Uniformity US UniGen #Solutions Benchmark: case110.cnf; #var: 287; #clauses: 1263 Total Runs: 4x10 6 ; Total Solutions :

39 Contribution of Hashing-based Approaches ApproxMC: The first scalable approximate model counter UniGen: The first scalable uniform generator Both scale to constraints with Boolean vars Earlier work (with similar guarantees) scaled only to 100s of vars Outperforms state-of-the-art generators/counters 38

40 Thanks! Questions? 39

The SAT Revolution: Solving, Sampling, and Counting

The SAT Revolution: Solving, Sampling, and Counting The SAT Revolution: Solving, Sampling, and Counting Moshe Y. Vardi Rice University Boolean Satisfiability Boolean Satisfiability (SAT); Given a Boolean expression, using and ( ) or, ( ) and not ( ), is

More information

Approximating Probabilistic Inference

Approximating Probabilistic Inference Approximating Probabilistic Inference Kuldeep S. Meel PhD Student CAVR Group Joint work with Supratik Chakraborty (IITB), Daniel J. Fremont (UCB), Sanjit A. Seshia (UCB), Moshe Y. Vardi (Rice) 1 IoT: Internet

More information

Machine Learning and Logic: Fast and Slow Thinking

Machine Learning and Logic: Fast and Slow Thinking Machine Learning and Logic: Fast and Slow Thinking Moshe Y. Vardi Rice University Is Computer Science Fundamentally Changing? Formal Science vs Data Science We are at peak hype about machine learning and

More information

Constrained Sampling and Counting

Constrained Sampling and Counting Constrained Sampling and Counting Moshe Y. Vardi Rice University Joint work with Kuldeep S. Meel, Supratik Chakraborty, Daniel Fremont, Rakesh Mistry, Sanjit Seshia. Boolean Satisfiability Boolean Satisfiability

More information

The Automated-Reasoning Revolution: from Theory to Practice and Back

The Automated-Reasoning Revolution: from Theory to Practice and Back The Automated-Reasoning Revolution: from Theory to Practice and Back Moshe Y. Vardi Rice University Is This Time Different? The Opportunities and Challenges of Artificial Intelligence Jason Furman, Chair,

More information

Efficient Sampling of SAT Solutions for Testing

Efficient Sampling of SAT Solutions for Testing Efficient Sampling of SAT Solutions for Testing Rafael Dutra, Kevin Laeufer, Jonathan Bachrach, Koushik Sen EECS Department UC Berkeley International Conference in Software Engineering May 31, 2018 1 Problem

More information

Model Counting for Probabilistic Reasoning

Model Counting for Probabilistic Reasoning Model Counting for Probabilistic Reasoning Beyond NP Workshop Stefano Ermon CS Department, Stanford Combinatorial Search and Optimization Progress in combinatorial search since the 1990s (SAT, SMT, MIP,

More information

Approximate Inference

Approximate Inference Approximate Inference Simulation has a name: sampling Sampling is a hot topic in machine learning, and it s really simple Basic idea: Draw N samples from a sampling distribution S Compute an approximate

More information

A Scalable and Nearly Uniform Generator of SAT Witnesses

A Scalable and Nearly Uniform Generator of SAT Witnesses A Scalable and Nearly Uniform Generator of SAT Witnesses Supratik Chakraborty 1, Kuldeep S. Meel 2, and Moshe Y. Vardi 2 1 Indian Institute of Technology Bombay, India 2 Department of Computer Science,

More information

CS 188: Artificial Intelligence. Bayes Nets

CS 188: Artificial Intelligence. Bayes Nets CS 188: Artificial Intelligence Probabilistic Inference: Enumeration, Variable Elimination, Sampling Pieter Abbeel UC Berkeley Many slides over this course adapted from Dan Klein, Stuart Russell, Andrew

More information

arxiv: v3 [cs.ai] 9 Feb 2016

arxiv: v3 [cs.ai] 9 Feb 2016 Approximate Probabilistic Inference via Word-Level Counting Supratik Chakraborty Indian Institute of Technology, Bombay Kuldeep S. Meel Department of Computer Science, Rice University Moshe Y. Vardi Department

More information

Stanford University CS254: Computational Complexity Handout 8 Luca Trevisan 4/21/2010

Stanford University CS254: Computational Complexity Handout 8 Luca Trevisan 4/21/2010 Stanford University CS254: Computational Complexity Handout 8 Luca Trevisan 4/2/200 Counting Problems Today we describe counting problems and the class #P that they define, and we show that every counting

More information

A Scalable Approximate Model Counter

A Scalable Approximate Model Counter A Scalable Approximate Model Counter Supratik Chakraborty 1, Kuldeep S. Meel 2, and Moshe Y. Vardi 2 1 Indian Institute of Technology Bombay, India 2 Department of Computer Science, Rice University Abstract.

More information

Computational Complexity of Bayesian Networks

Computational Complexity of Bayesian Networks Computational Complexity of Bayesian Networks UAI, 2015 Complexity theory Many computations on Bayesian networks are NP-hard Meaning (no more, no less) that we cannot hope for poly time algorithms that

More information

On Parallel Scalable Uniform SAT Witness Generation???

On Parallel Scalable Uniform SAT Witness Generation??? On Parallel Scalable Uniform SAT Witness Generation??? Supratik Chakraborty, Daniel J. Fremont,KuldeepS.Meel 3, Sanjit A. Seshia, and Moshe Y. Vardi 3 Indian Institute of Technology, Bombay University

More information

Approximate Probabilistic Inference via Word-Level Counting

Approximate Probabilistic Inference via Word-Level Counting Proceedings of the Thirtieth AAAI Conference on Artificial Intelligence (AAAI-16 Approximate Probabilistic Inference via Word-Level Counting Supratik Chakraborty Indian Institute of Technology, Bombay

More information

Approximate Counting and Markov Chain Monte Carlo

Approximate Counting and Markov Chain Monte Carlo Approximate Counting and Markov Chain Monte Carlo A Randomized Approach Arindam Pal Department of Computer Science and Engineering Indian Institute of Technology Delhi March 18, 2011 April 8, 2011 Arindam

More information

Counting-Based Reliability Estimation for Power-Transmission Grids

Counting-Based Reliability Estimation for Power-Transmission Grids Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence (AAAI-17) Counting-Based Reliability Estimation for Power-Transmission Grids Leonardo Duenas-Osorio Department of Civil and Environmental

More information

Probabilistic verification and approximation schemes

Probabilistic verification and approximation schemes Probabilistic verification and approximation schemes Richard Lassaigne Equipe de Logique mathématique, CNRS-Université Paris 7 Joint work with Sylvain Peyronnet (LRDE/EPITA & Equipe de Logique) Plan 1

More information

The Interface between P and NP. Toby Walsh Cork Constraint Computation Centre

The Interface between P and NP. Toby Walsh Cork Constraint Computation Centre The Interface between P and NP Toby Walsh Cork Constraint Computation Centre http://4c.ucc.ie/~tw 3-SAT Where are the hard 3-SAT problems? Sample randomly generated 3-SAT Fix number of clauses, l Number

More information

A Short Introduction to Hoare Logic

A Short Introduction to Hoare Logic A Short Introduction to Hoare Logic Supratik Chakraborty I.I.T. Bombay June 23, 2008 Supratik Chakraborty (I.I.T. Bombay) A Short Introduction to Hoare Logic June 23, 2008 1 / 34 Motivation Assertion checking

More information

CS 151 Complexity Theory Spring Solution Set 5

CS 151 Complexity Theory Spring Solution Set 5 CS 151 Complexity Theory Spring 2017 Solution Set 5 Posted: May 17 Chris Umans 1. We are given a Boolean circuit C on n variables x 1, x 2,..., x n with m, and gates. Our 3-CNF formula will have m auxiliary

More information

arxiv: v1 [cs.lo] 26 Apr 2014

arxiv: v1 [cs.lo] 26 Apr 2014 arxiv:1404.6682v1 [cs.lo] 26 Apr 2014 ABSTRACT Sampling Techniques for Boolean Satisfiability by Kuldeep Singh Meel Boolean satisfiability (SAT) has played a key role in diverse areas spanning testing,

More information

6.045: Automata, Computability, and Complexity (GITCS) Class 17 Nancy Lynch

6.045: Automata, Computability, and Complexity (GITCS) Class 17 Nancy Lynch 6.045: Automata, Computability, and Complexity (GITCS) Class 17 Nancy Lynch Today Probabilistic Turing Machines and Probabilistic Time Complexity Classes Now add a new capability to standard TMs: random

More information

CS 6505, Complexity and Algorithms Week 7: NP Completeness

CS 6505, Complexity and Algorithms Week 7: NP Completeness CS 6505, Complexity and Algorithms Week 7: NP Completeness Reductions We have seen some problems in P and NP, and we ve talked about space complexity. The Space Hierarchy Theorem showed us that there are

More information

6.841/18.405J: Advanced Complexity Wednesday, February 12, Lecture Lecture 3

6.841/18.405J: Advanced Complexity Wednesday, February 12, Lecture Lecture 3 6.841/18.405J: Advanced Complexity Wednesday, February 12, 2003 Lecture Lecture 3 Instructor: Madhu Sudan Scribe: Bobby Kleinberg 1 The language MinDNF At the end of the last lecture, we introduced the

More information

NP Completeness and Approximation Algorithms

NP Completeness and Approximation Algorithms Chapter 10 NP Completeness and Approximation Algorithms Let C() be a class of problems defined by some property. We are interested in characterizing the hardest problems in the class, so that if we can

More information

The Tutte polynomial: sign and approximability

The Tutte polynomial: sign and approximability : sign and approximability Mark Jerrum School of Mathematical Sciences Queen Mary, University of London Joint work with Leslie Goldberg, Department of Computer Science, University of Oxford Durham 23rd

More information

PROBABILISTIC REASONING SYSTEMS

PROBABILISTIC REASONING SYSTEMS PROBABILISTIC REASONING SYSTEMS In which we explain how to build reasoning systems that use network models to reason with uncertainty according to the laws of probability theory. Outline Knowledge in uncertain

More information

Lecture 1: January 16

Lecture 1: January 16 CS271 Randomness & Computation Spring 2018 Instructor: Alistair Sinclair Lecture 1: January 16 Disclaimer: These notes have not been subjected to the usual scrutiny accorded to formal publications. They

More information

Particle-Based Approximate Inference on Graphical Model

Particle-Based Approximate Inference on Graphical Model article-based Approimate Inference on Graphical Model Reference: robabilistic Graphical Model Ch. 2 Koller & Friedman CMU, 0-708, Fall 2009 robabilistic Graphical Models Lectures 8,9 Eric ing attern Recognition

More information

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013 Chapter 2 Reductions and NP CS 573: Algorithms, Fall 2013 August 29, 2013 2.1 Reductions Continued 2.1.1 The Satisfiability Problem SAT 2.1.1.1 Propositional Formulas Definition 2.1.1. Consider a set of

More information

Lecture 20: conp and Friends, Oracles in Complexity Theory

Lecture 20: conp and Friends, Oracles in Complexity Theory 6.045 Lecture 20: conp and Friends, Oracles in Complexity Theory 1 Definition: conp = { L L NP } What does a conp computation look like? In NP algorithms, we can use a guess instruction in pseudocode:

More information

Data Structures and Algorithms

Data Structures and Algorithms Data Structures and Algorithms CS245-2015S-23 NP-Completeness and Undecidablity David Galles Department of Computer Science University of San Francisco 23-0: Hard Problems Some algorithms take exponential

More information

On Hashing-Based Approaches to Approximate DNF-Counting

On Hashing-Based Approaches to Approximate DNF-Counting On Hashing-Based Approaches to Approximate DNF-Counting Kuldeep S. Meel 1, Aditya A. Shrotri 2, and Moshe Y. Vardi 3 1 National University of Singapore, Singapore, Singapore meel@comp.nus.edu.sg 2 Rice

More information

15-855: Intensive Intro to Complexity Theory Spring Lecture 7: The Permanent, Toda s Theorem, XXX

15-855: Intensive Intro to Complexity Theory Spring Lecture 7: The Permanent, Toda s Theorem, XXX 15-855: Intensive Intro to Complexity Theory Spring 2009 Lecture 7: The Permanent, Toda s Theorem, XXX 1 #P and Permanent Recall the class of counting problems, #P, introduced last lecture. It was introduced

More information

The complexity of approximate counting Part 1

The complexity of approximate counting Part 1 The complexity of approximate counting Part 1 Leslie Ann Goldberg, University of Oxford Counting Complexity and Phase Transitions Boot Camp Simons Institute for the Theory of Computing January 2016 The

More information

Announcements. CS 188: Artificial Intelligence Fall Causality? Example: Traffic. Topology Limits Distributions. Example: Reverse Traffic

Announcements. CS 188: Artificial Intelligence Fall Causality? Example: Traffic. Topology Limits Distributions. Example: Reverse Traffic CS 188: Artificial Intelligence Fall 2008 Lecture 16: Bayes Nets III 10/23/2008 Announcements Midterms graded, up on glookup, back Tuesday W4 also graded, back in sections / box Past homeworks in return

More information

: Computational Complexity Lecture 3 ITCS, Tsinghua Univesity, Fall October 2007

: Computational Complexity Lecture 3 ITCS, Tsinghua Univesity, Fall October 2007 80240233: Computational Complexity Lecture 3 ITCS, Tsinghua Univesity, Fall 2007 16 October 2007 Instructor: Andrej Bogdanov Notes by: Jialin Zhang and Pinyan Lu In this lecture, we introduce the complexity

More information

Leveraging Belief Propagation, Backtrack Search, and Statistics for Model Counting

Leveraging Belief Propagation, Backtrack Search, and Statistics for Model Counting Leveraging Belief Propagation, Backtrack Search, and Statistics for Model Counting Lukas Kroc, Ashish Sabharwal, Bart Selman Cornell University May 23, 2008 CPAIOR-08 Conference, Paris Talk Outline Model

More information

A.Antonopoulos 18/1/2010

A.Antonopoulos 18/1/2010 Class DP Basic orems 18/1/2010 Class DP Basic orems 1 Class DP 2 Basic orems Class DP Basic orems TSP Versions 1 TSP (D) 2 EXACT TSP 3 TSP COST 4 TSP (1) P (2) P (3) P (4) DP Class Class DP Basic orems

More information

20.1 2SAT. CS125 Lecture 20 Fall 2016

20.1 2SAT. CS125 Lecture 20 Fall 2016 CS125 Lecture 20 Fall 2016 20.1 2SAT We show yet another possible way to solve the 2SAT problem. Recall that the input to 2SAT is a logical expression that is the conunction (AND) of a set of clauses,

More information

Essential facts about NP-completeness:

Essential facts about NP-completeness: CMPSCI611: NP Completeness Lecture 17 Essential facts about NP-completeness: Any NP-complete problem can be solved by a simple, but exponentially slow algorithm. We don t have polynomial-time solutions

More information

Umans Complexity Theory Lectures

Umans Complexity Theory Lectures Umans Complexity Theory Lectures Lecture 12: The Polynomial-Time Hierarchy Oracle Turing Machines Oracle Turing Machine (OTM): Deterministic multitape TM M with special query tape special states q?, q

More information

Machine Learning for Data Science (CS4786) Lecture 24

Machine Learning for Data Science (CS4786) Lecture 24 Machine Learning for Data Science (CS4786) Lecture 24 Graphical Models: Approximate Inference Course Webpage : http://www.cs.cornell.edu/courses/cs4786/2016sp/ BELIEF PROPAGATION OR MESSAGE PASSING Each

More information

Adleman Theorem and Sipser Gács Lautemann Theorem. CS422 Computation Theory CS422 Complexity Theory

Adleman Theorem and Sipser Gács Lautemann Theorem. CS422 Computation Theory CS422 Complexity Theory Adleman Theorem and Sipser Gács Lautemann Theorem CS422 Computation Theory CS422 Complexity Theory Complexity classes, N, co N, SACE, EXTIME, H, R, RE, ALL, Complexity theorists: "Which is contained in

More information

Chapter 9. PSPACE: A Class of Problems Beyond NP. Slides by Kevin Wayne Pearson-Addison Wesley. All rights reserved.

Chapter 9. PSPACE: A Class of Problems Beyond NP. Slides by Kevin Wayne Pearson-Addison Wesley. All rights reserved. Chapter 9 PSPACE: A Class of Problems Beyond NP Slides by Kevin Wayne. Copyright @ 2005 Pearson-Addison Wesley. All rights reserved. 1 Geography Game Geography. Alice names capital city c of country she

More information

Intelligent Systems (AI-2)

Intelligent Systems (AI-2) Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 11 Oct, 3, 2016 CPSC 422, Lecture 11 Slide 1 422 big picture: Where are we? Query Planning Deterministic Logics First Order Logics Ontologies

More information

Bayesian Networks BY: MOHAMAD ALSABBAGH

Bayesian Networks BY: MOHAMAD ALSABBAGH Bayesian Networks BY: MOHAMAD ALSABBAGH Outlines Introduction Bayes Rule Bayesian Networks (BN) Representation Size of a Bayesian Network Inference via BN BN Learning Dynamic BN Introduction Conditional

More information

9. PSPACE 9. PSPACE. PSPACE complexity class quantified satisfiability planning problem PSPACE-complete

9. PSPACE 9. PSPACE. PSPACE complexity class quantified satisfiability planning problem PSPACE-complete Geography game Geography. Alice names capital city c of country she is in. Bob names a capital city c' that starts with the letter on which c ends. Alice and Bob repeat this game until one player is unable

More information

Hashing-Based Approximate Probabilistic Inference in Hybrid Domains: An Abridged Report

Hashing-Based Approximate Probabilistic Inference in Hybrid Domains: An Abridged Report Hashing-Based Approximate Probabilistic Inference in Hybrid Domains: An Abridged Report Vaishak Belle KU Leuven vaishak@cs.kuleuven.be Guy Van den Broeck University of California, Los Angeles guyvdb@cs.ucla.edu

More information

9. PSPACE. PSPACE complexity class quantified satisfiability planning problem PSPACE-complete

9. PSPACE. PSPACE complexity class quantified satisfiability planning problem PSPACE-complete 9. PSPACE PSPACE complexity class quantified satisfiability planning problem PSPACE-complete Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley Copyright 2013 Kevin Wayne http://www.cs.princeton.edu/~wayne/kleinberg-tardos

More information

Bayes Nets III: Inference

Bayes Nets III: Inference 1 Hal Daumé III (me@hal3.name) Bayes Nets III: Inference Hal Daumé III Computer Science University of Maryland me@hal3.name CS 421: Introduction to Artificial Intelligence 10 Apr 2012 Many slides courtesy

More information

Non-Approximability Results (2 nd part) 1/19

Non-Approximability Results (2 nd part) 1/19 Non-Approximability Results (2 nd part) 1/19 Summary - The PCP theorem - Application: Non-approximability of MAXIMUM 3-SAT 2/19 Non deterministic TM - A TM where it is possible to associate more than one

More information

Randomized Complexity Classes; RP

Randomized Complexity Classes; RP Randomized Complexity Classes; RP Let N be a polynomial-time precise NTM that runs in time p(n) and has 2 nondeterministic choices at each step. N is a polynomial Monte Carlo Turing machine for a language

More information

From Weighted to Unweighted Model Counting

From Weighted to Unweighted Model Counting From Weighted to Unweighted Model Counting Supratik Chakraborty Indian Institute of Technology, Bombay Dror Fried, Kuldeep S. Meel, Moshe Y. Vardi Department of Computer Science, Rice University Abstract

More information

Lecture 24: Randomized Complexity, Course Summary

Lecture 24: Randomized Complexity, Course Summary 6.045 Lecture 24: Randomized Complexity, Course Summary 1 1/4 1/16 1/4 1/4 1/32 1/16 1/32 Probabilistic TMs 1/16 A probabilistic TM M is a nondeterministic TM where: Each nondeterministic step is called

More information

Announcements. Inference. Mid-term. Inference by Enumeration. Reminder: Alarm Network. Introduction to Artificial Intelligence. V22.

Announcements. Inference. Mid-term. Inference by Enumeration. Reminder: Alarm Network. Introduction to Artificial Intelligence. V22. Introduction to Artificial Intelligence V22.0472-001 Fall 2009 Lecture 15: Bayes Nets 3 Midterms graded Assignment 2 graded Announcements Rob Fergus Dept of Computer Science, Courant Institute, NYU Slides

More information

Lecture Notes CS:5360 Randomized Algorithms Lecture 20 and 21: Nov 6th and 8th, 2018 Scribe: Qianhang Sun

Lecture Notes CS:5360 Randomized Algorithms Lecture 20 and 21: Nov 6th and 8th, 2018 Scribe: Qianhang Sun 1 Probabilistic Method Lecture Notes CS:5360 Randomized Algorithms Lecture 20 and 21: Nov 6th and 8th, 2018 Scribe: Qianhang Sun Turning the MaxCut proof into an algorithm. { Las Vegas Algorithm Algorithm

More information

CS Communication Complexity: Applications and New Directions

CS Communication Complexity: Applications and New Directions CS 2429 - Communication Complexity: Applications and New Directions Lecturer: Toniann Pitassi 1 Introduction In this course we will define the basic two-party model of communication, as introduced in the

More information

Lecture 59 : Instance Compression and Succinct PCP s for NP

Lecture 59 : Instance Compression and Succinct PCP s for NP IITM-CS6840: Advanced Complexity Theory March 31, 2012 Lecture 59 : Instance Compression and Succinct PCP s for NP Lecturer: Sivaramakrishnan N.R. Scribe: Prashant Vasudevan 1 Introduction Classical Complexity

More information

SAT, NP, NP-Completeness

SAT, NP, NP-Completeness CS 473: Algorithms, Spring 2018 SAT, NP, NP-Completeness Lecture 22 April 13, 2018 Most slides are courtesy Prof. Chekuri Ruta (UIUC) CS473 1 Spring 2018 1 / 57 Part I Reductions Continued Ruta (UIUC)

More information

Counting CSP Solutions Using Generalized XOR Constraints

Counting CSP Solutions Using Generalized XOR Constraints Counting CSP Solutions Using Generalized XOR Constraints Carla P. Gomes and Willem-Jan van Hoeve and Ashish Sabharwal and Bart Selman Department of Computer Science Cornell University, Ithaca NY 14853-7501,

More information

Verification as Learning Geometric Concepts

Verification as Learning Geometric Concepts Verification as Learning Geometric Concepts Rahul Sharma 1, Saurabh Gupta 2, Bharath Hariharan 2, Alex Aiken 1, and Aditya V. Nori 3 1 Stanford University, {sharmar,aiken}@cs.stanford.edu 2 University

More information

Lecture 5: Efficient PAC Learning. 1 Consistent Learning: a Bound on Sample Complexity

Lecture 5: Efficient PAC Learning. 1 Consistent Learning: a Bound on Sample Complexity Universität zu Lübeck Institut für Theoretische Informatik Lecture notes on Knowledge-Based and Learning Systems by Maciej Liśkiewicz Lecture 5: Efficient PAC Learning 1 Consistent Learning: a Bound on

More information

Toda s theorem in bounded arithmetic with parity quantifiers and bounded depth proof systems with parity gates

Toda s theorem in bounded arithmetic with parity quantifiers and bounded depth proof systems with parity gates 1 / 17 Toda s theorem in bounded arithmetic with parity quantifiers and bounded depth proof systems with parity gates Leszek Kołodziejczyk University of Warsaw/UCSD (joint work with Sam Buss and Konrad

More information

Quantifying uncertainty & Bayesian networks

Quantifying uncertainty & Bayesian networks Quantifying uncertainty & Bayesian networks CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2016 Soleymani Artificial Intelligence: A Modern Approach, 3 rd Edition,

More information

NP-Completeness. Algorithmique Fall semester 2011/12

NP-Completeness. Algorithmique Fall semester 2011/12 NP-Completeness Algorithmique Fall semester 2011/12 1 What is an Algorithm? We haven t really answered this question in this course. Informally, an algorithm is a step-by-step procedure for computing a

More information

Lecture 23: More PSPACE-Complete, Randomized Complexity

Lecture 23: More PSPACE-Complete, Randomized Complexity 6.045 Lecture 23: More PSPACE-Complete, Randomized Complexity 1 Final Exam Information Who: You On What: Everything through PSPACE (today) With What: One sheet (double-sided) of notes are allowed When:

More information

DRAFT. Complexity of counting. Chapter 8

DRAFT. Complexity of counting. Chapter 8 Chapter 8 Complexity of counting It is an empirical fact that for many combinatorial problems the detection of the existence of a solution is easy, yet no computationally efficient method is known for

More information

Lecture 26: Arthur-Merlin Games

Lecture 26: Arthur-Merlin Games CS 710: Complexity Theory 12/09/2011 Lecture 26: Arthur-Merlin Games Instructor: Dieter van Melkebeek Scribe: Chetan Rao and Aaron Gorenstein Last time we compared counting versus alternation and showed

More information

Quantitative Information Flow. Lecture 7

Quantitative Information Flow. Lecture 7 Quantitative Information Flow Lecture 7 1 The basic model: Systems = Information-Theoretic channels Secret Information Observables s1 o1... System... sm on Input Output 2 Probabilistic systems are noisy

More information

Probabilistic Autoreductions

Probabilistic Autoreductions Probabilistic Autoreductions Liyu Zhang University of Texas Rio Grande Valley Joint Work with Chen Yuan and Haibin Kan SOFSEM 2016 1 Overview Introduction to Autoreducibility Previous Results Main Result

More information

Probabilistic Reasoning Systems

Probabilistic Reasoning Systems Probabilistic Reasoning Systems Dr. Richard J. Povinelli Copyright Richard J. Povinelli rev 1.0, 10/7/2001 Page 1 Objectives You should be able to apply belief networks to model a problem with uncertainty.

More information

SAT-Solving: From Davis- Putnam to Zchaff and Beyond Day 3: Recent Developments. Lintao Zhang

SAT-Solving: From Davis- Putnam to Zchaff and Beyond Day 3: Recent Developments. Lintao Zhang SAT-Solving: From Davis- Putnam to Zchaff and Beyond Day 3: Recent Developments Requirements for SAT solvers in the Real World Fast & Robust Given a problem instance, we want to solve it quickly Reliable

More information

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler Complexity Theory Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 15 May, 2018 Reinhard

More information

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181. Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität

More information

Sampling from Bayes Nets

Sampling from Bayes Nets from Bayes Nets http://www.youtube.com/watch?v=mvrtaljp8dm http://www.youtube.com/watch?v=geqip_0vjec Paper reviews Should be useful feedback for the authors A critique of the paper No paper is perfect!

More information

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Introduction to Artificial Intelligence Propositional Logic & SAT Solving UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Today Representation in Propositional Logic Semantics & Deduction

More information

CS151 Complexity Theory. Lecture 13 May 15, 2017

CS151 Complexity Theory. Lecture 13 May 15, 2017 CS151 Complexity Theory Lecture 13 May 15, 2017 Relationship to other classes To compare to classes of decision problems, usually consider P #P which is a decision class easy: NP, conp P #P easy: P #P

More information

CS 343: Artificial Intelligence

CS 343: Artificial Intelligence CS 343: Artificial Intelligence Bayes Nets: Sampling Prof. Scott Niekum The University of Texas at Austin [These slides based on those of Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley.

More information

Objectives. Probabilistic Reasoning Systems. Outline. Independence. Conditional independence. Conditional independence II.

Objectives. Probabilistic Reasoning Systems. Outline. Independence. Conditional independence. Conditional independence II. Copyright Richard J. Povinelli rev 1.0, 10/1//2001 Page 1 Probabilistic Reasoning Systems Dr. Richard J. Povinelli Objectives You should be able to apply belief networks to model a problem with uncertainty.

More information

Average Case Complexity: Levin s Theory

Average Case Complexity: Levin s Theory Chapter 15 Average Case Complexity: Levin s Theory 1 needs more work Our study of complexity - NP-completeness, #P-completeness etc. thus far only concerned worst-case complexity. However, algorithms designers

More information

1 Algebraic Methods. 1.1 Gröbner Bases Applied to SAT

1 Algebraic Methods. 1.1 Gröbner Bases Applied to SAT 1 Algebraic Methods In an algebraic system Boolean constraints are expressed as a system of algebraic equations or inequalities which has a solution if and only if the constraints are satisfiable. Equations

More information

Lecture 21: Counting and Sampling Problems

Lecture 21: Counting and Sampling Problems princeton univ. F 14 cos 521: Advanced Algorithm Design Lecture 21: Counting and Sampling Problems Lecturer: Sanjeev Arora Scribe: Today s topic of counting and sampling problems is motivated by computational

More information

Almost transparent short proofs for NP R

Almost transparent short proofs for NP R Brandenburgische Technische Universität, Cottbus, Germany From Dynamics to Complexity: A conference celebrating the work of Mike Shub Toronto, May 10, 2012 Supported by DFG under GZ:ME 1424/7-1 Outline

More information

HW11. Due: December 6, 2018

HW11. Due: December 6, 2018 CSCI 1010 Theory of Computation HW11 Due: December 6, 2018 Attach a fully filled-in cover sheet to the front of your printed homework. Your name should not appear anywhere; the cover sheet and each individual

More information

Lecture 12: Interactive Proofs

Lecture 12: Interactive Proofs princeton university cos 522: computational complexity Lecture 12: Interactive Proofs Lecturer: Sanjeev Arora Scribe:Carl Kingsford Recall the certificate definition of NP. We can think of this characterization

More information

8. INTRACTABILITY I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 2/6/18 2:16 AM

8. INTRACTABILITY I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 2/6/18 2:16 AM 8. INTRACTABILITY I poly-time reductions packing and covering problems constraint satisfaction problems sequencing problems partitioning problems graph coloring numerical problems Lecture slides by Kevin

More information

A Scalable Scheme for Counting Linear Extensions

A Scalable Scheme for Counting Linear Extensions A Scalable Scheme for Counting Linear Extensions Topi Talvitie 1, Kustaa Kangas 2, Teppo Niinimäki 2, Mikko Koivisto 1 1 University of Helsinki 2 Aalto University totalvit@cs.helsinki.fi, juho-kustaa.kangas@aalto.fi,

More information

The Parameterized Complexity of Approximate Inference in Bayesian Networks

The Parameterized Complexity of Approximate Inference in Bayesian Networks The Parameterized Complexity of Approximate Inference in Bayesian Networks Johan Kwisthout j.kwisthout@donders.ru.nl http://www.dcc.ru.nl/johank/ Donders Center for Cognition Department of Artificial Intelligence

More information

SOLUTION: SOLUTION: SOLUTION:

SOLUTION: SOLUTION: SOLUTION: Convert R and S into nondeterministic finite automata N1 and N2. Given a string s, if we know the states N1 and N2 may reach when s[1...i] has been read, we are able to derive the states N1 and N2 may

More information

Lecture 23: Alternation vs. Counting

Lecture 23: Alternation vs. Counting CS 710: Complexity Theory 4/13/010 Lecture 3: Alternation vs. Counting Instructor: Dieter van Melkebeek Scribe: Jeff Kinne & Mushfeq Khan We introduced counting complexity classes in the previous lecture

More information

Studies in Solution Sampling

Studies in Solution Sampling Studies in Solution Sampling Vibhav Gogate and Rina Dechter Donald Bren School of Information and Computer Science, University of California, Irvine, CA 92697, USA. {vgogate,dechter}@ics.uci.edu Abstract

More information

CS 5522: Artificial Intelligence II

CS 5522: Artificial Intelligence II CS 5522: Artificial Intelligence II Bayes Nets: Independence Instructor: Alan Ritter Ohio State University [These slides were adapted from CS188 Intro to AI at UC Berkeley. All materials available at http://ai.berkeley.edu.]

More information

Proving SAT does not have Small Circuits with an Application to the Two Queries Problem

Proving SAT does not have Small Circuits with an Application to the Two Queries Problem Proving SAT does not have Small Circuits with an Application to the Two Queries Problem Lance Fortnow A. Pavan Samik Sengupta Abstract We show that if SAT does not have small circuits, then there must

More information

Limits to Approximability: When Algorithms Won't Help You. Note: Contents of today s lecture won t be on the exam

Limits to Approximability: When Algorithms Won't Help You. Note: Contents of today s lecture won t be on the exam Limits to Approximability: When Algorithms Won't Help You Note: Contents of today s lecture won t be on the exam Outline Limits to Approximability: basic results Detour: Provers, verifiers, and NP Graph

More information

Average-case Analysis for Combinatorial Problems,

Average-case Analysis for Combinatorial Problems, Average-case Analysis for Combinatorial Problems, with s and Stochastic Spanning Trees Mathematical Sciences, Carnegie Mellon University February 2, 2006 Outline Introduction 1 Introduction Combinatorial

More information

Probabilistic Reasoning. (Mostly using Bayesian Networks)

Probabilistic Reasoning. (Mostly using Bayesian Networks) Probabilistic Reasoning (Mostly using Bayesian Networks) Introduction: Why probabilistic reasoning? The world is not deterministic. (Usually because information is limited.) Ways of coping with uncertainty

More information

(x 1 +x 2 )(x 1 x 2 )+(x 2 +x 3 )(x 2 x 3 )+(x 3 +x 1 )(x 3 x 1 ).

(x 1 +x 2 )(x 1 x 2 )+(x 2 +x 3 )(x 2 x 3 )+(x 3 +x 1 )(x 3 x 1 ). CMPSCI611: Verifying Polynomial Identities Lecture 13 Here is a problem that has a polynomial-time randomized solution, but so far no poly-time deterministic solution. Let F be any field and let Q(x 1,...,

More information