Self Organizing List Multiple choice Questions and Answers (MCQs)

 

 Help authour, Buy PDF Ebook   >>>Click Here<<<

Self Organizing List Multiple choice Questions and Answers (MCQs)

Question 1
The self organizing list improves the efficiency of .....
A
binary search
B
jump search
C
sublist search
D
linear search
Education Questions answers
Question 1 Explanation: 
Linear search in a linked list has time complexity O(n). To improve the efficiency of the linear search the self organizing list is used. A self-organizing list improves the efficiency of linear search by moving more frequently accessed elements towards the head of the list.

Question 2
Which of the following is true about the Move-To-Front Method for rearranging nodes?
A
node with highest access count is moved to head of the list
B
requires extra storage
C
may over-reward infrequently accessed nodes
D
requires a counter for each node
Home science Questions answers
Question 2 Explanation: 
In Move-To-front Method the element which is searched is moved to the head of the list. And if a node is searched even once, it is moved to the head of the list and given maximum priority even if it is not going to be accessed frequently in the future. Such a situation is referred to as over-rewarding.

Question 3
What technique is used in Transpose method?
A
searched node is swapped with its predecessor
B
node with highest access count is moved to head of the list
C
searched node is swapped with the head of list
D
searched nodes are rearranged based on their proximity to the head node
Bank exam Questions answers
Question 3 Explanation: 
In Transpose method, if any node is searched, it is swapped with the node in front unless it is the head of the list. So, in Transpose method searched node is swapped with its predecessor.

Question 4
The worst case running time of a linear search on the self organizing list is .....
A
O(1)
B
O(logn)
C
O(n)
D
O(n2)
Journalism Questions answers
Question 4 Explanation: 
Worst case occurs when the element is located at the very end of list. So n comparisons must be made to the locate element. So the worst case running time of linear search on self organizing list is O(n).

Question 5
Which of the following data structure is preferred to have lesser search time when the list size is small?
A
search tree
B
sorted list
C
self organizing list
D
linked list
Education Questions answers
Question 5 Explanation: 
Self-organizing list is easy and simple to implement than search tree and it requires no additional space. So using self organizing list is preferred when list size is small.

There are 5 questions to complete.

 

 Download all FREE PDF Ebook >>>CLICK HERE<<<