Re: Riddle Solver send+more=money
- From: Torkel Franzen <torkel@xxxxxxxxxx>
- Date: 25 Apr 2005 12:38:43 +0200
Djamé <djame@xxxxxxxxxxxxxxxxxxxx> writes:
> Some times ago, I've found a very interesting page (I archived it
> obecause I'm fed up to loose all the cool pages every year) about the
> magic of DCG, you'll find some cool way to solve the SEND money problem..
Again, why go for the "cool way"? You can get a solution of this
problem in no time by using the SICStus constraint solver, for
example. But it seems to me utterly pointless to strive for elegance
in the solution of trivial problems. What is great about Prolog is
that you can quickly write a program that uses a mindless
generate-and-test algorithm to solve the problem. In other cases,
of course, you need a better algorithm for solving constraint
problems in reasonable time, and such algorithms are usually also
fairly easy to implement in Prolog. But what's the point of finding
an elegant and efficient algorithm that solves a particular problem
if an idiot algorithm solves it in a few seconds anyway?
.
- Follow-Ups:
- Re: Riddle Solver send+more=money
- From: Djamé
- Re: Riddle Solver send+more=money
- References:
- Riddle Solver send+more=money
- From: Andreas Kochenburger
- Re: Riddle Solver send+more=money
- From: Torkel Franzen
- Re: Riddle Solver send+more=money
- From: Djamé
- Riddle Solver send+more=money
- Prev by Date: Re: Riddle Solver send+more=money
- Next by Date: Repetition cycles
- Previous by thread: Re: Riddle Solver send+more=money
- Next by thread: Re: Riddle Solver send+more=money
- Index(es):
Relevant Pages
|
|