Re:Sliding right into disaster: Left-to-right sliding window...
by 19eightyfour on Sunday July 02, 2017 @10:26PM
(#14685500)
Okay, I saw that, but thanks for saying it. What does right to left mean specifically? How would you compute it without a sliding window / or make it fixed time?
[ Parent
| on HN ]
Re:Sliding right into disaster: Left-to-right sliding window...
by dfox on Monday July 03, 2017 @06:28AM
(#14687230)
Straightforward implementation involves taking exponent bits from the MSB on and multiplicating by the base for 1 bits and then squaring the intermediate result.
Straightforward way to make this constant time is to do the multiplication always and discard the result for 0 bits.
Motivation of the sliding window algoritms is that they are faster and also believed to be "more constant time" than the straightforward square and multiply.
Re:Sliding right into disaster: Left-to-right sliding window...
by 19eightyfour on Monday July 03, 2017 @11:18AM
(#14688849)
Thanks.