Nội dung text 4. Stacks and Queues.pdf
Data Structures and Algorithms (CS-2001) KALINGA INSTITUTE OF INDUSTRIAL TECHNOLOGY School of Computer Engineering 4 Credit Lecture Note Strictly for internal circulation (within KIIT) and reference only. Not for outside circulation without permission
Chapter Contents School of Computer Engineering Sr # Major and Detailed Coverage Area Hrs 3 Stacks and Queues 8 Stacks, Stacks using Dynamic Arrays and Linked Lists, Queues, Queue using Linked List, Circular Queues using Dynamic Arrays, Evaluation of Expressions, Priority Queue, Dequeue 2
Introduction School of Computer Engineering The linear lists and linear arrays allowed one to insert and delete elements at any place in the list – at the beginning, at the end or in the middle. There are certain frequent situations when one wants to restrict insertions and deletions so that they can take place only at the beginning or the end of the list, not in the middle. Two of the data structures that are useful in such situations are stacks and queues. 3