aboutsummaryrefslogtreecommitdiff
path: root/Info/12/Binaerbaeume/Eigenschaften/slides-wiederholung.md
blob: 02f4aced551f9c7abf7818cee6b8601811575ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
---
author: Florian Fischer
theme: metropolis
aspectratio: 169
header-includes:
  \usepackage{forest}
---

## \faIcon{comments} Wiederholung: Suchen in einem Binärbaum \hfill 1/3 {.t}

Nimm Stellung zu folgender Aussage: \vspace{0.2cm}

> In einem geordneten Binärbaum zu suchen ist immer besser als in einer Liste!

\pause

\begin{tikzpicture}[overlay, remember picture]
\only<2->{
  \node[rotate=7,scale=2] at (8, 1.3) {\large \boldred{Falsch}};
}
\end{tikzpicture}

::: {.columns align=center}
:::: {.column width=10%}
::::
:::: {.column width=40%}
`[1,2,3,4]`
::::

:::: {.column width=5%}
\Large \textbf{=}
::::

:::: {.column width=50%}
\begin{tikzpicture}
\node (1) {1};
\node[below right=0.1cm of 1] (2) {2};
\node[below right=0.1cm of 2] (3) {3};
\node[below right=0.1cm of 3] (4) {4};
\draw (1) -- (2) -- (3) -- (4);
\end{tikzpicture}
::::
:::


## \faIcon{comments} Wiederholung: Verkettung \hfill 2/3

Nimm Stellung zu folgender Aussage: \vspace{0.5cm}

> Jedes Baumelement in einem Binärbaum hat zwei rekursive Beziehungen.

\only<2->{
\begin{tikzpicture}[overlay, remember picture]
  \node[rotate=5,scale=2] at (0.55\textwidth, 0.7) {\large \boldred{Fast}};
\end{tikzpicture}
}

\pause

\hspace{2cm}
\begin{tikzpicture}
  \begin{class}[text width= 4cm]{Baumelement}{3, 0}
  \end{class}

  \begin{class}[text width= 4cm]{Abschluss}{0, -3}
    \inherit{Baumelement}
  \end{class}

  \begin{class}[text width= 4cm]{Knoten}{6, -3}
    \inherit{Baumelement}
    \attribute{links: Baumelement}
    \attribute{rechts: Baumelement}
  \end{class}
\only<3->{
  \draw[magenta] (Knoten) |- (Baumelement);
}
\end{tikzpicture}

## \faIcon{comments} Wiederholung: Suche \hfill 3/3

Nimm Stellung zu folgender Aussage: \vspace{0.5cm}

> Im linken Baum ist das Suchen im Durchschnitt effizienter als im Rechten.

::: {.columns}
:::: {.column width=20%}
::::
:::: {.column width=40%}
\begin{forest}
[5
  [4
    [3
      [2]
    ]
  ]
  [6
    [7
      [8]
    ]
  ]
]
\end{forest}
::::

:::: {.column width=40%}
\begin{forest}
[5
  [3
    [2] [4]
  ]
  [6
    [5] [7]
  ]
]
\end{forest}
::::
:::

\pause

\begin{tikzpicture}[overlay, remember picture]
  \node[rotate=-30,scale=3] at (1.5, 1) {\large \boldgreen{Korrekt}};
\end{tikzpicture}