1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Goryan [66]
4 years ago
12

Assume you have functions f and g such that f(n) is O(g(n)). For each of the following statements, decide whether you think it i

s true or false and give a proof or counterexample. a) f(n) 2 is O(g(n) 2 ) b) 2f(n) is O(2g(n) )
Computers and Technology
1 answer:
irakobra [83]4 years ago
8 0

Answer:

1. By assumption there exist N ∈ N and c ∈ R>0 such that for all n ∈ N with n ≥ N we

have

0 ≤ f(n) ≤ cg(n).

But then, since log2

is order-preserving:

log2 f(n) ≤ log2

cg(n)

= log2

c + log2

g(n).

That looks almost OK. We want to find a d ∈ R>0 such that log2 f(n) ≤ d log2

g(n).

Using the previous, it is sufficient to show:

log2

c + log2

g(n) ≤ d log2

g(n).

And this is OK, if:

log2

c

log2

g(n)

+ 1 ≤ d.

However, log2

g(n) might get closer and closer to 0 while n gets bigger. This leads us

to the following counterexample:

2(1 + 1

n

) ∈ O(1 + 1

n

),

but

log2 2 + log2

(1 + 1

n

) ∈/ O(log2

(1 + 1

n

)).

2. We have 2n ∈ O(n), however we saw last week that 22n ∈/ O(2n

).

3. By assumption there exist N ∈ N and c ∈ R>0 such that for all n ∈ N with n ≥ N we

have

0 ≤ f(n) ≤ cg(n).

But then, since squaring is order-preserving (on positive values), also:

0 = 02 ≤ f(n)

2 ≤ (cg(n))2

= c

2

g(n)

2

.

Thus f

2 ∈ O(g

2

).

You might be interested in
40 POINTS PLZ HELP NEED ASAP!!!
dem82 [27]
I Think The answer is c I hope it helps Message Me if I’m wrong and I’ll change My answer and fix it for you
7 0
3 years ago
Using data from a tal distribution database, define a view named toplevelcust. it consists of the number, name, address, balance
valentina_108 [34]
A) CREATE TABLE toplevelcust (number INTEGER PRIMARY KEY, <span> name TEXT, address TEXT, balance DOUBLE, credit DOUBLE</span>);

b) select number, name, credit - balance from toplevelcust

c) This I cannot answer
7 0
3 years ago
Read 2 more answers
How can I change it to accepted file types: .ppt, .pptx, .xls, .xlsx, .doc, .docx, .zip, .pdf, .accdb, .msg on Inkscape?
Alisiya [41]
Go to file>export as and it will allow you to change it to other files.
7 0
3 years ago
Read 2 more answers
Ecommerce sites sell this to generate income
prisoha [69]
They sell products through ads.
7 0
3 years ago
When working with a spreadsheet, data analysts can use the _____ function to locate specific characters in a string.
jonny [76]

When working with a spreadsheet, data analysts can use the CLEAN function to locate specific characters in a string.

<h3>What is the CLEAN Function? </h3>

The CLEAN Function is known to be a tool that is often categorized in the Excel Text functions.

Note that this function tends to delete or remove any kind of non-printable characters from any specified or given text.

Note that As financial analysts, people tend to often import data from a lot of sources and the CLEAN function can help to delete nonprintable characters.

Hence, When working with a spreadsheet, data analysts can use the CLEAN function to locate specific characters in a string.

Learn more about spreadsheet from

brainly.com/question/4965119

#SPJ1

6 0
2 years ago
Other questions:
  • Information goes into a computer through _______ and comes our through _______
    6·2 answers
  • If you quote an author from a website in a paper, it will be important to create a _____ in your writing to give them credit for
    7·2 answers
  • Write a single c statement to read an integer from the keyboard and assign it variable "num"
    6·1 answer
  • Differentiate between Software as a service, platform as a service and infrastructure as a service.
    14·1 answer
  • Convert the following Base 2 (binary) numbers to base 10(decimal):<br> 11101<br> 1010101
    13·1 answer
  • MARKETING HELP PLEASE?!?!?
    15·1 answer
  • Which clauses in the Software Engineering Code of Ethics are upheld by a whistleblower (check all that apply). "Respect confiden
    15·1 answer
  • You can select multiple words by using the ______ keys repeatedly.
    6·1 answer
  • Write a function that takes an integer value and returns the number with its digits reversed. for example, given the number 7631
    10·1 answer
  • Priortization is an example of a skill that helps you reach long term goals because
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!