Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

discrete structures Problem 2. (10 points) Let G = (V,E) be a graph for which each vertex is colored either black or white (but not

discrete structuresimage text in transcribed

Problem 2. (10 points) Let G = (V,E) be a graph for which each vertex is colored either black or white (but not both). We say that vertex v is integrated if at least half of its neighbors (those connected by one edge to v) have a different color than v. Furthermore, we say that a coloring of a graph is integrated if every vertex in the graph is integrated. (a) Show that every graph in which every cycle is of even length has an integrated coloring. Consider the following algorithm: pick an uncolored vertex, color it white, color each of its neighbors black and repeat. Why will this procedure terminate in an integrated coloring? (b) Prove that every graph has an integrated coloring. Consider the following algorithm: First, color every vertex white. Next, if there is a vertex that is not integrated, flip its color When this algorithm terminates, it will yield an integrated coloring. Prove that the process always terminates. (Hint: focus on the number of mixed edges - those whose end-points are of different colors.) What logical principle did you use to prove termination? Problem 2. (10 points) Let G = (V,E) be a graph for which each vertex is colored either black or white (but not both). We say that vertex v is integrated if at least half of its neighbors (those connected by one edge to v) have a different color than v. Furthermore, we say that a coloring of a graph is integrated if every vertex in the graph is integrated. (a) Show that every graph in which every cycle is of even length has an integrated coloring. Consider the following algorithm: pick an uncolored vertex, color it white, color each of its neighbors black and repeat. Why will this procedure terminate in an integrated coloring? (b) Prove that every graph has an integrated coloring. Consider the following algorithm: First, color every vertex white. Next, if there is a vertex that is not integrated, flip its color When this algorithm terminates, it will yield an integrated coloring. Prove that the process always terminates. (Hint: focus on the number of mixed edges - those whose end-points are of different colors.) What logical principle did you use to prove termination

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions