Question
Given an undirected graph G = (V,E), what is the minimum number of colors needed to color the nodes such that no two adjacent nodes
Given an undirected graph G = (V,E), what is the minimum number of colors needed to color the nodes such that no two adjacent nodes have the same color? Please answer the questions below about the following reduction algorithm from the Graph
Coloring Problem to the Class Scheduling Problem.
Algo:
for each vertex in V of the graph G=(V,E) to be colored
create a class
for each vertex v_i in V, i = 1...n,
for each other vertex v_j in V, j = i+1...n,
if (v_i,v_j) is an edge in E of G
add a new student s onto the course roster for both class i and j
feed the class and their course rosters into the class Scheduling Black Box solver
(1) (3 points) If the Class Scheduling Black Box returns a class schedule that uses only k time slots, what does that mean about the colorability of the graph G?
(b) (3 points) If two nodes vi and vj in a graph coloring of G share the same color, what does that mean about class i and j?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started