Skip to content

An O(1) (worst case for both union and find) algorithm for the union-find problem

License

Notifications You must be signed in to change notification settings

SebOuellette/Fast-UnionFind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast-UnionFind

An O(1) (worst case for both union and find) algorithm for the union-find problem

Disclaimer

The main.c file just uses the algorithm, and does all the memory management, so it is a bit bulky since this is written in C. To see the actual algorithm, look in the DataTypes.c and DataTypes.h files.

Original Plan

I came up with this while I was at work, so I wrote it down on a piece of cardboard.. Here's that plan if you can make any of it out. Original plan

About

An O(1) (worst case for both union and find) algorithm for the union-find problem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published