Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 16-Nov-2021 | - | ||||
README.md | H A D | 16-Nov-2021 | 412 | 16 | 9 | |
opt.lp | H A D | 16-Nov-2021 | 769 | 29 | 23 | |
tohB.lp | H A D | 16-Nov-2021 | 590 | 24 | 17 | |
tohE.lp | H A D | 16-Nov-2021 | 505 | 24 | 16 | |
tohI.lp | H A D | 16-Nov-2021 | 59 | 6 | 4 |
README.md
1# Solving the Towers of Hanoi Problem 2 3This example solves Towers of Hanoi problems. There are two variants. First, 4there is an incremental encoding. Second, there is an optimizing version that 5tries to find a shortest plan within a given planning horizon. 6 7# Example Calls 8 9Using the incremental version: 10 11 $ clingo tohE.lp tohI.lp 12 13Using the bounded version: 14 15 $ clingo opt.lp tohB.lp tohI.lp -c n=30 16