 In the standard version, the encoder increases the width from "p" to "p" + 1 when a sequence ω + "s" is encountered that is not in the table (so that a code must be added for it) but the next available code in the table is 2"p" (the first code requiring "p" + 1 bits).The encoder emits the code for ω at width "p" (since that code does not require "p" + 1 bits), and then increases the code width so that the next code emitted is "p" + 1 bits wide.The decoder is always one code behind the encoder in building the table, so when it sees the code for ω, it generates an entry for code 2"p" − 1.