Re:A CP Solution for XKCD NP Complete Restaurant Order
by lake99 on Tuesday May 28, 2013 @09:39AM
(#5779929)
Of course, Prolog makes it easy too.
[ Parent
| on HN ]
Re:A CP Solution for XKCD NP Complete Restaurant Order
by maaaats on Tuesday May 28, 2013 @10:32AM
(#5780251)
As a person not heavily invested in Prolog, can you explain how that works? Is it just branching by choices from the different groups and it backtracks/fails back up to the last choice if constraints are not met?
Re:A CP Solution for XKCD NP Complete Restaurant Order
by kaoD on Tuesday May 28, 2013 @10:57AM
(#5780393)
Pretty much that, yeah.
http://en.wikipedia.org/wiki/Unification_%28computer_science...