Introduction to Algorithms
3rd Edition
ISBN: 9780262033848
Author: Thomas H. Cormen, Ronald L. Rivest, Charles E. Leiserson, Clifford Stein
Publisher: MIT Press
expand_more
expand_more
format_list_bulleted
Question
Chapter 35.1, Problem 3E
Program Plan Intro
To show that the professor’s heuristic does not have an approximation ratio of 2.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Demonstrate how an Approximation approach can be utilised to solve the Vertex Cover problem for the following graph.
a. Show that if G is a simple graph with n vertices (wheren is a positive integer) and each vertex has degree greater than orequal to (n−1)/2, then the diameter of G is 2 or less.
b. If G is a (not necessarily simple) graph with n verticeswhere each vertex has degree greater than or equal to (n−1)/2, is thediameter of G necessarily 2 or less? Either prove that the answer tothis question is "yes" or give a counterexample.
Part a has already been answered so I only need help with part b. Part a is included for context
Let V= {cities of Metro Manila} and E = {(x; y) | x
and y are adjacent cities in Metro Manila.}
(a) Draw the graph G defined by G = (V; E). You
may use initials to name a vertex representing
a city.
(b) Apply the Four-Color Theorem to
determine the chromatic number of the vertex
coloring for G.
Chapter 35 Solutions
Introduction to Algorithms
Ch. 35.1 - Prob. 1ECh. 35.1 - Prob. 2ECh. 35.1 - Prob. 3ECh. 35.1 - Prob. 4ECh. 35.1 - Prob. 5ECh. 35.2 - Prob. 1ECh. 35.2 - Prob. 2ECh. 35.2 - Prob. 3ECh. 35.2 - Prob. 4ECh. 35.2 - Prob. 5E
Ch. 35.3 - Prob. 1ECh. 35.3 - Prob. 2ECh. 35.3 - Prob. 3ECh. 35.3 - Prob. 4ECh. 35.3 - Prob. 5ECh. 35.4 - Prob. 1ECh. 35.4 - Prob. 2ECh. 35.4 - Prob. 3ECh. 35.4 - Prob. 4ECh. 35.5 - Prob. 1ECh. 35.5 - Prob. 2ECh. 35.5 - Prob. 3ECh. 35.5 - Prob. 4ECh. 35.5 - Prob. 5ECh. 35 - Prob. 1PCh. 35 - Prob. 2PCh. 35 - Prob. 3PCh. 35 - Prob. 4PCh. 35 - Prob. 5PCh. 35 - Prob. 6PCh. 35 - Prob. 7P
Knowledge Booster
Similar questions
- Let A and B each be sets of N labeled vertices, and consider bipartite graphs between A and B. What is the maximum number of edges possible for any bipartite graph between A and B?arrow_forward(c) You are given a directed graph G where all edge weights are positive. Given two vertices s and t in G, we want to find the "best" path from s to t, where "best" means the primary objective is to minimise the total weight of all edges along the path; if there are multiple paths with the same minimum weight, we prefer the one with the fewest edges. i. Write down the pseudocode of an efficient algorithm for this problem. You only need to compute the total weight and the number of edges of the best path, and need not recover the path itself. ii. Demonstrate how your algorithm works with the graph G2 in Figure 1. You should show the contents of any data structure used after each step. a b. 14 7 2 9 3 10 8 Of 12 11 6. 5 1 13 H G, Figure 1: G1 for Q3(a); H for Q3(b); G2 for Q3(c).arrow_forwardProblem 3: For each of the two graphs below, determine whether they are planar. Justify your answer: if the graph is planar, show its planar embedding. If a graph is not planar, use Kuratowski's theorem to justify it. G h g H d h barrow_forward
- 1. Let F be a forest with n vertices and k connected components, with 1 < k < n. (a) Compute ) deg(v) in terms of n and k. vɛV(F) (b) Show that the average degree of a vertex in F is strictly less than 2. (c) Conclude that forests have leaves.arrow_forwardConsider two graphs G and H. Graph G is a complete graph with 5 vertices; Graph H is a 2-regular graph with 10 vertices. How many edges are there in total between the two graphs?arrow_forwardLet G be a polyhedral graph with 12 vertices and 30 edges. Prove that the degree of each face of G is three. Show all of your work and clearly explain, using words, your reasoning.arrow_forward
- Use Euler's inequality (m≤ 3n-6) to prove that each planar graph has at least two vertices of degree at most 5. (Can you do better than 2?)arrow_forwardThe graph-coloring problem is usually stated as the vertex-coloring problem: assign the smallest number of colors to vertices of a given graph so that no two adjacent vertices are the same color. Consider the edge-coloring problem: assign the smallest number of colors possible to edges of a given graph so that no two edges with the same end point are the same color. Explain how the edge-coloring problem can be polynomial reduced to a vertex-coloring problem. Give an example.arrow_forward. Prove the following.(Note: Provide each an illustration for verification of results)Let H be a spanning subgraph of a graph G.i. If H is Eulerian, then G is Eulerian.ii. If H is Hamiltonian, then G is Hamiltonianarrow_forward
- Using Graph coloring and taking edges A-H to create a graph, solve the following problemarrow_forward4. This problem is about graphs. In each of the following cases, either draw a graph with the stated property, or prove that no such graph exists. (For the purpose of this problem, a “graph" must have no loops or multiple edges.) (a) A graph on 12 vertices in which every vertex has degree 4. (b) A graph on 45 vertices in which 22 vertices have degree 8 and 23 vertices have degree 7. (c) A graph on 10 vertices in which every vertex has degree 3 and the shortest cycle subgraph has length 5. (d) A graph on 13 vertices in which every vertex has degree at least 7 and there are no cycle subgraphs of length 3.arrow_forwardExplain a method that computes the strong connected component that contains a given vertex (v) in linear time. Provide a straightforward quadratic algorithm for calculating a digraph's strong components based on that method.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education