¡GoConqr estrena diseño! Cuéntanos qué te parece.

Diagrama de flujo

Sin título

m h Español

Contenido del diagrama

  1. if (n == null)

  2. n= new Node(value)

  3. if (value < n.data)

  4. no

  5. n.left = insert(value, n.left)

  6. if (height(n.left) - height(n.right) >1)

  7. value < n.left.data

  8. yes

  9. n = rotateWiithLeftChild(n)

  10. n = rotateWithRightChild(n);

  11. yes

  12. no

  13. yes

  14. n.right = insert(value, n.right)

  15. no

  16. if(height(n.right) - height(n.left) >1)

  17. value > n.right.data

  18. n = rotateWithRightChild(n)

  19. yes

  20. n= rotateWithLeftChild(n)

  21. yes

  22. no

  23. n.height = max( height( n.left ), height( n.right ) ) + 1;

    return n;

  24. no

  25. no

Información

Descripción
Diagrama sobre Sin título, creado por m h el 25/03/2019.
Creado por
m h
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?