erikd / vector-algorithms

Other
23 stars 15 forks source link

Adding new algorithms? #20

Open merijn opened 5 years ago

merijn commented 5 years ago

Great that vector-algorithms is now on GitHub, since I couldn't be bothered to deal with darcs!

Is there an idea of how to deal with the inclusion of non-sorting algorithms. Obviously the current module hierarchy is a bit...inconvenient since it doesn't split by algorithm and all the algorithms are currently sorts. I've been wanting to add an implementation for (partial) Fisher-Yates shuffles to vector-algorithms (if I ever find the time...), but I'm unsure how I should make it fit within the module hierarchy...

erikd commented 5 years ago

If we add something big, the module hierarchy could be rearranged and we could bump the version numbers appropriately.

Boarders commented 3 years ago

I also wanted to add new algorithms and wonder what module name would be the best place for it. It could be something like Data.Vector.Algorithms or something like Data.Vector.Algorithms.Util. Eventually if more were added then it would be good to put the sort hierarchy into the form Data.Vector.Algorithms.Sort.[X].