1

I have an assignment that asks me to explain the "order of complexity" of an algorithm. Can anyone explain what that question means? Does that mean what happens first and so on?
Thanks.

4
Contributors
5
Replies
6
Views
11 Years
Discussion Span
Last Post by Micko
1

actually,in data structure couse we usually find efficiency of our code. it mean that how much our code is efficient.as your question order of growth directly proportional to time complexity and similarly time complexty directly proportional to program steps in your assignment you are required to find step count for example
for(int i=0; i<n; i++)
{
one statement execute;
}
in this example the growth order is n because the loop execute n
n is basically instance characteristics

1

Well if you don't want to bother with math notation that will probably confuse you more than you actually are, here is pretty good explanation using programmers perspective:

I hope this helps!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.