thembi00prince thembi00prince
  • 18-03-2022
  • Computers and Technology
contestada

Help here please

Show that 2n+1 is O(2n
) and 8n+5 = Ω(n)

Respuesta :

codeproexperts
codeproexperts codeproexperts
  • 18-03-2022

Answer:

Show that 2n+1 is O(2n)

Given f(n) = 2n+1

Definition of Big-Oh

f(n) = O(g(n)) means there are positive constants c and k, such that 0 ≤ f(n) ≤ cg(n) for all n ≥ k.

0 ≤ 2n+1 ≤ 2(2n)

Where c=2, n>0 and g(n)=2n

Explanation:

So, from the definition of Big-Oh we can say that

f(n) = O(g(n)) = o(2n)

Answer Link

Otras preguntas

Describe the central theme of code of conduct for the hammurabi code
heylo please help would like a correct one :)
An anthropologist discovers a thigh bone belonging to an adult human female. The bone is 16 inches long. Estimate the height of the female.
Y=2x + 11 Y=3x + 4 Solve for y
Test help pls What is the value of the expression ((9 - 5)^2 – 1) + 3? A) -5 B) 1 C) 5 D) 18
You find an igneous rock in your back yard. Is it possible that material from this rock formation could ever form sedimentary rock on Earth's surface? O Yes, en
What is the missing reason in the proof? Given: ∠ABC is a right angle, ∠DBC is a straight angle Prove: ∠ABC ≅ ∠ABD A horizontal line has points D, B, C. A line
why did Egyptians not pursue iron technology until the Late Period (Dynasties 25 or 26 through 31 or 747/664-332 BC) whereas other nearby cultures began doing s
Although the plagues were devastating they helped catapult advancements in science and heath true or false
Quebec the product of the French-Indian war True or False?