https://github.com/youwuyou/algo-lab-2024
263-0006-00L Algorithms Lab @ ETHZ - my solution https://youwuyou.github.io/algo-lab-2024/
https://github.com/youwuyou/algo-lab-2024
competitive geometric-algorithms graph-algorithms
Last synced: 3 months ago
JSON representation
263-0006-00L Algorithms Lab @ ETHZ - my solution https://youwuyou.github.io/algo-lab-2024/
- Host: GitHub
- URL: https://github.com/youwuyou/algo-lab-2024
- Owner: youwuyou
- Created: 2024-10-04T20:09:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-23T19:36:16.000Z (over 1 year ago)
- Last Synced: 2025-09-02T15:06:27.994Z (9 months ago)
- Topics: competitive, geometric-algorithms, graph-algorithms
- Language: CMake
- Homepage: https://youwuyou.github.io/algo-lab-2024/
- Size: 2.31 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AlgoLab 2024 @ ETHZ
## Structure
```bash
algo-lab-2024
├── cmake # .cmake files for build system
├── CMakeLists.txt
├── README.md
└── problems # codes for the weekly problems
├── pow-XX
└── week01-XX
```
## Getting Started
```bash
git clone git@github.com:youwuyou/algo-lab-2024.git
```
This will create a subdirectory `algo-lab-2024` containing codes and other data needed for the algorithmic problems.
Now we create a build directory and initialize the build system. By default, we compile the repository with tests, you could also switch it off by using the flag `-DBUILD_TESTS=OFF` if you just want to build the examples themselves without testing.
```bash
cd algo-lab-2024
mkdir build
cd build
cmake .. && make
```
Now let us run a demonstration code. For running this code, make sure you locate at `algo-lab-2024/build` directory.
```bash
cd problems/hello-world
./hello-world
```
## Testing
If you have compiled the repository with `-DBUILD_TESTS=ON`, you can run the tests using `make test`.