dke-group-23 / DKE-Project

0 stars 2 forks source link

Exact algorithm, Phase 3 #23

Open Isinlor opened 5 years ago

Isinlor commented 5 years ago

We have pretty good algorithms already. This is:

Backtracking should easily take on tree, lines, circles, stars etc. so I don't think there is any need to play around with these.

Bron–Kerbosch provides us with maximum clique. This potentially could speed up backtracking algorithm if we pre color the maximum clique.

First of all we should look at the new graphs from Kelk with our visualization in game. Is there any visible structure?

We should probably setup tests to make sure that algorithms work fine and benchmark them to make sure that whatever we do we are actually faster.

What we should do with algorithms:

Isinlor commented 5 years ago

01 Long lines and circles L: 3 U: 3 C: 3

01

02 L: 3 U: 6 C: timeout

02

03 Big&Small L: 6 U: 8 C: timeout

03

04 L: 4 U: 7 C: timeout

04

05 Too big (No visualization) L: 2 U: 2 C: 2

06 Needles L: 3 U: 3

06

07 Medusa L: 8 U: 12 C: timeout

07

08 Dense L: 98 U: 98 C: 98

08

09 L: 3 U: 7 C: timeout

09

10 Picasso L: 2 U: 4 C: timeout

10

11 Groups L: 15 U: 15 C: 15

11

12 Vertical & Horizontal Easier L: 2 U: 3 C: timeout

12

13 L: 9 U: 14 C: timeout

13

14 Vertical & Horizontal L: 3 U: 5 C: timeout

14

15 3 Siblings (they are connected!) L: 5 U: 10 C: timeout

15

16 Picasso v2 L: 3 U: 4 C: timeout

16

17 Easier Groups L: 8 U: 8 C: timeout

17

18 Separate graphs L: 10 U: 13 C: timeout

18

19 Stars L: 11 U: 11 C: 11

19

20 Shining Stars L: 8 U: 9 C: timeout

20

Isinlor commented 5 years ago

Useful program: https://gephi.org/

The program needs special file format: block3_2018_graph_net_format.zip

Isinlor commented 5 years ago

The exact algorithm in game works with:

Does not work yet:

Isinlor commented 5 years ago

Nice overview of classical graph coloring algorithms: http://fileadmin.cs.lth.se/cs/personal/andrzej_lingas/k-m.pdf

ghost commented 5 years ago

a guide to graph coloring.pdf

Seeeeeyo commented 5 years ago

1-1 graph 1-1

1-2 graph 1-2

2-1 graph 2-1

2-2 graph 2-2

3 graph 3

4 graph 4

6 graph 6

7 graph 7

8 graph 8

9 graph 9

10-1 graph 10-1

10-2 graph 10-2

11 graph 11

13 graph 13

14 graph 14

15 graph 15

16 graph 16

17 graph 17

18 graph 18

19 graph 19

20-1 graph 20-1

20-2 graph 20-2

Seeeeeyo commented 5 years ago

Here are some of my research results.

Check for cycles in undirected graphs: https://www.geeksforgeeks.org/detect-cycle-in-an-undirected-graph-using-bfs/

Some interesting slides: http://cms.dm.uba.ar/academico/materias/2docuat2018/investigacion_operativa/2017/Coloreo.pdf

RLF algorithm: https://www.gerad.ca/~alainh/RLFPaper.pdf it's code: https://www.codeproject.com/Articles/88674/%2FArticles%2F88674%2FGraph-coloring-using-Recursive-Large-First-RLF-algfac

Check for a "star" topology: https://www.geeksforgeeks.org/check-if-the-given-graph-represents-a-star-topology/?fbclid=IwAR3s3MeQupVBc1dVsxGkhyZPxyNSfYR8n42BqMD4ax_kltbDCrm465xQp_U

Check if a graph is a bipartie (that would be surprising to have bipartie graph in this phase): https://www.geeksforgeeks.org/check-if-a-given-graph-is-bipartite-using-dfs/

Check for "bus" topology, we definitely need this one: https://www.geeksforgeeks.org/check-if-the-given-graph-represents-a-bus-topology/

Find the articulation points: https://www.geeksforgeeks.org/articulation-points-or-cut-vertices-in-a-graph/

Find the Bridges; I have to do more research on the Tarjan's algorithm and it's utility. https://www.geeksforgeeks.org/bridge-in-a-graph/ https://www.youtube.com/watch?v=thLQYBlz2DM

ghost commented 5 years ago

I've finished DSATUR and uploaded the files, here are the results I've got for the graphs dsatur