Chapter 9: Problem 50
a. For all real numbers \(u, \log _{2} u0\). b. Interpret the statement of part (a) using \(O\)-notation.
/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
Learning Materials
Features
Discover
Chapter 9: Problem 50
a. For all real numbers \(u, \log _{2} u0\). b. Interpret the statement of part (a) using \(O\)-notation.
All the tools & learning materials you need for study success - in one app.
Get started for free
In each of 10-14 assume \(f\) and \(g\) are real-valued functions defined on the same set of nonnegative real numbers. Prove that if \(f(x)\) is \(O(h(x))\) and \(g(x)\) is \(O(k(x))\), then \(f(x) g(x)\) is \(O(h(x) k(x))\)
\(k(n)=\left\lfloor n^{1 / 2}\right\rfloor\) for each integer \(n \geq 0\)
Draw the graphs of \(y=2\lfloor x\rfloor\) and \(y=\lfloor 2 x\rfloor\) for all real numbers \(x\). What can you conclude from these graphs? Graph each of the functions defined in \(5-8\) below.
a. Show that for any real number \(x\), $$ \text { if } x>1 \text { then }\left|x^{4}\right| \leq\left|23 x^{4}+8 x^{2}+4 x\right| . $$ b. Show that for any real number \(x\), $$ \text { if } x>1 \text { then }\left|23 x^{4}+8 x^{2}+4 x\right| \leq 35\left|x^{4}\right| \text {. } $$ c. Use the \(\Omega\) - and \(O\)-notations to express the results of parts (a) and (b). d. What can you deduce about the order of \(23 x^{4}+8 x^{2}+\) \(4 x\) ?
Exercises \(36-39\) refer to the following algorithm to compute the value of a real polynomial. Algorithm 9.3.3 Term-by-Term Polynomial Evaluation [This algorithm computes the value of the real polynomial \(a[n] x^{n}+a[n-1] x^{n-1}+\cdots+a[2] x^{2}+a[1] x+a[0]\) by computing each term separately, starting with \(a[0]\), and adding it on to an accumulating sum.] Input: \(n\) [a nonnegative integer], \(a[0], a[1], a[2], \ldots, a[n]\) [an array of real numbers], \(x[\) a real number \(]\) Algorithm Body: polyval := \(a[0]\) for \(i:=1\) to \(n\) term : = \(a[i]\) for \(j:=1\) to \(i\) term \(:=\) term \(\cdot x\) next \(j\) polyval := polyval + term next \(i\) [At this point polyval \(=a[n] x^{n}+a[n-1] x^{n-1}\) \(\left.+\cdots+a[2] x^{2}+a[1] x+a[0] .\right]\) Output: polyval [a real number] Trace Algorithm \(9.3 .3\) for the input \(n=3, a[0]=2, a[1]=\) \(1, a[2]=-1, a[3]=3\), and \(x=2\).
What do you think about this solution?
We value your feedback to improve our textbook solutions.