Design and Analysis of Algorithms - Unit-2
AMerge
BFind
CUnion
DConnect
Correct Answer
Union
AFind
BMerge
CConnect
DUnion
Correct Answer
Find
AO(n)
BO(log n)
CO(n log n)
DO(1)
Correct Answer
O(1)
ANumber of sets
BDepth of trees
CNumber of elements
DNumber of operations
Correct Answer
Depth of trees
AThe node with more descendants
BThe node with less descendants
CThe set with the smaller representative element
DThe set with the larger representative element
Correct Answer
The node with more descendants
ANumber of sets
BDepth of trees
CNumber of elements
DNumber of operations
Correct Answer
Number of elements
ATo ensure that the tree height is minimized.
BTo optimize the path compression during the find operation.
CTo assign weights to the nodes in the tree.
DTo balance the trees in the union-find data structure.
Correct Answer
To optimize the path compression during the find operation.
ABy collapsing the paths during the find operation.
BBy ensuring that the tree height is minimized.
CBy assigning weights to the nodes in the tree.
DBy balancing the trees in the union-find data structure.
Correct Answer
By ensuring that the tree height is minimized.
AState-space tree
BState-chart tree
CNode tree
DBacktracking tree
Correct Answer
State-space tree
ADepth-first search
BBreadth-first search
CTwice around the tree
DNearest neighbour first
Correct Answer
Depth-first search
Correct Answer
3
Correct Answer
92
A(3,1,4,2)
B(2,3,1,4)
C(4,3,2,1)
D(4,2,3,1)
Correct Answer
(3,1,4,2)
Atwo vertices having a common edge should not have same color
Btwo vertices having a common edge should always have same color
Call vertices should have a different color
Dall vertices should have same color
Correct Answer
two vertices having a common edge should not have same color
AThe maximum number of colors required for proper edge coloring of graph
BThe maximum number of colors required for proper vertex coloring of graph
CThe minimum number of colors required for proper vertex coloring of graph
DThe minimum number of colors required for proper edge coloring of graph
Correct Answer
The minimum number of colors required for proper vertex coloring of graph
Correct Answer
1
Correct Answer
n