423,335 Members | 1,149 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,335 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.
1 Week Ago #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,163
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.
5 Days Ago #2

Post your reply

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