Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(6 points) Given an undirected graph G = (V,E), your task is to orient every edge into a direc- tion such that the maximum
(6 points) Given an undirected graph G = (V,E), your task is to orient every edge into a direc- tion such that the maximum outdegree of the directed graph obtained by such an orientation is minimized. For example, Figure 2b is an optimal way to orient the graph in Figure 2a. The out-degree of every vertex is upper bounded by 2 in Figure 2b. 6 4 5 (a) 9 6 8 4 (b) 3 8 9 1 Figure 2 (a) (4 points) Given an integer D, give a polynomial-time algorithm to determine whether it is possible to orient the edges such that the maximum out-degree of the oriented graph is at most D. (b) (2 points) Suppose the algorithm developed in question (a) has a running time of T(n, m). Develop an algorithm to compute an optimal orientation of G that minimizes the maximum out-degree. Your algorithm has to run in O(T(n, m) log n) time.
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