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

Supports lists of integers and strings, returning the index of target element or -1 if not found.

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
155
points
7
downloads

Publisher

unverified uploader

Weekly Downloads

Supports lists of integers and strings, returning the index of target element or -1 if not found.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

repository, test

More

Packages that depend on search_package_one