fpvyzv600's blog

By fpvyzv600, 12 years ago, In English

Hi everyone, I'm trying to solve 316E3 - Summer Homework. Despite reading the tutorial link, I could't understand clearly the solution. Could you explain me more detail??

  • Vote: I like it
  • +5
  • Vote: I do not like it

»
12 years ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

The key is the merging step

While merging and , we need to shift the Fibonacci multiplier of the second one by (l2 - r1) to the right , so that we get

Shifting can be done by using identity Fn + m = FnFm - 1 + Fn + 1Fm