# pysuffixarray Suffix array implementation in python.
## Usage ### pysuffixarray.core.SuffixArray(string) Constructs a suffix array. `python from pysuffixarray.core import SuffixArray sa = SuffixArray('MISSISSIPPI') `
### SuffixArray.suffix_array() Returns a suffix array. `python sa = SuffixArray('MISSISSIPPI') sa.suffix_array() >>> [11, 10, 7, 4, 1, 0, 9, 8, 6, 3, 5, 2] `
### SuffixArray.longest_common_prefix() Returns an array of longest common prefix(LCP). LCP[i] contains the length of common prefix between SA[i] and SA[i-1]. `python sa = SuffixArray('MISSISSIPPI') sa.longest_common_prefix() >>> [0, 0, 1, 1, 4, 0, 0, 1, 0, 2, 1, 3] `
### SuffixArray.longest_repeated_substring() Returns one of the longest repeated substrings within the string. `python sa = SuffixArray('MISSISSIPPI') sa.longest_repeated_substring() >>> 'ISSI' `
Metadata
Release files for pysuffixarray 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pysuffixarray-0.0.1.tar.gz | 2.8 kB | Without provenance | Details for pysuffixarray-0.0.1.tar.gz |
Release files / pysuffixarray-0.0.1.tar.gz
| Download URL | pysuffixarray-0.0.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83b6f9e458029af163c66174614cf3e4b8bea8c284278fb26db5035dc487d175
|
|
BLAKE2b-256 checksum How to use checksums |
8b8329ed2524a17730ce560cba32f524dba4554d05f064b70ef190c8bc8f0861
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pysuffixarray 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.