Miscellaneous On Data Structures - Study Mode

[#676] Is lcm an associative function.
Correct Answer

(A) True

[#677] Square root decomposition technique is only applicable when the number of indices in an array is a perfect square.
Correct Answer

(B) false

[#678] What is the minimum dominating set of the binary tree given below?
Correct Answer

(B) {B, C, D, F}

[#679] Given below is the pseudocode of floyd's cycle detection algorithm. Which of the following best suits the blank? Start traversing the linked list using two pointers move one pointer with . . . . . . . . if pointers meet at any node
{
loop exists in the linked list
}
else
{
linked list doesn’t have a loop
}
Correct Answer

(C) twice the speed of another

[#680] What is the rate of hamming codes?
Correct Answer

(A) 1-[r/(2 r -1)]