Searched refs:distances (Results 1 – 1 of 1) sorted by relevance
214 vector<int> distances(a.size() + 1); in LevenshteinDistance() local215 std::iota(distances.begin(), distances.end(), 0); in LevenshteinDistance()218 distances[0] = i; in LevenshteinDistance()222 std::min({distances[j] + 1, in LevenshteinDistance()223 distances[j - 1] + 1, in LevenshteinDistance()225 previous_distance = distances[j]; in LevenshteinDistance()226 distances[j] = new_distance; in LevenshteinDistance()229 return distances.back(); in LevenshteinDistance()