diff --git a/101_Einfuehrung.tex b/101_Einfuehrung.tex index 4d3834e4cb01af91af33d1dc56a26294e7b19b7c..936111b4623a847ce0d8e5e9e51c8c830f1221ff 100644 --- a/101_Einfuehrung.tex +++ b/101_Einfuehrung.tex @@ -26,7 +26,7 @@ genannt. \For{$i \leftarrow 2$ \KwTo n}{ $h \leftarrow A_i$ \; $j \leftarrow i-1$ \; - \While{$A_j>h$ \textbf{and} $j>0$}{ + \While{$A_j>h$ \textbf{and} $j≥0$}{ $A_{j+1} \leftarrow A_j$ \; $j \leftarrow j-1$ \; } @@ -61,7 +61,7 @@ Pseudocode & Zeitkonstante & Wiederholungen\\ \hline \hspace{0.8cm} $j \leftarrow i-1$ & $c_3$ & $\left(n-1\right)$ \\ \hline -\hspace{0.8cm} $\textbf{while } A_j > h \textbf{ and } j>0 \textbf{ do}$ & $c_4$ & $\sum_{i=2}^n t_i$ \\ +\hspace{0.8cm} $\textbf{while } A_j > h \textbf{ and } ≥>0 \textbf{ do}$ & $c_4$ & $\sum_{i=2}^n t_i$ \\ \hline \hspace{1.3cm} $A_{j+1} \leftarrow A_j$ & $c_5$ & $\sum_{i=2}^n(t_i-1)$ \\ \hline