Some stand-alone algorithms implemented in Go. See my gist for the C version of some of the algorithms.
- Sorting Algorithms
- Recursive Descent Parser
rdp_rpn.goConvert a mathematical expression into Reverse Polish Notation.rdp_expr.goEvaluate mathematical expressions and print results.
- Abstract Syntax Tree
ast.goParse mathematical expressions to build an Abstract Syntax Tree. Evaluate the final AST.
- Trie Data Structure
trie.goTrie implementation. insert & lookup implemented with some test code.
- Shunting Yard Algorithm
shunting_yard.goParse mathematical expressions with shunting-yard algorithm and evaluate with a stack machine.
- Ray casting
- A* pathfinding
- See dodobyte/astar