Question

Consider the following algorithm x 1 for E1, 2, 3} do for jE1, 2, 3, 4} do X x X for kE 1, 2, 3, 4, 5} do x X+ 1 LX x +5 Coun

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

two plus operation per k

no of k =5

so 10 operations per i due to k

no of operations due to j =4 per i

So total 14 operation per i

no of i =3

total number of operation=14*3=42

Add a comment
Know the answer?
Add Answer to:
Consider the following algorithm x 1 for E1, 2, 3} do for jE1, 2, 3, 4} do X x X for kE 1, 2, 3, 4, 5} do x X+ 1 LX x +...
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