English

An Algebraic Approach to the Longest Path Problem

Data Structures and Algorithms 2024-08-01 v3 Discrete Mathematics Combinatorics

Abstract

The Longest Path Problem is a question of finding the maximum length between pairs of vertices of a graph. In the general case, the problem is NP-complete. However, there is a small collection of graph classes for which there exists an efficient solution. Current approaches involve either approximation or computational enumeration. For Tree-like classes of graphs, there are approximation and enumeration algorithms which solves the problem efficiently. Despite this, we propose a new method of approaching the longest path problem with exact algebraic solutions that give rise to polynomial-time algorithms. Our method provides algorithms that are proven correct by their underlying algebraic operations unlike existing purely algorithmic solutions to this problem. We introduce a `booleanize' mapping on the adjacency matrix of a graph which we prove identifies the solution for trees, uniform block graphs, block graphs, and directed acyclic graphs with exact conditions and associated polynomial-time algorithms. In addition, we display additional algorithms that can generate every possible longest path of acyclic graphs in efficient time, as well as for block graphs.

Keywords

Cite

@article{arxiv.2312.11469,
  title  = {An Algebraic Approach to the Longest Path Problem},
  author = {Omar Al - Khazali},
  journal= {arXiv preprint arXiv:2312.11469},
  year   = {2024}
}

Comments

Revised after reviewer comments

R2 v1 2026-06-28T13:55:00.891Z