ExamplesΒΆ
In order of complexity, you can read the following example programs, (almost) all coming from the set of examples from the original Facile library:
- examples/basic.py, basic example problems;
- examples/seven_eleven.py, find four numbers such that their sum is 711 and their product is 711000000;
- examples/coins.py, which coins do you need to give back change for any amount between 0 and maxval, using a given set of coins;
- examples/golomb.py, the Golomb ruler;
- examples/queens.py, the n-queen problem;
- examples/magical.py, a magical sequence where a[i] is equal to the number of i in a;
- examples/marriage.py, a problem of stable marriages;
- examples/buckets.py, a problem of filling buckets;
- examples/tiles.py, placing tiles on a board;
- examples/golf.py, the golf tournament problem.