資料結構›Ch1 演算法基礎
第 33 題/共 57 題
◀ DS 33/57
33. Function Iteration、Iterated Logarithm
#DS-01-033易Function IterationIterated Logarithm
  1. Function iteration: The notation f(i)(n)f^{(i)}(n) (NOT fi(n)f^i(n)) denotes the function f(n)f(n) iteratively applied i times to an initial value of n. For non-negative integers i, f(i)(n)=nf^{(i)}(n)=n if i=0i=0, and f(i)(n)=f(f(i−1)(n))f^{(i)}(n)=f(f^{(i-1)}(n)) if i>0i>0. Now let lg⁡n\lg n represent base-2 logarithm. lg⁡(i)n\lg^{(i)} n is defined as above with f(n)=lg⁡nf(n)=\lg n; note that lg⁡(i)n\lg^{(i)} n is defined only if lg⁡(i−1)n>0\lg^{(i-1)} n>0. Let lg⁡∗n\lg^* n denote the iterated logarithm, given by lg⁡∗n=min⁡{i≥0:lg⁡(i)n≤1}\lg^* n=\min\{i\ge 0: \lg^{(i)} n\le 1\}. Which of the following statement(s) is(are) correct?
📄 交大110
跳轉到第題
▤完整推導請見《WH 資工筆記 · 資料結構》Ch1 演算法基礎
本章題號 · 21–40 / 57