diskrete mathe1 12345 diskrete mathematik i binärer baum, binärer suchbaum i vorlesung 5
TRANSCRIPT
![Page 1: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/1.jpg)
Diskrete Mathe11 2 3 4 5
Diskrete Mathematik I
Binärer Baum, Binärer Suchbaum I
Vorlesung 5
![Page 2: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/2.jpg)
Diskrete Mathe11 2 3 4 51
• Eine neue rekursive Datenstruktur: Bäume– Der Binäre Baum– Binärer Suchbaum
• Definition• Beispiel
Übersicht
![Page 3: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/3.jpg)
Diskrete Mathe11 2 3 4 52
• Ein leerer Baum ist ein binärer Baum• Sind L und R zwei binäre Bäume und w ein Knoten mit dem Inhalt n,
dann ist die Verknüpfung von w, L und R ein binärer Baum.
Der Binäre Baum
n
L R
![Page 4: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/4.jpg)
Diskrete Mathe11 2 3 4 53
Binärer Suchbaum
• Ein binärer Baum B ist ein binärer Suchbaum, falls er leer ist oder die folgenden Eigenschaften erfüllt sind:– die beiden Unterbäume sind binäre Suchbäume– die Beschriftungen der Knoten des linken Suchbaums sind kleiner
als die Beschriftung der Wurzel– die Beschriftungen des rechten Suchbaums sind größer als die
Beschriftung der Wurzel
n
<n >n
![Page 5: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/5.jpg)
Diskrete Mathe11 2 3 4 54
Aufbau eines binären Suchbaums aus folgenden Elementen:
Binärer Suchbaum
9 4 17 13 2 23 7
![Page 6: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/6.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
9 4 17 13 2 23 7
![Page 7: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/7.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
9 4 17 13 2 23 7
![Page 8: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/8.jpg)
Diskrete Mathe11 2 3 4 5
9
5
A 52x
4 17 13 2 23 7
9
![Page 9: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/9.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
4 17 13 2 23 7
9
![Page 10: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/10.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
17 13 2 23 7
9
4 < 9
![Page 11: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/11.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
17 13 2 23 7
9
44
![Page 12: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/12.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
17 13 2 23 7
9
4
![Page 13: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/13.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
13 2 23 7
9
4
17 > 9
![Page 14: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/14.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
13 2 23 7
9
4 1717
![Page 15: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/15.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
13 2 23 7
9
4 17
![Page 16: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/16.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
2 23 7
9
4 17
13 > 9
![Page 17: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/17.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
2 23 7
9
4 17
13 < 17
![Page 18: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/18.jpg)
Diskrete Mathe11 2 3 4 5
13
5
A 52x
2 23 7
9
4 17
13
![Page 19: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/19.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
2 23 7
9
4 17
13
![Page 20: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/20.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
23 7
9
4 17
13
2< 9
![Page 21: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/21.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
23 7
9
4 17
13
24 >
![Page 22: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/22.jpg)
Diskrete Mathe11 2 3 4 5
2
5
A 52x
23 7
9
4 17
132
![Page 23: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/23.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
23 7
9
4 17
132
![Page 24: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/24.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
7
9
4 17
132
23 > 9
![Page 25: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/25.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
7
9
4 17
132
23 > 17
![Page 26: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/26.jpg)
Diskrete Mathe11 2 3 4 5
23
5
A 52x
7
9
4 17
132 23
![Page 27: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/27.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
7
9
4 17
132 23
![Page 28: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/28.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
9
4 17
132 23
7< 9
![Page 29: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/29.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
9
4 17
132 23
74 <
![Page 30: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/30.jpg)
Diskrete Mathe11 2 3 4 5
7
5
A 52x
9
4 17
132 237
![Page 31: Diskrete Mathe1 12345 Diskrete Mathematik I Binärer Baum, Binärer Suchbaum I Vorlesung 5](https://reader035.vdocumento.com/reader035/viewer/2022062818/570491c41a28ab14218da4fe/html5/thumbnails/31.jpg)
Diskrete Mathe11 2 3 4 55
A 52x
9
4 17
132 237
Binärer Suchbaum