Example: Bioinformatics. Soft Constraint Processing. From Optimal CSP to Soft CSP. Overview. From Optimal CSP to Soft CSP.

Similar documents
Overview. Overview. Example: Full Adder Diagnosis. Example: Full Adder Diagnosis. Valued CSP. Diagnosis using Bounded Search and Symbolic Inference

Soft constraints: Polynomial classes, Applications

Constraint Satisfaction Problems

A fuzzy constraint assigns every possible tuple in a relation a membership degree. The function

Part 2: Algorithms. CP-2001 Tutorial - Cyprus November 2001 Algorithms 1

Constraint Satisfaction Problems

Semi-Independent Partitioning: A Method for Bounding the Solution to COP s

Lecture 18. Questions? Monday, February 20 CS 430 Artificial Intelligence - Lecture 18 1

Artificial Intelligence

Artificial Intelligence

Foundations of Artificial Intelligence

Diagnosis using Bounded Search and Symbolic Inference

Towards Parallel Non Serial Dynamic Programming for Solving Hard Weighted CSP

Dynamic heuristics for branch and bound search on tree-decomposition of Weighted CSPs

Nogood Recording for Valued Constraint Satisfaction Problems.

Local Consistency in Weighted CSPs and Inference in Max-SAT

Soft arc consistency revisited

Lecture 5 Finding meaningful clusters in data. 5.1 Kleinberg s axiomatic framework for clustering

Mathematical Programming Formulations, Constraint Programming

Some Applications of Graph Bandwidth to Constraint Satisfaction Problems

Reading: Chapter 6 (3 rd ed.); Chapter 5 (2 nd ed.) For next week: Thursday: Chapter 8

Constraint Programming

Constraint Satisfaction Problems. Chapter 6

Lecture 6: Constraint Satisfaction Problems (CSPs)

Constraint Optimisation Problems. Constraint Optimisation. Cost Networks. Branch and Bound. Dynamic Programming

Multi-Objective Russian Doll Search

CS 771 Artificial Intelligence. Constraint Satisfaction Problem

Third ILOG International Users Meeting, 9 & 10 July 1997, Paris, France 1. Michel Lema^tre, Gerard Verfaillie ONERA/CERT

Constraint Satisfaction Problems

The Size Robust Multiple Knapsack Problem

A Parameterized Local Consistency for Redundant Modeling in Weighted CSPs

CS 188: Artificial Intelligence Fall 2011

Unifying and extending hybrid tractable classes of CSPs

Propagate the Right Thing: How Preferences Can Speed-Up Constraint Solving

A Tutorial with Java API and Examples on Valued Constraint Satisfaction Problems

15.4 Longest common subsequence

A Fast Arc Consistency Algorithm for n-ary Constraints

Lagrangian Relaxation in CP

Advances in Parallel Branch and Bound

Constraint Optimization Techniques for MultiObjective Branch and Bound Search

CONSTRAINT SATISFACTION

Constraint Satisfaction Problems

Constraint Satisfaction Problems. Chapter 6

Anytime AND/OR Depth-first Search for Combinatorial Optimization

Arc Consistency and Domain Splitting in CSPs

General Methods and Search Algorithms

Bound Consistency for Binary Length-Lex Set Constraints

Constraint Satisfaction

Lecture 14: Lower Bounds for Tree Resolution

Search Algorithms for Solving Queries on Graphical Models & the Importance of Pseudo-trees in their Complexity.

Preference Modeling and Reasoning

Space of Search Strategies. CSE 573: Artificial Intelligence. Constraint Satisfaction. Recap: Search Problem. Example: Map-Coloring 11/30/2012

Constraint Satisfaction Problems. slides from: Padhraic Smyth, Bryan Low, S. Russell and P. Norvig, Jean-Claude Latombe

Constraint Satisfaction Problems

CS 188: Artificial Intelligence. Recap: Search

Lars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Germany, Course on Artificial Intelligence,

Artificial Intelligence

Module 4. Constraint satisfaction problems. Version 2 CSE IIT, Kharagpur

Massachusetts Institute of Technology J/6.834J Cognitive Robotics. Comparison of Russian Doll Search and Bucket Tree Elimination

15.4 Longest common subsequence

A General Scheme for Automatic Generation of Search Heuristics from Specification Dependencies. Kalev Kask and Rina Dechter

Foundations of Artificial Intelligence

: Principles of Automated Reasoning and Decision Making Midterm

!!" '!" Fall 2003 ICS 275A - Constraint Networks 2

Search. Krzysztof Kuchcinski. Department of Computer Science Lund Institute of Technology Sweden.

PROBLEM SOLVING AND SEARCH IN ARTIFICIAL INTELLIGENCE

A Uniform View of Backtracking

Towards a Memory-Efficient Knapsack DP Algorithm

Treaps. 1 Binary Search Trees (BSTs) CSE341T/CSE549T 11/05/2014. Lecture 19

Constraint Satisfaction. AI Slides (5e) c Lin

Example: Map coloring

28.1 Decomposition Methods

Exact Algorithms for NP-hard problems

Dynamic programming. Trivial problems are solved first More complex solutions are composed from the simpler solutions already computed

Non-convex Multi-objective Optimization

Heuristic Search and Advanced Methods

Introduction to Combinatorial Algorithms

3 No-Wait Job Shops with Variable Processing Times

Constraint Satisfaction Problems

Example: Map-Coloring. Constraint Satisfaction Problems Western Australia. Example: Map-Coloring contd. Outline. Constraint graph

Solving Multi-Objective Distributed Constraint Optimization Problems. CLEMENT Maxime. Doctor of Philosophy

CAD Algorithms. Categorizing Algorithms

Constraint Satisfaction Problems

2-C3OP: An Improved Version of 2-Consistency

Artificial Intelligence Constraint Satisfaction Problems

Today. CS 188: Artificial Intelligence Fall Example: Boolean Satisfiability. Reminder: CSPs. Example: 3-SAT. CSPs: Queries.

Outline. Best-first search

Announcements. Reminder: CSPs. Today. Example: N-Queens. Example: Map-Coloring. Introduction to Artificial Intelligence

Constraint Satisfaction Problems

Constraint Satisfaction Problems (CSPs)

CS 188: Artificial Intelligence. Recap Search I

CS 4100 // artificial intelligence

Algorithms Dr. Haim Levkowitz

Russian Doll Search with Tree Decomposition

Chapter 10 Part 1: Reduction

CS 151 Complexity Theory Spring Final Solutions. L i NL i NC 2i P.

CS Foundations of Communication Complexity

Conflict Graphs for Combinatorial Optimization Problems

Set Cover with Almost Consecutive Ones Property

Solving NP-hard Problems on Special Instances

Transcription:

Example: Bioinformatics Soft Constraint Processing 16.412J/6.834J Cognitive Robotics Martin Sachenbacher (Using material from Thomas Schiex) RNA is single-strand molecule, composed of A,U,G,C Function of RNA depends on structure (3-D folding) Structure induced by base pairing: Watson-Crick (A-U, G-C) and Wobble (G-U). Problem: Find RNA structure that maximizes base pairings. Cumbersome to frame as Optimal CSP! Overview Soft Constraints Framework Algorithms: Search (Branch-and-Bound) Algorithms: Inference (Dynamic Programming) Applications: Problems From Optimal CSP to Soft CSP Optimal CSP: Minimize function f(y), s.t. constraints C(x) are satisfiable. Utility Function Constraint From Optimal CSP to Soft CSP Soft CSP: Extend the notion of constraints to include preferences. Soft Constraint Notation A -tuple is a sequence of objects. The -th component of a tuple is denoted. The projection of a tuple on a subset of its components is denoted. The cartesian product of sets, denoted, is the set of all -tuples such that. 1

Classical CSP A constraint network set of variables set of domains set of constraints A constraint is a relation on variables with arity. A complete assignment. is allowed if Valued CSP For each constraint/tuple: a valuation that reflects preference (e.g. cost, weight, priority, probability, ). The valuation of an assignment is the combination of the valuations expressed by each constraint using a binary operator (with special axioms). Assignments can be compared using a total order on valuations. The problem is to produce an assignment of minimum valuation. Formally: Valuation Structure Valued CSP = set of valuations, used to assess assignments = minimum element of, corresponds to totally consistent assignments = maximum element of, corresponds to totally inconsistent assignments = total order on E, used to compare two valuations = operator used to combine two valuations A constraint network set of variables set of domains set of constraints valuation structure A constraint is a function mapping tuples over to valuations. The valuation of a complete assignment. is Required Properties Instances of the Framework (Commutativity) (Associativity) (Monotonicity) Classical Weighted Probabilistic Exercise: Justify properties. (Neutral element) (Annihilator) Fuzzy Many others in the literature. 2

From Valued CSP to Optimal CSP Introduce decision variable for each constraint Its values correspond to different valuations From Valued CSP to Optimal CSP Introduce decision variable for each constraint Its values correspond to different valuations From Valued CSP to Optimal CSP Introduce decision variable for each constraint Its values correspond to different valuations Utility function maps values to valuations Constraints become relations Overview Soft Constraints Framework Algorithms: Search (Branch-and-Bound) Algorithms: Inference (Dynamic Programming) Applications: Problems Multiattribute utility function Branch-and and-bound Search Each search node is a soft constraint subproblem Lower Bound (lb): Optimistic estimate of best solution in subtree Upper Bound (ub): Best solution found so far Prune, if lb ub. Branch-and and-bound Algorithm Function ( : assignment, : value): value if then if then return let be an unassigned variable for each do return return Time: O(exp(n)) Space: O(n) 3

Lower Bound Procedure Must be: Strong: the closest to the real value, the better. Efficient: as easy to compute as possible. Distance Lower Bound At each node, let be the set of constraints all of whose variables have been assigned. Use the bound Creates a trade-off. Choice is often a matter of compromises and experimental evaluation. Problem: often weak, as it takes into account only past variables. Improvement: Russian Doll Search Russian Doll Search Idea: we can add the value of the optimal solution to the subproblem over future variables to distance lower bound, and get a stronger lower bound. Must solve subproblem over future variables beforehand. Yields recursive procedure that solves increasingly large subproblems. X 1 X 2 X 3 X 4 X 5 [Lemaitre Verfaillie Schiex 96]: Experiments with Earth Observation Satellite Scheduling Problems (maximization problem). Example: 105 variables, 403 constraints. Branch-and-Bound with distance lower bound: Aborted after 30 min, best solution so far = 8095. Russian Doll Search: Optimal solution = 9096 found in 2.5 sec. Overview Inference Soft Constraints Framework Algorithms: Search (Branch-and-Bound) Algorithms: Inference (Dynamic Programming) Applications: Problems Inference produces new constraints that are implied by the problem. Makes problem more explicit, easier to solve. Operations on constraints: combination and projection. VCSP VCSP Equivalent, simpler to solve 4

Combination Combination is constraint on s.t. is constraint on s.t. Projection Inferring Solutions is a constraint on s.t. Constraint network Value of optimal solution obtained by combining all constraints and eliminating all variables : Problem: Very costly: Time O(exp(n)), Space O(exp(n). Improvement: Bucket Elimination Idea: Eliminate variable as soon as it no longer occurs in remaining set of constraints. For variable, let Compute combination of all constraints in Now eliminate from : Remove from and add to. Induced Graph When processing a node (variable), connect all neighboring nodes not yet processed. Graph Induced Graph 5

Bucket Elimination: Complexity Let width be the maximum number of successors in the induced graph. Then: Time dominated by computation of largest : O(exp(width+1)) Space dominated by storage of largest : O(exp(width)) Impact of Variable Ordering Width: 4 Width: 2 Width: 2 Finding ordering with minimal width is NP-hard. Min-Fill Ordering Heuristic Function ( : Graph with edges and nodes ): Order for to let be a node in with minimal number of edges required to connect its neighbors put in position of order Example Full Adder Circuit Often finds good orderings in practice. Full Adder Circuit Hyper- Graph Example Tree Decomposition MF Order Computational Scheme ( Bucket Tree ) A tree decomposition for a problem is a triple, where is a rooted tree, and are labeling functions associating with each node two sets such that: For each, there is exactly one such that. For this, (covering condition); For each, the set of vertices labeled with induces a connected subtree of (connectedness condition). 6

Example Overview Tree Decomposition χ λ Soft Constraints Framework Algorithms: Search (Branch-and-Bound) Algorithms: Inference (Dynamic Programming) Applications: Problems Time: O(exp(max i χ i )) Space: O(exp(max i,j χ i -χ j )) Link Link 7

Several instances available from CELAR (200 to 916 variables, 1200 to 5000 constraints, domain size >30) Very hard instances for branch-and-bound search. Good results reported for using tree decomposition. Link 8