Chapter 4: Problem 69
Write out exactly what \(f(n) \neq O(g(n))\) means.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.
/*! 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 4: Problem 69
Write out exactly what \(f(n) \neq O(g(n))\) means.
These are the key concepts you need to understand to accurately answer the question.
All the tools & learning materials you need for study success - in one app.
Get started for free
Concern the Fibonacci sequence \(\left\\{f_{n}\right\\}\). Prove that $$1+\sum_{k=1}^{n} \frac{(-1)^{k+1}}{f_{k} f_{k+1}}=\frac{f_{n+2}}{f_{n+1}} \quad \text { for all } n \geq 1$$
What is wrong with the following argument that purports to show that we cannot simultaneously have \(f(n) \neq O(g(n))\) and \(g(n) \neq O(f(n)) ?\) If \(f(n) \neq O(g(n)),\) then for every \(C>0,|f(n)|>\) \(C|g(n)| .\) In particular, \(|f(n)|>2|g(n)| .\) If \(g(n) \neq O(f(n))\) then for every \(C>0,\lfloor g(n)|>C| f(n) \mid .\) In particular, \(\lfloor g(n) \mid>\) \(2|f(n)| .\) But now $$ |f(n)|>2|g(n)|>4|f(n)| $$ Cancelling \(|f(n)|\) gives \(1>4,\) which is a contradiction. Therefore, we cannot simultaneously have \(f(n) \neq O(g(n))\) and \(g(n) \neq O(f(n))\).
Select a theta notation from among $$ \begin{array}{l} \Theta(1), \quad \Theta(\lg n), \quad \Theta(n), \quad \Theta(n \lg n) \\\ \Theta\left(n^{2}\right), \quad \Theta\left(n^{3}\right), \quad \Theta\left(2^{n}\right), \quad \text { or } \Theta(n !) \end{array} $$ for the number of times the statement \(x=x+1\) is executed. $$ \begin{array}{c} \text { for } i=1 \text { to } n \\ \text { for } j=1 \text { to } n \\\ \text { for } k=1 \text { to } i \\ x=x+1 \end{array} $$
Does \(f(n)=\Theta(g(n))\) define an equivalence relation on the set of real- valued functions on \(\\{1,2, \ldots .1 ?\).
Concern the Fibonacci sequence \(\left\\{f_{n}\right\\}\). Define a sequence \(\left\\{g_{n}\right\\}\) as \(g_{1}=c_{1}\) and \(g_{2}=c_{2}\) for constants \(c_{1}\) and \(c_{2},\) and $$g_{n}=g_{n-1}+g_{n-2}$$ for \(n \geq 3\). Prove that $$g_{n}=g_{1} f_{n-2}+g_{2} f_{n-1}$$ for all \(n \geq 3\).
What do you think about this solution?
We value your feedback to improve our textbook solutions.