Skip to content

Various data-structures and other toys implemented in Mojo🔥.

License

Notifications You must be signed in to change notification settings

dimitrilw/toybox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toybox

Various data-structures and other toys implemented in Mojo🔥.

Mojo Nightly 2024.5.1607

Mojo data structures

package

  1. Clone repo & cd into it.
  2. Run: mojo package toybox/toybox -o /path/to/your/packages/toybox.mojopkg

toys

disjoint set

aka "union find", aka "merge find", aka "merge set", aka "disjoint set union (DSU)"

heap (priority queue)

aka "binary heap", aka "min heap", aka "max heap"

example use

See the tests directory. While files like test_disjointset.mojo are just testing the DisjointSet implementation, files like test_disjointset_example_kruskal_mst.mojo provide an example usage.

external dependencies

Until Mojo has a mature package manager, this repository keeps dependencies in the external/ directory.

About

Various data-structures and other toys implemented in Mojo🔥.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages