From the wiki http://en.wikipedia.org/wiki/Graph_coloring
In its simplest form, this is a way of coloring the vertices of a graph so that two adjacent vertices do not share the same color; this is called vertex coloration. Similarly, a coloring edge assigns a color to each edge so that there are no two adjacent edges of the same color, and a flat color face color assigns a color to each face or region so that none of the two sides that share the border have the same color.
Given the โnโ colors and the โmโ vertices, how easy can the graph coloring be implemented in a programming language?
Language without a barrier.
Just a brain teaser.
(Assume Graph and vertex objects exist)
Edit:
After reading the wiki, the NP-complete problem.
Time to review the math books :)
my bad.
excuse me.
Just curious.
Have you tried this? how to write programs for the same?
I heard that it is used in optical networks?
Doesn't that look like a cube coloring?
(the minimum number of colors for the colored faces of the cube so that the two sides do not have the same color?)
source
share