Time-Variant Spatial Network Model Vijay Gandhi, Betsy George (Group : G04) Group Project Overview of Database Research Fall 2006.

Slides:



Advertisements
Similar presentations
Lecture 7. Network Flows We consider a network with directed edges. Every edge has a capacity. If there is an edge from i to j, there is an edge from.
Advertisements

Single Source Shortest Paths
§3 Shortest Path Algorithms Given a digraph G = ( V, E ), and a cost function c( e ) for e  E( G ). The length of a path P from source to destination.
Evaluating “find a path” reachability queries P. Bouros 1, T. Dalamagas 2, S.Skiadopoulos 3, T. Sellis 1,2 1 National Technical University of Athens 2.
Approximation Algorithms Chapter 14: Rounding Applied to Set Cover.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
Evolving Graphs & Dynamic Networks : Old questions  New insights Afonso Ferreira S. Bhadra CNRS I3S & INRIA Sophia Antipolis
Modeling Spatio-temporal Network Computations Betsy George, Shashi Shekhar Department of Computer Science and Engineering University of Minnesota Second.
Dynamic Pickup and Delivery with Transfers* P. Bouros 1, D. Sacharidis 2, T. Dalamagas 2, T. Sellis 1,2 1 NTUA, 2 IMIS – RC “Athena” * To appear in SSTD’11.
CS38 Introduction to Algorithms Lecture 5 April 15, 2014.
Lectures on Network Flows
Chapter 7 Maximum Flows: Polynomial Algorithms
1 Spanning Trees Lecture 20 CS2110 – Spring
3 -1 Chapter 3 The Greedy Method 3 -2 The greedy method Suppose that a problem can be solved by a sequence of decisions. The greedy method has that each.
Shortest Paths Definitions Single Source Algorithms –Bellman Ford –DAG shortest path algorithm –Dijkstra All Pairs Algorithms –Using Single Source Algorithms.
Placement of Integration Points in Multi-hop Community Networks Ranveer Chandra (Cornell University) Lili Qiu, Kamal Jain and Mohammad Mahdian (Microsoft.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Mobile Ad Hoc Networks Theory of Data Flow and Random Placement.
Temporal Databases. Outline Spatial Databases Indexing, Query processing Temporal Databases Spatio-temporal ….
Greedy Algorithms Reading Material: Chapter 8 (Except Section 8.5)
Shortest Paths Definitions Single Source Algorithms
Tracking Moving Objects in Anonymized Trajectories Nikolay Vyahhi 1, Spiridon Bakiras 2, Panos Kalnis 3, and Gabriel Ghinita 3 1 St. Petersburg State University.
1 Time-Aggregated Graphs- Modeling Spatio-temporal Networks August 29, 2008 Department of Computer Science and Engineering University of Minnesota Prof.
Scalable Network Distance Browsing in Spatial Database Samet, H., Sankaranarayanan, J., and Alborzi H. Proceedings of the 2008 ACM SIGMOD international.
Greedy Algorithms Like dynamic programming algorithms, greedy algorithms are usually designed to solve optimization problems Unlike dynamic programming.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 11 Instructor: Paul Beame.
Capacity Constrained Routing Algorithms for Evacuation Planning: A Summary of Results Speaker: Chen-Nien Tsai.
1 Time-Aggregated Graphs- Modeling Spatio-temporal Networks September 7, 2007 Betsy George Department of Computer Science and Engineering University of.
Dynamic Sets and Data Structures Over the course of an algorithm’s execution, an algorithm may maintain a dynamic set of objects The algorithm will perform.
Dynamic Networks & Evolving Graphs Afonso Ferreira CNRS I3S & INRIA Sophia Antipolis With Aubin Jarry.
Improving Min/Max Aggregation over Spatial Objects Donghui Zhang, Vassilis J. Tsotras University of California, Riverside ACM GIS’01.
© The McGraw-Hill Companies, Inc., Chapter 3 The Greedy Method.
Project presentation 1. Agenda Motivation Problem Statement Related Work Proposed Solution Hierarchical routing theory 2.
2IL05 Data Structures Fall 2007 Lecture 13: Minimum Spanning Trees.
Spring 2015 Lecture 11: Minimum Spanning Trees
Greedy algorithms David Kauchak cs161 Summer 2009.
Spanning Trees CSIT 402 Data Structures II 1. 2 Two Algorithms Prim: (build tree incrementally) – Pick lower cost edge connected to known (incomplete)
Lectures on Greedy Algorithms and Dynamic Programming
Group 8: Denial Hess, Yun Zhang Project presentation.
Presentation Template KwangSoo Yang Florida Atlantic University College of Engineering & Computer Science.
CS223 Advanced Data Structures and Algorithms 1 Maximum Flow Neil Tang 3/30/2010.
Trends: Spatio-temporal graphs Introduction to Spatial Computing.
SPANNING TREES Lecture 21 CS2110 – Fall Nate Foster is out of town. NO 3-4pm office hours today!
Minimum Spanning Trees CSE 373 Data Structures Lecture 21.
1 Sections 2.5 and 4.4 Priority Queues and Dijkstra’s Algorithm For Shortest Paths Some Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
Temporal Databases. Outline Spatial Databases Indexing, Query processing Temporal Databases Spatio-temporal ….
Spatial Networks Introduction to Spatial Computing CSE 5ISC Some slides adapted from Shashi Shekhar, University of Minnesota.
Zaiben Chen et al. Presented by Lian Liu. You’re traveling from s to t. Which gas station would you choose?
Simulation Examples And General Principles Part 2
Honors Track: Competitive Programming & Problem Solving Seminar Topics Kevin Verbeek.
New Characterizations in Turnstile Streams with Applications
Upper Bound for Defragmenting Buddy Heaps
DS595/CS525 Team#2 - Mi Tian, Deepan Sanghavi, Dhaval Dholakia
Lectures on Network Flows
CS 3343: Analysis of Algorithms
Analysis and design of algorithm
CS 3343: Analysis of Algorithms
Automatic Physical Design Tuning: Workload as a Sequence
Greedy Technique.
Algorithms (2IL15) – Lecture 2
4.4 Shortest Paths in a Graph
Minimum Spanning Trees
EE5900 Advanced Embedded System For Smart Infrastructure
Brad Karp UCL Computer Science
Maximum Flow Neil Tang 4/8/2008
Winter 2019 Lecture 11 Minimum Spanning Trees (Part II)
COMPUTER NETWORKS CS610 Lecture-16 Hammad Khalid Khan.
Data Structures and Algorithm Analysis Lecture 8
More Graphs Lecture 19 CS2110 – Fall 2009.
Autumn 2019 Lecture 11 Minimum Spanning Trees (Part II)
Presentation transcript:

Time-Variant Spatial Network Model Vijay Gandhi, Betsy George (Group : G04) Group Project Overview of Database Research Fall 2006

Outline Motivation Related Work Problem Statement Contributions Future Work

Motivation A network is a system that allows its abstract representation as a graph Most networks change with time

Problem Definition Given : A set of frequent queries posed on a Network; Changes in the network with time. Output : A model that supports efficient and correct algorithms for computing the query results. Objective : Minimize storage and computation costs. Constraints : Edge cost are positive.

Related Work: Time Expanded Graphs N1 N2 N3 N N1 N2 N3 N N1 N2 N3 N t = 1 t = 3t = 2 N1 N2 N3 N4 Time Expanded Graph Representation Graph changing over time

A Conceptual Model t = 1 N1 N2 N3 N N1 N2 N3 N N1 N2 N3 N t = 3t = 2 Time series of snapshots

A Physical Model Time Aggregated Graph 1,1, 2,2,3 N1 N2 N3 N4 1,,4 2,2,2 8 8 Attributes are aggregated over edges and nodes. N1 N2 N3 N N1 N2 N3 N N1 N2 N3 N t = 3t = 2

Physical Model - Finding the shortest path Challenge Not all shortest paths display optimal substructure. Lemma 1: If there is a path from source to destination in the time aggregated graph then there is at least one optimal path which satisfies the optimal substructure property. How do we address this? [1,4] N2 N3 N4N1N5

Physical Model - Finding the shortest path Uses a greedy algorithm to find the shortest path At every step, Picks the node with the least cost. Chooses the edge that is available at the earliest.

Time Dependency of Shortest Paths Start time Shortest PathTravel time t=1N1-N2-N36 t=2N1-N2-N35 t=3N1-N2-N34 Shortest Path Travel time is time-dependent Best-Start-Time Shortest Path Shortest Paths N2 N1 N3 1,2,2,2,2,22,--,--,--,2,2

Best Start Time Shortest Paths Challenges Prefixes need not be optimal Optimal prefix can lead to longer waits N2 N1 N3 1,2,2,2,2,22,--,--,--,2,2 Start time Shortest Path Travel time t=1N1-N2-N36 t=3N1-N2-N34

Best Start Time Shortest Paths Strategies Minimize waits by postponing the start of the journey Reduce search space by forming path classes Journeys with consecutive start times Same travel times Pruning Node count in a shortest path is bounded by n. Eliminate irrelevant journeys

Experimental Design

Experimental Results

A Logical Model Examples of Logical Operators

Future Work Heuristics need to be explored for Best- start-time path algorithm to improve the performance. Add spatial properties to nodes, edges Extend spatial graph indexing methods to time-aggregated graphs Incorporate capacities on edges.

Questions?

Related Work Temporally Variable Transportation Networks (Ding,Guting, 2003) Models state changes over time ( ie. open, closed, blocked) Shortest paths computed at an instant Stochastic Networks (Miller-Hooks etal., 1998) Travel times are modeled as independent random variables. Computes least expected time paths. Computational complexity O(I 3 v 3 P) Graphs over time (Leskovec etal, 2005) Deals with how graphs evolve over time. Densification, Shrinking diameters

Related Work (contd.) Using flow networks (Fleisher etal, 2002) Uses time expanded networks Dynamic Graphs (Demetrsecu etal, 2004) Fully dynamic Algorithms that minimize recomputation.

Algorithm – Finding Shortest Path Initialize c[s] = 0;  v (  s), c[v] = ∞. Insert s in the priority queue Q. while Q is not empty do u = extract_min(Q); close u (C = C  {u}) for each node v adjacent to u do { t = min_t((u,v), c[u]); // min_t finds the earliest departure time for (u,v) If t +  u,v (t) < c[v] c[v] = t +  u,v (t) parent[v] = u insert v in Q if it is not in Q; } Update Q.

Cost Model For each node extracted from Q, for every adjacent node v, there is one edge schedule look up and a heap update.  O(log f E + log n). n : Number of nodes in the time aggregated graph f E : Frequency of edge presence Total cost = O (  [degree(v).(log f E + log n)]) = O(m(log f E + log n)) V  N

Patient Shortest Paths Path Classes P = (R, I(S,  )) R = e 1, …., e k S = t 1, ….., t k  - Validity interval uvw 34 13

Patient Shortest Paths Lemma : The number of maximal relevant path classes from u to v that contains k nodes is bounded by 2m f E Proof Sketch : P = (R, I(S,  )).  max – largest integer such that (R, I(S,  )) is valid. a)  =  max : t i +  is the upper extremity of presence interval of e i. b)  max >  : t i is the lower limit of presence interval of e i

Patient Shortest Path : Algorithm Key Components Append : Adds an edge (u,v) to the list of classes (P, I(S,  )) of paths from s to u. Merge : Merges the output of ‘append’ to existing list, while eliminating irrelevant paths.

Patient Shortest Path Algorithm Append : dep(u,v) – earliest availability of edge (u,v) after arrival(P,S). t u – upper limit of presence interval Case 1) arr(P, S) +   dep(u,v) Case 2) arr(P, S)  dep(u,v) uv dep(u,v) Arr(P,S)+  Class collapses to single path Advance entire schedule by  Set  = 0 Arr(P,S) dep(u,v) Advance entire schedule by  incr Set  =  -  incr  incr

Patient Shortest Path - Algorithm Case 2a) arr(P, S) +  > t u  incr tutu arr(P, S) +  Move schedule backward by  incr Add the modified schedule in the list of classes for ‘u’. Set  =  incr Merge merges the generated list with existing list eliminates irrelevant paths t dep1  t dep2 and t arr1  t arr2 P2 is irrelevant

Cost Model of Algorithm For each edge added, append costs O(mf E ) merge costs O(mf E ) For each node, append & merge cost = out_degree(u) * O(mf E ) For every increase in the length of path Cost = O(m 2 f E ) Total cost = O(nm 2 f E ) (because max. length of a path = n)