项目作者: rusito-23

项目描述 :
Greedy algorithm implementation for graph coloring using plain C
高级语言: C
项目地址: git://github.com/rusito-23/Wahlaan.git
创建时间: 2019-03-28T14:10:04Z
项目社区:https://github.com/rusito-23/Wahlaan

开源协议:MIT License

下载


Wahlaan 🤓

Discrete Math II 2019 - Famaf, Argentina.
Uses the Greedy algorithm for Graph Coloring with C.

Test Suites

  • SANITY

    1. Runs several UnitTests over the required functions.
  • PERFORMANCE

    1. Runs several actions, saving the partial time for each of one:
    • Graph reading
    • Greedy with natural order
    • WelshPowell Re-Ordering and Greedy
    • 100 SwitchVertices
    • 1000 RMBCs + Greedy
  • COLOR

    1. Shows the results of Greedy with the following orders:
    • Natural
    • Welsh Powell
    • 100 SwitchVértices
    • 100 RMBCs
  • BIPARTITO

    1. Shows the results of running Greedy and Bipartite over the graph.

Makefile 🔛

The makefile provides the following targets:

  • make <suite> GRAPH=Path/to/Graph Suite over a Graph

    Example: make sanity GRAPH=Graphs/K4.txt

  • make <suite>-all FOLDER=Path/To/Folder Suite over a folder of Graphs

    Ejemplo: make performance-all FOLDER=Graphs/Performance

  • make <suite>-valgrind GRAPH=Path/To/Graph Suite over a Graph with Valgrind results:

    make bipartito-valgrind GRAPH=Graphs/Bipartito.txt VALGRIND='valgrind --leak-check=full --show-leak-kinds=all'

Structure

  1. .
  2. ├── Graphs
  3. ├── Bipartite
  4. ├── Color
  5. └── Small graphs to check COLOR suite
  6. ├── Complete
  7. └── Complete Graphs
  8. └── Performance
  9. └── Large graphs to test the PERFORMACE suite
  10. ├── Makefile
  11. ├── README.md
  12. ├── Test
  13. ├── PrintTests.c
  14. ├── TestSuites.c
  15. ├── Tests.h
  16. ├── TestsMultiples.c
  17. └── UnitTests.c
  18. ├── Wahlaan
  19. ├── Project .c files
  20. └── Rii.h
  21. └── main.c