Question

13) Find the exact complexity, counting each assignment and comparison and also the Big O notation...

13) Find the exact complexity, counting each assignment and comparison and also the Big O notation

For (i=0; i<n; i++)

For (j=3; j<n; j++)

a=a+b;

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

We have for(i=0; i<ngitt) for(j=3; j<ngitt) a=a+bi As we can see that both the for loop are nested but both are independent

Add a comment
Know the answer?
Add Answer to:
13) Find the exact complexity, counting each assignment and comparison and also the Big O notation...
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