A Linear Time Algorithm for Computing Longest Paths in Cactus Graphs - Archive ouverte HAL Accéder directement au contenu
Article Dans Une Revue Serdica Journal of Computing Année : 2012

A Linear Time Algorithm for Computing Longest Paths in Cactus Graphs

Résumé

We propose an algorithm that computes the length of a longest path in a cactus graph. Our algorithm can easily be modified to output a longest path as well or to solve the problem on cacti with edge or vertex weights. The algorithm works on rooted cacti and assigns to each vertex a two-number label, the first number being the desired parameter of the subcactus rooted at that vertex. The algorithm applies the divide-and-conquer approach and computes the label of each vertex from the labels of its children. The time complexity of our algorithm is linear in the number of vertices, thus improving the previously best quadratic time algorithm.
Fichier principal
Vignette du fichier
sjc-vol6-num3-2012-p287-p298.pdf (199.25 Ko) Télécharger le fichier
algorithmic_contest_tasks_2nd_author.zip (18.96 Mo) Télécharger le fichier
Origine : Accord explicite pour ce dépôt
Format : Autre
Loading...

Dates et versions

hal-00768843 , version 1 (25-12-2012)

Identifiants

  • HAL Id : hal-00768843 , version 1

Citer

Minko Markov, Mugurel Ionut Andreica, Krassimir Manev, Nicolae Tapus. A Linear Time Algorithm for Computing Longest Paths in Cactus Graphs. Serdica Journal of Computing, 2012, 6 (3), pp.287-298. ⟨hal-00768843⟩
115 Consultations
511 Téléchargements

Partager

Gmail Facebook X LinkedIn More