🔎🎓 Search Contact Using Levenshtein [HS]

by Florian HubSpace

Version 1 (February 3, 2017)

Download (325 downloads)

This flow query the telephony data content provider to get all contacts and store them in an array.
The user has to input a name via voice recognition or text input.
Due the input may not equals the telephone entry with a match of 100% we need to calculate the levenshtein value for each contact.
Afterwards we sort our array by this value and the name with the highest (lowest) conformity will be returned.


The performance of this algorithm could be improved by finding the lowest levenshtein value instead of sorting the whole array.

5.0 average rating from 2 reviews

5 stars
2
4 stars
0
3 stars
0
2 stars
0
1 star
0
Warnings
0

Reviews and ratings can be submitted in the app.