Logical memory is the address space, assigned to a logical partition, that the operating system perceives as its main storage.
The process that determines how bits are represented on the medium is called encoding. It is the process of converting a certain data into a particular format that is required for a certain processing need like program execution, data transmission or file conversion.