Methods of discrete features in mathematical physics