The phase problem and algorithms of its solution are analyzed theoretically. The questions on the ambiguity of the phase problem solution in the one–dimensional and multi–dimensional cases are discussed. A new method is proposed for constructing all solutions in a two–dimensional case.