Code Examples
I've provided a few code examples from courses I've taught.
They're provided with the standard "use at your own risk" disclaimer.
Due to weird browser behavior all of the code files are .txt.
I also have a hobby of implementing "standard" algorithms, and I frequently vacillate between sharing them publicly (as code examples can be quite illuminating) or not (because evil people cheat).
- Demonstrating the C++ implicit constructor and its utility.
- Bin-packing algorithm: optimal and practical solutions (both in Python 2.7).
- Things I'm not publicly showing: a Huffman encoder, a CYK implementation, an FFT implementation, and more.
- Update: because it's the only thing anyone has ever asked for, and because who-am-I-kidding-no-one-teaches-this-anymore, I had posted the CYK implementation at this github. I hope you find it illuminating! It's a bit ad-hoc regarding input/output/symbol representation...