Consider a full-period LSFR with a feedback polynomial of degree n. In the cyclic sequence generated by the LSFR, each n-bit sequence appears exactly once. Given two n-bit sequences, one can define the distance as the number of application of the recursion rule that are needed to move from the first to the second sequence (note that this will not be symmetric). The distance can obviously be computed by iterating the LSFR until the second sequence is met, but this is unfeasible unless n is very small.
Is there a better (say, $O(n)$ or $O(n^2)$ instead of $O(2^n)$) way?