Home
last modified time | relevance | path

Searched refs:distTab (Results 1 – 1 of 1) sorted by relevance

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DLevenshteinDistance.java42 final int[][] distTab = new int[sourceSize+1][targetSize+1]; in LevenshteinDistance() local
44 distTab[0][0] = 0; in LevenshteinDistance()
47 distTab[i][0] = i; in LevenshteinDistance()
51 distTab[0][i] = i; in LevenshteinDistance()
54 mDistanceTable = distTab; in LevenshteinDistance()
69 final int[][] distTab = mDistanceTable; in calculate() local
77 int distance = distTab[s-1][t] + 1; in calculate()
80 int d = distTab[s][t - 1]; in calculate()
86 d = distTab[s - 1][t - 1]; in calculate()
91 distTab[s][t] = distance; in calculate()
[all …]