1 / 11

An introductory tutorial on kd-trees Andrew W. Moore - 1991

An introductory tutorial on kd-trees Andrew W. Moore - 1991. Alan Tucholka Doctorat d’Informatique Neuro-Imagerie – NeuroSpin / CEA. Plan. Construction d’un kd-tree Recherche du plus proche voisin Complexité Comment choisir le nœud de départ Performances. kd-tree.

della
Download Presentation

An introductory tutorial on kd-trees Andrew W. Moore - 1991

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. An introductory tutorial on kd-treesAndrew W. Moore - 1991 Alan Tucholka Doctorat d’Informatique Neuro-Imagerie – NeuroSpin / CEA

  2. Plan • Construction d’un kd-tree • Recherche du plus proche voisin • Complexité • Comment choisir le nœud de départ • Performances

  3. kd-tree • Structure de données en arbre binaire. • Chaque nœud contient • Les coordonnées d’un point dans l’espace, • la dimension de la séparation, • Un branche gauche (res. droite) pour les points qui sont à gauche (res. droite) de la séparation.

  4. Construction du kd-tree Y A (Split = Y) B C F C D A (X) (X) D F E G B E (Y) (Y) (Y) (Y) G X

  5. Recherche du plus proche voisin Y d=|ZF| Pt=F A d=inf Pt=null (Split = Y) B C d=|ZG| Pt=G d=|ZF| Pt=F d=|ZG| Pt=G F C D d=|ZG| Pt=G A d=inf Pt=null (X) (X) Z D F E G B E (Y) (Y) (Y) (Y) G d=|ZG| Pt=G d=|ZG| Pt=G d=inf Pt=null d=|ZF| Pt=F X

  6. Complexité ? • Au mieux : O(log(N)) • Au pire : N (tous les nœuds sont visités)

  7. Bien choisir le nœud de départ Le pivot est choisi en prenant le point médiane

  8. Bien choisir le nœud de départ Le pivot est choisi pour être le plus proche de la moitié de la dimension la plus longue.

  9. Performances Nbr de nœuds parcourus 8d-tree Nbr de nœuds total

  10. Performances Nbr de nœuds parcourus Nbr de dimensions

  11. Conclusion • La rapidité de recherche du plus proche voisin varie : • Que très peu en fonction de la taille de l’arbre, • Énormément en fonction du nombre de dimensions, • En fonction du choix du pivot.

More Related