--- 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}