Analysis of Algorithms and Computational Complexity Questions and Answers
Practice ModeShowing 10 of 239 questions
Q31
Using the standard algorithm, what is the time required to determine that a number n is prime?
Answer: Option A
Q32
How many real links are required to store a sparse matrix of 10 rows, 10 columns, and 15 non-zero entries, (Pick up the closest answer)
Answer: Option C
Q33
A one dimensional array A has indices 1....75. Each element is a string and takes up three memory works. the array is stored starting at location 1120 decimal. The starting address of A[49] is
Answer: Option C
Q34
Following is a recursive function for computing the sum of integers from 0 to N function sum (N : integer)
:integer begin if N = 0 then Sum = 0 elese The missing line in the else part is
Answer: Option B
Q35
A search technique where we keep expanding nodes with least occumulated cost so far is called
Answer: Option B
Q36
Which of the following sort algorithm operates in quadratic time relative to the number of elements in the array (on the average) ?
Answer: Option C
Q37
What is true for the complete bipartite graphs K(3, 3) and K(2, 4) ?
Answer: Option D
Q38
Queues serve a major role in
Answer: Option C
Q39
The number of nodes in a complete binary tree of level 5 is
Answer: Option C
Q40
The linked list implementation of sparse matrices is superior to the generalized dope vector method because it is
Answer: Option D