Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Help:how to find complexity of this algorithm

Status
Not open for further replies.

austinpowers

Electrical
Oct 21, 2005
25
0
0
US
few clc,fopen,fscanf, fclose statements , no loops
for j = 1 : num
if condition
statement1
if(condition)
statement2
end
else
statement3
if condition
statement4
end
end
end
statements
while (count<N)
statements
for j = 1 : num
if condition
statement
if(condition)
statement
end
else
statement
if condition
statement
end
end
end
if condition
statements
end
statement
for i = 1 : N
if condition
statement
end
end
statement
for i =1:num_edges
statement
if condition
statement
end
end
end
 
Status
Not open for further replies.
Back
Top