sparse Table Vs segment tree

Revision en1, by uttom, 2016-08-03 08:06:17

For preprocessing in segment tree and sparse table Both takes O(nlogn) times. And in every query both takes O(log(n)) times. But How sparse Table faster than Segment tree? Thanks in Advance.

Tags #data structure

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English uttom 2016-08-03 08:06:17 229 Initial revision (published)