Calculating Algorithm complexity
If OP1 has complexity of O(nlogn) and OP2 has computational complexity of O(n) then what is the total complexity of following algorithm

For i=1:N 
        OP1
	For j=1:M
		OP2
	End	
end



Calculating Algorithm complexity
===

If OP1 has complexity of O(nlogn) and OP2 has computational complexity of O(n) then what is the total complexity of following algorithm

For i=1:N 
        OP1
	For j=1:M
		OP2
	End	
end


