-
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
b26c1e7
commit d0bf9b4
Showing
8 changed files
with
59 additions
and
37 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
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Authors: Felipe A. Louza, Simon Gog, Guilherme P. Telles | ||
* contact: [email protected] | ||
* 01/09/2015 | ||
*/ | ||
|
||
/* | ||
* This code is a modification of SACA-K algorithm by G. Nong, which can be | ||
* retrieved at: http://code.google.com/p/ge-nong/ | ||
* | ||
* Our version of SACA-K, called gSACA-K, maintain the theoretical bounds of the | ||
* original algorithm to construct the generalized suffix array. | ||
* | ||
*/ | ||
|
||
#ifndef GSACA_K_H | ||
#define GSACA_K_H | ||
|
||
#include <stdlib.h> | ||
#include <stdio.h> | ||
|
||
#include "../lib/utils.h" | ||
|
||
int_t SACA_K(int_t *s, uint_t *SA, | ||
uint_t n, unsigned int K, | ||
uint_t m, int cs, int level); | ||
|
||
int_t gSACA_K(unsigned char *s, uint_t *SA, | ||
uint_t n, unsigned int K, | ||
uint_t m, int cs, int level, unsigned char separator); | ||
|
||
#endif |
File renamed without changes.
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,7 +1,17 @@ | ||
// This is (a modification of) SA-IS algorithm, which can be retrieved at: | ||
// http://code.google.com/p/ge-nong/ | ||
// Our version of SAIS, called gSAIS, maintain the theoretical bounds of the | ||
// original algorithm to construct the generalized suffix array. | ||
/* | ||
* Authors: Felipe A. Louza, Simon Gog, Guilherme P. Telles | ||
* contact: [email protected] | ||
* 01/09/2015 | ||
*/ | ||
|
||
/* | ||
* This code is a modification of SA-IS algorithm by G. Nong, which can be | ||
* retrieved at: http://code.google.com/p/ge-nong/ | ||
* | ||
* Our version of SA-IS, called gSA-IS, maintain the theoretical bounds of the | ||
* original algorithm to construct the generalized suffix array. | ||
* | ||
*/ | ||
|
||
#ifndef GSAIS_H | ||
#define GSAIS_H | ||
|
@@ -11,7 +21,7 @@ | |
#include <memory.h> | ||
#include <time.h> | ||
|
||
#include "lib/utils.h" | ||
#include "../lib/utils.h" | ||
|
||
#define tget(i) ( (t[(i)/8]&mask[(i)%8]) ? 1 : 0 ) | ||
#define tset(i, b) t[(i)/8]=(b) ? (mask[(i)%8]|t[(i)/8]) : ((~mask[(i)%8])&t[(i)/8]) | ||
|