sa-is

Crates.iosa-is
lib.rssa-is
version0.1.0
created_at2025-01-03 22:53:01.791027+00
updated_at2025-01-03 22:53:01.791027+00
descriptionThe SA-IS algorithm for suffix array construction.
homepage
repositoryhttps://github.com/oguzbilgener/sa-is
max_upload_size
id1503040
size24,570
Oğuz Bilgener (oguzbilgener)

documentation

README

sa-is

Suffix Array Induced Sorting (SA-IS) algorithm based on the paper "Linear Suffix Array Construction by Almost Pure Induced-Sorting" by G. Nong, S. Zhang and W. H. Chan and the C++ implementation in Chromium.

Usage

use sa_is::make_suffix_array;

let answer = make_suffix_array(b"banana", char::MAX as usize);
assert_eq!(answer, [5, 3, 1, 0, 4, 2]);

License

This project is licensed under both the BSD-3-Clause and MIT licenses:

  1. The original code from the Chromium project is licensed under the BSD-3-Clause license.
  2. Any new contributions made to this project are licensed under the MIT license.

See the LICENSE file for details.

Commit count: 6

cargo fmt