Finding Optimal Refueling Policies Shieu-Hong Lin Biola University.

Slides:



Advertisements
Similar presentations
Maximum flow Main goals of the lecture:
Advertisements

Lecture 5: Network Flow Algorithms Max-Flow Min-Cut Single-Source Shortest-Path (SSSP) Job Sequencing.
* Bellman-Ford: single-source shortest distance * O(VE) for graphs with negative edges * Detects negative weight cycles * Floyd-Warshall: All pairs shortest.
Multicast in Wireless Mesh Network Xuan (William) Zhang Xun Shi.
1 Maximum flow sender receiver Capacity constraint Lecture 6: Jan 25.
Reachability as Transitive Closure
Design and Analysis of Algorithms Single-source shortest paths, all-pairs shortest paths Haidong Xue Summer 2012, at GSU.
Length of a Path The weight (length) of a path is the sum of the weights of its edges. adcbe Path p: Edge weights: w(a, b) = 7, w(b, c) = 2, w(c,
 2004 SDU Lecture11- All-pairs shortest paths. Dynamic programming Comparing to divide-and-conquer 1.Both partition the problem into sub-problems 2.Divide-and-conquer.
Introduction To Algorithms CS 445 Discussion Session 8 Instructor: Dr Alon Efrat TA : Pooja Vaswani 04/04/2005.
Chapter 23 Minimum Spanning Trees
CSC 2300 Data Structures & Algorithms April 17, 2007 Chapter 9. Graph Algorithms.
The Gas Station Problem Samir Khuller Azarakhsh Malekian Julian Mestre UNIVERSITY OF MARYLAND.
Lecture 22: Matrix Operations and All-pair Shortest Paths II Shang-Hua Teng.
Shortest Path Problems Directed weighted graph. Path length is sum of weights of edges on path. The vertex at which the path begins is the source vertex.
1 Advanced Algorithms All-pairs SPs DP algorithm Floyd-Warshall alg.
Lecture 11. Matching A set of edges which do not share a vertex is a matching. Application: Wireless Networks may consist of nodes with single radios,
CS541 Advanced Networking 1 Routing and Shortest Path Algorithms Neil Tang 2/18/2009.
Online Data Gathering for Maximizing Network Lifetime in Sensor Networks IEEE transactions on Mobile Computing Weifa Liang, YuZhen Liu.
Pseudo-polynomial time algorithm (The concept and the terminology are important) Partition Problem: Input: Finite set A=(a1, a2, …, an} and a size s(a)
Two Discrete Optimization Problems Problem #2: The Minimum Cost Spanning Tree Problem.
1 Routing in Error-Correcting Networks Edwin Soedarmadji May 10, 2006 California Institute of Technology Department of Electrical Engineering Pasadena,
The Shortest Path Problem
TECH Computer Science Graph Optimization Problems and Greedy Algorithms Greedy Algorithms  // Make the best choice now! Optimization Problems  Minimizing.
1 Shortest Path Calculations in Graphs Prof. S. M. Lee Department of Computer Science.
Shortest Path Algorithms. Kruskal’s Algorithm We construct a set of edges A satisfying the following invariant:  A is a subset of some MST We start with.
Dijkstra’s Algorithm. 2 Shortest-path Suppose we want to find the shortest path from node X to node Y It turns out that, in order to do this, we need.
Algorithms: Design and Analysis Summer School 2013 at VIASM: Random Structures and Algorithms Lecture 3: Greedy algorithms Phan Th ị Hà D ươ ng 1.
1 Network Optimization Chapter 3 Shortest Path Problems.
Lecture 5: Network Flow Algorithms Single-Source Shortest-Path (SSSP) (Dijkstra's Algorithm) Max Flow - Min Cut (Ford-Fulkerson) Job Sequencing.
Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we can find a path that goes over all.
Graph Algorithms. Definitions and Representation An undirected graph G is a pair (V,E), where V is a finite set of points called vertices and E is a finite.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
Solution to HW1. Problem 1 Need to find shortest path from a single source s to a single destination d. Have a condition in the Dijkstra algo loop which.
Single Source Shortest-Path: The General Case (with negative edges) Bellman-Ford algorithm. Iteratively relax all edges |V|-1 times Running time? O(VE).
Graph Algorithms Ananth Grama, Anshul Gupta, George Karypis, and Vipin Kumar Adapted for 3030 To accompany the text ``Introduction to Parallel Computing'',
Parallel Programming: All-Pairs Shortest Path CS599 David Monismith Based upon notes from multiple sources.
CSE 2331 / 5331 Topic 12: Shortest Path Basics Dijkstra Algorithm Relaxation Bellman-Ford Alg.
Shortest Path Algorithms. Definitions Variants  Single-source shortest-paths problem: Given a graph, finding a shortest path from a given source.
The all-pairs shortest path problem (APSP) input: a directed graph G = (V, E) with edge weights goal: find a minimum weight (shortest) path between every.
Optimal Fueling Strategies for Locomotive Fleets in Railroad Networks Seyed Mohammad Nourbakhsh Yanfeng Ouyang 1 William W. Hay Railroad Engineering Seminar.
1 Dijkstra’s Algorithm Dr. Ying Lu RAIK 283 Data Structures & Algorithms.
CS223 Advanced Data Structures and Algorithms 1 Maximum Flow Neil Tang 3/30/2010.
1 Prim’s algorithm. 2 Minimum Spanning Tree Given a weighted undirected graph G, find a tree T that spans all the vertices of G and minimizes the sum.
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
1 Inventory Control with Time-Varying Demand. 2  Week 1Introduction to Production Planning and Inventory Control  Week 2Inventory Control – Deterministic.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
Suppose G = (V, E) is a directed network. Each edge (i,j) in E has an associated ‘length’ c ij (cost, time, distance, …). Determine a path of shortest.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
Introduction to Multiple-multicast Routing Chu-Fu Wang.
Construction of Optimal Data Aggregation Trees for Wireless Sensor Networks Deying Li, Jiannong Cao, Ming Liu, and Yuan Zheng Computer Communications and.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
Minimum Spanning Trees
A vertex u is reachable from vertex v iff there is a path from v to u.
Greedy Technique.
CSC317 Shortest path algorithms
Shortest Path Problems
Shortest Path Problems
CS223 Advanced Data Structures and Algorithms
Graph Algorithm.
CSCE350 Algorithms and Data Structure
Minimum Spanning Trees
Instructor: Shengyu Zhang
Graphs Chapter 11 Objectives Upon completion you will be able to:
Shortest Path Problems
Route Inspection Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we introduce a vertex.
Richard Anderson Autumn 2016 Lecture 7
Algorithms (2IL15) – Lecture 7
Shortest Path Problems
Shortest Path Problems
Presentation transcript:

Finding Optimal Refueling Policies Shieu-Hong Lin Biola University

The Optimal Refueling Problem

Finding Optimal Refueling Policies Optimal refueling in fixed routes Optimal refueling in transportation networks Conclusions

Transportation in Fixed Routes A fixed route selected from vertex A to vertex B. Cost of gas varies depending on the vertices. Gas consumption varies between vertices. Minimal and maximal fuel levels allowed: L and U $3.50$3.70$3.60$ gallons 8 gallons 4 gallons 4 gallons A B [L,U]=[0, 12] Initial level=0

Optimal Refueling in Fixed Routes $3.50$3.70$3.60$3.00 To minimize the total refueling cost, for each vertex along the route, should we stop to refuel and if so, how much fuel to purchase? 6 gallons 8 gallons 4 gallons 4 gallons A B [L,U]=[0, 12] Initial level=0

Optimal Refueling Polices $3.50$3.70$3.60$ gallons 8 gallons 4 gallons 4 gallons A B [L,U]=[0, 12] Initial level=0 An optimal refueling policy: minimizes the total refueling cost, represented as a vector of fuel amounts. Example: for the depicted case below, is the optimal policy.

A Greedy Algorithm for Finding Optimal Refueling Polices From the starting vertex in the route: Case (1): if no cheaper fuel is reachable ahead given a full tank of fuel, fill the tank and move to the next vertex; Case (2): otherwise, fill in the minimum amount to reach the closest vertex with a cheaper fuel price, move to that vertex (no refueling in between).

A Greedy Algorithm for Finding Optimal Refueling Polices $3.50$3.70$3.60 $ gallons 8 gallons 4 gallons 4 gallons A B [L,U]=[0, 12] Initial level=0 Case I Case II Case II Case II

Complexity for Optimal Refueling in Fixed Routes For every vertex v in the route, determine the farthest vertex far(v) reachable ahead given a full tank of fuel, and the closest vertex low(v) ahead with a cheaper fuel price.  Obviously O(n 2 ) time is sufficient  Can be done in O(n) time. [Lin, etc. 2007]

Key Properties of Optimal Refueling Policies in Fixed Routes If we arrive at vertex v at the minimal fuel level L, we will then either refuel to attain the maximal fuel level U at v, or refuel and then proceed to reach another vertex u at the minimal fuel level L without refueling in between.

Key Transition Properties of Optimal Refueling Policies in Fixed Routes If we refuel at vertex v to the maximal fuel level U, we will then refuel in some intermediate vertex v’ once and then either reach another vertex u at the minimal fuel level L or attain the maximal fuel level U at v’.

LU Transition Property An optimal refueling policy along any fixed route can be equivalently viewed as a series of transitions between the minimal and the maximal fuel levels among vertices (L  L, L  U, U  U, U  L) with a refueling stop involved in each transition.

Optimal Refueling in Transportation Networks Finding optimal refueling policies for all pairs of vertices in a given transportation network. –Need to consider all routes between vertices. –Find the best route and use the optimal policy for it.

Optimal Refueling in Transportation Networks

LU Transition Property An optimal refueling policy along any fixed route = a series of transitions between the minimal and the maximal fuel levels among vertices (L  L, L  U, U  U, U  L) with a refueling stop involved in each transition.

LU Transition Graph LU Vertices: (v, L) and (v, U) where v is a vertex is the transportation network. LU Edges:,,, where u and v are vertices in the transportation network. Length of edges: the minimal transition costs of the LU transitions in the transportation network.

Reduction to the Shortest Path Problem The LU transition graph can be constructed in O(n 3 ) time where n is the number of vertices. Finding all-pairs optimal refueling routes is equivalent to finding all-pairs shortest paths in the LU transition graph.

Complexity of Optimal Refueling in Transportation Networks Through the reduction to the shortest-path problem O(n 3 ) time for all-pairs optimal refueling O( n 3 log D ) time for all-pairs optimal refueling with the constraint of no more than D refueling stops used.

Related Research Khueller [ESA 07]: (Independently) O(nlog n) time for the fixed- route optimal refueling problem O(n 4 ) time for all-pairs optimal refueling O( min(D 2 n 3, Dn 3 log n ) ) time for all- pairs optimal refueling with the constraint of no more than D refueling stops used.

Related Research [Lin, etc., Operations Research Letters 07] O(n) time for the fixed- route optimal refueling problem

Our Contributions [ Lin, AAIM 08] A reduction to the shortest-path problem O(n 3 ) time for all-pairs optimal refueling O( n 3 log D ) time for all-pairs optimal refueling with the constraint of no more than D refueling stops used.

Optimal Refueling in Transportation Networks An optimal route may have loops and may include up to Θ(n 2 ) vertices.