Skip to content

ladymarengo/Lem-in

Repository files navigation

Lem-in

Team project with jheiskan in Hive Helsinki school. During working on this project we explored graph theory, learned about maximum flow problem, implemented breadth-first-search, merge sort, binary search, dynamically reallocating arrays and, most importantly, practiced pair-programming and improved our team-working soft skills.

The main goal of this project is to transfer given number of ants through the complex graph (simulating an ant farm) in the least amount of turns. You can read all requirements here.

For the main part of the solution we used Edmonds–Karp algorithm with our modifications for handling nodes capacity.

As a bonus we created Beautymapper tool for updating maps coordinates and Visualizer for demonstration (and mostly for fun!). Both tools are written in Rust.

video_of_lem-in.mov

Usage

make to compile.

./lem-in < map_name or ./lem-in -file map_name to run with given map.

./test.sh --generator-option to run a script that will use a generator with given option (ex. --big-superposition), run lem-in executable with result map and print required and final amount of lines. The script will repeat the process 10 times. Green OK indicates no difference or better than required result, yellow is for 1-2 extra lines and red KO for 3+ extra lines.

./lem-in -help to see the list of available flags.

./visualize.sh number-of-iterations(optional) to run the visualizer. It will create a map, update it with the beautymapper (with given number of iterations or 150 as default), run lem-in executable with '-paths' flag and run the visualizer with final result.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published