Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Design an algorithm to find the minimum cost spanning tree for the graph of part ( c ) and extend the tree to obtain a
Design an algorithm to find the minimum cost spanning tree for the graph of partc and
extend the tree to obtain a minimum cost spanning tree for the graph of parta
b
c
a Design an algorithm to determine minimum cost of a tree.
b How many minimum spanning trees does it have?
c Suppose Kruskal's algorithm is run on this graph. In what order are the edges added
to the MST
d Analyze your algorithm and give the results using order notation.Assume there are workers and jobs. Let be the value of assigning worker to job An
Assignment of workers to jobs correspond to the assignment of or to the variables
I, Then means worker is assigned to job and means, the worker is
not assigned to job A valid assignment is one in which each worker is assigned to exactly
one job and exactly one worker is assigned to any one job. The value of an assignment is
For example assume that there are three workers and three jobs and Let
the values of assignment be
and Then a valid assignment is and and The rest of the are
zero's. The value of the assignment is
The optimal assignment is a valid assignment of maximum value. Write algorithms for two
different greedy schemes. One of these assigns a worker to the best possible job. The other
assigns a job the best possible worker. Show that neither of these schemes is guaranteed to
yield optimal assignments. Is either scheme always better than the other? Assume
Analyze your algorithm and give the results using order notation.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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