Euphoria
editdistance.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 namespace eu
5 {
6  // todo(Gustav): replace with one single algorithm
7 
8  // Levenshtein Distance Algorithm: C++ Implementation
9  // by Anders Sewerin Johansen
10  // http://www.merriampark.com/ldcpp.htm
11  int
12  calc_edit_distance(const std::string& source, const std::string& target);
13 
14 
15  // https://www.codeproject.com/Articles/13525/Fast-memory-efficient-Levenshtein-algorithm
16  // licensed under: The Code Project Open License (CPOL) 1.02
17  int
18  calc_edit_distance_fast(const std::string& the_row, const std::string& the_col);
19 }
Definition: assert.h:90
int calc_edit_distance_fast(const std::string &the_row, const std::string &the_col)
Definition: editdistance.cc:86
int calc_edit_distance(const std::string &source, const std::string &target)
Definition: editdistance.cc:14