VUNEW - SYED FAISAL BUKHARI
Tuesday, February 1, 2011
CS502 Current Quiz
Quiz Start Time: 06:56 PM
Time Left
84
sec(s)
Question # 1 of 10 (
Start time: 06:56:28 PM
)
Total Marks:
1
What is the time complexity to extract a vertex from the priority queue in Prim’s algorithm?
Select correct option:
log (V)
V.V
E.E
log (E)
Quiz Start Time: 06:56 PM
Time Left
86
sec(s)
Question # 2 of 10 (
Start time: 06:56:41 PM
)
Total Marks:
1
What algorithm technique is used in the implementation of Kruskal solution for the MST?
Select correct option:
Greedy Technique
Divide-and-Conquer Technique
Dynamic Programming Technique
The algorithm combines more than one of the above techniques
Quiz Start Time: 06:56 PM
Time Left
85
sec(s)
Question # 3 of 10 (
Start time: 06:56:51 PM
)
Total Marks:
1
Which is true statement in the following.
Select correct option:
Kruskal algorithm is multiple source technique for finding MST.
Kruskal’s algorithm is used to find minimum spanning tree of a graph, time complexity of this algorithm is O(EV)
Both of above
Kruskal's algorithm (choose best non-cycle edge) is better than Prim's (choose best Tree edge) when the graph has relatively few edges.
Quiz Start Time: 06:56 PM
Time Left
85
sec(s)
Question # 4 of 10 (
Start time: 06:57:02 PM
)
Total Marks:
1
What is the time complexity to extract a vertex from the priority queue in Prim’s algorithm?
Select correct option:
O (log E)
? (V)
? (V+E)
O (log V)
Quiz Start Time: 06:56 PM
Time Left
87
sec(s)
Question # 5 of 10 (
Start time: 06:57:14 PM
)
Total Marks:
1
You have an adjacency list for G, what is the time complexity to compute Graph transpose G^T ?
Select correct option:
(V+E)
V.E
V
E
Quiz Start Time: 06:56 PM
Time Left
85
sec(s)
Question # 6 of 10 (
Start time: 06:57:26 PM
)
Total Marks:
1
A digraph is strongly connected under what condition?
Select correct option:
A digraph is strongly connected if for every pair of vertices u, v e V, u can reach v .
A digraph is strongly connected if for every pair of vertices u, v e V, u can reach v and vice versa.
A digraph is strongly connected if for at least one pair of vertex u, v e V, u can reach v and vice versa.
A digraph is strongly connected if at least one third pair of vertices u, v e V, u can reach v and vice versa.
Quiz Start Time: 06:56 PM
Time Left
86
sec(s)
Question # 7 of 10 (
Start time: 06:57:37 PM
)
Total Marks:
1
The relationship between number of back edges and number of cycles in DFS is,
Select correct option:
Both are equal
Back edges are half of cycles
Back edges are one quarter of cycles
There is no relationship between no. of edges and cycles
Quiz Start Time: 06:56 PM
Time Left
86
sec(s)
Question # 8 of 10 (
Start time: 06:57:47 PM
)
Total Marks:
1
You have an adjacency list for G, what is the time complexity to compute Graph transpose G^T.?
Select correct option:
? (V + E)
? (V E)
? (V)
? (V^2)
MC080408597 : Muhammad Asif
Quiz Start Time: 06:56 PM
Time Left
39
sec(s)
Question # 9 of 10 (
Start time: 06:57:58 PM
)
Total Marks:
1
Dijkstra’s algorithm :
Select correct option:
Has greedy approach to find all shortest paths
Has both greedy and Dynamic approach to find all shortest paths
Has greedy approach to compute single source shortest paths to all other vertices
Has both greedy and dynamic approach to compute single source shortest paths to all other vertices.
Quiz Start Time: 06:56 PM
Time Left
85
sec(s)
Question # 10 of 10 (
Start time: 06:58:57 PM
)
Total Marks:
1
There is relationship between number of back edges and number of cycles in DFS
Select correct option:
Both are equal.
Cycles are half of back edges.
Cycles are one fourth of back edges.
There is no relationship between back edges and number of cycles.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment