Algorithm Snippets

28 June, 2012   

Function to generate soundex code for any string (usually a name). Conforms to Knuth's algorithm and the common Perl implementation.

C code snippet for merging sort algorithm to sort

Source code for KMP String Search Algorithm

18 February, 2013   

A C++ algorithm which encrypts an alphanumeric password.

26 August, 2015   

A program which gives a lexigraphic permutation generator.

PHP’s rmdir function does not allow the deletion of a folder if it is not empty.

C++ source code for a portable card deck class with shuffling