search_algorithms_flutter library

Functions

binarySearch(List<String> data, String searchTerm) int
Binary search algorithm
jumpSearch(List<String> data, String searchTerm) int
Jump search algorithm
linearSearch(List<String> data, String searchTerm) int
Linear search algorithm
measureTime(Function func) Map<String, dynamic>
Measures the time taken by the search function and returns the result along with elapsed time.