Question: 4. (20 pts.) Graph Basics: Give a short answer to each of the questions below. H (a) Write down the adjacency list representation of the

 4. (20 pts.) Graph Basics: Give a short answer to each

4. (20 pts.) Graph Basics: Give a short answer to each of the questions below. H (a) Write down the adjacency list representation of the graph above. (b) What is the most number of edges that an undirected graph can have? Give an exact answer in terms of |V\, without asymptotic notation. You may assume that there are no parallel edges, i.e. for any two vertices u and w, there is at most one edge {u,v}. (c) For each vertex v; in an undirected graph, let dbe its degree, which is the number of edges incident to it. Show that d, must be even. You may assume that there are no self-loops, i.e. edges of the form (uu). (d) Suppose your boss is trying to solve a problem on a graph, and you present them with two algorithms. The first runs in time (VE). The second runs in time (Vlog |VI). Your boss is happy you know the running times, but they seem confused as to which one is better. So they ask you to tell them. in plain English, which algorithm will run faster. What do you answer? (e) Suppose instead that the first algorithm runs in time ( El log |VI) and the second runs in (E|log|El). What do you tell your boss then

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!