Professional Documents
Culture Documents
carries
Steps:
1. T is even ( D + D)
2. D >= 5 <=> c5 == 1
D <= 4 <=> c5 == 0
3. L >= 5 <=> c4 == 1
L <= 4 <=> c4 == 0
4. A >= 5 <=> c3 == 1
A <= 4 <=> c3 == 0
5. c5 == 1 <=> R is odd
c5 == 0 <=> R is even ( L + L)
R not 0 (because R and L cannot both be 0)
6. c4 == 1 <=> E is odd
c4 == 0 <=> E is even ( A + A)
E not 0 (because E and A cannot both be 0)
7. c2 == 0
c2 == 1
<=> E == 0
<=> E == 9 and c3 + N + R > 9
6
7
8
9
<=>
<=>
<=>
<=>
G
G
G
G
==
==
==
==
0
1
2
3
==> L = 8
21. By unavailable values:
==> O = 2
Done. Two assumptions (14) and (19) that led to a consistent solution.
Alternate branches not explored.
======================================================
Adding restrictions (sorted by variable):
A:
13). 4
B:
19). 3
D:
14). 5
E:
7). 0 or 9
9). 9
G:
19). 1
L:
12). >= 5
20). 8
N:
19). 6
O:
21). 2
R:
5). not 0
19). 7
T:
14). 0
c1:
10). 1
c2:
9). 1
c3:
13). 0
c4:
9). 1
c5:
14). 1
======================================================
Final assignment:
0 1 2 3 4 5 6 7 8 9
T G O B A D N R L E
A
4
B
3
D
5
E
9
G
1
L
8
N
6
O
2
R
7
T
0