Algorithms_in_C 1.0.0
Set of algorithms implemented in C.
|
Hamming distance algorithm implementation. More...
#include <assert.h>
#include <stdio.h>
Functions | |
int | hamming_distance (char *str1, char *str2) |
for assert | |
static void | test () |
Self-test implementations. | |
int | main () |
Main function. | |
Hamming distance algorithm implementation.
In information theory, the Hamming distance between two strings of equal length is the number of positions at which the corresponding symbols are different.
int hamming_distance | ( | char * | str1, |
char * | str2 | ||
) |
for assert
for IO operations
Function to calculate the Hamming distance between two strings
param1 | string 1 |
param2 | string 2 |
int main | ( | void | ) |
|
static |
Self-test implementations.