libdivsufsort
libdivsufsort is a software library that implements a lightweight suffix array construction algorithm.
News
2015-03-21: The project has moved from Google Code to GitHub
Introduction
This library provides a simple and an efficient C API to construct a suffix array and a Burrows-Wheeler transformed string from a given string over a constant-size alphabet. The algorithm runs in O(n log n) worst-case time using only 5n+O(1) bytes of memory space, where n is the length of the string.
Build requirements
An ANSI C Compiler (e.g. GNU GCC)
CMake version 2.4.2 or newer
CMake-supported build tool
Building on GNU/Linux
Get the source code from GitHub. You can either
use git to clone the repository
or download a zip file directly
Create a
build
directory in the package source directory.
Configure the package for your system. If you want to install to a different location, change the -DCMAKE_INSTALL_PREFIX option.
Compile the package.
(Optional) Install the library and header files.
API
Example Usage
See the examples directory for a few other examples.
Benchmarks
See Benchmarks page for details.
License
libdivsufsort is released under the MIT license.
The MIT License (MIT)
Copyright (c) 2003 Yuta Mori All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Author
Yuta Mori