Seun1358/Bubble_Sort
0
Algorithm Name: Bubble Sort
Demo screenshot:

This project is a simple web app that shows the step-by-step process of the Bubble Sort algorithm. It takes a list of numbers and displays each step of the sorting process so users can clearly inderstand how the algorithm works.
How it works:
- User enters numbers separated by commas
- The app runs Bubble Sort on provided numbers.
- Every time two numbers are compared and swapped, the step is saved.
- All steps are shown in the output box.
Computational Thinking Breakdown
- Decomposition:
- input numbers
- compare and swap
- Save each step
- Display result
- Pattern Recognition:
- Repeated comparison of adjacent values
- Swapping when left > right
- Fewer comparisons on each pass
- Abstraction:
- The user does not need to know how sorting works internally
- They only provide input. The algorithm handles everything
- Algorithm Design:
- User enter numbers
- Turn into a list of integers
- Perform bubble Sort
- Save the list after each pass
- Display every step
Steps to Run
Local Run:
- pip install gradio (to install gradio)
- python app.py (to run the app)
- A browse window will open automatically.
Using the app:
- Type numbers separated by commas
- Click "Run Sort"
- The app will show each Bubble Sort step
Hugging face link
https://huggingface.co/spaces/Seun1358/Bubble_Sort
Author & Acknowledgment
Author: Saeeun Park This project was created for the CISC121 Final Project.
