Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Remarks: In all algorithm, always prove why they work. ALWAYS, analyze the com- plexity of your algorithms. In all algorithms, always try to get the
Remarks: In all algorithm, always prove why they work. ALWAYS, analyze the com- plexity of your algorithms. In all algorithms, always try to get the fastest possible. In all data structures, try to minimize as much as possible the running time of any operation. . Question 1: Let vi, v2... , Vn be an ordering of the vertices of an undirected graph G(V, E) on a line. Let Na(v) be the neighbors of v that appear after v in the line. The ordering is called a perfect elimination sequence if for every v, Na(v) is a clique (a clique is a graph such that an two vertices are neighbors) 1. Consider the following algorithm: While there are still vertices in the line, take the first (non deleted) vertex u in the line. Define a set uUNa(u) and remove this set and any edge touching a vertex from this set, from the graph. Then iterate. Show that the above algorithm decomposes the graph into a collection of cliques (namely every set un Na(u) is a clique) 2. Say that the above algorithm gives q cliques. Show that the maximum indepen- dent set in the graph has size at least q 3. Show that the maximum in dependent set is also of size at most q. 4. Show that that the algorithm find a maximum independent set in the graph. Remarks: In all algorithm, always prove why they work. ALWAYS, analyze the com- plexity of your algorithms. In all algorithms, always try to get the fastest possible. In all data structures, try to minimize as much as possible the running time of any operation. . Question 1: Let vi, v2... , Vn be an ordering of the vertices of an undirected graph G(V, E) on a line. Let Na(v) be the neighbors of v that appear after v in the line. The ordering is called a perfect elimination sequence if for every v, Na(v) is a clique (a clique is a graph such that an two vertices are neighbors) 1. Consider the following algorithm: While there are still vertices in the line, take the first (non deleted) vertex u in the line. Define a set uUNa(u) and remove this set and any edge touching a vertex from this set, from the graph. Then iterate. Show that the above algorithm decomposes the graph into a collection of cliques (namely every set un Na(u) is a clique) 2. Say that the above algorithm gives q cliques. Show that the maximum indepen- dent set in the graph has size at least q 3. Show that the maximum in dependent set is also of size at most q. 4. Show that that the algorithm find a maximum independent set in the graph
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