Skip to content

snassour/lem-in

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lem-in

Find your way into an anthill

Quick Description

Lem-in finds the fastest way to move all the ants from an entry point to and exit.
Its default behaviour is to read from the standard input. However, you can use the flag --read
in order to read from a file.

Input format : First line is the number of ants.
First block is the map coordinates : point_name coord_x coord_y
In the first block, the start and the end are specified using the ##start and ##end commands.
Second block is the map links : point_name_a-point_name_b

12
##start
a 1 2
b 3 4
c 5 6
##end
d 7 8
e 9 10
a-b
b-c
c-d

Its default behaviour is to write the output on the standard output. However, you can use the flag --write
in order to write in a file.

Run it

make ; make clean;
./lem-in [OPTIONAL [--help] [-c] [--path] [--read [INPUT_FILE]] [--write [OUTPUT_FILE]] ]

PDF Link lem-in

About

Find your way in an anthill

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published