What happens if a node cannot fit an element in an unrolled linked list?
A. The element is discarded
B. The elements are moved to the next node
C. The node is discarded
D. Error message is shown
Select an option to see the answer and solution.
Unrolled linked-list requires more storage space for pointers compared to a singly linked list.
Select an option to see the answer and solution.
What datastructures can be used in implementing a free list?
A. only linked list
B. linked list or sort trees
C. arrays
D. trees
Select an option to see the answer and solution.
Consider the 2-level skip list
How to access 38?
A. travel 20-30-35-38
B. travel 20-30-40-38
C. travel 20-38
D. travel 20-40-38
Select an option to see the answer and solution.
To which datastructure are skip lists similar to in terms of time complexities in worst and best cases?
A. balanced binary search trees
B. binary search trees
C. binary trees
D. linked lists
Select an option to see the answer and solution.
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 )
Select an option to see the answer and solution.
Is a skip list like balanced tree?
Select an option to see the answer and solution.
For which of the following purpose a top pointer can be used?
A. Storing the address of the head pointer
B. Storing the address of the previous node
C. Storing the address of the next node
D. Storing equal values on the same level
Select an option to see the answer and solution.
What's wrong with this code which returns xor of two nodes address?
//struct is common userdefined datatype in c/c++ and class is it's alternative
struct node* XOR (struct node *a, struct node *b)
{
//this logic is used to fill the nodes with address of a xor linked list
return ((int) (a) ^ (int) (b));
}A. nothing wrong. everything is fine
B. type casting at return is missing
C. parameters are wrong
D. total logic is wrong
Select an option to see the answer and solution.
Suppose, in a triply linked list, the elements 2, 3, 3, 5, 5, 5 and 6 are inserted in the given sequence. To which of the following elements will the top pointer point, if the linked list is traversed starting from the head?
A. 2 3 top → 3 5 top → 5 5 top → 6
B. 2 top → 3 3 top → 5 5 5 top → 6
C. 2 3 top → 3 5 top → 5 top → 5 6
D. 2 top → 3 top → 3 top → 5 5 5 6
Select an option to see the answer and solution.
The algorithm given is for deleting an element in an unrolled linked list. What should be the correct statement for the blank given below?
Find an element in node a
a.data.delete(element)
a.elementNum--
while a.elementNum < a.data.size / 2
put element from a.next.data in a.data
a.next.elementNum--
a.elementNum++
if a.next.elementNum < a.next.data.size / 2
_______________________
_______________________Options are not available for this question.
Select an option to see the answer and solution.
The nodes in a skip list may have many forward references. their number is determined
A. probabilistically
B. randomly
C. sequentially
D. orthogonally
Select an option to see the answer and solution.
What is a skip list?
A. a linkedlist with size value in nodes
B. a linkedlist that allows faster search within an ordered sequence
C. a linkedlist that allows slower search within an ordered sequence
D. a tree which is in the form of linked list
Select an option to see the answer and solution.
Which of the following is a drawback of an unrolled linked list?
A. Small memory overhead
B. Cache management
C. High overhead per node
D. Slow insertion and deletion
Select an option to see the answer and solution.
Which of the following is not the properties of XOR lists?
A. X⊕X = 0
B. X⊕0 = X
C. (X⊕Y)⊕Z = X⊕(Y⊕Z)
D. X⊕0 = 1
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
Are the below statements true about skiplists?
In a sorted set of elements skip lists can implement the below operations
i.given a element find closest element to the given value in the sorted set in O(logn)
ii.find the number of elements in the set whose values fall a given range in O(logn)
Select an option to see the answer and solution.
Where does a triply linked list contains an extra pointer in comparison to a doubly linked list?
A. Top of the node
B. Bottom of the node
C. Before the node
D. After the node
Select an option to see the answer and solution.
How are free blocks linked together mostly and in what addressing order?
A. circular linked list and increasing addressing order
B. linked list and decreasing addressing order
C. linked list and in no addressing order
D. none of the mentioned
Select an option to see the answer and solution.
Symbol tables during compilation of program is efficiently implemented using . . . . . . . .
A. a singly linked list
B. a doubly linked list
C. a self organizing list
D. an array
Select an option to see the answer and solution.