Difference Between Encoding and Decoding
Difference Between Encoding and Decoding
Decoding
Encoding :-
Transforming data in to more usable formats for different systems, using a
method publicly available is called encoding. Encoded data can be easily reversed. Most of
the time, the converted format is a standard format that is widely used.
For example, in ASCII (American Standard Code for Information Interchange) characters
are encoded using numbers. ‘A’ is represented using number 65, ‘B’ by number 66, etc.
These numbers are referred to as ‘code’.
Decoding :-
Decoding is the reverse process of encoding, which converts encoded
information back in to its original format. Encoded data can be easily decoded using
standard methods.
For example, decoding Binary Coded Decimal requires some simple calculations in base-2
arithmetic. Decoding ASCII values is a straightforward process since there is a one to one
mapping between characters and numbers. The term decoding is also used for digital to
analog conversion.