Question

Prove mathematically that if a Turing Machine runs in time O(g(n)), then it runs in time...

Prove mathematically that if a Turing Machine runs in time O(g(n)), then it runs in time O(h(g(n)) +c),
for any constant c ≥ 0 and any functions g(n) and h(n) where h(n) ≥ n.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

f(n) is O(g(n)) then
   there exist a constant c > 0, and a constant n0 such that for all n ≥ n0: f(n) ≤ c*g(n)

hence:
   there exist a constant c > 0, and a constant n0 such that for all n ≥ n0: g(n) ≥ (1/c)*f(n)
     note that since c > 0, then the constant (1/c) > 0

hence:
   there exist a constant k > 0, namely h = (1/c), and a constant n0 such that for all n ≥ n0: g(n) ≥ h*f(n)

which is the definition of g(n) = Ω (f(n)).

Add a comment
Know the answer?
Add Answer to:
Prove mathematically that if a Turing Machine runs in time O(g(n)), then it runs in time...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT