IDEAS home Printed from https://ideas.repec.org/a/inm/orijoc/v37y2025i5p1202-1222.html
   My bibliography  Save this article

Average Case Subquadratic Exact and Heuristic Procedures for the Traveling Salesman 2-OPT Neighborhood

Author

Listed:
  • Giuseppe Lancia

    (Dipartimento di Matematica, Informatica e Fisica, University of Udine, 33100 Udine, Italy)

  • Paolo Vidoni

    (Dipartimento di Scienze Economiche e Statistiche, University of Udine, 33100 Udine, Italy)

Abstract

We describe an exact algorithm for finding the best 2-OPT move that, experimentally, was observed to be much faster than the standard quadratic approach for a large part of a best-improvement local search convergence starting at a random tour. To analyze its average-case complexity, we introduce a family of heuristic procedures and discuss their complexity when applied to a random tour in graphs whose edge costs are either uniform random numbers in [0, 1] or Euclidean distances between random points in the plane. We prove that, for any probability p , there is a heuristic in the family that can find the best 2-OPT move with probability at least p in average-time O ( n log n ) for uniform instances and O ( n ) for Euclidean instances. The exact algorithm is then proved to be even faster in the sense that in those instances in which a heuristic finds the best move, the exact algorithm finds it in a smaller time. We give empirical evidence that a slight variant of our algorithm finds the best move in O ( n ) time on both types of instances, achieving the best possible performance for this particular problem. Computational experiments are reported to show the effectiveness of our algorithms, both in best-improvement and in first-improvement 2-OPT local search.

Suggested Citation

  • Giuseppe Lancia & Paolo Vidoni, 2025. "Average Case Subquadratic Exact and Heuristic Procedures for the Traveling Salesman 2-OPT Neighborhood," INFORMS Journal on Computing, INFORMS, vol. 37(5), pages 1202-1222, September.
  • Handle: RePEc:inm:orijoc:v:37:y:2025:i:5:p:1202-1222
    DOI: 10.1287/ijoc.2023.0169
    as

    Download full text from publisher

    File URL: http://dx.doi.org/10.1287/ijoc.2023.0169
    Download Restriction: no

    File URL: https://libkey.io/10.1287/ijoc.2023.0169?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:inm:orijoc:v:37:y:2025:i:5:p:1202-1222. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Chris Asher (email available below). General contact details of provider: https://edirc.repec.org/data/inforea.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.