Detailed Project Report: Queue Visualization using
Python
Introduction
Queue is a FIFO data structure where insertion happens at rear and deletion happens at front.
Objective
To implement queue operations with graphical visualization.
Requirements
Python 3.x and Tkinter.
Algorithm
Create queue, perform enqueue/dequeue, display updated queue.
Applications
Scheduling, buffering, networking.
Python Code
import tkinter as tk
queue=[]
def update_display():
[Link]("all")
x=50
for item in queue:
canvas.create_rectangle(x,50,x+70,100)
canvas.create_text(x+35,75,text=str(item))
x+=80
def enqueue():
item=[Link]()
if item:
[Link](item)
update_display()
def dequeue():
if queue:
[Link](0)
update_display()
root=[Link]()
[Link]("Queue Visualization")
entry=[Link](root)
[Link]()
[Link](root,text="Enqueue",command=enqueue).pack()
[Link](root,text="Dequeue",command=dequeue).pack()
canvas=[Link](root,width=700,height=200)
[Link]()
[Link]()
Explanation
• Queue stores elements.
• Enqueue inserts at rear.
• Dequeue removes from front.
• Canvas visually shows queue.
Conclusion
This project demonstrates queue concepts effectively.