Lists on Data Structure and Algorithms related Questions and Answers - Page 2

Question 11 : Which of the following statements are true ?
i) practical application of XOR linked lists are in environments with limited space requirements, such as embedded devices.
ii)xor lists are not suitable because most garbage collectors will fail to work properly with classes or structures that don't contain literal pointers
iii)in order to calculate the address of the next node you need to remember the address of the previous node
iv)xor lists are much efficient than single, doubly linked lists and arrays
1. i, ii, iii, iv
2. i, ii, iii
3. i, ii
4. i
View Answer   Discuss with Members

Question 12 : Which of the following method performs poorly when elements are accessed in sequential order?
1. count method
2. move to front method
3. transpose meth
4. ordering method
View Answer   Discuss with Members

Question 13 : How to maintain multi-level skip list properties when insertions and deletions are done?
1. design each level of a multi-level skip list with varied probabilities
2. that cannot be maintained
3. rebalancing of lists
4. reconstruction
View Answer   Discuss with Members

Question 17 : The worst case running time of a linear search on the self organizing list is ____
1. O(1)
2. O(logn)
3. O(n)
4. O(n2)
View Answer   Discuss with Members

Question 18 : Which of the following data structure is preferred to have lesser search time when the list size is small?
1. search tree
2. sorted list
3. self organizing list
4. linked list
View Answer   Discuss with Members

Question 20 : What is the time complexity improvement of skip lists from linked lists in insertion and deletion?
1. O(n) to O(logn) where n is number of elements
2. O(n) to O(1) where n is number of elements
3. no change
4. O(n) to O(n2) where n is number of elements
View Answer   Discuss with Members


View 11 - 20 of 34 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter