Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
closure
david
Send A Message
Rating
Not
Rated
Please login to rate source codes.

Click here to register a free account with us.
General Details
Scheme
Posted 1.8 Year Ago
227 Views
Received 0 Ratings
More Codes By This Author
Solving the N-Queens-Prob...
Recursive Lambdas with th...
down the tree
simple constraint problem...
Articles By This Author
N-Queens-Series Part I (O...

simple constraint problem solver


Description
Some day i needed to build a constraint solver for my dayjob. So i started out by trying some different approaches. The one i present here is not the one, i finally took, but it's one of the shortest. It's inefficient but a nice piece of code to play around with or build larger systems, that get the backtracking more accurate. One could e.g. implement pruning strategie to get arch-consistency or do some form of intelligent backtracking.
Technical
All you need for this is a working scheme implementation wich provides the amb-operator and some of the convenience-procedures. This was tested and built with chicken-scheme and the amb.egg
Source Code
Comments
Please login to post comments.
Page 1 of 1
More "Scheme" Source Codes By This Author
Recently Posted "Scheme" Source Codes
Recently Rated "Scheme" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
How often do you write code on average per week?

< 5 hours
5 to 20 hours
21 to 30 hours
31 to 40 hours
> 40 hours


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
5 Days Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2008, Scott Thompson, All Rights Reserved