Raphaël LACROIX 82d5c3f840 Typo and variable name change | 1 year ago | |
---|---|---|
.idea | 1 year ago | |
_build | 1 year ago | |
graphs | 1 year ago | |
src | 1 year ago | |
.gitignore | 1 year ago | |
.merlin | 1 year ago | |
Example_without_source_1.png | 1 year ago | |
Example_without_source_2.png | 1 year ago | |
Example_without_source_3.png | 1 year ago | |
Graph_example.png | 1 year ago | |
Graph_example.svg | 1 year ago | |
INPUT | 1 year ago | |
Makefile | 1 year ago | |
README.md | 1 year ago | |
_tags | 1 year ago | |
appMedium.native | 1 year ago | |
example_with_source.png | 1 year ago | |
outFileApp | 1 year ago | |
outFileApp.svg | 1 year ago | |
outfile | 1 year ago | |
test.svg | 1 year ago |
Project undertaken by Aurélia LEJEUNE and Raphaël LACROIX as part of our 4th year course on functionnal programming
Ever needed to organise an day with participants (like children for instance) that can pick a variying number of activities (like hockey football …) from a list? Avoid yourself the hassle of filling the table by hand for three hours just to realize that little jimmy can’t go to the swimming pool because there are no remaining spots for him.
make app
if you want to enter the activities and participants one by one in the terminal (we won’t judge you)make appSource
if you prefer to enter those ./INPUT
and let the program do it for youThe format for the file is as follows :
Nb… and id… are numbers. The first represent the number of possible participants. The latter will be used to say
which activities the participant wants. Participant_… and Activity… must be strings of characters without spaces (you
can replace those with _
or -
)
Activity_1 Nb_available
Activity_2 Nb_available
...
Activity_n Nb_available
Participant_1 id_1 id_2 id_3 ... id_n
Participant_2 id_1 id_2 id_3 ... id_n
...
Participant_m id_1 id_2 id_3 ... id_n
So it may look like :
Foot 15
Hockey 12
Piscine 15
Poney-aquatique 2
Jean 1 2
Jean-Michel 5
Jean-Claude 1
Jean-ti 1 6 2
The formatting is the same should you input the information through the terminal. You will be guided along the way.
names
and capacities
of activities/coursesnames
and choices
of children/studentsmake test
enables you to test the first step of the project (i.e. just running the Ford-Fulkerson algorithm on a test graph)
./outFileApp.svg
) can be used to get a better understanding of the algorithm here is an example :