Data Structures With Python (19EID237) SET-2
Data Structures With Python (19EID237) SET-2
* Required
Section - A
2,2
1,2
3,3
3,2
https://docs.google.com/forms/d/e/1FAIpQLSfctQGBSy7yJMJ3eR1PLDAQ8-Hz7mwalax6CfUH2ODmwqL5vg/formResponse 1/5
12/24/2020 Data Structures with Python (19EID237) SET-2
In single source shortest path problem, edge relaxation [edge (u, v) where v is
adjacent to u] operation is given as follows. *
Consider a complete undirected graph with vertex set {0, 1, 2, 3, 4}. Entry Wij in
the matrix W below is the weight of the edge {i, j}. What is the minimum possible
weight of a spanning tree T in this graph such that vertex 0 is a leaf node in the
tree T?[image:q5_15.png] *
10
https://docs.google.com/forms/d/e/1FAIpQLSfctQGBSy7yJMJ3eR1PLDAQ8-Hz7mwalax6CfUH2ODmwqL5vg/formResponse 2/5
12/24/2020 Data Structures with Python (19EID237) SET-2
Path Compression is used to speed up the run time of which operation in the
union-find data structure. *
Union
Find
Delete
TRUE
FALSE
TRUE
False
https://docs.google.com/forms/d/e/1FAIpQLSfctQGBSy7yJMJ3eR1PLDAQ8-Hz7mwalax6CfUH2ODmwqL5vg/formResponse 3/5
12/24/2020 Data Structures with Python (19EID237) SET-2
What is the running time of the insert_vertex(x) method of the graph ADT, if the
graph is represented with adjacency matrix *
O(1)
O(n^2)
O(n)
O (k log n)
O (k)
O(logn)
O (k2 logn)
Which of the following data structure is used for representing the graph *
edge list
adjacency list
adjacency map
adjacency matrix
https://docs.google.com/forms/d/e/1FAIpQLSfctQGBSy7yJMJ3eR1PLDAQ8-Hz7mwalax6CfUH2ODmwqL5vg/formResponse 4/5
12/24/2020 Data Structures with Python (19EID237) SET-2
Kruskal’s algorithm
Dijkstra’s Algorithm
Prim’s Algorithm
Page 2 of 4
Back Next
This form was created inside of GITAM (Deemed to be University). Report Abuse
Forms
https://docs.google.com/forms/d/e/1FAIpQLSfctQGBSy7yJMJ3eR1PLDAQ8-Hz7mwalax6CfUH2ODmwqL5vg/formResponse 5/5