Friday, August 09, 2013

Simple Counting Sort, in Python

For fun, I coded this up a while ago - both to review the details of implementing a counting sort (which is super-fast, since it does no comparisons!) and to review the details of implementing a Linux "pipeline" program in python.

Enjoy!
-pbr


https://gist.github.com/PaulReiber/6193485

https://gist.githubusercontent.com/PaulReiber/6193485/raw/7678f484648ad89608166c158ab8b00b98735394/countsort.py

No comments:

Post a Comment