Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 530 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 530 Bytes

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