SlideServe
Menu
Préférences
© SlideServe · v2026

Efficient Cycle Detection in MST Algorithms

ethan-ballard avatar
24 diapositives · 343 Views · Nov 05, 2014

Discover how to check if adding an edge creates a cycle in a Minimum Spanning Tree algorithm. Label nodes and relabel trees for cycle prevention. Time complexity explained through Tower of Hanoi analogy.

Efficient Cycle Detection in MST Algorithms - slide 1
01 / 24Efficient Cycle Detection in MST Algorithms
1 / 17

Télécharger la présentation

Efficient Cycle Detection in MST Algorithms
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. 233-234 Sedgewick & Wayne (2004); Chazelle (2005)

  2. How to check if adding an edge creates a cycle? Label i all nodes of i-th tree 2 1 1 2 1 2 2

  3. How to check if adding an edge creates a cycle? Label i all nodes of i-th tree 2 1 1 2 1 2 2

  4. How to check if adding an edge creates a cycle? Label i all nodes of i-th tree 2 1 1 2 1 2 2 Relabel smaller tree

  5. How to check if adding an edge creates a cycle? Label i all nodes of i-th tree 2 2 2 2 2 2 2 Relabel smaller tree

  6. How to check if adding an edge creates a cycle? Label i all nodes of i-th tree 2 2 2 2 2 2 2 Each node relabeled at most log V times

  7. edge of the MST correctness 9 3 Bnodes 7 8 Anodes

  8. B 3 A

  9. B 3 A A B A A 8

  10. How much time ? 1. Sorting: 2. Cycle detection:

  11. How much time ? 1. Sorting: 2. Cycle detection: Time proportional to

  12. Advanced MST Algorithms

  13. Ackermann’s function number of particles in the universe If E = 2

  14. The amazing function Tower of height equal to tower of x Two times x Tower of x Two to the x-th

  15. demo time