Discuss how to apply queue using stack
Discuss how to apply queue using stack?
Expert
A queue can be applied by using two stacks:-
• 1. An element is inserted in queue by pushing it in stack 1 • 2. An element is extracted from queue by popping it from stack 2 • 3. If stack 2 is empty then all elements currently in stack 1 is transferred to stack 2 however in the reverse order • 4. If the stack 2 is not empty just pop value from stack 2.
Explain an algorithm. Illustrates the properties of an algorithm?
Explain when AVL tree property is violated and describe how to solve it?
What are the different between quick and merge sort algorithms?
Illustrates the singly-linked doubly-linked and circularly-linked lists?
Describe in brief the word Merge Sort?
What is meant by the abstract Data Type?
Define does the minimum spanning tree of a graph provide the shortest distance among any two given nodes.
What is meant by the data design?
Provide a brief description of the term heap?
Define the term process?
18,76,764
1938246 Asked
3,689
Active Tutors
1430684
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!