Home C Code Snippets

C Code Snippets

ASCII - EBCDIC conversion functions - ASCII - EBCDIC conversion functions

Huffman Coding - To encode a message using minimum number of symbols, Huffman codes is used. One of big advantages of Huffman code is that given a message string built from Huffman codes, we can uniquely divide the message into the patterns of individual characters.

Caculate Edit Distance between Two Strings - The edit distance between two strings is the minimum number of characters in one string to be updated, inserted, or deleted to get the second string.

Soundex Function Implementation - The soundex scheme is used to compare phonetically equal strings. it is applied in voice recognition.