search_algorithms
A Dart package that implements various search algorithms such as Linear Search, Binary Search, and Jump Search. Each search function returns the index of the element if found, and -1 otherwise. Additionally, the time taken to perform the search is provided in microseconds.
Features
- Linear Search
- Binary Search
- Jump Search
Usage
First, add the dependency in your pubspec.yaml
file:
dependencies:
search_algorithms: ^1.0.0