Suppose we are given a graph G = (V,E) and we want to color each vertex...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Suppose we are given a graph G = (V,E) and we want to color each vertex with one of three colors, say red,green, blue. Given a coloring of the vertices in V, we say that an edge e = {u, v} is satisfied if the colors assigned to u and u are different. For this question, we used the term coloring to mean a coloring of the vertices of V. Consider the following randomized algorithm for coloring the vertices of V for an input graph G = (V,E). Algorithm 1: Algorithm for Question 1 Input Graph G = (V,E) Output: A coloring of the vertices of V 1 foreach vЄ V do 2 3 4 end Select a color c uniformly at random from the set red, green, blue Color vertex v with the color c 5 return The computed coloring of V Basically, the algorithm uniformly at random assigns one of three colors to each vertex independently and returns that coloring. Recall that uniformly at random means that each color is picked with probability 1/3. Answer the following questions: a. Compute the probability that an arbitrary edge e = {u, v} = E is satisfied by a coloring computed by the randomized algorithm. That is, what is the probability that u, v are assigned different colors by the algorithm? b. Compute the expected number of edges satisfied by a coloring returned by the algorithm. That is, if X is a random variable representing the number of edges satisfied by a coloring returned by the algorithm, compute E[X], the expectation of X. c. For the graph given in Figure 1 below, is it possible to color the vertices using colors red, green, blue so that every edge is satisfied by the coloring? If yes, give one such coloring. If no, explain why not. 2 ст 5 1 4 3 6 Suppose we are given a graph G = (V,E) and we want to color each vertex with one of three colors, say red,green, blue. Given a coloring of the vertices in V, we say that an edge e = {u, v} is satisfied if the colors assigned to u and u are different. For this question, we used the term coloring to mean a coloring of the vertices of V. Consider the following randomized algorithm for coloring the vertices of V for an input graph G = (V,E). Algorithm 1: Algorithm for Question 1 Input Graph G = (V,E) Output: A coloring of the vertices of V 1 foreach vЄ V do 2 3 4 end Select a color c uniformly at random from the set red, green, blue Color vertex v with the color c 5 return The computed coloring of V Basically, the algorithm uniformly at random assigns one of three colors to each vertex independently and returns that coloring. Recall that uniformly at random means that each color is picked with probability 1/3. Answer the following questions: a. Compute the probability that an arbitrary edge e = {u, v} = E is satisfied by a coloring computed by the randomized algorithm. That is, what is the probability that u, v are assigned different colors by the algorithm? b. Compute the expected number of edges satisfied by a coloring returned by the algorithm. That is, if X is a random variable representing the number of edges satisfied by a coloring returned by the algorithm, compute E[X], the expectation of X. c. For the graph given in Figure 1 below, is it possible to color the vertices using colors red, green, blue so that every edge is satisfied by the coloring? If yes, give one such coloring. If no, explain why not. 2 ст 5 1 4 3 6
Expert Answer:
Posted Date:
Students also viewed these accounting questions
-
I need help on this read from bottom to top. Image transcription text 7"} The second ?nancial statement to prepare is the statement of retained earnings. To determine the ending balance of...
-
5. A population is known to be normally distributed with a mean u = 11.4 and a variance =3. If a random sample of size 16 is taken, find the probability that this sample will: a) have a sample mean...
-
(i) A submit button, using the tag, which should be labeled ReadMessage (ii) A JavaScript function identified as: readMessages. This function should be activated/triggered when the administrator...
-
In Canada, Canadian teachers and bosses and HIGH AUTHORITY FIGURES are not FEARED but RESPECTED. In CANADA TEACHERS, bosses and AUTHORITY FIGURES encourage feedback, OPINIONS and ENGAGE in discuss....
-
Magic Conglomerates had the following preferred stock outstanding at the end of a recent year: $25 par, 10 percent ............ 6,000 shares $40 par, 8 percent, cumulative .........11,000 shares $50...
-
On April 1, 2006, US Ultracom issued 7\%, 10-year bonds payable with maturity value of \(\$ 400,000\). The bonds pay interest on March 31 and September 30, and US Ultracom amortizes premium and...
-
McTaggart-Hicks transactions as operating (O), investing (I), financing (F), non-cash investing and financing (NIF), or a transaction that is not reported on the statement of cash flows (N). Indicate...
-
Find PV of $750 annuity due payments at the beginning of the year for 9.5 years @ 8.5% annual interest.
-
In recent times a number of cases have been highlighted in the media in which certain accounting firms have been taken to tasks for unethical practices. 1. Conduct an internet search and highlight...
-
An automobile dealer reports the 1994 and 2011 sales for three models in the following table. Compute quantity relatives and use them to develop a weighted aggregate quantity index for 2011 using the...
-
Data on quantities of three items sold in 1997 and 2011 are given here along with the sales prices of the items in 1997. Compute a weighted aggregate quantity index for 2011. Quantity Sold Item 1997...
-
Why do accountants have to make these allowances?
-
At the beginning of the financial year on 1 April 2017, a company had a balance on plant account of 372,000 and on provision for depreciation of plant account of 205,400. The company's policy is to...
-
(a) Distinguish between capital and revenue expenditure. (b) Drake Ltd took delivery of a computer network on 1 July 2016, the beginning of its financial year. The list price of the equipment was...
-
Northwest Brands, Inc., is a small business incorporated in Minnesota. Its one class of stock is owned by twelve members of a single family. Ordinarily, corporate income is taxed at the corporate and...
Study smarter with the SolutionInn App