Section 6.1

Asymptotic Growth Rate

[12/33%]
Show
LaTeX
Example 6.1

Suppose we are given three pegs and nn disks, with all nn disks having different size. Initially, the nn disks are stacked in decreasing size, from bottom to top, in the first peg (see Figure 6.1). The Tower of Hanoi problem is to transfer the entire tower of nn disks from the first peg to the second peg, moving one disk at a time and never putting a larger disk on top of a smaller disk. What is the fastest solution to this problem? Is the fastest solution feasible for size n=64n=64 (the size of the original Tower of Hanoi problem)?

Figure 6.1: The Tower of Hanoi problem.Figure 6.1: The Tower of Hanoi problem.

?
Example 6.3

Show that the function 2log⁡n2^{\sqrt{\log n}} grows slower than every function in the polynomial sequence, but faster than every function in the poly-log sequence.

?
Example 6.4

Suppose f(n)≺g(n)f(n) \prec g(n). Show that there exists a function h(n)h(n) such that f(n)≺h(n)≺g(n)f(n) \prec h(n) \prec g(n).

?
Example 6.5

Show that log⁡∗n≺log⁡(m)n\log^{*} n \prec \log^{(m)} n for any constant integer m≥1m \geq 1.

?
Problem 6.1.1

Show that 2ln⁡n=o(n)2^{\ln n}=o(n) and 2log⁡(2n)=O(n)2^{\log (2 n)}=O(n).

?
Problem 6.1.2

Show that (log⁡n)10≺n10≺2(log⁡n)10(\log n)^{10} \prec n^{10} \prec 2^{(\log n)^{10}}.

?
Problem 6.1.3

Compare the following three functions using the ≺\prec notation:

2nlog⁡n,n(log⁡n)2,(log⁡n)2n 2^{n^{\log n}}, \quad n^{(\log n)^{2}}, \quad (\log n)^{2^{n}}
?
Problem 6.1.4

Compare 2log⁡∗n2^{\log { }^{*} n} with nn using the ≺\prec notation.

?
Problem 6.1.5

Suppose that f(n)≺g(n)f(n) \prec g(n). Is it true that for any increasing function h(n)h(n) with lim⁡n→∞h(n)=∞,h(f(n))≺h(g(n))\lim_{n \rightarrow \infty } h(n)=\infty , h(f(n)) \prec h(g(n))? Present a proof or a counterexample.

?
Problem 6.1.6

Prove that log⁡(k+1)≺log⁡(k)n\log^{(k+1)} \prec \log^{(k)} n for any k≥0k \geq 0.

?
Problem 6.1.7

Denote log⁡∗∗n=min⁡{k∣(log⁡∗)(k)n≤1,k≥1}\log^{* *} n=\min \left\{ k \mid \left(\log^{*}\right)^{(k)} n \leq 1, k \geq 1\right\}. Compare log⁡∗∗n\log^{* *} n with log⁡∗n\log^{*} n.

?
Problem 6.1.8

Recall the Ackermann function AA defined in Exercise 8 of Section 4.8.

?
(a)

Compare the function f(n)=A(n,n)f(n)=A(n, n) with 22n2^{2^{n}}.

(b)

Compare the function g(n)=max⁡{k∣A(k,k)≤n}g(n)=\max \left\{ k \mid A(k, k) \leq n\right\} with log⁡∗n\log^{*} n.