|
2 | 2 |
|
3 | 3 | The lab course "Algorithmic Battle" is offered by the |
4 | 4 | [Computer Science Theory group of RWTH Aachen University](https://tcs.rwth-aachen.de/) |
5 | | -since 2019. This repository contains the necessary code and documentation to |
6 | | -set up the lab course yourself. |
7 | | - |
8 | | -The idea of the lab is to pose several, usually NP-complete problems during the |
9 | | -semester. |
10 | | -Groups of students then write code that generates hard-to-solve instances for |
11 | | -these problems and solvers that solve these problems quickly. In the default |
12 | | -setting, the groups then battle against each other, generating instances of |
13 | | -increasing size that the other group has to solve within a time limit. |
14 | | -Points are distributed relative to the biggest instance size for which a group |
15 | | -was still able to solve an instance. |
16 | | - |
17 | | -# Installation |
18 | | -This project has been delevoped to run on Linux and may not work on other |
19 | | -platforms. Support for other platforms may be implemented in the future. |
20 | | - |
21 | | -`python3` in version at least `3.6` and `docker` are required. |
22 | | - |
23 | | -We recommend installing the package as a user using `pip` |
24 | | -``` |
25 | | -pip install . --user |
26 | | -``` |
27 | | - |
28 | | -Adjust the parameters set in the `algobattle/configs/config.ini` file to set |
29 | | -which hardware resources you want to assign. You can pass alternative |
30 | | -configuration files to the script using the `--config_file` option. |
31 | | - |
32 | | -This program requires the `curses` module which is available by default on Linux |
33 | | -and can be manually installed on windows, e.g. with |
34 | | -``` |
35 | | -pip install windows-curses |
36 | | -``` |
37 | | - |
38 | | -# Usage |
39 | | -This repository does not include any practical problems. For a selection of problems |
40 | | -that have been posed to students in practice, have a look at the |
41 | | -[algobattle-problems](https://github.com/Benezivas/algobattle-problems) repository. |
42 | | - |
43 | | -To start a basic run on a problem, using the `solver` and `generator` that |
44 | | -are part of the problem directory, use |
45 | | -``` |
46 | | -battle path/to/concrecte/problem/folder |
47 | | -``` |
48 | | - |
49 | | -The `battle` script offers several options, e.g. to give custom paths for |
50 | | -solvers and generators. Run `battle --help` for all options. |
51 | | - |
52 | | -On Windows you will need to either use a workaround such as [this one](https://stackoverflow.com/a/55619189) |
53 | | -or invoke it with |
54 | | -``` |
55 | | -python path\to\installed\battle\script |
56 | | -``` |
57 | | -followed by your arguments instead of just `battle`. |
58 | | - |
59 | | -Check the [wiki](https://github.com/Benezivas/algobattle/wiki) for further documentation. |
| 5 | +since 2019. This repository contains the necessary code and |
| 6 | +documentation to set up the lab course yourself. |
| 7 | + |
| 8 | +In an Algorithmic Battle, pairs of teams compete against one another |
| 9 | +in order to solve a problem of your choice, e.g. a problem from the |
| 10 | +class NP. The teams each design a `generator`, that outputs |
| 11 | +hard-to-solve instances for a given instance size, as well as a |
| 12 | +`solver` that accepts an instance and outputs a solution to it as |
| 13 | +quickly as possible. |
| 14 | + |
| 15 | +The framework is written to be completely language-agnostic regarding |
| 16 | +the code of the `generator` and the `solver`, as each is wrapped in a |
| 17 | +docker container that only needs to adhere to an I/O structure of your |
| 18 | +choice (by default, in the form of `json`-files.) |
| 19 | + |
| 20 | +If you are interested in how to use the framework for a |
| 21 | +lab course of your own, please consult our |
| 22 | +[teaching concept](https://www.algobattle.org/docs/teaching_concept/english). |
| 23 | +# Installation and Usage |
| 24 | +This project is developed and tested on all major operating systems. |
| 25 | + |
| 26 | +Please consult the official [documentation](https://www.algobattle.org/docs/) |
| 27 | +for detailed instructions on installation and usage. |
| 28 | + |
| 29 | +# Related projects |
| 30 | +This repository only includes the core framework for executing an |
| 31 | +`Algorithmic Battle`. For a selection of concrete problems that you |
| 32 | +can use to play around with the framework, have a look at the |
| 33 | +[algobattle-problems](https://github.com/Benezivas/algobattle-problems) |
| 34 | +repository. These are problems that have been posed to students in |
| 35 | +some form over the past years. |
| 36 | + |
| 37 | +While the framework provides all essential tools to host a tournament |
| 38 | +yourself, e.g. in the form of a lab course, you may be interested in |
| 39 | +the [algobattle-web](https://github.com/Benezivas/algobattle-problems) |
| 40 | +project. The `algobattle-web` project implements a webframework with |
| 41 | +which you are able to comfortably manage your students teams and their |
| 42 | +code, your problem files and their documentation as well as schedule |
| 43 | +matches to be fought between registered student teams, using the |
| 44 | +`algobattle` API. |
| 45 | + |
| 46 | +# Contributing |
| 47 | + |
| 48 | +We welcome any input on how to make this project accessible to as many |
| 49 | +people as possible. If you have feedback regarding the usage of the |
| 50 | +framework, the documentation or would even like to help us out with |
| 51 | +corrections, new features, or translations, feel free to open an issue |
| 52 | +or pull request. We have developed this project on the basis of |
| 53 | +practical experience inside our lab courses, thus some design elements |
| 54 | +may be unintuitive to you. Feel free to point out anything that |
| 55 | +appears odd to you. |
| 56 | + |
| 57 | +# Funding |
| 58 | +The development of version `4.0.0` was funded by |
| 59 | +[`Stiftung Innovation in der Hochschullehre`](https://stiftung-hochschullehre.de/en/) (Project |
| 60 | +`FRFMM-106/2022 Algobattle`) and by the [Department of Computer Science of |
| 61 | +RWTH Aachen University](https://www.informatik.rwth-aachen.de/go/id/mxz/?lidx=1). |
0 commit comments