JPS5915229B2 - encoding device - Google Patents
encoding deviceInfo
- Publication number
- JPS5915229B2 JPS5915229B2 JP9019677A JP9019677A JPS5915229B2 JP S5915229 B2 JPS5915229 B2 JP S5915229B2 JP 9019677 A JP9019677 A JP 9019677A JP 9019677 A JP9019677 A JP 9019677A JP S5915229 B2 JPS5915229 B2 JP S5915229B2
- Authority
- JP
- Japan
- Prior art keywords
- symbol
- symbols
- dominant
- code word
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
【発明の詳細な説明】
本発明は、二値シンボルの出現確率が近接する情報源の
出力シンボルを符号化する符号化装置に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an encoding device that encodes output symbols of an information source in which the probabilities of appearance of binary symbols are close to each other.
従来、二値シンボルの出現確率が近接する情報源に対し
て、これを有効に符号化する実用的な符号としては、第
1図に示すものが知られているが、対象情報源が無記憶
情報源の時を考えると、発生頻度の高いシンボル(゛o
″シンボルとする)の出現確率が約0.62以下では
圧縮が行なえないという難点があつた。Conventionally, the code shown in Figure 1 has been known as a practical code that effectively encodes information sources with probabilities of occurrence of binary symbols that are close to each other. Considering the time of the information source, the most frequently occurring symbols (゛o
There was a problem in that compression could not be performed if the probability of appearance of a ``symbol'' was less than about 0.62.
本発明は、かかる点に鑑みてなされたもので、発生頻度
の高いシンボル(優勢シンボル)の発生確率をPとする
時、pn+”>(1−p)nを満たすnを選び、情報源
からの出力シンボルを、(n+1)ビットの優勢シンボ
ルのみからなるパターン、nビットの劣勢シンボルのみ
からなるパターン、及び優勢、劣勢シンボルの両方を含
むパターンに区切り、上記(n+1)ビットの優勢シン
ボルのみからなるバター、ンをnビットの符号語に、上
記nビットの劣勢シンボルのみからなるパターンを(n
+1)ビットの符号語に、両シンボルからなるパターン
をこれと同じビットの符号語に変換することにより、優
勢シンボルの出現確率がどんなに0.5に近くともシン
ボルの出現過程が無記憶過程に従う限り必ず符号化圧縮
が行なえる符号化装置を提供するものである。The present invention has been made in view of this point, and when the probability of occurrence of a symbol with a high frequency of occurrence (dominant symbol) is P, select n that satisfies pn+''>(1-p)n, and select n from the information source. Divide the output symbols into patterns consisting only of (n+1)-bit dominant symbols, patterns consisting only of n-bit inferior symbols, and patterns containing both dominant and recessive symbols, A pattern consisting only of the above n-bit recessive symbols is defined as (n
+1) By converting a pattern consisting of both symbols into a bit codeword, no matter how close the probability of appearance of the dominant symbol is to 0.5, as long as the symbol appearance process follows a memoryless process. The present invention provides an encoding device that can always perform encoding compression.
第2図は本発明に於いて、n=2とした場合の符号形式
例であり、第3図は二値シンボル系列と通報シンボル列
と符号化列との対応を示すものである。FIG. 2 shows an example of a code format when n=2 in the present invention, and FIG. 3 shows the correspondence between a binary symbol sequence, a reporting symbol sequence, and a coded sequence.
今、シンボノレ゛ o ″を優勢シンボルとすると第3
図aの二値出力シンボル系列を先頭シンボルが゛ 0
″の時は次に゛ 1 ″が出現するか、或b潤高合計3
個出現する毎に区切り、先頭シンボルがゞ 1 ″の時
は、次にゞo ″が出現するか或はゞビが合計2個出現
するかで区切れば第3図bの通報シンボル列が得られ、
これに第2図の符号を割当てると第3図cの符号系列が
得られる。Now, if the symbol ``o'' is the dominant symbol, the third
The binary output symbol sequence in figure a is
If ``, then ``1'' will appear next, or b total 3
If the first symbol is ゝ 1 '', it is divided according to whether ゝ o '' appears next or if ゝ bi appears two times in total. Then, the reporting symbol string in Figure 3b is obtained. obtained,
When the code shown in FIG. 2 is assigned to this, the code sequence shown in FIG. 3c is obtained.
第2図の符号語例ではゞo″シンボルのみ、(n+1)
個のパターンにはゞ 1″シンボルn個の連続を符号語
とし、ゞ1 /′S/ンボルのみn個のパターンに(T
O″シンボル(n+1)個の連続を符号語とし、他のパ
ターンについては原シンボル系列そのま\を符号語とし
ているので符号器の構成は極めて容易である。In the code word example in Figure 2, only the ゞo'' symbol, (n+1)
For each pattern, the code word is a sequence of n 1'' symbols, and only for the n symbols (T
Since the sequence of O'' symbols (n+1) is used as a code word, and the original symbol sequence \ is used as the code word for other patterns, the construction of the encoder is extremely easy.
また受信側では送信側と全ぐ同じアルゴリズムで復号が
可能であるので復号器は符号器と同一でよい。もし、対
象情報源が無記憶過程に従つてシンボルを出力するなら
ゞo″シンボルの出現確率をP(〉↓)、ゞ1″シンボ
ルの出現確率を1−Pとしてをみたすnを選べば、必ず
符号化圧縮が可能である。Furthermore, since decoding is possible on the receiving side using exactly the same algorithm as on the transmitting side, the decoder may be the same as the encoder. If the target information source outputs symbols according to a memoryless process, select n that satisfies ゞthe probability of appearance of the o'' symbol as P(〉↓), and the probability of appearance of the ゞ1'' symbol as 1-P. Encoding compression is always possible.
即ち、本符号を用いれば二値シンポルの出現確率が近接
する情報源を極めて効率よく符号化伝送できる。第4図
は無記憶情報源に対しその符号化効率を示すものであり
、斜線部は符号化圧縮できない場合を示している。That is, by using this code, it is possible to extremely efficiently code and transmit information sources in which the probabilities of appearance of binary symbols are close to each other. FIG. 4 shows the encoding efficiency of a memoryless information source, and the shaded area shows the case where encoding and compression cannot be performed.
尚、第5図は本発明の符号化部分のプロツク図例であり
、被符号化シンボル系列は符号変換器100に導かれる
。Incidentally, FIG. 5 is an example of a block diagram of the encoding part of the present invention, and the symbol sequence to be encoded is guided to the code converter 100.
101は先頭シンボルメモリで、先頭シンボルがゞo″
力〜 1 ″かにより、シンボルカウンタ102に最大
カウント数を出力し、被符号化シンボルは符号変換器1
00に導かれると同時に、シンボルカウンタ102及び
排他論理和回路103に導かれる。101 is the first symbol memory, the first symbol is ゞo''
The maximum count is output to the symbol counter 102 depending on the input power ~ 1'', and the symbol to be encoded is sent to the code converter 1.
At the same time as being led to 00, it is also led to the symbol counter 102 and the exclusive OR circuit 103.
排他論理和回路103では先頭シンボルと現在読み出さ
れるシンボルの排他的論理和をとり、先頭シンボルと異
なるシンボルが出現すれば、系列の切れ目、即ち通報シ
ンボルの発生であると判定する。またシンボルカウンタ
102では先頭シンボルと同一のシンボルの出現を計数
し、最大カウント数に達すると系列の切れ目、即ち通報
シンボルの発生であると判定する。このように、上記先
頭シンボルメモリ101.シンボルカウンタ102、及
び排他論理和回路103により、情報源からの出力シン
ボルを所定パターン毎に区切る区切り手段が構成されて
いる。符号変換器100(符号変換手段)は、排他論理
和回路103の判定出力による通報シンボルの場合は、
本来の二値シンボルをそのま\符号として出力し、シン
ボルカウンタ102の判定出力による通報シンボルの場
合は、ゞo″シンボルより成る時はn個のゞ 1 ″シ
ンボルにゞ 1 ″シンボルより成る時は、(n+1)
個のゞo ″シンボルに変換してこれを符号として出力
する。復号器は既に述べたように、符号器と同一でよい
。The exclusive OR circuit 103 performs an exclusive OR of the first symbol and the currently read symbol, and if a symbol different from the first symbol appears, it is determined that this is a break in the series, that is, the occurrence of a notification symbol. Further, the symbol counter 102 counts the occurrence of the same symbol as the first symbol, and when the maximum count is reached, it is determined that it is a break in the series, that is, the occurrence of a reporting symbol. In this way, the first symbol memory 101. The symbol counter 102 and the exclusive OR circuit 103 constitute a dividing means that divides the output symbols from the information source into predetermined patterns. When the code converter 100 (code converter) is a notification symbol based on the judgment output of the exclusive OR circuit 103,
When the original binary symbol is output as a \ code and the notification symbol is determined by the judgment output of the symbol counter 102, when it consists of ゞo'' symbols, when it consists of n ゞ 1'' symbols and ゞ 1'' symbols, is (n+1)
The decoder is converted into ゞo'' symbols and outputted as a code.The decoder may be the same as the encoder, as already mentioned.
以上で述べた本実施例は実用的かつ高能率の通報シンボ
ルの設定方法と、符号語の作成方法を具体的に提案する
ものである。The present embodiment described above specifically proposes a practical and highly efficient method for setting notification symbols and a method for creating code words.
以上のように本発明によれば、優勢シンボルの発生確率
をPとする時、P1+1〉(1−P)0を満たすnを選
び、情報源からの出力シンボルを、(n+1)ビツトの
優勢シンボルのみからなるパターン、nビツトの劣勢シ
ンボルのみからなるパターン、及び優勢、劣勢シンボル
の両方を含むパターンに区切り、上記(n+1)ビツト
の優勢シンボルのみからなるパターンをnビツトの符号
語に、上記nビツトの劣勢シンボルのみからなるパター
ンを(n+1)ビツトの符号語に、両シンボルからなる
パターンをこれと同じビツトの符号語に変換するように
したので、二値シンボルの出現確率の近接する情報源の
高効率符号化を実現することができる。As described above, according to the present invention, when the probability of occurrence of a dominant symbol is P, n is selected that satisfies P1+1>(1-P)0, and the output symbol from the information source is changed to the (n+1)-bit dominant symbol. A pattern consisting only of n-bit dominant symbols, a pattern consisting only of n-bit recessive symbols, and a pattern including both dominant and recessive symbols. Since a pattern consisting only of bit-inferior symbols is converted into an (n+1)-bit code word, and a pattern consisting of both symbols is converted into a code word of the same bit, a proximate information source for the appearance probability of a binary symbol is used. Highly efficient encoding can be realized.
第1図は従来より知られている符号形式を示す構成図、
第2図は本発明による一実施例として、n=2の符号例
を示す構成図、第3図A,b及びcは二値シンボル系列
第2図の符号適用例に於ける通報シンボル系列及び第2
図における符号列を示す構成図、第4図は本発明による
符号を無記憶情報源に適用した場合の符号化効率を示す
説明図、第5図は本発明における符号化装置のプロツク
図である。FIG. 1 is a configuration diagram showing a conventionally known code format.
FIG. 2 is a block diagram showing an example of a code with n=2 as an embodiment according to the present invention, and FIG. Second
FIG. 4 is an explanatory diagram showing the encoding efficiency when the code according to the present invention is applied to a memoryless information source, and FIG. 5 is a block diagram of the encoding device according to the present invention. .
Claims (1)
度の低い劣勢シンボルの発生確率(1−P)とが近接し
ている情報源からの出力シンボルに符号語を与える符号
化装置において、上記出力シンボルを、先頭のシンボル
が優勢シンボルの時は劣勢シンボルが出現した時点ある
いは優勢シンボルが連続して(n+1)(nはP^n^
+^1>(1−P)^nを満たす正の整数)個出現した
時点で区切り、先頭のシンボルが劣勢シンボルの時は優
勢シンボルが出現した時点あるいは劣勢シンボルが連続
してn個出現した時点で区切る区切り手段と、該区切ら
れたパターンが優勢シンボルのみから成る時はこれにn
ビット符号語を与え、劣勢シンボルのみから成る時は(
n+1)ビットの符号語を与え、該両シンボルから成る
時は該パターンと同じ長さのビットの符号語を与える符
号変換手段とを備えたことを特徴とする符号化装置。 2 上記符号変換手段は、上記区切られたパターンが優
勢シンボルのみから成る時はこれに劣勢シンボルがnビ
ット連続する符号語を与え、劣勢シンボルのみから成る
時は優勢シンボルが(n+1)ビット連続する符号語を
与え、該両シンボルから成る時は原信号をそのまま符号
語として与えることを特徴とする特許請求の範囲第1項
記載の符号化装置。[Claims] 1. A code that gives a code word to an output symbol from an information source in which the probability of occurrence P of a frequently occurring dominant symbol is close to the occurrence probability (1-P) of a less frequently occurring symbol. In the conversion device, the above output symbols are outputted at the time when an inferior symbol appears when the first symbol is a dominant symbol, or when dominant symbols are consecutively (n+1) (n is P^n^
+^1>(1-P)^Positive integer that satisfies n) Separate when symbols appear, and when the first symbol is an inferior symbol, when a dominant symbol appears or when n inferior symbols appear consecutively. When the separated pattern consists of only dominant symbols, there is a
When a bit codeword is given and it consists only of inferior symbols, (
(n+1) bit code word, and code converting means for giving a bit code word having the same length as the pattern when it consists of both symbols. 2. The code conversion means gives a code word in which n bits of consecutive less-favorable symbols are provided when the divided pattern consists only of dominant symbols, and a code word in which n bits of consecutive dominant symbols are given when the pattern consists only of inferior symbols. 2. The encoding device according to claim 1, wherein a code word is given, and when the symbol is composed of both symbols, the original signal is given as it is as a code word.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9019677A JPS5915229B2 (en) | 1977-07-26 | 1977-07-26 | encoding device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9019677A JPS5915229B2 (en) | 1977-07-26 | 1977-07-26 | encoding device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5424554A JPS5424554A (en) | 1979-02-23 |
| JPS5915229B2 true JPS5915229B2 (en) | 1984-04-07 |
Family
ID=13991717
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9019677A Expired JPS5915229B2 (en) | 1977-07-26 | 1977-07-26 | encoding device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5915229B2 (en) |
-
1977
- 1977-07-26 JP JP9019677A patent/JPS5915229B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5424554A (en) | 1979-02-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CA2345237A1 (en) | Information additive code generator and decoder for communication systems | |
| KR920011266A (en) | Digital transmission and reception method and apparatus | |
| AU575280B2 (en) | Method of transmitting information, encoding and decoding device | |
| HU9602247D0 (en) | Method of converting a series of m-bit information words to a modulated signal, method of producing a record carrier, coding device, decoding device, recording device, reading device, signal, as well as a record carrier | |
| KR930022752A (en) | Input data encoding method and apparatus, and data containing signal processing method and apparatus | |
| ES8301563A1 (en) | Method of coding a sequence of blocks of binary data bits into a sequence of blocks of binary channel bits and arrangement for decoding the data bits coded in accordance with the method | |
| JP3960629B2 (en) | Transmission system using variable length encoder | |
| JPS5915229B2 (en) | encoding device | |
| US5034741A (en) | Variable length bit patterns for data representation | |
| US5729224A (en) | Code conversion and demodulation apparatus, a method thereof, and a recording medium | |
| JPS586344B2 (en) | Fugou Kasouchi | |
| US6101281A (en) | Method for improving data encoding and decoding efficiency | |
| JPS5632851A (en) | Coding and decoding system for binary information | |
| JPS5921235B2 (en) | encoding device | |
| JPS5927502B2 (en) | encoding device | |
| JPS6276931A (en) | Data compressor | |
| RU2510940C1 (en) | Information transmission and reception system | |
| JPS62209948A (en) | Data compressing and transmitting method | |
| SU725254A1 (en) | Arrangement for transmitting information with cascade code | |
| KR100390693B1 (en) | Binary Linear codes generation apparatus and method using orthogonal codes for communication system | |
| JPS637050B2 (en) | ||
| JPS5927501B2 (en) | encoding device | |
| Marino et al. | A novel channel coding scheme based on continuous-time chaotic dynamics | |
| asli et al. | Variable length to block coding | |
| JPH0828668B2 (en) | Audio signal encoding method |