search_package_one 1.0.1 copy "search_package_one: ^1.0.1" to clipboard
search_package_one: ^1.0.1 copied to clipboard

This package provides implementations of common search algorithms including Linear Search, Binary Search, and Jump Search. Each search function returns the index of the target element if found, otherw [...]

Search Algorithms Package #

This Dart package provides implementations of common search algorithms:

  • Linear Search
  • Binary Search
  • Jump Search

Features #

  • Linear Search: Sequentially searches through the list and returns the index of the target element if found. If not found, it returns -1.
  • Binary Search: Efficiently searches in a sorted list by repeatedly dividing the search interval in half. Requires the list to be sorted.
  • Jump Search: Searches in a sorted list by jumping ahead by a fixed step size and then performing a linear search within the identified block. Requires the list to be sorted.

Installation #

Add the following dependency to your pubspec.yaml file:

dependencies:
  search_algorithms:
    git:
      url: https://github.com/yourusername/search_algorithms.git
1
likes
0
points
7
downloads

Publisher

unverified uploader

Weekly Downloads

This package provides implementations of common search algorithms including Linear Search, Binary Search, and Jump Search. Each search function returns the index of the target element if found, otherwise it returns -1.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

repository, test

More

Packages that depend on search_package_one