Question
a.
2 deletions, 3 additions
b.
3 deletions, 2 additions
c.
3 deletions, 4 additions
d.
3 deletions, 3 additions
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. The initial configuration of queue is a, b, c, d. ‘a’ is at the front. To get the configuration d, c, b, a how many deletions and additions required:
Similar Questions
Discover Related MCQs
Q. Which traversal technique lists the nodes of a binary search tree in ascending order?
View solution
Q. What is the time required to insert an element in a stack with linked implementation ?
View solution
Q. Which of the following statement is false ?
View solution
Q. The algorithm that will efficiently sort an array that is nearly sorted except for the interchange of some adjacent pairs of numbers like : { 1, 3, 2, 5, 4, 6} is:
View solution
Q. The following lists are the degrees of all the vertices of a graph:
(i) 1, 2, 3, 4, 5 (ii) 3, 4, 5, 6, 7
(iii) 1, 4, 5, 8, 6 (iv) 3, 4, 5, 6
then, which of the above sequences are graphic?
View solution
Q. What item is at the root after the following sequence of insertions into an empty splay tree:
1, 11, 3, 10, 8, 4, 6, 5, 7, 9, 2 ?
View solution
Q. Suppose we are implementing quadratic probing with a Hash function, Hash (y)=X mode 100. If an element with key 4594 is inserted and the first three locations attempted are already occupied, then the next cell that will be tried is:
View solution
Q. Weighted graph:
View solution
Q. What operation is supported in constant time by the doubly linked list, but not by the singly linked list?
View solution
Q. How much extra space is used by heap sort?
View solution
Q. Binary search algorithm employs the strategy of
View solution
Q. Dangling-else ambiguity can be eliminated by
View solution
Q. If n represents the dimension of cube and K, the radix (no. of nodes along each dimensions) then the number of nodes N of a k-ary n-cube network is:
View solution
Q. The postfix form of the expression (A+B)*C-D/E is:
View solution
Q. The number of nodes in a complete binary tree of height n:
View solution
Q. Data abstraction means:
View solution
Q. The solution of recurrence relation:
T(n) = 2T(sqrt(n)) + lg (n)
is
View solution
Q. The elements 42,25,30,40,22,35,26 are inserted one by one in the given order into a max-heap. The resultant max-heap is sorted in an array implementation as
View solution
Q. Consider the following postfix expression with single digit operands:
623∗/42∗+68∗−
The top two elements of the stack after the second ∗ is evaluated, are:
View solution
Q. A binary search tree is constructed by inserting the following numbers in order:
60, 25, 72, 15, 30, 68, 101, 13, 18, 47, 70, 34
The number of nodes in the left subtree is
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Data Structures and Algorithms? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!