go-ds
go-ds copied to clipboard
Add algorithms
Implement any algorithm:
- Huffman coding algorithm
- Dijkstra's algorithm
- Prim's algorithm [DONE]
- Kruskal's algorithm [DONE]
- Tim sort [DONE]
- Cocktail sort [DONE]
- Cycle sort [DONE]
- Bitonic sort [DONE]
Rules
- Add yourprogram.go file to the respective folder for example sort will go to Array/sort/yoursort
- Add yourprogram_test.go file and write all possible test cases
- Add Readme.md
Sounds great ill try some of those!
Was thinking about implementing a trie or maybe an ADT (Abstract Data Type) for graphs, in order to make coding Prim or Kruskal easier (wouldn't need to reimplement the ADT every time.
Let me know if any of those interest you :)
@gmelodie sounds good, go ahead!
Have already added, cocktail implementation. Please check @ektagarg
Added Dijkstra shortest path, Please check @ektagarg