Miscellaneous On Data Structures - Study Mode

[#361] What will be the time complexity of update query operation in an array of size n when we use square root optimization?
Correct Answer

(C) O(1)

[#362] Given below is the pseudocode of the vertex cover problem. Which of the following best suits the blank? Vertex_Cover(G = (V, E))
{
A = { }
while (E!=0)
{
pick any edge (u, v) from E
add u and v to A
________________
}
return A
}
Correct Answer

(A) remove every edge incident on either u or v

[#363] Who invented the concept of inclusion-exclusion principle?
Correct Answer

(A) Abraham de Moivre

[#364] In a stack algorithm, the set of pages in a k-frame memory is always a subset of pages in a . . . . . . . . frame memory.
Correct Answer

(C) k+1

[#365] What will be the chromatic index for a complete graph having n vertices (consider n to be an even number)?
Correct Answer

(C) n - 1