A method and device for detecting and correcting errors in a data stream.
For example, a method and device for detecting and correcting errors in a
data stream including identifiers for a track address or identifiers for
encoded words in a wireless transmission. The method and device employ a
class of error correction codes to, for instance, encode track addresses
on a surface of a data storage medium. The encoding modifies natural
track addresses so that the difference between bit sequences in adjacent
track addresses is constant while simultaneously enabling both error
detection and error correction, thereby enabling more accurate head
positioning in a data storage device, in one embodiment.