English

Finding long simple paths in a weighted digraph using pseudo-topological orderings

Discrete Mathematics 2018-02-22 v3 Data Structures and Algorithms

Abstract

Given a weighted digraph D, finding the longest simple path is well known to be NP-hard. Furthermore, even giving an approximation algorithm is known to be NP-hard. In this paper we describe an efficient heuristic algorithm for finding long simple paths, using an hybrid approach of DFS and pseudo-topological orders, a a generalization of topological orders to non acyclic graphs, via a process we call "opening edges". An implementation of this algorithm won the Oracle MDC 2015 coding competition.

Keywords

Cite

@article{arxiv.1609.07450,
  title  = {Finding long simple paths in a weighted digraph using pseudo-topological orderings},
  author = {Miguel Raggi},
  journal= {arXiv preprint arXiv:1609.07450},
  year   = {2018}
}
R2 v1 2026-06-22T15:59:30.644Z