Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
edit_distance_example.cc File Reference

Illustrative example for Levenshtein edit distance. More...

#include <iostream>
#include <string>
#include <String_DP.H>
Include dependency graph for edit_distance_example.cc:

Go to the source code of this file.

Functions

int main ()
 Example program that computes and prints the Levenshtein distance.
 

Detailed Description

Illustrative example for Levenshtein edit distance.

Definition in file edit_distance_example.cc.

Function Documentation

◆ main()

int main ( )

Example program that computes and prints the Levenshtein distance.

Prints two example strings ("kitten" and "sitting") and their Levenshtein distance computed via levenshtein_distance().

Returns
int Program exit status: 0 on successful completion.

Definition at line 52 of file edit_distance_example.cc.

References Aleph::levenshtein_distance().