Difference between revisions of "3rd:Solution of Alphametic Puzzles"

From wiki.visual-prolog.com

(Solution of Alphametic Puzzles)
Line 1: Line 1:
[http://users.atw.hu/franknagy/Tipp/Alphametic/index.html The solution alphametic puzzles on my homepage]
[http://users.atw.hu/franknagy/Tipp/Alphametic/index.html The solution alphametic puzzles on my homepage]
[[The alphametic puzzles]] are the generalizations of the puzzles of type
[http://www.cadaeic.net/alphas.htm The alphametic puzzles] are the generalizations of the puzzles of type
  SEND+MORE=MONEY
  SEND+MORE=MONEY


You have to substitute same numbers for the same letters, different numbers for the different letters.  
You have to substitute same numbers for the same letters, different numbers for the different letters.  
Their special forms are the [[doubly true]] puzzles.
Their special forms are the [http://www.mathematik.uni-bielefeld.de/~sillke/PUZZLES/ALPHAMETIC/alphametic-mike-keith.html#doub doubly true] puzzles.
TÍZ+TÍZ=HÚSZ
TÍZ+TÍZ=HÚSZ


Line 16: Line 16:
[http://users.atw.hu/franknagy/Tipp/Alphametic/soap.chm The help file written using VAHELP]  
[http://users.atw.hu/franknagy/Tipp/Alphametic/soap.chm The help file written using VAHELP]  
[http://software.informer.com/getfree-vahelp-helpmaker/ VAHELP Help Maker]
[http://software.informer.com/getfree-vahelp-helpmaker/ 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.''
--[[User:Ferenc Nagy|Frank]] 09:38, 5 January 2011 (CET)
--[[User:Ferenc Nagy|Frank]] 09:38, 5 January 2011 (CET)

Revision as of 09:47, 5 January 2011

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)