Computer Science Notes

Notes From CS Undergrad Courses FSU

This project is maintained by awa03

Queue ADT - FIFO

Operation Number Command Stack
1 Q.push(Ant) Ant
2 Q.push(Bee) Bee
3 Q.push(Cat) Cat
4 Q.push(Dog) Dog

What if we were to do Q.pop()?

Operation Number Command Stack
1 Q.push(Bee) Bee
2 Q.push(Cat) Cat
3 Q.push(Dog) Dog

Stack Uses

Breadth first search Expanded

Breadth First Visualized

![[020820_0543_BreadthFirs1.webp]]