Skip to content

Primordial579/DSA-Sorting-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔢 JavaFX Sorting Race Visualizer

A visual and interactive sorting algorithm race built using JavaFX. This project demonstrates how different sorting algorithms perform on the same dataset — side-by-side — in real-time.

📌 Features

  • 🎨 GUI built with JavaFX
  • 📊 Multiple sorting algorithms visualized simultaneously
  • 🏁 "Race" mode to compare speed and behavior
  • 🧮 Algorithms include:
    • Bubble Sort
    • Merge Sort

🛠️ Tech Stack

  • Java 11+
  • JavaFX SDK (tested with JavaFX 21)
  • IntelliJ IDEA

🧪 Topics Covered

  • JavaFX (UI/UX with Stage, Scene, Canvas, etc.)
  • Multithreading and concurrency in Java
  • Sorting algorithm implementation and analysis
  • JavaFX animation and rendering
  • Performance comparison via real-time visualization

🚀 How to Run

1. Install JavaFX SDK

Download JavaFX SDK from gluonhq.com and extract it.

2. Add JavaFX to IntelliJ

  • Go to File > Project Structure > Libraries
  • Add the path: /path-to/javafx-sdk/lib

3. Edit Run Configuration

In Run > Edit Configurations, set:

4. Run the App

Press ▶️ or right-click the main class (SortingRaceVisualizer) and select Run.


📸 Screenshots

(Add screenshots of your GUI showing the sorting race here)


📚 References


💡 Future Improvements

  • Add pause/resume/reset functionality
  • Support for custom array sizes and user inputs
  • More algorithms: Heap Sort, Radix Sort, etc.
  • Performance metrics overlay

🧑‍💻 Author

Arjav C Prabhu
LinkedIn | GitHub

About

A JavaFX-based visualizer that compares multiple sorting algorithms in real-time using animated bars and race-style execution.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages