By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,222 Members | 1,728 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,222 IT Pros & Developers. It's quick & easy.

What is the complexity of Nested loop

P: 1
I have used the Nested loop in C programming, And At the time of using the nested loop and the compilation time, it was getting slow over the complexity time. And it has shown hp printer won't print error so I want some solution over that.
Sep 14 '18 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 9,197
Complexity has to do with the number of operations required to reach an answer. In the case of your loop, there must be a very large number of steps to go from cycle to cycle for things to slow down.

How many levels in your loop nest? More than three is very unusual.

There are various methods of calculating complexity. This forum is not designed to duplicate textbook material. Any C/C++ textbook will explain this.
Sep 16 '18 #2

Post your reply

Sign in to post your reply or Sign up for a free account.