Lab Assignment #1
|
Initial state |
Solved puzzle: all
tile arrangements are unvealed |
7 6 0 6 6 4 4 1 1 3 5 2 1 2 2 3 0 3 4 1 2 3 0 4 4 0 2 0 2 2 0 3 1 5 4 1 5 1 3 5 5 5 5 6 5 2 0 0 6 6 6 6 4 3 4 1 3 |
><vv><>< vv^^><vv ^^><><^^ vvvv><vv ^^^^><^^ ><><v><v ><><^><^ |
File examples.zip contains
a set of benchmarks of different sizes (from n=2 to 10), where domN.txt is the input
file and solN.txt
its corresponding solution, being N
a pair of digits representing the number n of different
symbols.
If you want to push it forward, file examples2.zip contains larger
benchmarks domN.txt,
all of them correctly formed, but for which more than
one solution may exist. Accordlingly, files solN.txt contain one
of the possible solutions in each case. To check that
another potential solution is correct you can use the
python program checker.py
as, for instance, in:
checker.py dom30.txt sol30.txt
The maximum grade for this exercise (1a)
is 1 point =10% of the course. The deadline for
delivery is Friday, March 23rd,
2018 using the MOODLE assignment. Exercises
can be made by groups of 2 students at most. If so, only
one student is required to deliver the files in moodle,
but all source files must contain the names of the two
group members.
Delivery: upload all files in a .zip including a
README.txt describing how to compile the code for the SAT
interface programs (and the solution to the combinatorics
exercise). Regardless of the programming language you
choose, avoid using non-standard libraries.