Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Time left 3 : 2 1 : 4 1 Question 1 Not yet answered Marked out of 3 Remove flag Question text We want to
Time left ::
Question
Not yet answered
Marked out of
Remove flag
Question text
We want to preprocess a given unweighted digraph GVE
to set up a suitable data structure so that we can use it to answer any query of the following form in O
time:
Query: Given an arbitrary pair of vertices uv in V
is there a directed path in G
from u
to v
whose length is divisible by Length of each edge is
With the techniques learned in this course, the preprocessing can be done most efficiently in worstcase theta Vd
time, where d
Question Answer
a
b
c
d
e
f
This problem cannot be solved deterministically in polynomial time, unless PNP
g
h
Question
Not yet answered
Marked out of
Flag question
Question text
Let GVE
be any planar graph with or more vertices. It is a known fact that in any such graph EV
If there is more than one correct choice, select the red choice.
Question Answer
a
G
must have a node with degree at most
b
None of the other choices.
c
There is a planar graph G
in which every node has degree at least
d
More than one of the other choices are correct.
e
At least half of the nodes in G
must have degree at most
Question
Not yet answered
Marked out of
Flag question
Question text
Suppose we apply Prims Minimum Spanning Tree MST algorithm to the weighted graph G
shown below starting from vertex a
Let T
denote the resulting MST
If more than one answer is correct, select the one in red.
Question Answer
a
Edge bc
is the th edge added to T
b
More than one of the other choices are correct.
c
Edge ei
is the th edge added to T
d
There are at most edges on the unique simple path in T
between vertices b
and j
e
Edge ij
is added to T
before edge gl
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