Natürliche Bäume (12) boolean delete (int c){ return delete (null, root, c); } // loesche c im Baum mit Wurzel n, deren Vorgaenger vn ist boolean delete (SearchNode vn, SearchNode n, int c){ if (n == null) return false; if (c n.content) return delete (n, n.right, c); // jetzt gilt: c == n.content if (n.left == null) { point (vn, n, n.right); return true; } if (n.right == null) { point (vn, n, n.left); return true; } //...
{"Image DocumentName": "Nat\u00fcrliche B\u00e4ume (12)", "Image ImageDescription": "boolean delete (int c){ return delete (null, root, c); } // loesche c im Baum mit Wurzel n, deren Vorgaenger vn ist boolean delete (SearchNode vn, SearchNode n, int c){ if (n == null) return false; if (c < n.content) return delete (n, n.left, c); if (c > n.content) return delete (n, n.right, c); // jetzt gilt: c == n.content if (n.left == null) { point (vn, n, n.right); return true; } if (n.right == null) { point (vn, n, n.left); return true; } // ...", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}