rmq icon indicating copy to clipboard operation
rmq copied to clipboard

query about paper

Open vimalk78 opened this issue 7 years ago • 1 comments

hi,

I am referring to the paper at the following link : https://www.ics.uci.edu/~eppstein/261/BenFar-LCA-00.pdf

i had two queries about the paper in the section 3 "A Faseter RMQ Algorithm" lca-revisited

  1. missing indexing into array A. should it be M[i,j] = M[i,j-1] if A[M[i,j-1]] <= A[M[i+2^(j-1)-1,j-1]]
  2. does the i+2^(j-1)-1 index implies an overlap between previously computed ranges? will the below not work? M[i,j] = M[i,j-1] if A[M[i,j-1]] <= A[M[i+2^(j-1),j-1]]

thanks,

vimalk78 avatar Jun 02 '18 23:06 vimalk78

Regarding #1, I think you're right. You may want to email the authors.

Regarding #2, I'm not absolutely sure, a worked example might help. You might be right but I'm not 100% sure.

leifwalsh avatar Jul 01 '18 23:07 leifwalsh