Re: Riddle Solver send+more=money
- From: Djamé <djame@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 25 Apr 2005 13:13:42 +0200
Torkel Franzen a écrit :
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.
I've not been enough precise, sorry... By cool I just meant to point the original poster to a way of doing that using dcg.
I was not making any judgement or so...
> 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?
what's the point of oil painting when when camera exist ?
more seriously, I found this page interesting in the way it discribes the problem. That's all.
Cheers
Djamé .
- Follow-Ups:
- Re: Riddle Solver send+more=money
- From: Torkel Franzen
- 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é
- Re: Riddle Solver send+more=money
- From: Torkel Franzen
- Riddle Solver send+more=money
- Prev by Date: Repetition cycles
- Next by Date: Re: Repetition cycles
- Previous by thread: Re: Riddle Solver send+more=money
- Next by thread: Re: Riddle Solver send+more=money
- Index(es):
Relevant Pages
|
|