To practice some C I have been looking at the Burrows-Wheeler
Transform.
Ive got a small program that builds the initial table of possible
combinations of the original string, used to find the compressed
result, but there are some notes about using BWT without having to
build a table of strings, instead using pointers to the offset in the
original and just sorting those.
My question is how do you return a pointer to "bcda" from "abcd"
I started by doing something like
char * ptr[input_str];
for i =0 ; i < len(input_str); i++) {
ptr[i] = (input_str + i);
}
but then that only gives "abcd" -"bcd " when i = 1.
Transform.
Ive got a small program that builds the initial table of possible
combinations of the original string, used to find the compressed
result, but there are some notes about using BWT without having to
build a table of strings, instead using pointers to the offset in the
original and just sorting those.
My question is how do you return a pointer to "bcda" from "abcd"
I started by doing something like
char * ptr[input_str];
for i =0 ; i < len(input_str); i++) {
ptr[i] = (input_str + i);
}
but then that only gives "abcd" -"bcd " when i = 1.
Comment