Clarify number of calls

This commit is contained in:
Antti H S Laaksonen 2017-05-25 16:10:21 +03:00
parent 403f2300c3
commit 5e08fd3ded
1 changed files with 3 additions and 3 deletions

View File

@ -174,10 +174,10 @@ Hence, the call $\texttt{g}(n)$ causes the following calls:
\begin{tabular}{rr} \begin{tabular}{rr}
parameter & number of calls \\ parameter & number of calls \\
\hline \hline
$\texttt{g}(n)$ & 1 \\ $n$ & 1 \\
$\texttt{g}(n-1)$ & 2 \\ $n-1$ & 2 \\
$\cdots$ & $\cdots$ \\ $\cdots$ & $\cdots$ \\
$\texttt{g}(1)$ & $2^{n-1}$ \\ $1$ & $2^{n-1}$ \\
\end{tabular} \end{tabular}
\end{center} \end{center}
Based on this, the time complexity is Based on this, the time complexity is