Weighted Heuristic Anytime Search

Similar documents
COMPSCI 276 Fall 2007

Exact Inference Algorithms Bucket-elimination

Exact Inference Algorithms Bucket-elimination

Variational algorithms for marginal MAP

A new Evaluation of Forward Checking and its Consequences on Efficiency of Tools for Decomposition of CSPs

Bayesian Networks: Representation, Variable Elimination

CS 395T Computational Learning Theory. Scribe: Mike Halcrow. x 4. x 2. x 6

Reasoning with Deterministic and Probabilistic graphical models Class 2: Inference in Constraint Networks Rina Dechter

Section Notes 8. Integer Programming II. Applied Math 121. Week of April 5, expand your knowledge of big M s and logical constraints.

Subproblem-Tree Calibration: A Unified Approach to Max-Product Message Passing

4.8 Huffman Codes. These lecture slides are supplied by Mathijs de Weerd

Tree Decompositions and Tree-Width

where X is the feasible region, i.e., the set of the feasible solutions.

Compiling Knowledge into Decomposable Negation Normal Form

Computing Possibly Optimal Solutions for Multi-Objective Constraint Optimisation with Tradeoffs

Each internal node v with d(v) children stores d 1 keys. k i 1 < key in i-th sub-tree k i, where we use k 0 = and k d =.

Learning Decision Trees

Statistical Methods for NLP

BMI/CS 776 Lecture 4. Colin Dewey

Disconnecting Networks via Node Deletions

Learning in State-Space Reinforcement Learning CIS 32

Nearest Neighbor Search with Keywords

Math Models of OR: Branch-and-Bound

Introduction to Mathematical Programming IE406. Lecture 21. Dr. Ted Ralphs

Evolutionary Tree Analysis. Overview

Design and Analysis of Algorithms

HW #4. (mostly by) Salim Sarımurat. 1) Insert 6 2) Insert 8 3) Insert 30. 4) Insert S a.

Digital search trees JASS

arxiv: v1 [stat.ml] 26 Feb 2013

Binary Decision Diagrams. Graphs. Boolean Functions

AND/OR Importance Sampling

On the Relationship between Sum-Product Networks and Bayesian Networks

Query Optimization: Exercise

Optimization Bounds from Binary Decision Diagrams

Search and Lookahead. Bernhard Nebel, Julien Hué, and Stefan Wölfl. June 4/6, 2012

Sum-Product Networks: A New Deep Architecture

Assignment 5: Solutions

SOLVING INTEGER LINEAR PROGRAMS. 1. Solving the LP relaxation. 2. How to deal with fractional solutions?

Lecture 16. Error-free variable length schemes (contd.): Shannon-Fano-Elias code, Huffman code

Even More on Dynamic Programming

AVL Trees. Manolis Koubarakis. Data Structures and Programming Techniques

Machine Learning 4771

Chapter 4: Computation tree logic

On the Average Path Length of Complete m-ary Trees

Binary Decision Diagrams

IE418 Integer Programming

Properties of Context-Free Languages

maxz = 3x 1 +4x 2 2x 1 +x 2 6 2x 1 +3x 2 9 x 1,x 2

The Necessity of Bounded Treewidth for Efficient Inference in Bayesian Networks

CSE 202 Homework 4 Matthias Springer, A

Binary Decision Diagrams

Dublin City Schools Mathematics Graded Course of Study Algebra I Philosophy

Fibonacci Heaps These lecture slides are adapted from CLRS, Chapter 20.

Bayesian Networks Factor Graphs the Case-Factor Algorithm and the Junction Tree Algorithm

Fault-Tolerant Consensus

Propositional Calculus - Semantics (3/3) Moonzoo Kim CS Dept. KAIST

4 : Exact Inference: Variable Elimination

Integer Programming. Wolfram Wiesemann. December 6, 2007

Basing Decisions on Sentences in Decision Diagrams

Lesson 10: Comparing Functions and their features

The Separation Problem for Binary Decision Diagrams

On the Isomorphism Problem for Decision Trees and Decision Lists

CS60007 Algorithm Design and Analysis 2018 Assignment 1

Min-Max Message Passing and Local Consistency in Constraint Networks

Binary Search Trees. Motivation

APPROXIMATION COMPLEXITY OF MAP INFERENCE IN SUM-PRODUCT NETWORKS

COMPUTATIONAL COMPLEXITY OF PARAMETRIC LINEAR PROGRAMMING +

Design and Analysis of Algorithms

Graph structure in polynomial systems: chordal networks

Introduction to Bin Packing Problems

Reduced Ordered Binary Decision Diagrams

Inference and Representation

Zebo Peng Embedded Systems Laboratory IDA, Linköping University

Integer Programming ISE 418. Lecture 8. Dr. Ted Ralphs

Observations Homework Checkpoint quizzes Chapter assessments (Possibly Projects) Blocks of Algebra

Scout and NegaScout. Tsan-sheng Hsu.

Solving the Maximum Agreement Subtree and Maximum Comp. Tree problems on bounded degree trees. Sylvain Guillemot, François Nicolas.

Bayesian Networks. Exact Inference by Variable Elimination. Emma Rollon and Javier Larrosa Q

Data Structures and Algorithms " Search Trees!!

CS483 Design and Analysis of Algorithms

Computational Models - Lecture 5 1

min3x 1 + 4x 2 + 5x 3 2x 1 + 2x 2 + x 3 6 x 1 + 2x 2 + 3x 3 5 x 1, x 2, x 3 0.

Mini-Buckets: A General Scheme for Bounded Inference

Data Mining Classification: Basic Concepts and Techniques. Lecture Notes for Chapter 3. Introduction to Data Mining, 2nd Edition

Advanced Implementations of Tables: Balanced Search Trees and Hashing

arxiv: v1 [cs.ds] 9 Apr 2018

Absolute Value Equations and Inequalities. Use the distance definition of absolute value.

Lecture 9: PGM Learning

Analysis of Algorithms. Outline 1 Introduction Basic Definitions Ordered Trees. Fibonacci Heaps. Andres Mendez-Vazquez. October 29, Notes.

Graph structure in polynomial systems: chordal networks

Analysis of Algorithms I: Asymptotic Notation, Induction, and MergeSort

Discrete Mathematics

Lessons from MIP Search. John Hooker Carnegie Mellon University November 2009

Multiple Choice Tries and Distributed Hash Tables

Bayesian Inference. Definitions from Probability: Naive Bayes Classifiers: Advantages and Disadvantages of Naive Bayes Classifiers:

Realization Plans for Extensive Form Games without Perfect Recall

Computing the acceptability semantics. London SW7 2BZ, UK, Nicosia P.O. Box 537, Cyprus,

Appendix of Computational Protein Design Using AND/OR Branch and Bound Search

Variable Elimination (VE) Barak Sternberg

Distribution of the Number of Encryptions in Revocation Schemes for Stateless Receivers

Transcription:

Weighted Heuristic Anytime Search Flerova, Marinescu, and Dechter 1 1 University of South Carolina April 24, 2017

Basic Heuristic Best-first Search Blindly follows the heuristic Weighted A Search For w > 1 f (n) = д(n) + w h(n) Larger w yields greedier searches

Basic Heuristic Best-first Search Blindly follows the heuristic Weighted A Search For w > 1 f (n) = д(n) + w h(n) Larger w yields greedier searches

Graphical Definition (Graphical Model) A tuple M = X, D, F, where 1 X = {X 0,..., X n 1 } is a set of variables 2 D = {D 0,..., D n 1 } is a set of domains 3 F = { f 0 (X S0 ),..., f r 1 (X Sr 1 ) } is a set of scopes: X Si X i. f i : X Si R + 4 A combination operator {, } The model M represents the function C(X ) = r 1 i=0 f i (X Si )

Graphical Definition (Graphical Model) A tuple M = X, D, F, where 1 X = {X 0,..., X n 1 } is a set of variables 2 D = {D 0,..., D n 1 } is a set of domains 3 F = { f 0 (X S0 ),..., f r 1 (X Sr 1 ) } is a set of scopes: X Si X i. f i : X Si R + 4 A combination operator {, } The model M represents the function C(X ) = r 1 i=0 f i (X Si )

Graphical Given a model M = X, D, F,, the most common optimization task is either most probable explanation or maximum a posteriori MPE Find the optimal value C : C = C(x ) = max X r 1 i=0 f i (X Si ) MAP Find the optimizing configuration x : x = argmax X r 1 i=0 f i (X Si )

Graphical Given a model M = X, D, F,, the most common optimization task is either most probable explanation or maximum a posteriori MPE Find the optimal value C : C = C(x ) = max X r 1 i=0 f i (X Si ) MAP Find the optimizing configuration x : x = argmax X r 1 i=0 f i (X Si )

Graphical Given a model M = X, D, F,, the most common optimization task is either most probable explanation or maximum a posteriori MPE Find the optimal value C : C = C(x ) = max X r 1 i=0 f i (X Si ) MAP Find the optimizing configuration x : x = argmax X r 1 i=0 f i (X Si )

Graphical : MPE/MAP WCSP MPE C MPE = C(x ) = max X r 1 i=0 f i (X Si ) WCSP Weighted Constraint Satisfaction Problem (MPE in negative log-space) C WCSP C(x ) = min X r 1 i=0 f i (X Si )

Graphical : MPE/MAP WCSP MPE C MPE = C(x ) = max X r 1 i=0 f i (X Si ) WCSP Weighted Constraint Satisfaction Problem (MPE in negative log-space) C WCSP C(x ) = min X r 1 i=0 f i (X Si )

Primal Graph Definition The primal graph of a model is a graph where the vertices are the variables and edges connect variables within the same scope Scopes X S0 = {A, B} X S1 = {A,C} X S2 = {C, D} C D A B E F X S3 = {B, D} X S4 = {B, F } X S5 = {E, F } Figure: Primal

Primal Graph Definition The primal graph of a model is a graph where the vertices are the variables and edges connect variables within the same scope Scopes X S0 = {A, B} X S1 = {A,C} X S2 = {C, D} C D A B E F X S3 = {B, D} X S4 = {B, F } X S5 = {E, F } Figure: Primal

A C D A B E F B C D E F (a) Primal (b) Induced Graph Figure: Induced graph over the natural ordering.

A C D A B E F B C D E F (a) Primal (b) Induced Graph Figure: Induced graph over the natural ordering.

A A C E C E B B D F D F (a) Orig + Ind. Edges (b) Pseudo-tree Figure: Pseudo-tree with edges chosen to respect the order

A A C E C E B B D F D F (a) Orig + Ind. Edges (b) Pseudo-tree Figure: Pseudo-tree with edges chosen to respect the order

OR AND OR AND OR A 0 1 B B 0 1 0 1 C C C C E E E E.. Figure: Context-Minimal Graph For Pseudotree

Assume a graphical model M = X, D, F, with primal graph G, pseudotree T, and search tree S T Definition The context-minimal search graph, denoted C T, is the search graph obtained after merging all identical subproblems. C T is exponential in the depth of T

Assume a graphical model M = X, D, F, with primal graph G, pseudotree T, and search tree S T Definition The context-minimal search graph, denoted C T, is the search graph obtained after merging all identical subproblems. C T is exponential in the depth of T

Assume a graphical model M = X, D, F, with primal graph G, pseudotree T, and search tree S T Definition A solution tree T of C T is a subtree satisfying the following conditions: 1 It contains the root of C T 2 If an internal AND node n is in T, then all the children of n are in T 3 if an internal OR node n is in T, then exactly one child of n is in T 4 Every leaf in T is a terminal node

Assume a graphical model M = X, D, F, with primal graph G, pseudotree T, and search tree S T Definition A solution tree T of C T is a subtree satisfying the following conditions: 1 It contains the root of C T 2 If an internal AND node n is in T, then all the children of n are in T 3 if an internal OR node n is in T, then exactly one child of n is in T 4 Every leaf in T is a terminal node

Assume a graphical model M = X, D, F, with primal graph G, pseudotree T, and search tree S T Definition A solution tree T of C T is a subtree satisfying the following conditions: 1 It contains the root of C T 2 If an internal AND node n is in T, then all the children of n are in T 3 if an internal OR node n is in T, then exactly one child of n is in T 4 Every leaf in T is a terminal node

Assume a graphical model M = X, D, F, with primal graph G, pseudotree T, and search tree S T Definition A solution tree T of C T is a subtree satisfying the following conditions: 1 It contains the root of C T 2 If an internal AND node n is in T, then all the children of n are in T 3 if an internal OR node n is in T, then exactly one child of n is in T 4 Every leaf in T is a terminal node

Best First Search State-of-the-art A for search space. Too complicated to fit on a slide Highlights Input: Graphical Model M = X, D, F, Σ Initial weight w 0 Pseudotree T rooted at X 1 heuristic h i (precalculated) Output: Optimal solution to M

Best First Search State-of-the-art A for search space. Too complicated to fit on a slide Highlights Input: Graphical Model M = X, D, F, Σ Initial weight w 0 Pseudotree T rooted at X 1 heuristic h i (precalculated) Output: Optimal solution to M

Best First Search State-of-the-art A for search space. Too complicated to fit on a slide Highlights Input: Graphical Model M = X, D, F, Σ Initial weight w 0 Pseudotree T rooted at X 1 heuristic h i (precalculated) Output: Optimal solution to M

Best First Search Let M = {X, D, F, Σ} where X = {A, B,C, D} D = {0, 1} s s X F is given by the following tables: A B f (A, B) 0 0 4 0 1 1 1 0 3 1 1 1 B f (B) 0 1 1 9 B C f (B,C) 0 0 3 0 1 2 1 0 2 1 1 1 A B f (A, B) 0 0 4 0 1 1 1 0 3 1 1 1

Best First Search Scopes F = {f (A, B), f (B,C), f (A, D), f (B)} B A C D Figure: Primal Graph

Best First Search Scopes F = {f (A, B), f (B,C), f (A, D), f (B)} B A C D Figure: Primal Graph

Best First Search B h = 7 h = 6 0 1 9 1 h = 3 A 4 3 0 1 h = 1 h = 1 D h = 1 1 1 h = 4 C h = 2 3 2 0 1 h = 0 h = 0 D h = 1 3 1 A h = 2 C h = 1 4 3 3 2 0 1 0 1 h = 1 h = 1 h = 0 h = 0 0 1 h = 0 h = 1 0 1 h = 0 h = 0

Best First Search Algorithm Sketch Down Pass: Expand nodes and mark terminal nodes solved Up Pass: Update v(n) for each node according to the following rules: OR Nodes: v(n) = min w(n, k) + v(k) k succ(n) AND Nodes: v(n) = v(k) k succ(n)

Best First Search B v = 7 v = 6 0 1 9 1 v = 3 A 4 3 0 1 v = 1 v = 1 v = 4 C v = 2 3 2 0 1 v = 0 v = 0 D v = 1 3 1 0 1 v = 0 v = 0