Algorithms for Analyzing Spatio-Temporal Data