3rd:Solution of Alphametic Puzzles

From wiki.visual-prolog.com

Revision as of 09:47, 5 January 2011 by Ferenc Nagy (talk | contribs) (Solution of Alphametic Puzzles)

The solution alphametic puzzles on my homepage The alphametic puzzles are the generalizations of the puzzles of type

SEND+MORE=MONEY

You have to substitute same numbers for the same letters, different numbers for the different letters. Their special forms are the doubly true puzzles. TÍZ+TÍZ=HÚSZ

where the words for added numbers in a certain language form true sentence. TÍZ=ten in Hungarian, HÚSZ=twenty in Hungarian. TEN=TEN=TWENTY has no solution in English.

German example: 2*SECHS=ZWOELF. In order accept Russian puzzles the program accepts Unicode input and writes Unicode output. Prolog version: VIP 7.2 PE. The help file written using VAHELP VAHELP Help Maker

I intended to follow the human way of the thinking instead of brute force full trial and error of all possible letter-digit matching. The program uses rules of divisibilty and comparision of mininal and maximal values of the left and right sides of the equations. --Frank 09:38, 5 January 2011 (CET)