// lpc.c
// << Algorithmique du texte >>
// Maxime Crochemore, Christophe Hancart et Thierry Lecroq
// Vuibert, 2001.
#include <stdio.h>
#include "chl.h"
extern int *LPC;
extern int n;
int lpc(int d, int f) {
if (d + 1 == f)
return(LPC[f]);
else
return(LPC[n + 1 + (d + f)/2]);
}