Clarify number of calls
This commit is contained in:
parent
403f2300c3
commit
5e08fd3ded
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue