Fast computation of distances in a tree - Archive ouverte HAL
Pré-Publication, Document De Travail Année : 2020

Fast computation of distances in a tree

Calcul rapide de distances dans un arbre

Résumé

Computation of distances between two submits of a tree is an operation that occurs in some pattern recognition problem. When this operation has to be done thousands of times on millions of trees, the linear standard algorithms in OpN q for each pair may be a bottleneck to the global computation. This note present recursive spliting method with a complexity of OplogpN qq on each pair in worst case, and Op1q in average on all pair, once a pre-computation OpN logpN qq has been done on the whole tree. A commented C++ implementation is published as a companion to this note. 1
Fichier principal
Vignette du fichier
FastTreeDist.pdf (536.3 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-02563859 , version 1 (05-05-2020)

Identifiants

  • HAL Id : hal-02563859 , version 1

Citer

Marc Pierrot Deseilligny. Fast computation of distances in a tree. 2020. ⟨hal-02563859⟩
60 Consultations
50 Téléchargements

Partager

More