Closed dpasiukevich closed 4 years ago
On the second thought, if we do this table generation in sort of "bottom up" approach, then for each node n
we will already generate values for its every successor, and we can use succ(succ(x, k/2), k/2)
, thus making it O(nlogu)
Btw, your book is one of the best in the field, thank you for your work!
In chapter 16.3
Shouldn't it be
O(nu)
time andO(nlogu)
space? I'm wondering how can we reachu
succesor of noden
inlogu
time at this moment?