GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jadwinder/Kruskal_Algorithm_Visualizer: Interactive Kruskal's Algorithm Visualizer in Java | Learn Minimum Spanning Tree with Graphical and Non-Graphical Modes

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
project.java
project.java
 
 
temp.java
temp.java
 
 

Repository files navigation

Kruskal's Algorithm Project

Overview

This project implements Kruskal's Minimum Spanning Tree (MST) algorithm with both graphical and non-graphical modes. It is built in Java (Swing GUI) for visualizing the algorithm’s steps.

Kruskal's algorithm is a classic greedy algorithm used to find a minimum spanning tree in a weighted, undirected graph. It selects edges in order of increasing weight and adds them to the MST if they do not form a cycle.


Features

  • Graphical Visualization:

    • Original graph and MST are displayed side by side.
    • Chosen edges are highlighted in green, rejected edges in red.
    • Step-by-step animation showing the MST construction.
    • Edge weights and node labels are clearly displayed.
  • Non-Graphical Mode:

    • User can input adjacency matrix.
    • Algorithm prints chosen and rejected edges with minimum cost.
  • User-Friendly Interface:

    • Clickable buttons for choosing mode.
    • Auto-scrolling console for selected/rejected edges.

How to Run

  1. Clone the repository:
    git clone https://www.github.com/jadwinder/Kruskal_Algorithm_Visualizer.git
    cd Kruskal_Algorithm_Visualizer
    
    

Some Screenshots

image image image image image

About

Interactive Kruskal's Algorithm Visualizer in Java | Learn Minimum Spanning Tree with Graphical and Non-Graphical Modes

Topics

algorithm-visualizationcomputer-sciencedata-structuresgraphical-algorithmjavajava-gui-projectjavaswingkruskal-algorithmminimum-spanning-treestep-by-step-animation

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.