Complex sentence: Thus, the problem is most difficult if "N" and "P" are of the same order but it only becomes easy if either "N" or "P" becomes very small.
Split into simpler sentences: Thus, the problem is most difficult if "N" and "P" are of the same order. It only becomes easy if either "N" or "P" becomes very small.