Qualitative Constraint Satisfaction Problems: Algorithms, Computational Complexity, and Extended Framework

Similar documents
Qualitative Constraint Satisfaction Problems: Algorithms, Computational Complexity, and Extended Framework

arxiv: v1 [cs.ai] 1 Sep 2009

arxiv: v2 [cs.ai] 13 Feb 2015

Artificial Intelligence

Reasoning with Cardinal Directions: An Efficient Algorithm

Temporal Constraint Networks

Combining RCC5 Relations with Betweenness Information

Efficient Approach to Solve the Minimal Labeling Problem of Temporal and Spatial Qualitative Constraints

Temporal Constraint Networks

Robotic Manipulation by Pushing at a Single Point with Constant Velocity: Modeling and Techniques

Weak Composition for Qualitative Spatial and Temporal Reasoning

Combining topological and size information for spatial reasoning

Temporal Constraint Networks

A Class of Star-Algebras for Point-Based Qualitative Reasoning in Two- Dimensional Space

A Spatial Odyssey of the Interval Algebra: 1. Directed Intervals

Solving Fuzzy PERT Using Gradual Real Numbers

How to Handle Incomplete Knowledge Concerning Moving Objects

On minimal models of the Region Connection Calculus

Relations Between Spatial Calculi About Directions and Orientations (Extended Abstract 1 )

Combining binary constraint networks in qualitative reasoning

Adding ternary complex roles to ALCRP(D)

COP 4531 Complexity & Analysis of Data Structures & Algorithms

Industrial Rotating Kiln Simulation

A new tractable subclass of the rectangle algebra

Combining Topological and Directional Information for Spatial Reasoning

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

Local Hardy Spaces and Quadratic Estimates for Dirac Type Operators on Riemannian Manifolds

Effect of 3D Stress States at Crack Front on Deformation, Fracture and Fatigue Phenomena

Logics for Compact Hausdorff Spaces via de Vries Duality

SAT, NP, NP-Completeness

CS21 Decidability and Tractability

A An Overview of Complexity Theory for the Algorithm Designer

PDL for Qualitative Reasoning about moving objects. A first step

From Crisp to Fuzzy Constraint Networks

A Generalized Framework for Reasoning with Angular Directions

Incremental qualitative temporal reasoning: Algorithms for the Point Algebra and the ORD-Horn class

Non-Deterministic Time

Disjunctive Temporal Reasoning in Partially Ordered Models of Time

Approximations of Modal Logic K

1. Introduction Recap

On Monoids Related to Braid Groups and Transformation Semigroups. James East

6. Logical Inference

A Framework for Merging Qualitative Constraints Networks

Spatial Computing. or how to design a right-brain hemisphere. Christian Freksa University of Bremen

Algebraic Tractability Criteria for Infinite-Domain Constraint Satisfaction Problems

Algorithms and Theory of Computation. Lecture 22: NP-Completeness (2)

NP and Computational Intractability

R1: Sets A set is a collection of objects sets are written using set brackets each object in onset is called an element or member

CS 301: Complexity of Algorithms (Term I 2008) Alex Tiskin Harald Räcke. Hamiltonian Cycle. 8.5 Sequencing Problems. Directed Hamiltonian Cycle

Compiling Knowledge into Decomposable Negation Normal Form

NP-Completeness Part II

Multiparticle Entanglement and Interference in Cavity Quantum Electrodynamics

BETWEEN THE LOGIC OF PARMENIDES AND THE LOGIC OF LIAR

CS 350 Algorithms and Complexity

Notes for Lecture 2. Statement of the PCP Theorem and Constraint Satisfaction

Machine Learning for Interpretation of Spatial Natural Language in terms of QSR

CS 350 Algorithms and Complexity

A Local Search Approach to Modelling and Solving Interval Algebra Problems

CSL 356: Analysis and Design of Algorithms. Ragesh Jaiswal CSE, IIT Delhi

Graphs of polynomials. Sue Gordon and Jackie Nicholas

On Redundancy in Linked Geospatial Data

Region Description for Recognition

Spatial Reasoning Test Examples

Computational Intractability 2010/4/15. Lecture 2

MODAL SATISIFIABILITY IN A CONSTRAINT LOGIC ENVIRONMENT LYNETTE STEVENSON. Submitted in fulfillment of the requirements for the degree of

Theory of Computation Chapter 9

Proof Complexity Meets Algebra

Cristani the relation EQ, as dened by Randell, Cui and Cohn (1989), and analogously by Egenhofer and Franzosa (1991), becomes identity under the uniqu

NP and Computational Intractability

1. Definition of a Polynomial

More on NP and Reductions

Lecture Notes Each circuit agrees with M on inputs of length equal to its index, i.e. n, x {0, 1} n, C n (x) = M(x).

Handbook of Logic and Proof Techniques for Computer Science

arxiv: v1 [cs.ai] 31 May 2013

NP and NP Completeness

COMPUTATIONAL COMPLEXITY

Induced Subgraph Isomorphism on proper interval and bipartite permutation graphs

Geometric Steiner Trees

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

Spatio-Temporal Relationships in a Primitive Space: an attempt to simplify spatio-temporal analysis

Homework 1 2/7/2018 SOLUTIONS Exercise 1. (a) Graph the following sets (i) C = {x R x in Z} Answer:

Christakis Charalambous, B.Sc.(Eng.} A Thesis. Submitted to the Faculty of Graduate Studies. in Partial Fulfilment of the Requirements.

IJCAI-2011 Workshop 27. Benchmarks and Applications of Spatial Reasoning. Workshop Proceedings

A THESIS. Submitted by MAHALINGA V. MANDI. for the award of the degree of DOCTOR OF PHILOSOPHY

A STUDY ON THE INTERACTION OF EXHAUST SMOKE WITH THE SUPERSTRUCTURE AND GAS TURBINE INTAKES OF NAVAL SHIPS. R.Vijayakumar. NO ~~rlt FO F TEGH

Solving equations over small unary algebras

Summer School on Introduction to Algorithms and Optimization Techniques July 4-12, 2017 Organized by ACMU, ISI and IEEE CEDA.

CSP Properties for Quantified Constraints: Definitions and Complexity

FATIGUE BEHAVIOUR OF OFFSHORE STEEL JACKET PLATFORMS

CS 126 Lecture T6: NP-Completeness

Algorithms. NP -Complete Problems. Dong Kyue Kim Hanyang University

6-1 Computational Complexity

Lecture 24 : Even more reductions

Curvature measures for generalized linear models

Similar Shapes and Gnomons

allows a simple representation where regions are reduced to their important points and information about the neighborhood of these points [Ren98]. Mos

The complexity of acyclic subhypergraph problems

Algorithms: COMP3121/3821/9101/9801

arxiv: v2 [cs.ai] 13 Sep 2013

Transcription:

Qualitative Constraint Satisfaction Problems: Algorithms, Computational Complexity, and Extended Framework Weiming Liu Faculty of Engineering and Information Technology University of Technology, Sydney A thesis submitted for the degree of Doctor of Philosophy March 2013

CERTIFICATE OF AUTHORSHIP/ORIGINALITY I certify that the work in this thesis has not previously been submitted for a degree nor has it been submitted as part of requirements for a degree except as fully acknowledged within the text. I also certify that the thesis has been written by me. Any help that I have received in my research work and the preparation of the thesis itself has been acknowledged. In addition, I certify that all information sources and literature used are indicated in the thesis. Signature of Student

Acknowledgements I would like to thank all the people who have supported this research work over the past three years. My special thanks are due to my supervisor, A/Prof. Sanjiang Li for his extraordinary and valuable guidance, support and encouragement throughout my PhD candidature. I am very grateful to the three reviewers of my thesis: Prof. Anthony G. Cohn, Prof. Christian Freska, and Prof. Abdul Sattar, for their valuable remarks and suggestions about the thesis. My thanks also belong to Sue Felix, for her excellent editing work. I am grateful to Prof. Shengsheng Wang and all the students and staff in QCIS at the University of Technology, Sydney, with whom I had interesting and inspiring discussions. Last but not least, I want to thank my parents and my wife for their constant and unwavering support over all these years.

Contents Contents List of Figures Nomenclature iii vii ix 1 Introduction 1 1.1 Approaches for Spatial and Temporal Information............ 1 1.2 Reasoning in a Qualitative Way...................... 4 1.3 Overview of This Thesis........................... 7 2 Concepts and Notations 9 2.1 Preliminaries................................. 9 2.1.1 Relations............................... 9 2.1.2 Boolean Algebra.......................... 10 2.1.3 Topology............................... 11 2.2 CSP and SAT................................. 13 2.3 Qualitative Calculi.............................. 14 2.3.1 Point Algebras............................ 16 2.3.2 Interval Algebra........................... 17 2.3.3 Cardinal Relation Algebra and Rectangle Algebra....... 18 2.3.4 Region Connection Calculus.................... 19 2.3.5 Cardinal Direction Calculus.................... 22 2.4 Reasoning with qualitative calculi..................... 24 2.4.1 Weak Composition......................... 24 iii

CONTENTS 2.4.2 The Consistency Problem..................... 26 2.4.3 Strongest Implied Relation and Minimal Labeling Problem.. 31 2.5 Solution construction for RCC-5/RCC-8 networks............ 32 2.6 Chapter Summary.............................. 34 3 Computing Composition Tables Semi-Automatically 35 3.1 Introduction.................................. 35 3.2 A Random Method for Computing CT.................. 36 3.3 Experimental Results............................ 41 3.3.1 The Interval Algebra and the INDU Calculus.......... 41 3.3.2 The Oriented Point Relation Algebra............... 43 3.4 Chapter Summary.............................. 48 4 Introducing Fuzziness to RCC 49 4.1 Introduction.................................. 49 4.2 Fuzzy Set Theory and Fuzzy Regions................... 52 4.3 Standard Fuzzy RCC Models........................ 53 4.4 The Consistency Problem.......................... 58 4.5 A Polynomial Realisation Algorithm................... 62 4.6 Proof for Theorem 4.3............................ 69 4.7 Approximation................................ 75 4.8 Chapter Summary.............................. 78 5 Reasoning in the Cardinal Direction Calculus 81 5.1 Introduction.................................. 81 5.2 CDC and Projective Interval Relations................... 83 5.3 Maximal Canonical Solutions of CDC Networks............. 89 5.3.1 Regular Solutions.......................... 91 5.3.2 Meet-Free Solution......................... 93 5.3.3 Canonical Solutions........................ 96 5.3.4 Maximal Canonical Solution................... 97 5.4 A Cubic Algorithm for cspsat CDC (B CDC )................. 100 5.4.1 An Intuitive O(n 4 ) Algorithm................... 101 5.4.2 Improvement to Cubic Time Complexity............ 104 iv

CONTENTS 5.5 Define Relations outside the CDC..................... 106 5.6 Consistency Checking of Incomplete Networks of Basic CDC Constraints..................................... 110 5.6.1 CDC Constraints Related to Propositional Variables...... 111 5.6.2 CDC Constraints Related to Clauses............... 116 5.7 The Cardinal Direction Calculus over Disconnected Regions CDC d.. 125 5.7.1 Cubic Algorithm for cspsat(b CDCd )................ 125 5.7.2 NP-hardness for cspsat(b CDC d ).................. 128 5.8 Chapter Summary.............................. 130 6 Landmarks and Restricted Domains 131 6.1 Introduction.................................. 131 6.2 Formalisation and Summary of Results.................. 132 6.3 Point-based Qualitative Calculi....................... 135 6.3.1 Some simple results......................... 135 6.3.2 Point Algebra............................ 137 6.3.3 Cardinal Relation Algebra..................... 140 6.3.4 Interval Algebra........................... 146 6.4 Qualitative Calculi RCC-5 and RCC8................... 147 6.4.1 Planar subdivision and overlay computation........... 148 6.4.2 Introducing Landmarks to RCC-5................. 154 6.4.2.1 Necessary and sufficient conditions.......... 154 6.4.2.2 Sufficiency proof for Theorem 6.4.......... 158 6.4.2.3 Generalizing landmarks to finite domains in RCC-5 161 6.4.3 Introducing landmarks to RCC-8................. 162 6.4.3.1 The NP-hardness.................... 162 6.4.3.2 A nondeterministic algorithm............. 166 6.4.3.3 RCC-8 model based on strong connectedness.... 175 6.5 Chapter Summary.............................. 177 7 Solving Minimal Constraint Networks 178 7.1 Introduction.................................. 178 7.2 Preliminaries................................. 179 v

CONTENTS 7.3 The Partially Ordered Point Algebras and RCC-8............ 182 7.4 Cardinal Relation Algebra and Interval Algebra............. 187 7.5 Chapter Summary.............................. 191 8 Conclusion 192 8.1 Thesis Contributions............................. 192 8.2 Future Directions............................... 193 8.2.1 Reasoning with Point-based directional qualitative calculi... 193 8.2.2 Spatial planning........................... 195 References 197 vi

List of Figures 2.1 Illustrations of (a) a closed set (b) a disconnected region (c) a connected region with a hole (d) a simple region (e) a convex region.... 12 2.2 Illustration of the basic relations in RCC-5 / RCC-8........... 22 2.3 (a) A bounded region b and its 9-tiles; (b) a pair of regions (a, b).... 23 3.1 Two o-points A, B with the OPRA 2 relation 2 1 5............ 43 4.1 Illustration of the construction procedure of network {λ C 12 = 1, λo 12 = 0.8, λ P 12 = 0.6, λp 21 = 0.4, λn 11 = 0.8, λn 12 = 0.4, λn 21 = 0, λn 22 = 0.6}. The white region stands for a 1, and the shaded region stands for a 2..... 79 5.1 A complete basic CDC network and its projective IA basic networks. 88 5.2 A pixel p and a digital region a with two pieces............. 91 5.3 Illustration of regularisation......................... 92 5.4 Illustration of meet-freeing......................... 94 5.5 Transform a regular solution (a) into a digital one (b).......... 96 5.6 Canonical interval solutions (a) and the maximal canonical solution (b) 100 5.7 Flowchart of the main algorithm...................... 101 5.8 Illustrations of the symmetric ULC relation: (a) an instance (a, b) of the ULC relation; (b) an instance (r 1, r 2 ) of the rectangle relation s fi; (c) an instance (r 3, r 4 ) of the rectangle relation si f........... 107 5.9 Illustrations of relations defined by CDC networks (a) Γ s f, (b) Γ o f, (c) Γ o fi, and (d) Γ o eq............................ 108 5.10 Illustration of a solution {a, b, c} of Γ, where c corresponds to the auxiliary variable w.............................. 109 vii

LIST OF FIGURES 5.11 Illustrations for a solution of Γ, where a, b are rectangles, and c 1, c 2 are the shaded region in (a) and (b) respectively............. 110 5.12 Illustrations of spatial variables in { f p, f p, f 0 p, u p, u p }: (a) the frame spatial variables f p, f p, f 0 p ; (b) a solution of Γ p where u p is horizontally instantiated; (c) a solution of Γ p where u p is vertically instantiated... 112 5.13 Possible positions for the lower right corner points of u p (a) and u p (b) (c)..................................... 113 5.14 Illustration of a solution of Γ V....................... 115 5.15 Positions of w c 0, wc rs, w c st, w c 1.......................... 116 5.16 Illustrations of the situations in which (a) the gap condition is satisfied, and (b) the gap condition is violated.................... 118 5.17 Configurations of w c 0, wc rs, w c st, w c 1 for clause c = p r p s p t...... 119 5.18 Possible configurations of u r and u s : (a) u r is horizontally instantiated; (b) u r is vertically instantiated; (c) u s is horizontally instantiated; (d) u s is vertically instantiated......................... 120 5.19 Illustration of solution for Γ c : (a) regions w c 0, wc rs, w c st, w c 1 and v c; (b) regions u r, u r, u s, u s, u t, u t......................... 123 6.1 Overview of the configuration of all spatial variables in CRA, where we assume p i Var(c j )........................... 141 6.2 Illustrations of the domains of (a) v i, (b) u j,s, (c) (d) d i, j, where l j,s = p i in (c) and l j,s = p i in (d).......................... 142 6.3 Illustrations for the domain of (a) X j and (b) Y j............. 143 6.4 An example of subdivision......................... 149 6.5 Example of the overlay of L = {l 1, l 2, l 3 }.................. 153 6.6 Landmarks externally connected at two tangential points........ 163 6.7 Illustration of landmarks A, B 1,, B n.................... 164 6.8 Illustration of landmark C k.......................... 164 6.9 Construction of variable u.......................... 165 6.10 Construction of variable v i and w i. π(p i ) = true (a), π(p i ) = false (b).. 165 6.11 Illustration of the selection of triangles.................. 173 6.12 Illustration of function expand(x, 1).................... 174 6.13 Illustration of function expand(x, 1) in strong connectedness RCC model176 viii

LIST OF FIGURES 7.1 Passing the relation between x i and y i to that between w j,k and w j,k+1. 183 7.2 Constraints between variables in V 0 in the scenario, where {big i, small i } = {x i, y i }..................................... 184 7.3 Overview of the configuration of (V φ, Γ φ )................. 188 7.4 Passing the relation between x i and y i to that between c j,k and d j,k, assuming x i NW y i.............................. 189 ix

Abstract Qualitative Spatial and Temporal Reasoning (QSTR) is a subfield of artificial intelligence that represents and reasons with spatial/temporal knowledge in a qualitative way. In the past three decades, researchers have proposed dozens of relational models (known as qualitative calculi), including, among others, Point Algebra (PA) and Interval Algebra (IA) for temporal knowledge, Cardinal Relation Algebra (CRA) and Cardinal Direction Calculus (CDC) for directional spatial knowledge, and the Region Connection Calculus RCC-5/RCC-8 for topological spatial knowledge. Relations are used in qualitative calculi for representing spatial/temporal information (e.g. Germany is to the east of France) and constraints (e.g. the to-be-established landfill should be disjoint from any lake). The reasoning tasks in QSTR are formalised via the qualitative constraint satisfaction problem (QCSP). As the central reasoning problem in QCSP, the consistency problem (which decides the consistency of a number of constraints in certain qualitative calculi) has been extensively investigated in the literature. For PA, IA, CRA, and RCC-5/RCC-8, the consistency problem can be solved by composition-based reasoning. For CDC, however, composition-based reasoning is incomplete, and the consistency problem in CDC remains challenging. Previous works in QCSP assume that qualitative constraints only concern completely unknown entities. Therefore, constraints about landmarks (i.e., fixed entities) cannot be properly expressed. This has significantly restricted the usefulness of QSTR in real-world applications. The main contributions of this thesis are as follows. (i) The composition-based method is one of the most important reasoning methods in QSTR. This thesis designs a semi-automatic algo-

rithm for generating composition tables for general qualitative calculi. This provides a partial answer to the challenge proposed by Cohn in 1995. (ii) Schockaert et al. (2008) extend the RCC models interpreted in Euclidean topologies to the fuzzy context and show that compositionbased reasoning is sufficient to solve fuzzy QCSP, where 31 composition rules are used. This thesis first shows that only six of the 31 composition rules are necessary, and then introduces a method which consistently fuzzifies any classical RCC models. This thesis also proposes a polynomial algorithm for realizing solutions of consistent fuzzy RCC constraints. (iii) Composition-based reasoning is incomplete for solving QCSP over the CDC. This thesis provides a cubic algorithm which for the first time solves the consistency problem of complete basic CDC networks, and further shows that the problem becomes NP-complete if the networks are allowed to be incomplete. This draws a sharp boundary between the tractable and intractable subclasses of the CDC. (iv) This thesis proposes a more general and more expressive QCSP framework, in which a variable is allowed to be a landmark (i.e., a fixed object), or to be chosen among several landmarks. The computational complexity of the consistency problems in the new framework is then investigated, covering all qualitative calculi mentioned above. For basic networks, the consistency problem remains tractable for Point Algebra, but becomes NP-complete for all the remaining qualitative calculi. A special case in which a variable is either a landmark or is totally unknown has also been studied. (v) A qualitative network is minimal if it cannot be refined without changing its solution set. Unlike the assumptions in the literature, this thesis shows that computing a solution of minimal networks is NPcomplete for (partially ordered) PA, CRA, IA, and RCC-5/RCC-8. As a by-product, it has also been proved that determining the minimality of networks in these qualitative calculi is NP-complete.