Datastructures
Stacks
- Stacks - aLIFO/FILO Principle. Functions of
- push()
- pop()
- peek()
- isEmpty()
- capacity
- top - A stack is either empty or it consists of a top
- Examples - stack of plates, undo mechanism - changes save in stack
Queue
- Queues - FIFO/LILO Principle. Functions of queue are
- enqueue()
- dequeue()
- isEmpty()
- isFront()
- isBack()
- clear()
-
Circular Queue
- Depth-First Search with a Stack
- Breadth-First Search with a Queue
References
- [andrew.cmu.edu])(https://www.andrew.cmu.edu/course/15-121/lectures/Stacks%20and%20Queues/Stacks%20and%20Queues.html)