To represent hierarchical relationship between elements, the following data structure is suitable_________.
Priority Dequeue Tree All of above
The following data structure allows deleting data elements from front and inserting at rear _____________.
Stacks Dequeue Binary search tree Queues
The complexity of the average case of an algorithm is _________.
Much more complicated to analyze than that of worst case Much more simpler to analyze than that of worst case Sometimes more complicated and some other times simpler than that of worst case None of the above
This data structure allows deletions at both ends of the list but insertion at only one end _____.
Output-restricted dequeue Priority queues Both a & b Input-restricted dequeue
The time required in best case for search operation in binary tree is________.
O(n) O(log 2n) O(2n) O(log n)
Which of the following ways below is a pre-order traversal?
Root->left sub tree-> right sub tree left sub tree-> right sub tree->Root Root->right sub tree-> left sub tree right sub tree-> left sub tree->Root
Breadth First search is used in______--.
Graphs Binary trees Stacks Both a and c above
The complexity of merge sort algorithm is ___________.
O(n log n) O(n) O(log n) O(n2)
What happens when you push a new node onto a stack?
the new node is placed at the back of the linked list. the new node is placed at the middle of the linked list. the new node is placed at the front of the linked list. No Changes happens
Which of the following data structure is not linear data structure?
Linked lists Arrays Both of above None of above
0 Comments