Parallel Variable Gapped Longest Common Sequence (Parallel-VGLCS)
#include "VGLCS.h"
...
int main() {
...
#define MAXN 5005
char A[MAXN], B[MAXN];
short GA[MAXN], GB[MAXN];
int nA, nB;
int lcs_len = serial_VGLCS(nA, A, GA, nB, B, GB);
// parallel version
// int lcs_len = parallel_VGLCS(nA, A, GA, nB, B, GB);
...
}
make
./unit
make DEBUG=1
./unit