Question

4. Big-Oh and Rune time Analysis: describe the worst case running time of the following pseudocode functions in Big-Oh notati
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer

1)  O(n^2)
2)  O(n^3)
3)  O(n)
4)  O(log n)

Add a comment
Answer #2
1. Describe the worst case running time(O(T(n))) of the following pseudo code functions. I. void MyFunction(int n) { for (int i = 0; i < n; ++i) { for (int j = 0; j < i; ++j) {cout<<(”j = ” + j);} for (int k = 0; k < n * 3; ++k) {cout<<(”k = ” + k);} } }
source: Data Structure
answered by: Sara
Add a comment
Know the answer?
Add Answer to:
4. Big-Oh and Rune time Analysis: describe the worst case running time of the following pseudocode...
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