Constraint programming: Difference between revisions

Content deleted Content added
Bumpf (talk | contribs)
m No need to link to the same place twice in two words
Tags: Visual edit Mobile edit Mobile web edit Advanced mobile edit
Line 117:
 
== Example ==
The syntax for expressing constraints over finite domains depends on the host language. The following is a [[Prolog]] program that solves the classical [[alphametic]] puzzle [[Verbal arithmetic|SEND+MORE=MONEY]] in constraint logic programming:
<syntaxhighlight lang="prolog">
% This code works in both YAP and SWI-Prolog using the environment-supplied