-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d86fd08
commit 0c2c8f5
Showing
4 changed files
with
48 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// vim: noai:ts=2:sw=2 | ||
|
||
/* | ||
* Authors: Felipe A. Louza, Simon Gog, Guilherme P. Telles | ||
* contact: [email protected] | ||
|
@@ -92,19 +94,25 @@ int sacak_int(int_text *s, uint_t *SA, uint_t n, uint_t k); | |
/** @brief Computes the suffix array SA (LCP, DA) of T^cat in s[0..n-1] | ||
* | ||
* @param s input concatenated string, using separators s[i]=1 and with s[n-1]=0 | ||
* @param SA suffix array | ||
* @param SA Suffix array | ||
* @param LCP LCP array | ||
* @param DA Document array | ||
* @param n string length | ||
* @param n String length | ||
* | ||
* @return depth of the recursive calls. | ||
*/ | ||
int gsacak(unsigned char *s, uint_t *SA, int_t *LCP, int_da *DA, uint_t n); | ||
|
||
/** @brief Computes the suffix array SA (LCP, DA) of T^cat in s[0..n-1] | ||
* | ||
* @param s input concatenated string, with s[n-1]=0 | ||
* @param K alphabet size | ||
* @param s input concatenated string, using separators s[i]=1 and with s[n-1]=0 | ||
* @param SA Suffix array | ||
* @param LCP LCP array | ||
* @param DA Document array | ||
* @param n String length | ||
* @param K Alphabet size | ||
* | ||
* @return depth of the recursive calls. | ||
*/ | ||
int gsacak_int(int_text *s, uint_t *SA, int_t *LCP, int_da *DA, uint_t n, uint_t k); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// vim: noai:ts=2:sw=2 | ||
|
||
/* | ||
* Authors: Felipe A. Louza, Simon Gog, Guilherme P. Telles | ||
* contact: [email protected] | ||
|
@@ -75,9 +77,9 @@ typedef uint_t int_da; | |
/** @brief computes the suffix array of string s[0..n-1] | ||
* | ||
* @param s input string with s[n-1]=0 | ||
* @param SA suffix array | ||
* @param SA suffix array | ||
* @param n string length | ||
* @return -1 if an error occured, otherwise the depth of the recursive calls. | ||
* @return -1 if an error occured, otherwise the depth of the recursive calls. | ||
*/ | ||
int sais(unsigned char *s, uint_t *SA, uint_t n); | ||
|
||
|
@@ -91,20 +93,27 @@ int sais_int(int_text *s, uint_t *SA, uint_t n, uint_t k); | |
|
||
/** @brief Computes the suffix array SA (LCP, DA) of T^cat in s[0..n-1] | ||
* | ||
* @param s input concatenated string, using separators s[i]=1 and with s[n-1]=0 | ||
* @param SA suffix array | ||
* @param LCP LCP array | ||
* @param DA Document array | ||
* @param n string length | ||
* | ||
* @param s input concatenated string, using separators s[i]=1 and with s[n-1]=0 | ||
* @param SA Suffix array | ||
* @param LCP LCP array | ||
* @param DA Document array | ||
* @param n String length | ||
* @param K alphabet size | ||
* | ||
* @return depth of the recursive calls. | ||
*/ | ||
int gsais(unsigned char *s, uint_t *SA, int_t *LCP, int_da *DA, uint_t n); | ||
|
||
/** @brief Computes the suffix array SA (LCP, DA) of T^cat in s[0..n-1] | ||
* | ||
* @param s input concatenated string, with s[n-1]=0 | ||
* @param K alphabet size | ||
* @param s input concatenated string, using separators s[i]=1 and with s[n-1]=0 | ||
* @param SA Suffix array | ||
* @param LCP LCP array | ||
* @param DA Document array | ||
* @param n String length | ||
* @param K Alphabet size | ||
* | ||
* @return depth of the recursive calls. | ||
*/ | ||
int gsais_int(int_text *s, uint_t *SA, int_t *LCP, int_da *DA, uint_t n, uint_t k); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters