GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - chansey97/chr_book: Valuable code and exercises about the book "Constraint Handling Rules (2009)" .

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
ch01
ch01
 
 
ch02
ch02
 
 
ch06
ch06
 
 
ch08
ch08
 
 
ch09
ch09
 
 
ch10
ch10
 
 
common
common
 
 
README.md
README.md
 
 

Repository files navigation

chr_book

Valuable code and exercises about the book "Constraint Handling Rules (2009)" by Thom Frühwirth.

Note that most of the examples in this book cannot work directly in SWI-Prolog (e.g. incomplete code, lacking necessary rules and built-ins, not compatible with Prolog flattening style, using different operation semantics, bugs, etc). The major purpose of this repository is to make them work, followed by some experiments and extensions.

Selected Examples

  • Chapter 2: My first CHR programs
    • Greatest common divisor
    • Prime numbers Sieve of Eratosthenes
    • Exchange sort
    • CYK algorithm
    • Merge sort
    • Hamming’s problem
  • Chapter 6: Rule-based and graph-based formalisms in CHR
    • Production rule systems
    • Event condition action rules
    • Term rewriting systems
  • Chapter 8: Finite domain constraint solvers
    • Boolean algebra and propositional logic
      • Boolean cardinality
      • Resolution
        • Davis–Putnam procedure
    • Consistency techniques
      • Arc consistency
        • Finite domain
          • Interval domains
          • Enumeration_domain
          • N-Queen
      • Path consistency
        • Temporal reasoning
          • PA network
          • Simple-Temporal-Network (STN)
    • Sudoku (try-most-constrained-field-first)
  • Chapter 9: Infinite domain constraint solvers
    • Linear polynomial equation solving
      • Variable elimination
      • Gaussian elimination
      • Fourier’s algorithm
    • Description logic
    • Rational trees
    • Feature terms
  • Chapter 10: Union-find algorithm
    • Traditional union-find
    • Generalized union-find

About

Valuable code and exercises about the book "Constraint Handling Rules (2009)" .

Topics

constraint-handling-rulesconstraint-logic-programmingconstraint-programmingconstraintslogic-programmingprolog

Resources

Readme
Activity

Stars

5 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.