摘要 |
The present invention provides a convolutional line coding method, including: constructing a sequence set, where the length of each sequence in the sequence set is n bits; selecting a balanced sequence in the sequence set, and obtaining source data of n-1 bits corresponding to the balanced sequence; performing Hamming distance detection for an unbalanced sequence in the sequence set to obtain source data of n-1 bits corresponding to the unbalanced sequence; sorting the balanced sequence and the unbalanced sequence according to an operation difference value, and generating a code table, where the source data of n-1 bits correspond to the sequence of n bits, and the code table is designed for line coding; and at time of encoding the source data of n-1 bits, obtaining a coding result of n bits according to a mapping relation in the code table. |