11. Given below is the pseudocode of the dominating set problem. Which of the following best suits the blank?
Dominant(G = (V, E))
{
D = { }
while (E!=0)
{
pick any edge e connecting to vertices X and Y
add one vertex between X and Y to set D
________________
}
return D;
}
Dominant(G = (V, E))
{
D = { }
while (E!=0)
{
pick any edge e connecting to vertices X and Y
add one vertex between X and Y to set D
________________
}
return D;
}
12. What is the other name for quick hull problem?
13. Which of the following code will generate unique random numbers every time?
14. Karger's algorithm is which type of algorithm?
15. Recursive approach to find power of a number is preferred over iterative approach.
16. Number of elements in the power set of set S={1, 2, 3} will be?
17. Which of the following refers to the independence number of a graph?
18. Running time of Strassen's algorithm is better than the naive Theta(n3) method.
19. What will be the auxiliary space complexity of dynamic programming solution of set partition problem(sum=sum of set elements)?
20. If Matrix A is of order X*Y and Matrix B is of order M*N, then what is the order of the Matrix A*B given that Y=M?
Read More Section(Miscellaneous on Data Structures)
Each Section contains maximum 100 MCQs question on Miscellaneous on Data Structures. To get more questions visit other sections.
- Miscellaneous on Data Structures - Section 1
- Miscellaneous on Data Structures - Section 2
- Miscellaneous on Data Structures - Section 3
- Miscellaneous on Data Structures - Section 4
- Miscellaneous on Data Structures - Section 5
- Miscellaneous on Data Structures - Section 6
- Miscellaneous on Data Structures - Section 7
- Miscellaneous on Data Structures - Section 8
- Miscellaneous on Data Structures - Section 9
- Miscellaneous on Data Structures - Section 10
- Miscellaneous on Data Structures - Section 12