algorithm of the identification