☰ Declarative Programming in Machine Learning (2023-2024)
Constraints Satisfaction Programming
1. Instructor
Prof.dr. Horia F. Pop, Email:
2. Preliminaries
This is a research oriented class. Your grade will be based on your own work and on your understanding of it, including your ability to explain, defend and analyse your work and your results.
3. Schedule of activities
- Lectures
- Seminars
- Tuesday 18-20 week 1/2 - C512
Week | Lectures | Seminars |
1 | Administrivia, Introduction | No physical classes. Time allocated for individual study |
2 | Logic Programming in Problems Solving Recap on Graph Theory |
3 | Introduction (ch 1) Overview of CSP (ch 2) Fundamental concepts (ch 3) |
4 | Problem reduction (ch 4) |
5 | Basic search strategies (ch 5) Search orders in CSP (ch 6) |
6 | Using problem specific features (ch 7) Stochastic search methods (ch 8) Optimization in CSP (ch 10) |
Week | Class presentations |
7 | First report |
8 |
9 |
10 |
11 | Second report |
12 |
13 |
14 |
4. Online resources
Lecture notes and other resources are available on the UBB Sharepoint platform.
5. Students deliverables
First report
- deadline for setting the title and slot = week 5 (class day)
- class presentations = week 7, week 8, week 9, week 10
- the reports presentation schedule is published and updated on the UBB Sharepoint platform
Second report
- deadline for setting the title = week 9 (class day)
- class presentations = week 11, week 12, week 13, week 14
- the reports presentation schedule is published and updated on the UBB Sharepoint platform
6. Course contents
- Administrivia (1 hour)
- Logic Programming in Problems Solving (2 hours)
- Graphs related concepts (2 hours)
- Introduction (1 hour) [1, Ch. 1]
- What is a constraint satisfaction problem?
- Formal Definition of the CSP
- Constraint Representation and Binary CSPs
- Examples and Applications of CSPs
- Constraint Programming
- CSP solving - An overview (2 hours) [1, Ch. 2]
- Problem Reduction
- Searching For Solution Tuples
- Solution Synthesis
- Characteristics of Individual CSPs
- Fundamental concepts in the CSP (3 hours) [1, Ch. 3]
- Concepts Concerning Satisfiability and Consistency
- Relating Consistency to Satisfiability
- (i, j)-consistency
- Redundancy of Constraints
- Problem reduction (4 hours) [1, Ch. 4]
- Node and Arc-consistency Achieving Algorithms
- Path-consistency Achievement Algorithms
- Post-conditions of PC Algorithms
- Algorithm for Achieving k-consistency
- Adaptive-consistency
- Basic search strategies for solving CSPs (4 hours) [1, Ch. 5]
- General Search Strategies
- Lookahead Strategies
- Gather-information-while-searching Strategies
- Hybrid Algorithms and Truth Maintenance
- Comparison of Algorithms
- Search orders in CSPs (2 hours) [1, Ch. 6]
- Ordering of Variables in Searching
- Ordering of Values in Searching
- Ordering of Inferences in Searching
- Exploitation of problem-specific features (2 hours) [1, Ch. 7]
- Problem Decomposition
- Recognition and Searching in k-trees
- Problem Reduction by Removing Redundant Constraints
- Cycle-cutsets, Stable Sets and Pseudo-Tree-Search
- CSPs with Binary Numerical Constraints
- Stochastic search methods for CSPs (2 hours) [1, Ch. 8]
- Hill-climbing
- Connectionist Approach
- Optimization in CSPs (2 hours) [1, Ch. 10]
- The Constraint Satisfaction Optimization Problem
- The Partial Constraint Satisfaction Problem
7. Bibliography
- Edward P.K. Tsang, Foundations of Constraint Satisfaction, Academic Press, London and San Diego, 1993, ISBN 0-12-701610-4
- Roman Bartak, On-line Guide to Constraint Programming, Charles University, Prague, Website
- Grzegorz Kondrak, A Theoretical Evaluation of Selected Backtracking Algorithms, M.Sc. Thesis, University of Alberta, Edmonton, 1994, PDF file
- Constraint programming: introduction, Website
Optional bibliography
- Some challenges for constraint programming, Website (ACM Computing Surveys)
- Visual constraint programming tool: Oz explorer, Website
- Algorithms for constraint satisfaction problems: A survey AI magazine, 1992, 13/1
- Constraint satisfaction algorithms, BA Nadel, Computational Intelligence, Vol 5, 1989, pp 188-224.
- Constraint satisfaction, AK Mackworth, Encyclopaedia of AI, Volume I, Stuart C Shapiro (ed), John Wiley and Sons, 1987, pp205-211.
- Partial constraint satisfaction, EC Freuder and RJ Wallace, AI, vol 58, 1992, pp 21-70. (special issue on constraint based reasoning).
8. Constraint libraries
- Easy CSP (Java library, free software), author Victor Cordis, UBB 2010 graduate
- Choco (Java library, free software)
- Gecode (C++ library, free software)
- Disolver (C++ library, proprietary)
- ILOG Solver (C++ library, proprietary)
- Koalog Constraint Solver (Java library, proprietary)
- Minion (C++ program, GPL)
- Comet (C style language for constraint programming, GPL)
- Mozart (Oz based, Free software)
© Prof.dr. Horia F. Pop