The encoder algorithm describes how a sequence is encoded, including high level decision as well as algorithm used at every encoding stage.