Welcome to the Sorting Visualizer (CLI) page.
This page contains a brief description and implementation instructions for the project.
Project Description
Demonstrates sorting algorithms (like bubble sort, selection sort) in the terminal. Generates a list of random numbers and steps through a chosen sort, printing the list at each swap.
Project Requirements
Python 3.x (no libraries needed).
How to Run the Project
- Write a script (e.g.
sort_visualizer.py
) that generates a list and implements a sort (with prints after each swap). - Run it:
python sort_visualizer.py
. Choose an algorithm; watch each step printed in the console.
Key Concepts Learned
- Algorithms: Understanding how sorting works step by step.
- Loops: Nested loops for sorting.
- Visualization: Using
print()
creatively to show progress (maybe use bars or numbers).
Possible Extensions
- Animate in a GUI (e.g. Tkinter drawing).
- Compare run times of different sorts.
- Allow user to input the list manually.