Download PDF

ACM transactions on programming languages and systems

Publication date: 2009-02-01
Volume: 31 Pages: 42 -
ISSN: 0164-0925
Publisher: Association for Computing Machinery

Author:

Sneyers, Jon
Schrijvers, Tom ; Demoen, Bart

Keywords:

Constraint Handling Rules, complexity, constant factors, Science & Technology, Technology, Computer Science, Software Engineering, Computer Science, Languages, Algorithms, Theory, Performance, Experimentation, ALGORITHM, 0803 Computer Software, 0806 Information Systems, Software Engineering, 4606 Distributed computing and systems software, 4612 Software engineering

Abstract:

Constraint Handling Rules (CHR) is a high-level rule-based programming language which is increasingly used for general purposes. We introduce the CHR machine, a model of computation based on the operational semantics of CHR. Its computational power and time complexity properties are compared to those of the well-understood Turing machine and Random Access Memory machine. This allows us to prove the interesting result that every algorithm can be implemented in CHR with the best known time and space complexity. We also investigate the practical relevance of this result and the constant factors involved. Finally we expand the scope of the discussion to other (declarative) programming languages.