[so] Algoritm de stergere

Vlad Cananau vladk2k at gmail.com
Thu Nov 15 20:10:18 EET 2007


In enunt zice asa: "Pentru stergerea unui nod din arbore se va folosi
varianta de algoritm care sterge *SUCCESORUL*, daca nodul are ambii fii."
Asta ce inseamna, mai exact, ca nu se sterge nodul curent?
daca am urmatorul arbore
  20
 /  \
10  30
   /  \
  25  35

si se cere stergerea lui 30, se sterge SUCCESORUL, adica 35?
-- 
___
Vlad Cananau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20071115/8ad0c2ad/attachment.html


More information about the so mailing list