The decoding algorithm is inverse to encoding. Encoding steps must be executed in a reverse way from the last to the first.