Computer Science > Data Structures and Algorithms
[Submitted on 14 Nov 2023 (this version), latest version 31 Jul 2024 (v3)]
Title:An Algebraic Approach to the Longest Path Problem
View PDF HTML (experimental)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-hard. 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. We propose a new method of approaching the longest path problem with algebraic operations and conditions that exactly identify and or approximate the solution in polynomial time. We next 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 approached conditions. Finally, we display the algorithms to find the solution, in addition to algorithms that generate all the longest paths.
Submission history
From: Omar Al - Khazali [view email][v1] Tue, 14 Nov 2023 07:03:49 UTC (372 KB)
[v2] Sun, 31 Mar 2024 06:41:43 UTC (353 KB)
[v3] Wed, 31 Jul 2024 07:21:18 UTC (386 KB)
Current browse context:
cs.DS
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.