Multidimensional Assignment Problem

The present invention relates to a diverting material or fluid-loss additive for use in subterranean formations penetrated by a well bore comprising graded phthalimide particles. The phthalimide particles are introduced into the formation in a carrier fluid. The carrier fluid can include gelling agents or any of the various salts known to be useful in fluids employed in subterranean formation treatment. The phthalimide particles can be used in elevated temperature oil and gas producing formations.