Andrew M . Cheadle Warwick Harvey Andrew J . Sadler Joachim Schimpf
نویسندگان
چکیده
ion before(task(Si,Di), task(Sj,Dj)) :Si+Di #<= Sj. Conjunction between(X,Y,Z) :X #< Y, Y #< Z. Disjunction (but see below) neighbour(X,Y) :( X #= Y+1 ; Y #= X+1 ). Iteration not_among(X, L) :( foreach(Y,L),param(X) do X #\= Y ). Recursion not_among(X, []). not_among(X, [Y|Ys]) :X #\= Y, not_among(X, Ys). 11.4 Same Problem Different Model There are often many ways of modelling a problem. Consider the famous ”SEND + MORE = MONEY” example: sendmore(Digits) :Digits = [S,E,N,D,M,O,R,Y], Digits :: [0..9], alldifferent(Digits), S #\= 0, M #\= 0, 1000*S + 100*E + 10*N + D + 1000*M + 100*O + 10*R + E
منابع مشابه
SCL P ei A Tutorial Introduction
ion before(task(Si,Di), task(Sj,Dj)) :Si+Di #<= Sj. Conjunction between(X,Y,Z) :X #< Y, Y #< Z. Disjunction (but see below) neighbour(X,Y) :( X #= Y+1 ; Y #= X+1 ). Iteration not_among(X, L) :( foreach(Y,L),param(X) do X #\= Y ). Recursion not_among(X, []). not_among(X, [Y|Ys]) :X #\= Y, not_among(X, Ys). 11.4 Same Problem Different Model There are often many ways of modelling a problem. Consid...
متن کاملE CL PS e A Tutorial Introduction
ion before(task(Si,Di), task(Sj,Dj)) :Si+Di #<= Sj. Conjunction between(X,Y,Z) :X #< Y, Y #< Z. Disjunction (but see below) neighbour(X,Y) :( X #= Y+1 ; Y #= X+1 ). Iteration not_among(X, L) :( foreach(Y,L),param(X) do X #\= Y ). Recursion not_among(X, []). not_among(X, [Y|Ys]) :X #\= Y, not_among(X, Ys). 11.4 Same Problem Different Model There are often many ways of modelling a problem. Consid...
متن کاملM.G.: ECLiPSe: A tutorial introduction
ion before(task(Si,Di), task(Sj,Dj)) :Si+Di #<= Sj. Conjunction between(X,Y,Z) :X #< Y, Y #< Z. Disjunction (but see below) neighbour(X,Y) :( X #= Y+1 ; Y #= X+1 ). Iteration not_among(X, L) :( foreach(Y,L),param(X) do X #\= Y ). Recursion not_among(X, []). not_among(X, [Y|Ys]) :X #\= Y, not_among(X, Ys). 11.4 Same Problem Different Model There are often many ways of modelling a problem. Consid...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2003