Question

An algorithm A executes some instructions to solve a problem of size n, the total number...

An algorithm A executes some instructions to solve a problem of size n, the total number of instruction is Θ (n3). An algorithm B executes half the instructions of A to solve the same problem of size n. What is the Big Theta of B (justify your answer) ?

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

number of instructions of B = number of instructions of A / 2
which is n^3/2
we can ignore the constant factor of 1/2
so, complexity of algorithm B is also Θ(n^3)

Answer: Θ(n3)
Add a comment
Know the answer?
Add Answer to:
An algorithm A executes some instructions to solve a problem of size n, the total number...
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
ADVERTISEMENT