skip to main content
research-article

To fill or not to fill: The gas station problem

Published:15 July 2011Publication History
Skip Abstract Section

Abstract

In this article we study several routing problems that generalize shortest paths and the traveling salesman problem. We consider a more general model that incorporates the actual cost in terms of gas prices. We have a vehicle with a given tank capacity. We assume that at each vertex gas may be purchased at a certain price. The objective is to find the cheapest route to go from s to t, or the cheapest tour visiting a given set of locations. We show that the problem of finding a cheapest plan to go from s to t can be solved in polynomial time. For most other versions, however, the problem is NP-complete and we develop polynomial-time approximation algorithms for these versions.

References

  1. Arkin, E. M., Hassin, R., and Levin, A. 2006. Approximations for minimum and min-max vehicle routing problems. J. Algor. 59, 1, 1--18. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Arkin, E. M., Mitchell, J. S. B., and Narasimhan, G. 1998. Resource-Constrained geometric network optimization. In Proceedings of the 14th Annual Symposium on Computational Geometry (SoCG). 307--316. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Awerbuch, B., Azar, Y., Blum, A., and Vempala, S. 1998. New approximation guarantees for minimum-weight k-trees and prize-collecting salesmen. SIAM J. Comput. 28, 1, 254--262. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Bansal, N., Blum, A., Chawla, S., and Meyerson, A. 2004. Approximation algorithms for deadline-TSP and vehicle routing with time-windows. In Proceedings of the 36th Annual ACM symposium on Theory of Computing (STOC). 166--174. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Berger, A., Bonifaci, V., Grandoni, F., and Schäfer, G. 2008. Budgeted matching and budgeted matroid intersection via the gasoline puzzle. In Proceedings of the 13th Integer Programming and Combinatorial Optimization Conference. 273--287. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Blum, A., Chawla, S., Karger, D. R., Lane, T., Meyerson, A., and Minkoff, M. 2003. Approximation algorithms for orienteering and discounted-reward TSP. In Proceedings of the 44th Annual IEEE Symposium on Foundations of Computer Science (FOCS). 46. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Charikar, M., Khuller, S., and Raghavachari, B. 2002. Algorithms for capacitated vehicle routing. SIAM J. Comput. 3, 665--682. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Christofides, N. 1976. Worst-case analysis of a new heuristic for the traveling salesman problem. Tech. rep., Graduate School of Industrial Administration, Carnegie-Mellon University.Google ScholarGoogle Scholar
  9. Cormen, T. H., Leiserson, C. E., Rivest, R. L., and Stein, C. 2001. Introduction to Algorithms. M.I.T. Press and McGraw-Hill. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Frederickson, G. N., Hecht, M. S., and Kim, C. E. 1978. Approximation algorithms for some routing problems. SIAM J. Comput. 7, 2, 178--193.Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Golden, B. L., Levy, L., and Vohra, R. 1987. The orienteering problem. Naval Res. Logist. 34, 307--318.Google ScholarGoogle ScholarCross RefCross Ref
  12. Lawler, E. L. 2001. Combinatorial Optimization: Networks and Matroids. Dover Publications.Google ScholarGoogle Scholar
  13. Lawler, E. L., Lenstra, J. K., Kan, A. H. G. R., and Shmoys, D. B. 1985. The Traveling Salesman Problem: A Guided Tour of Combinatorial Optimization. John Wiley & Sons.Google ScholarGoogle Scholar
  14. Li, C.-L., Simchi-Levi, D., and Desrochers, M. 1992. On the distance constrained vehicle routing problem. Oper. Res. 40, 4, 790--799. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Lovász, L. 1979. Combinatorial Problems and Exercises. North-Holland.Google ScholarGoogle Scholar
  16. Haimovich, M. A. R. K. 1985. Bounds and heuristics for capacitated routing problems. Math. Oper. Res. 10, 4, 527--542.Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. Haimovich, M. A. G. Rinnoooy Kan, L. S. 1988. Analysis of heuristics for vehicle routing problems. In Vehicle Routing: Methods and Studies, 47--61.Google ScholarGoogle Scholar
  18. Nagarajan, V. and Ravi, R. 2006. Minimum vehicle routing with a common deadline. In Proceedings of the 9th International Workshop on Approximation Algorithms for Combinatorial Optimization Problems (APPROX). 212--223. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. Papadimitriou, C. H. and Steiglitz, K. 1998. Combinatorial Optimization. Dover Publications, Inc.Google ScholarGoogle Scholar

Index Terms

  1. To fill or not to fill: The gas station problem

            Recommendations

            Reviews

            Amrinder Arora

            The traveling salesperson problem (TSP) is a well-known optimization problem; many variations of it are routinely studied. Although sometimes considered to be a theoretical rather than a practical problem, variants of the TSP appear frequently in real-world optimization problems. In this paper, the authors consider the framework in which fuel can be purchased at different prices from different gas stations. The general objective is to minimize the cost while traveling through the network. The authors consider four interesting TSP-like problems: the gas station problem-the problem of traveling between a given origin and destination in the cheapest possible way; the fixed-path gas station problem-a special case of the gas station problem in which the path is pre-specified; the uniform cost tour gas station problem-the problem of finding the shortest tour that visits a given collection of cities using a given collection of gas stations; and the tour gas station problem-a generalization of the uniform cost tour gas station problem in which the prices at different stations can vary. The authors present optimal polynomial-time algorithms for the first two problems (the gas station problems), and polynomial-time approximation schemes for the two tour problems. Some of these problems, or their special cases, are frequently discussed as example problems when studying dynamic programming or other aspects of algorithms. However, before Khuller et al.'s work, no polynomial-time optimal solution was known for the gas station problem. An attempt at a dynamic programming formulation gas station problem would falter when observing that the amount of fuel left is a parameter in the dynamic programming formulation. Since the amount of fuel is a continuous variable, dynamic programming formulation does not lead to an easy polynomial-time algorithm. Khuller et al. have improved this approach by astutely observing that, although the amount of fuel is indeed a continuous variable, it can only take O ( n 2) different values, where n is the number of locations. This is the case because we start with a known amount of fuel and can arrive at a network location only from another network location, and at each location we restock fuel entirely, restock just enough to reach the next location, or don't restock at all. The presented work has direct and obvious relevance to delivery and pickup services, such as waste collection, mail and courier, and bus tour planning. The studied problem also has significant applicability when the medium of travel is ships (and not cars or trucks) since the price of fuel along commercial freight vessel routes can vary widely. An interesting variation of the gas station problem that is not covered by this work but has wide applicability is the case in which the amount of gas contained in the vehicle changes the efficiency of the vehicle itself. This is a common problem-with significant monetary impact-when considering the movement of large repair vessels in the oil industry. Online Computing Reviews Service

            Access critical reviews of Computing literature here

            Become a reviewer for Computing Reviews.

            Comments

            Login options

            Check if you have access through your login credentials or your institution to get full access on this article.

            Sign in

            Full Access

            • Published in

              cover image ACM Transactions on Algorithms
              ACM Transactions on Algorithms  Volume 7, Issue 3
              July 2011
              294 pages
              ISSN:1549-6325
              EISSN:1549-6333
              DOI:10.1145/1978782
              Issue’s Table of Contents

              Copyright © 2011 ACM

              Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

              Publisher

              Association for Computing Machinery

              New York, NY, United States

              Publication History

              • Published: 15 July 2011
              • Accepted: 1 February 2011
              • Revised: 1 August 2010
              • Received: 1 August 2008
              Published in talg Volume 7, Issue 3

              Permissions

              Request permissions about this article.

              Request Permissions

              Check for updates

              Qualifiers

              • research-article
              • Research
              • Refereed

            PDF Format

            View or Download as a PDF file.

            PDF

            eReader

            View online with eReader.

            eReader