Analysis of Algorithms and Computational Complexity Questions and Answers
Practice ModeShowing 10 of 239 questions
Q221
Sparse matrices have
Answer: Option A
Q222
In which of the following cases, linked list implementation of sparse matrices consumes the same memory space as the conventional way. of storing the entire array ?
Answer: Option C
Q223
The average search time of hashing, with linear probing will be less if the load factor
Answer: Option A
Q224
A hash table can store a maximum of 10 records. Currently there are records inn location 1, 3, 4, 7, 8, 9, 10. The probability of a new record going into location 2, with a hash function resolving collisions by linear probing is
Answer: Option A
Q225
Consider a hashing function that resolves collision by quadratic probing. Assume the address space is indexed fron 1 to 8. If a collision occurs at position 4, then the location which will never be probed is
Answer: Option D
Q226
A hash table has space for 100 records. then the probability of collision before the table is 10% full, is
Answer: Option A
Q227
Trie Indexing
Answer: Option D
Q228
Stacks can't be used to
Answer: Option D
Q229
The way a card game player arranges his cards as he picks them up one by one, is an example of
Answer: Option C
Q230
The average number of comparison performed by the merge sort algorithm, in merging two sorted lists of length 2 is
Answer: Option A