Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write the pseudocode clearly. and answer all questions 2) (30 pts) Consider the Minimum Cost Vertex Coloring Problem in which we assign different colors

please write the pseudocode clearly.
and answer all questions image text in transcribed
2) (30 pts) Consider the Minimum Cost Vertex Coloring Problem in which we assign different colors to the adjacent vertices on a given graph G = (VE). The objective is to color the vertices of the graph with minimum total coloring cost. Let V = n be the number of vertices in the graph G. Input: A graph G = (V, E), where V is the set of vertices and is the set of edges of the graph G. Colors (1,0,..., Cn) with prices P = (P1, P2, ...,P.). Output: Color assignments of the vertices having minimum total coloring cost. Ex: For the graph G in figure, the set of vertices is V = {01, 22, ..., 010} and the set of edges is E= {(1,02), (,05), (01, U6), (012, 03), (12,04), ---, (017, 010)}. We are given n = 10 different colors, namely 1, 2,..., C10. Let the price of using these colors be P=(3, 2, 1, 2, 4, 3, 2, 3, 4, 2). For instance, the price of using color for one time is P2 = 2 and for two times is 2 x P2 = 4. As an example in the figure, we use color ca for 4 times (price = 4xP2 = 8), color y for 3 times (price = 3 x P = 3), and color for 3 times (price = 3 x 4 6). Hence, we color the graph G using three different colors with total cost 8 +3+ 6 = 17. a. (15 pts) Design a greedy algorithm that solves the Minimum Cost Ver- ter Coloring Problem using a greedy color selection rule. Give the pseudocode of your algorithm. h 15 pts) What is the time complexity of your algorithm? Is it efficient? Can your algorithm find the optimum solution? c. (10 pts) Step-by-step implement your algorithm on the instance given in the example

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 3 Lnai 9853

Authors: Bettina Berendt ,Bjorn Bringmann ,Elisa Fromont ,Gemma Garriga ,Pauli Miettinen ,Nikolaj Tatti ,Volker Tresp

1st Edition

3319461303, 978-3319461304

Students also viewed these Databases questions

Question

The Nature of Nonverbal Communication

Answered: 1 week ago

Question

Functions of Nonverbal Communication

Answered: 1 week ago

Question

Nonverbal Communication Codes

Answered: 1 week ago