1. An information processing apparatus comprising: an acquiring unit that acquires numeral string data; and a creating unit that encodes the numeral string data to create code string data by assigning a code to a focused element of the numeral string data based on a magnitude relation between the focused element and an element adjacent to the focused element.