English

Optimal energetic paths for electric cars

Data Structures and Algorithms 2023-05-31 v1

Abstract

A weighted directed graph G=(V,A,c)G=(V,A,c), where AV×VA\subseteq V\times V and c:ARc:A\to R, describes a road network in which an electric car can roam. An arc uvuv models a road segment connecting the two vertices uu and vv. The cost c(uv)c(uv) of an arc uvuv is the amount of energy the car needs to traverse the arc. This amount may be positive, zero or negative. To make the problem realistic, we assume there are no negative cycles. The car has a battery that can store up to BB units of energy. It can traverse an arc uvAuv\in A only if it is at uu and the charge bb in its battery satisfies bc(uv)b\ge c(uv). If it traverses the arc, it reaches vv with a charge of min(bc(uv),B)\min(b-c(uv),B). Arcs with positive costs deplete the battery, arcs with negative costs charge the battery, but not above its capacity of BB. Given s,tVs,t\in V, can the car travel from ss to tt, starting at ss with an initial charge bb, where 0bB0\le b\le B? If so, what is the maximum charge with which the car can reach tt? Equivalently, what is the smallest δB,b(s,t)\delta_{B,b}(s,t) such that the car can reach tt with a charge of bδB,b(s,t)b-\delta_{B,b}(s,t), and which path should the car follow to achieve this? We refer to δB,b(s,t)\delta_{B,b}(s,t) as the energetic cost of traveling from ss to tt. We let δB,b(s,t)=\delta_{B,b}(s,t)=\infty if the car cannot travel from ss to tt starting with an initial charge of bb. The problem of computing energetic costs is a strict generalization of the standard shortest paths problem. We show that the single-source minimum energetic paths problem can be solved using simple, but subtle, adaptations of the Bellman-Ford and Dijkstra algorithms. To make Dijkstra's algorithm work in the presence of negative arcs, but no negative cycles, we use a variant of the AA^* search heuristic. These results are explicit or implicit in some previous papers. We provide a simpler and unified description of these algorithms.

Cite

@article{arxiv.2305.19015,
  title  = {Optimal energetic paths for electric cars},
  author = {Dani Dorfman and Haim Kaplan and Robert E. Tarjan and Uri Zwick},
  journal= {arXiv preprint arXiv:2305.19015},
  year   = {2023}
}

Comments

11 pages

R2 v1 2026-06-28T10:50:37.869Z