recategorized by
796 views
3 votes
3 votes

Consider the following greedy algorithm for colouring an $n$-vertex undirected graph $G$ with colours $c_{1}, c_{2}, \dots:$ consider the vertices of $G$ in any sequence and assign the chosen vertex the first colour that has not already been assigned to any of its neighbours. Let $m(n, r)$ be the minimum number of edges in a graph that causes this greedy algorithm to use $r$ colours. Which of the following is correct?

  1. $m\left ( n, r \right ) = \Theta \left ( r \right )$
  2. $m\left ( n, r \right ) = \Theta \left ( r\left \lceil \log_{2} \:r \right \rceil \right )$
  3. $m\left ( n, r \right ) = \binom{r}{2}$
  4. $m\left ( n, r \right ) = nr$
  5. $m\left ( n, r \right ) = n\binom{r}{2}$
recategorized by

2 Answers

0 votes
0 votes
$\text{option (C). }~m(n,r) = \binom{r}{2}$

An assumption that there’s some order of these $r$ colors,..

to newly selected vertex we’ll assign first color that has not already been assigned to any of its neighbors,

we’ll get a new color only if new node is connected to all the other vertices which have a distinct color assigned to them,

recursively to get $r^{th}$ color , new vertex should be connected to at-least all vertices having $(r-1)$ distinct colors,

minimum value of $m(n,r)$ is given by,

$T(r)=T(r-1) + (r-1) \\ T(1) = 0$

$T(r)=T(r-i) + (r – i) + (r-(i-1)) + … + (r-1) \\ \quad r-i = 1  \Rightarrow i = r -1$

$\text{substituting the value of i, we get}$

$T(r)=T(r-(r-1)) + (r – (r-1)) + (r-(r-2)) + … + (r-1) \\ \quad \quad \Rightarrow T(1) + 1 + 2+ … + (r-1) \\ \quad \quad \Rightarrow 0 + \frac{(r-1)(r-1+1)}{2}  \\ \quad \quad \Rightarrow \frac{r(r-1)}{2} \\ \quad \quad \Rightarrow \binom{r}{c}$
0 votes
0 votes

Let us assume that after running the coloring algorithm we obtained the following partitions of the vertex set of the input graph as shown in the image below. In the image below we have partitions of the vertex set of the input graph based upon the color  of the vertex. For an example black partition contains all vertices of the graph which are colored black by the algorithm.

Take two partitions like black and green there will one vertex in black partition and one vertex in green partition such that there is an edge between them.

Observe that there has to be at least one edge between any two color partitions. If there is no edge between them (i.e. one vertex in one partition and second vertex is in second partition) then we can merge these partitions into one which means instead of two colors one could have suffice to color the vertices of the both partitions.

Now it is easy to see that for any two partitions (color classes) there will be an edge. Let p1 and p2 are two partitions then there will be an edge uv such that u is in p1 and v is in p2.

Now it is easy to see that min number of edges needed are (r choose 2).

Answer:

Related questions

658
views
1 answers
2 votes
soujanyareddy13 asked Mar 25, 2021
658 views
Let $A$ be a $3 \times 6$ matrix with real-valued entries. Matrix $A$ has rank $3$. We construct a graph with $6$ vertices where each vertex represents distinct ... size $3$.The graph has a cycle of length $4$.The graph is $3$-colourable.
630
views
1 answers
3 votes
soujanyareddy13 asked Mar 25, 2021
630 views
Let $G$ be an undirected graph. For any two vertices $u, v$ in $G$, let $\textrm{cut} (u, v)$ be the minimum number of edges that should be deleted from $G$ so that there is ... $\textrm{cut} (b,c) = 2$ and $\textrm{cut} (c,d) = 1$
844
views
1 answers
1 votes
soujanyareddy13 asked Mar 25, 2021
844 views
A matching in a graph is a set of edges such that no two edges in the set share a common vertex. Let $G$ be a graph on $n$ $\textit{vertices}$ in which there is a subset $M$ ... \right )^{m}$1-\left ( 1-p\left ( 1-p \right ) \right )^{m}$
489
views
0 answers
2 votes
soujanyareddy13 asked Mar 25, 2021
489 views
Let $P$ be a convex polygon with sides $5, 4, 4, 3$. For example, the following:Consider the shape in the plane that consists of all points within distance $1$ from some point ... \ell < 21$21\leq \ell< 22$22\leq \ell< 23$23\leq \ell< 24$