#Confused about proving the base case

48 messages · Page 1 of 1 (latest)

potent bison
#

How does the assumption that T(n) <= c for n <= 2 help with the base case?

rotund wolfBOT
#
  1. Ask your question and show the work you've done so far. If you've posted a screenshot of a question, specify which part you need help with.
  2. Wait patiently for a helper to come along.
  3. Once someone helps you, say thank you and close the thread with:
    +close
    
  4. Feel free to nominate the person for helper of the week in #helper-nominations
  5. Do not ping the mods, unless someone is breaking the rules.
  6. If you're happy with the help you got here, and the server overall, you can contribute financially as well:
slate thorn
#

The assumption provides a concrete bound for T(n) when n is small (specifically, for n = 1 and n = 2). This allows us to explicitly verify that the function behaves as expected for these initial values.

potent bison
#

but it says assume T <= c instead of >=

#

we are provin lower bound so shouldnt it have been T >= c

slate thorn
#

The predicate P(n) is defined as T(n) >= cn^log_2^3.

#

By making sure the base case holds (via the assumption), we can then just use mathematical induction to show that P(n) holds for all n.

slate thorn
olive hollyBOT
#

Stratos
Compile Error! Click the errors reaction for more information.
(You may edit your message to recompile.)

slate thorn
#

So again, this makes sure of a smooth transition in the inductive proof.

potent bison
#

Im ngl i feel like u explained the why not how coz i dont get it

#

im saying how does that assumption help prove the base case

slate thorn
potent bison
#

but im still not understanding why that specific assumption just lets us skip base cases without explaining it

slate thorn
# potent bison right so for this we woulda be starting for n > 2

Think of it this way. So, the assumption ( T(n) \leq c ) for ( n \leq 2 ) means we can confidently state that the function does not exceed a certain value for small inputs, which simplifies your analysis. Since the behavior of ( T(n) ) is known for these base cases, we can focus on proving the lower bound for larger ( n ) without needing to verify the base cases individually.

olive hollyBOT
#

Stratos

slate thorn
#

This allows you to use mathematical induction effectively!

potent bison
#

ohhhhhhhg

#

and when provin for omega i would say that its true for smaller inputs?

#

wait what idk acc

#

but for omega how would the assumption work

slate thorn
# potent bison ohhhhhhhg

For reiteration, the assumption ( T(n) \leq c ) for ( n \leq 2 ) shows that the function is bounded for small inputs, allowing us to focus on proving the lower bound for larger ( n ).

olive hollyBOT
#

Stratos

slate thorn
olive hollyBOT
#

Stratos

potent bison
#

wait huhhhh

#

i thought we said that the big o doesnt work for smaller values

slate thorn
#

in this context

#

we focus on the growth of the function for larger n

#

the assumption for small values helps us establish a baseline but when proving omega, we primarily demonstrate that T(n) meets or exceeds the lower bound as n increases

#

keep in mind

#

regardless of its behavior for small inputs

#

does that make sense @potent bison

potent bison
#

so for omega we focus on larger n

#

oh wait im so sorry for being slow i meant but for big O

#

we were talking about omega previously i forgot

slate thorn
#

You're all good.

#

Just keep in mind that for ( O ), the assumption about small inputs helps establish that the function doesn't exceed a certain value, but we primarily focus on showing that ( T(n) ) grows no faster than the upper bound for larger ( n )

olive hollyBOT
#

Stratos

potent bison
#

for the assumption

#

because I am trynna do another question in a similiar manner but not sure about the assumption