Revisiting Tree Isomorphism: AHU Algorithm with Primes Numbers - Archive ouverte HAL
Pré-Publication, Document De Travail Année : 2023

Revisiting Tree Isomorphism: AHU Algorithm with Primes Numbers

Résumé

The AHU algorithm has been the state of the art since the 1970s for determining in linear time whether two unordered rooted trees are isomorphic or not. However, it has been criticized (by Campbell and Radford) for the way it is written, which requires several (re)readings to be understood, and does not facilitate its analysis. In this paper, we propose an alternative version of the AHU algorithm, which addresses this issue by being designed to be clearer to understand and implement, with the same theoretical complexity and equally fast in practice.. Whereas the key to the linearity of the original algorithm lay on the careful sorting of lists of integers, we replace this step by the multiplication of lists of prime numbers, and prove that this substitution causes no loss in the final complexity of the new algorithm.
Fichier principal
Vignette du fichier
2309.14441.pdf (347.31 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-04232137 , version 1 (07-10-2023)
hal-04232137 , version 2 (13-02-2024)

Identifiants

Citer

Florian Ingels. Revisiting Tree Isomorphism: AHU Algorithm with Primes Numbers. 2023. ⟨hal-04232137v1⟩
31 Consultations
892 Téléchargements

Altmetric

Partager

More