Showing posts with label lowest common ancestor. Show all posts
Showing posts with label lowest common ancestor. Show all posts

Friday, December 10, 2010

SPOJ QTREE2

I'm back after a long break; longer than I anticipated. I was reading a Topcoder tutorial on Range Minimum Query (RMQ) and Lowest Common Ancestor (LCA) problems. Here's a comparison table of the algorithms presented in the tutorial -