Method and apparatus for encoding and decoding in electronic device
09571130 ยท 2017-02-14
Assignee
Inventors
- Mykola Raievskyi (Cherkassy, UA)
- Oleg Kopysov (Kharkiv, UA)
- Oleksandr Kanievskyi (Kyiv, UA)
- Roman Gush (Okhtyrka, UA)
Cpc classification
H03M13/134
ELECTRICITY
H03M13/373
ELECTRICITY
International classification
H03M13/00
ELECTRICITY
H03M13/37
ELECTRICITY
H03M13/15
ELECTRICITY
Abstract
A method and an apparatus for encoding and decoding in an electronic device are provided. In a decoding method, at least one parity symbol is received. A Cauchy matrix is generated using the at least one parity symbol. A Cauchy submatrix is configured from the Cauchy matrix based on the number of at least one lost data symbol and an inverse matrix of the Cauchy submatrix is calculated. At least one parity symbol corresponding to the at least one lost data symbol is updated. The at least one lost data symbol is recovered using the updated at least one parity symbol.
Claims
1. A decoding method in an electronic device comprising: receiving at least one parity symbol; generating a matrix comprising a plurality of elements in a form of a Cauchy matrix based on the at least one parity symbol; configuring a Cauchy submatrix from the matrix based on a number of at least one lost data symbol to calculate an inverse matrix of the Cauchy submatrix; updating the at least one parity symbol corresponding to the number of at least one lost data symbol by multiplying the inverse matrix of the Cauchy submatrix to the at least one parity symbol; and recovering the number of at least one lost data symbol using the updated at least one parity symbol, wherein each of the plurality of elements is determined based on at least one of first sets including Galois Field elements and at least one of second sets including Galois Field elements, and wherein each of the Galois Field elements included in the at least one of first sets is different from each other and each of the Galois Field elements included in the at least one of second sets is different from each other.
2. The method of claim 1, wherein each element of the inverse matrix of the Cauchy submatrix is determined by a ratio of a determinant of the Cauchy matrix and a determinant of the Cauchy submatrix.
3. The method of claim 2, wherein each element of the inverse matrix of the Cauchy submatrix is defined by Equation below:
4. The method of claim 3, wherein a determinant det (A) of the Cauchy matrix is defined by Equation below:
5. The method of claim 1, wherein each element of the inverse matrix of the Cauchy submatrix is defined by Equation below in order to express a symbol in a Galois Field:
6. The method of claim 1, wherein the updated at least one parity symbol is generated by excluding parity symbols corresponding to received data symbols from the at least one parity symbol.
7. The method of claim 1, wherein the number of at least one lost data symbol is generated by multiplying the inverse matrix of the Cauchy submatrix by the updated at least one parity symbol.
8. An encoding method in an electronic device, the method comprising: receiving at least one message vector; encoding the at least one message vector in parallel using a generation matrix comprising a plurality of elements in a form of a Cauchy matrix form configured to prevent repetition of redundant data; converting the at least one message vector to at least one codeword vector comprising the at least one message vector and a parity vector based on the encoded the at least one message vector; and outputting the at least one codeword vector, wherein each of the plurality of elements is determined based on at least one of first sets including Galois Field elements and at least one of second sets including Galois Field elements, and wherein each of the Galois Field elements included in the at least one of first sets is different from each other and each of the Galois Field elements included in the at least one of second sets is different from each other.
9. The method of claim 8, wherein the generation matrix is defined by Equation below:
10. The method of claim 9, wherein the generation matrix meets a condition of Equation below in order to prevent repetition of redundant data:
i{0 . . . nk1}, j{0 . . . k1}:x.sub.i+y.sub.j=0; and
i,j{0 . . . nk1}, ij:x.sub.ix.sub.j;i,j{0 . . . k1},ij;y.sub.iy.sub.j.
11. A decoding apparatus in an electronic device, the decoding apparatus comprising: a Cauchy matrix generator configured to receive at least one parity symbol to generate a Cauchy matrix using the at least one parity symbol; an inverse matrix calculator configured to configure a matrix comprising a plurality of elements in a form of a Cauchy submatrix from the Cauchy matrix based on a number of at least one lost data symbol to calculate an inverse matrix of the Cauchy submatrix; a parity updater configured to update at least one parity symbol corresponding to the number of at least one lost data symbol by multiplying the inverse matrix of the Cauchy submatrix to the at least one parity symbol; and a data symbol recovery unit configured to recover the number of at least one lost data symbol using the updated at least one parity symbol, wherein each of the plurality of elements is determined based on at least one of first sets including Galois Field elements and at least one of second sets including Galois Field elements, and wherein each of the Galois Field elements included in the at least one of first sets is different from each other and each of the Galois Field elements included in the at least one of second sets is different from each other.
12. The decoding apparatus of claim 11, wherein each element of the inverse matrix of the Cauchy submatrix is determined by a ratio of a determinant of the Cauchy matrix and a determinant of the Cauchy submatrix.
13. The decoding apparatus of claim 12, wherein each element of the inverse matrix of the Cauchy submatrix is defined by Equation below:
14. The decoding apparatus of claim 13, wherein a determinant det (A) of the Cauchy matrix is defined by Equation below:
15. The decoding apparatus of claim 11, wherein each element of the inverse matrix of the Cauchy submatrix is defined by Equation below in order to express a symbol in a Galois Field:
16. The decoding apparatus of claim 11, wherein the updated at least one parity symbol is generated by excluding parity symbols corresponding to received data symbols from the at least one parity symbol.
17. The decoding apparatus of claim 11, wherein the number of at least one lost data symbol is generated by multiplying the inverse matrix of the Cauchy submatrix by the updated at least one parity symbol.
18. An encoding apparatus in an electronic device, wherein the encoding apparatus is configured to: receive at least one message vector; encode the at least one message vector parallel using a generation matrix comprising a plurality of elements in a form of a Cauchy matrix form configured to prevent repetition of redundant data; convert the at least one message vector to at least one codeword vector comprising the at least one message vector and a parity vector based on the encoded at least one message vector; and output the at least one codeword vector, wherein each of the plurality of elements is determined based on at least one of first sets including Galois Field elements and at least one of second sets including Galois Field elements, and wherein each of the Galois Field elements included in the at least one of first sets is different from each other and each of the Galois Field elements included in the at least one of second sets is different from each other.
19. The encoding apparatus of claim 18, wherein the generation matrix is defined by Equation below:
20. The encoding apparatus of claim 19, wherein the generation matrix is configured to meet a condition of Equation below in order to prevent repetition of redundant data:
i{0 . . . nk1}, j{0 . . . k1}:x.sub.i+y.sub.j=0; and
i,j{0 . . . nk1}, ij: x.sub.ix.sub.j;i,j{0 . . . k1},ij;y.sub.iy.sub.j.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) For a more complete understanding of the present disclosure and its advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, in which like reference numerals represent like parts:
(2)
(3)
(4)
(5)
(6)
(7) Throughout the drawings, like reference numerals will be understood to refer to like parts, components and structures.
DETAILED DESCRIPTION
(8)
(9) Hereinafter, a method and an apparatus for encoding and decoding in an electronic device 10 are described.
(10) Various embodiments of the present disclosure are applicable to a reed-solomon decoding algorithm for erasure channels capable of recovering k source elements from a set of k received elements. Recovering a source element is based on a basic attribute of a Cauchy matrix where a submatrix of the Cauchy matrix is converted inversely.
(11) However, various embodiments of the present disclosure are not limited to the reed-solomon decoding algorithm, and are applicable to a decoding algorithm based on an FEC technology recovering k source elements from a set of k received elements.
(12)
(13) Referring to
(14) In various embodiments, a plurality of message vectors are parallel-processed, so that a plurality of codeword vectors is output.
(15) Also, in various embodiments, at least a portion of a plurality of codeword vectors is erased. The erased some codeword vectors is recovered by a decoding apparatus and decoded using an original message vector.
(16) In various embodiments of the present disclosure, the generation matrix G is defined by Equation (1) in order to prevent repetition of redundant data.
(17)
(18) where x, y are elements of a Galois Field, k is a size of an information bit, n is a size of a parity bit, and i, j are array elements.
(19) The generation matrix G meets a condition of Equation (2) below in order to prevent repetition of redundant data.
i{0 . . . nk1}, j{0 . . . k1}:x.sub.i+y.sub.j=0;
i,j{0 . . . nk1}, ij:x.sub.ix.sub.j;i,j{0 . . . k1},ij;y.sub.iy.sub.j(2)
(20) For example, for all i in a range of 0<i<nk1 and all j in a range of 0<j<nk1, x.sub.i+y.sub.j=0 is met, for all i and j in a range of 0<i,j<nk1, x.sub.ix.sub.j is met, and for all i and j in a range of 0<i, j<k1, y.sub.iy.sub.j is met, so that repetition of redundant data in the generation matrix G is prevented.
(21)
(22) Referring to
(23) The Cauchy matrix generator 200 receives at least one codeword vector from the encoding apparatus 100, collect data symbols and parity symbols included in the codeword vector, and generate a Cauchy matrix A. For example, the Cauchy matrix is configured using parity symbols or a combination of data symbols and parity symbols. In various embodiments, the Cauchy matrix is a Cauchy matrix determined in advance or a default Cauchy matrix.
(24) The inverse matrix calculator 202 calculates an inverse matrix A.sub.i,j of a Cauchy submatrix using a determinant det (A) of a Cauchy matrix generated by the Cauchy matrix generator 200 and a determinant det (A.sub.j,i) of a submatrix A.sub.j,i where at least one row j and at least one column i have been deleted (or excluded) from the Cauchy matrix.
(25) For example, an inverse matrix A.sub.j,i of a Cauchy submatrix is determined by a ratio of the determinant det (A) of the Cauchy matrix and the determinant det (A.sub.j,i) of the submatrix as in Equation (3).
(26)
(27) where s is a size of the inverse matrix of the Cauchy submatrix, and A.sub.j,i is a matrix excluding a j-th row and an i-column in the Cauchy matrix A.
(28) A determinant det (A) of the Cauchy matrix is defined by Equation (4) below.
(29)
(30) where x.sub.i and y.sub.j are elements of a Galois Field, k is a size of an information message or a length of an information bit, n is a size of an encoded information message or a length of an encoded bit, and i, j are indexes indicating array elements.
(31) Each element of the inverse matrix of the Cauchy submatrix is defined by Equation (5) below in order to express a symbol in a Galois Field.
(32)
(33) where s is a size of the Cauchy submatrix, and a.sub.ij is an element of an inverse matrix of the Cauchy submatrix that is positioned at an i-th row and a j-th column.
(34) In various embodiments of the present disclosure, a technology for calculating an inverse matrix of a Cauchy submatrix is an important concept, and provides possibility for implementing a new solution for protecting information from a packet loss. Also, according to various embodiments of the present disclosure, the technology for calculating an inverse matrix of a Cauchy submatrix is used for expressing symbols in a Galois Field.
(35) The parity updater 204 updates content of received parity symbols by excluding information regarding received data symbols. Therefore, the updated parity symbols includes only information regarding a data symbol lost or erased by a transmitter.
(36) The data symbol recovery unit 206 multiplies an inverse matrix of the Cauchy submatrix from the inverse matrix calculator 202 by the updated parity symbols from the parity updater 204 to output data symbols lost or erased by the transmitter.
(37)
(38) Referring to
(39)
(40) Referring to
(41) The decoding apparatus 201 calculates an inverse matrix A.sub.j,i of a Cauchy submatrix using a determinant det (A) of a generated Cauchy matrix and a determinant det (A.sub.j,i) of a submatrix A.sub.j,i, where at least one row j and at least one column i have been deleted (or excluded) from the Cauchy matrix in step 404. For example, an inverse matrix A.sub.j,i of a Cauchy submatrix is determined by a ratio of the determinant det (A) of the Cauchy matrix and the determinant det (A.sub.j,i) of the submatrix as in Equation (3).
(42) The decoding apparatus 201 excludes information regarding received data symbols to update content of received parity symbols in step 406. Therefore, the updated parity symbols includes only information regarding a data symbol lost or erased by a transmitter.
(43) The decoding apparatus multiplies an inverse matrix of the Cauchy submatrix by the updated parity symbols to calculate data symbols lost or erased by the transmitter in step 408.
(44)
(45) Referring to
(46) In various embodiments, the Cauchy matrix having a size of R*k is configured using a plurality of input parity data (or symbols) or a combination of information data and parity data.
(47) The decoding apparatus 201 calculates an inverse matrix of a Cauchy submatrix in step 504. Each element of the inverse matrix of the Cauchy submatrix is determined by Equation (5). In the inverse matrix of the Cauchy submatrix, a column index is determined by an index of a received parity symbol, and a row index is determined by an index of a lost data symbol.
(48) For example, if two data symbols are lost, two rows and two columns are excluded from a Cauchy matrix. As a result, four determinants and four elements of the inverse matrix of the Cauchy submatrix are determined.
(49) The decoding apparatus sets p=0 in step 506. Here, p is a parity element of a matrix.
(50) When p<T in step 508, the decoding apparatus proceeds to step 510 to set g=0. Here, g is an index and T is a threshold. In contrast, when p>=T, the decoding procedure of the present disclosure ends.
(51) When g<R in step 512, the decoding apparatus 201 proceeds to step 514 to update content of a received symbol. For example, the decoding apparatus 201 updates the parity symbol content as in Equation (6). In contrast, when g>=R in step 512, the decoding apparatus 201 proceeds to step 516.
(52)
where d is an information symbol that is known or may not be known, k is a row number, and A is an element of a generation matrix.
(53) The decoding apparatus sets g=g+1 in step 515.
(54) The decoding apparatus 201 sets i=0 in step 516. i is an index.
(55) When i<R in step 518, the decoding apparatus 201 proceeds to step 522 to set j=0. j is an index. In contrast, when i>=R in step 518, the decoding apparatus 201 proceeds to step 520 to set p=p+1.
(56) When j<R in step 526, the decoding apparatus 201 proceeds to step 528 to recover lost data. For example, the decoding apparatus 201 updates parity symbol content as in Equation (7). In contrast, when j>=R in step 526, the decoding apparatus 201 proceeds to step 524 to set i=j+1.
d[i;p]=d[i;p]+a[i;j]*P[j](7)
(57) The decoding apparatus 201 sets j=j+1 in step 539.
(58) As described above, the present disclosure improves a speed of encoding and decoding processes, reduce complexity of encoding and decoding procedures, and reduce power reduction due to repetition of redundant data in a multiblock FEC scheme by determining information regarding a lost or erased data symbol using an inverse matrix of a submatrix of a Cauchy matrix.
(59) Although the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details is made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Therefore, the scope of the present disclosure should not be limited to the above-described embodiments but should be determined by not only the appended claims but also the equivalents thereof.