Skip to content

vincom2/SML

Repository files navigation

Current contents:
ptest.sml - contains bad recursive code to generate permutations in no particular order
isprime.sml - contains bad trial division code for primality testing
bogosort.sml - Uh
subsetsum.sml - inefficient subset sum that returns the subset too. but so pretty x.x
powerset.sml - two pieces of shitty code that both return the power set of a list... in different orders :P
trees/btree.sig - a signature for a BST
trees/avltree.sml - An AVL tree implementation of a self-balancing BST
span.sml - span : ('a -> bool) -> 'a list -> 'a list * 'a list
meant to behave like the Haskell list function span, more or less (at least, I hope it does!). Treat initials like really stupid test code for it.
nqueens.sml - contains a slow N queens solver. Slow as in it literally tries all squares in sequence. Mainly there for fun with continuations and refs.

About

me messing with SML. the code is useless and bad. don't look at it!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published