Skip to Content
Hands-On Software Engineering with Golang
book

Hands-On Software Engineering with Golang

by Achilleas Anagnostopoulos
January 2020
Intermediate to advanced
640 pages
16h 56m
English
Packt Publishing
Content preview from Hands-On Software Engineering with Golang

Graph coloring

The next graph-based problem that we will be trying to solve using our graph processing system is graph coloring. The idea behind graph coloring is to assign a color to each vertex in the graph so that no adjacent vertices have the same color. The following diagram illustrates an example graph whose vertices have been colored with the optimal (minimum possible) number of colors:

Figure 3: A graph with optimal coloring

Graph coloring has numerous real-world applications:

  • It is frequently used by compilers to perform register allocation [2].
  • Mobile operators use graph coloring as the means for solving the frequency assignment ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Software Architecture with Golang

Hands-On Software Architecture with Golang

Jyotiswarup Raiturkar

Publisher Resources

ISBN: 9781838554491Supplemental Content