JPS6029428B2 - Electronics - Google Patents
ElectronicsInfo
- Publication number
- JPS6029428B2 JPS6029428B2 JP53161659A JP16165978A JPS6029428B2 JP S6029428 B2 JPS6029428 B2 JP S6029428B2 JP 53161659 A JP53161659 A JP 53161659A JP 16165978 A JP16165978 A JP 16165978A JP S6029428 B2 JPS6029428 B2 JP S6029428B2
- Authority
- JP
- Japan
- Prior art keywords
- register
- headword
- output
- memory
- word
- 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
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Machine Translation (AREA)
- Document Processing Apparatus (AREA)
Description
【発明の詳細な説明】
本発明は外部から情報を入力した時、その情報に対応す
る別の情報を出力することのできる電子機器に関するも
のであり、例えば英語を入力してその日本語を出力する
英和辞典の様なもの、あるいはその逆の和英辞典の様な
ものや、人名を入力して、その人の氏名コード、住所等
を出力する如きものの機能を有する電子機器に関するも
のである。[Detailed Description of the Invention] The present invention relates to an electronic device that is capable of outputting other information corresponding to information inputted from the outside, such as inputting English and outputting Japanese. It relates to an electronic device that has the functions of an English-Japanese dictionary, or vice versa, or a device that inputs a person's name and outputs the person's name code, address, etc.
以下の説明では英和辞典を電子的手段で構成したものに
ついて説明する。In the following explanation, an English-Japanese dictionary constructed by electronic means will be explained.
ここで英単語の見出し語が5600の固であるとする。
操作者が所望の英単語を入力し、該英単語に対応する日
本語を検索する為には従来の方式では最大56000回
の検索を行ない、一回ずつの検索で一致、不一致を検出
せねばならず、一回の検出に0.5msec必要である
と仮定すれば最大所要時間は〇.5×56側X亨=28
(秒)
となり時間がかかりすぎる。Here, it is assumed that the number of English word headwords is 5600.
In order for an operator to input a desired English word and search for the Japanese word that corresponds to that English word, conventional methods require a maximum of 56,000 searches, with each search having to detect matches and mismatches. If we assume that 0.5 msec is required for one detection, the maximum required time is 0.5 msec. 5 x 56 side x x = 28
(seconds), which takes too much time.
本発明は上記従来欠点を解消すべ〈発明されたものであ
り、検索時間を大中に短縮することを目的とするもので
ある。The present invention has been invented to solve the above-mentioned conventional drawbacks, and is aimed at significantly shortening the search time.
以下、図面に従い本発明を詳細に説明する。Hereinafter, the present invention will be explained in detail with reference to the drawings.
第1図は本発明に係わる電子機器のブロック図であり、
同図においては英語の単語を入力すれば該単語の日本語
訳が出力表示されるという英和辞典の如き機能を備える
電子機器が示される。同図で1はA〜Z、a〜z、及び
各種記号のキーよりなる英単語入力キーで、2は該キー
より入力される英単語のコード化信号を記憶する記憶装
置、3は英単語の入力を終了した時、機器に駆動を指示
するための検索スタートキー、4は英単語の見出し語を
第2図の如きコ−ド表に従って第3図の如く記憶する記
憶装置である。各見出し語はアルファベット1’風こ並
べて記憶させるとともにその順番はアルファベットのコ
ード信号の値の小さい順に記憶されている。5は上記英
単語の見出し語に対応する日本語の語義を記憶する語義
記憶装置である。FIG. 1 is a block diagram of an electronic device according to the present invention,
In the figure, an electronic device is shown that has a function similar to an English-Japanese dictionary in which when an English word is input, a Japanese translation of the word is output and displayed. In the figure, 1 is an English word input key consisting of keys for A to Z, a to z, and various symbols, 2 is a storage device that stores the coded signal of the English word input from the key, and 3 is an English word. A search start key 4 is used to instruct the device to operate when inputting is completed, and 4 is a storage device for storing headwords of English words as shown in FIG. 3 according to a code table as shown in FIG. Each headword is stored in alphabetical order, and the order is in descending order of the value of the code signal of the alphabet. Reference numeral 5 denotes a word meaning storage device that stores the Japanese word meaning corresponding to the headword of the English word.
6は検索スタートキー3によって駆動が指示された時、
見出し請託億部4及び記憶装置2の出力を比較し、見出
し語記憶部4の出力の記憶装置2の出力と同一桁の値が
記憶装置2の出力より大きい時は大信号7を、小さい時
は小信号8を出力する。6 is when driving is instructed by the search start key 3;
Compare the outputs of the headword storage section 4 and the storage device 2, and when the value of the output of the headword storage section 4 at the same digit as the output of the storage device 2 is larger than the output of the storage device 2, a large signal 7 is output, and when it is smaller, a large signal 7 is output. outputs a small signal 8.
また等しい時は等信号9を出力しフリップフロップ10
をセット状態になす。11,12はアンドゲートであり
、フリツプフロップ10がセット状態の時は語義記憶装
置5の出力を、フリップフロップ10がリセット状態の
時は記憶装置2の出力をオアゲート13を介して表示装
置14に伝達する。When they are equal, the equal signal 9 is output and the flip-flop 10
to the set state. 11 and 12 are AND gates, which transmit the output of the word sense storage device 5 when the flip-flop 10 is in the set state, and transmit the output of the storage device 2 to the display device 14 via the OR gate 13 when the flip-flop 10 is in the reset state. do.
15は見出し語記憶部4及び語義記憶部5のアドレスを
指定するレジスタ、16はしジスタ15の値を加減する
数を記憶するレジスタ、17はしジスタ16の内容を1
ビット右シフトさせるシフト回路、18は上記大信号7
が上記比較回路6より出力された場合、レジスタ15の
内容よりレジスター6の内容を減算し、信号8が上記比
較回路6より出力された場合レジスター5の内容にレジ
スター6の内容を加算するものであってその結果をレジ
スタ15に導入する加減算装置、19,20は初期値発
生装置であって、上託しジスタ15,16が記憶する数
値の初期値を発生する装置である。15 is a register that specifies the address of the headword storage unit 4 and word meaning storage unit 5; 16 is a register that stores the number to add or subtract the value of the register 15; and 17 is a register that stores the contents of the register 16.
A shift circuit for shifting bits to the right, 18 is the above-mentioned large signal 7
When signal 8 is output from the comparison circuit 6, the contents of register 6 is subtracted from the contents of register 15, and when signal 8 is output from the comparison circuit 6, the contents of register 6 are added to the contents of register 5. Addition and subtraction devices 19 and 20 input the results into the register 15, and initial value generation devices generate initial values of numerical values stored in the transfer registers 15 and 16.
見出し請託億部4に記憶されている見出し語の数をmケ
とする時この見出し語に対応する語義の数もmケであり
、見出し語及び語義の対応するものは同一アドレスに記
憶される。When the number of headwords stored in the headword request unit 4 is m, the number of word meanings corresponding to this headword is also m, and corresponding headwords and word meanings are stored at the same address. .
本発明において用いる検索方式の一例を次に示す。An example of a search method used in the present invention is shown below.
即ち英単語入力キーによって入力された英単語情報と一
致する見出し語を、見出し語記憶部のアドレスを一つず
つ加えて変化させることにより検索するのではなく、以
下のやり方をする。That is, instead of searching for a headword that matches the English word information input using the English word input key by adding and changing addresses in the headword storage unit one by one, the following method is used.
まず、2nSm<2n+1(m,n:整数)を満たすn
を求める。First, n satisfies 2nSm<2n+1 (m, n: integer)
seek.
そして2n‐1を初期値発生装置19の初期値とし、2
n−1を初期値発生装置20の初期値として設定する。
例えばmを56000とすればn=15となり、初期値
2n‐1=32767、初期値2n‐1=16384と
なる。英単語入力キー1により英単語が入力されると(
本実施例ではgrapeを入力したとする)、第4図の
様な形で記憶装置2、に記憶される。ここで単語の最初
の文字が入力された時にフリップフロップ10がリセッ
トされる。従って表示装置14は記憶装置2の記憶内容
を表示し始める。次に単語の入力をし終った時点で検索
スタートキー3を押圧すれば、初期値発生装置19,2
0が初期値32767及び16384を発生するととも
に、比較回路6を駆動状態になす。Then, 2n-1 is the initial value of the initial value generator 19, and 2n-1 is the initial value of the initial value generator 19.
Set n-1 as the initial value of the initial value generator 20.
For example, if m is 56000, n=15, the initial value 2n-1=32767, and the initial value 2n-1=16384. When an English word is input using English word input key 1 (
In this embodiment, it is assumed that "grape" is input), and is stored in the storage device 2 in the form shown in FIG. Here, the flip-flop 10 is reset when the first letter of a word is input. Therefore, the display device 14 starts displaying the stored contents of the storage device 2. Next, if you press the search start key 3 when you have finished inputting the word, the initial value generators 19, 2
0 generates the initial values 32767 and 16384, and also puts the comparison circuit 6 into the driving state.
従ってこの比較回路6は見出し請託億部の32767番
地に記憶されている内容(Mayとする)と記憶装置2
の内容(gape)とを比較する。同一桁の値としては
N燈yの方が大きい(第3図にMayのコードが示され
る)ので比較回路6は大信号7を出力する。それによっ
て加減算装置18はしジスタ15の内容からしジスタ1
6の内容を減ずる。その結果(32767−16384
)である16383がレジスター5に記憶され、見出し
請託億部4の16383番地の内容を出力させる。また
その際、大信号7によってシフト回路17の右シフト命
令が発生し、レジスター6の内容は1ビット右シフトす
る。再びレジスタ15の内容のアドレスが指定され以下
上記手順を順次行ない、最大n十1回の比較によって求
める見出し語のアドレスが得られる。該アドレスが求ま
れば見出し語に対応する語義が記憶される語義記憶部の
アドレスは見出し語記憶部のアドレスと共通であって、
しかも比較回路6より一致信号9が出力されることによ
ってフリツプフロツプ10がセットされるので入力した
英単語に対応する語義情報がゲート11,13を介して
表示装置14に導入され語義の表示がなされる。また上
記検索の方式が見出し語記憶部の見出し語の全てを包含
してしかも童復することないこ検索可能であることは以
下の説明で明らかである。Therefore, this comparison circuit 6 compares the contents stored at address 32767 of the heading ``May'' with the storage device 2.
Compare the contents (gape) of As the value of the same digit, N light y is larger (the code May is shown in FIG. 3), so the comparator circuit 6 outputs a large signal 7. As a result, the adder/subtractor 18 uses the contents of the register 15 as the register 1.
Reduce the contents of 6. The result (32767-16384
), 16383, is stored in register 5, and the contents of address 16383 of header request section 4 are output. At this time, the large signal 7 generates a right shift command for the shift circuit 17, and the contents of the register 6 are shifted to the right by one bit. The address of the contents of the register 15 is specified again, and the above procedure is then performed in sequence, and the address of the desired headword is obtained by a maximum of n11 comparisons. Once the address is obtained, the address of the word meaning storage section in which the meaning corresponding to the headword is stored is the same as the address of the headword storage section,
Moreover, since the flip-flop 10 is set by outputting the match signal 9 from the comparison circuit 6, the meaning information corresponding to the input English word is introduced into the display device 14 via the gates 11 and 13, and the meaning of the word is displayed. . Furthermore, it will be clear from the following explanation that the above-mentioned search method can include all the headwords in the headword storage section and can be searched without repeating the search.
即ちレジスタ15に記憶される最初のアドレスは2n−
1、レジスタに記憶される最初の加減数は2n‐1であ
り、レジスタ15の内容は次の様に変化する。2n−1
土2n‐1土2n−2±・・・土多±ぞ±〆上式におい
て作り出されるアドレスの種類は2nケであり、レジス
ター6の値が1になるまでに途中で見出し語記憶部との
内容が一致するものは合計2n−1種類となる。That is, the first address stored in register 15 is 2n-
1, the first addition/subtraction number stored in the register is 2n-1, and the contents of register 15 change as follows. 2n-1
Sat2n-1 Sat2n-2±...Dota±zo±〆The types of addresses created in the above formula are 2n, and there is some communication with the headword storage unit on the way until the value of register 6 becomes 1. There are a total of 2n-1 types of items with matching contents.
従って設定されるアドレス総数は2n+1一1ケとなる
。この値は最初の条件であるm<2n+1と一致する。
また上述のアドレスを示す式は最初の数がn−1桁の1
1111・・・・・・1からn−1桁以下の異なる桁の
1を加減するものであるから全て異なるアドレス値が導
出される。Therefore, the total number of addresses set is 2n+1-1. This value matches the first condition m<2n+1.
In addition, the formula indicating the address above has a first number of n-1 digits.
1111 . . . Adds or subtracts 1 in different digits from 1 to n-1 digits, so all different address values are derived.
次にレジスタ15でアドレス指定する際該レジスタ15
の値がmの値を超える場合、例えばm:56000とし
、見出し語の最終アドレス5599男爵地に記憶される
見出し語を入力キーで入力したとすると第5図の如くレ
ジスタ15及び16の内容は変化するので3番目のレジ
スタ15の値は57343となりこの値のアドレスには
見出し語がない。Next, when specifying an address using register 15, register 15
If the value of exceeds the value of m, for example m: 56000, and if the entry word stored in the final address of the entry word 5599 Baronchi is entered using the input key, the contents of registers 15 and 16 will be as shown in Figure 5. As a result, the value of the third register 15 becomes 57343, and there is no entry word at the address of this value.
この様な場合の対処法として、次のような方法が考えら
れる。(ィ)見出し語の最終番地を超える時は見出し語
記憶部の出力を“111・・…・11”とし架空の見出
し語を出力する。The following methods can be considered as ways to deal with such cases. (b) When the last address of the headword is exceeded, the output of the headword storage section is set to "111...11" and a fictitious headword is output.
{o)比較回路6に於ける比較とは無関係に信号7を比
較回路6より出力させる。{o) The signal 7 is output from the comparison circuit 6 regardless of the comparison in the comparison circuit 6.
このように為せば第6図の如くレジスタ15,及び16
の内容を変化させることができるので所望のアドレスの
内容を検索可能である。If this is done, registers 15 and 16 will be created as shown in Figure 6.
Since the contents of the address can be changed, it is possible to search for the contents of a desired address.
また、見出し語記憶部4に記憶されていない見出しが入
力された時それを報知するには、‘ィー レジスタ16
の値が0の時更に右シフトしようとした{oー レジス
タ15の値が加減算により変化しなかつたけ しジスタ
16の値が0の時の比較で信号9が得られなかった事を
検知し、該当するものが無いことを報知すればよい。In addition, in order to notify when a heading that is not stored in the heading word storage section 4 is input, the 'ee register 16 is used.
When the value of register 16 was 0, an attempt was made to shift it further to the right. It is sufficient to notify that there is no corresponding item.
比較を行なうのはレジスタ16の内容が0になるまで(
又は信号9が出力されるまで)でありレジスタ16がと
りうる値の数と等しい。The comparison is performed until the contents of register 16 become 0 (
or until signal 9 is output) and is equal to the number of values that register 16 can take.
レジスタ16の値は2n‐1,2n‐2,……公,メ,
0と変化するから、比較回路における比較はn+1回行
なえばよい。即ちm:56000の時はn=15であり
16回比較すればよい。上記方式によれば、1回の比較
に8hsec(単純に比較する方式の1ぴ音の時間)必
要としても最大限8肌secの所要時間で検索が可能で
あって、検索時間の大中な改善がなされる。The value of register 16 is 2n-1, 2n-2, ...public, me,
Since the value changes to 0, the comparison in the comparator circuit only needs to be performed n+1 times. That is, when m: 56000, n=15 and it is sufficient to compare 16 times. According to the above method, even if one comparison requires 8 hsec (the time required for one beep in the simple comparison method), the search can be performed in a maximum of 8 hsec, and the search time is very small. Improvements will be made.
以上説明した如く本発明の電子機器によれば、第1の記
憶手段に記憶される第1の情報をコード化したコード信
号の値と外部情報のコード化した値との数値の大小比較
によって第1の情報が第1の記憶手段のどのアドレスに
記憶されてあるかを収束的に検索することにより第2の
記憶手段の対応アドレスに記憶されてある第2の情報を
得るようにしたので、検索時間が極めて短くてすむ。As explained above, according to the electronic device of the present invention, the value of the code signal that encodes the first information stored in the first storage means is compared with the encoded value of the external information. Since the second information stored in the corresponding address of the second storage means is obtained by convergently searching at which address of the first storage means the first information is stored, Search time is extremely short.
第1図は本発明に係わる電子機器のブロック図、第2図
はコード図、第3図は見出し語記憶部の記憶例、第4図
は記憶装置の記憶例、第5図、第6図はしジスタの内容
の変化例を示す。
図中、1・・…・英単語入力キ−、2・・・・・・記憶
装置、3・・・・・・検索スタートキー、4・…・・見
出し語記憶部、5・・・・・・語義記憶部、6・・・・
・・比較回路、7・・・・・・大信号、8・・・・・・
小信号、9・・・・・・等信号、10・・・…フリツプ
フロツプ、11,12……アンドゲート、13・・・・
・・オアゲート、14・・・・・・表示装置、15,1
6……レジスタ、17……シフト回路、18・・・・・
・加減算装置、19,20・・・・・・初湖値発生装置
。
第1図
第3図
第6図
第2図
第4図
第5図FIG. 1 is a block diagram of an electronic device according to the present invention, FIG. 2 is a code diagram, FIG. 3 is a storage example of a headword storage unit, FIG. 4 is a storage example of a storage device, and FIGS. 5 and 6. An example of changes in the contents of the register is shown below. In the figure, 1...English word input key, 2...Storage device, 3...Search start key, 4...Headword storage unit, 5... ...Word meaning memory section, 6...
...Comparison circuit, 7...Large signal, 8...
Small signal, 9... Equal signal, 10... Flip-flop, 11, 12... AND gate, 13...
...Or gate, 14...Display device, 15,1
6...Register, 17...Shift circuit, 18...
- Addition/subtraction device, 19, 20...Hatsuko value generation device. Figure 1 Figure 3 Figure 6 Figure 2 Figure 4 Figure 5
Claims (1)
ド化信号を記憶する手段2と、検索スタートキー3と、
語情報に係る見出し語をコード化信号によりの信号の値
に順に記憶する見出し語メモリ4と、前記見出し語に対
応もしくは関連する語情報を同一アドレスに記憶する語
メモリ5と、検索スタートキー3の操作に応答して前記
記憶手段2に語情報のコード化信号とこのとき見出し語
メモリ4から読み出される見出し語のコード化信号の値
を比較し、その大小関係を得る比較器6と、語情報が入
力されたときリセツトされ且比較結果が同一のときの比
較回路6の出力でセツトされるフリツプフロツプ回路1
0と、記憶手段2の出力とフリツプフロツプ回路10の
リセツト出力のアンドをとるゲート回路12およびフリ
ツプフロツプ回路10のセツト出力とメモリ5の出力と
のアンドをとるゲート回路11と、ゲート回路11,1
2のオア出力を表示する手段14と、見出し語メモリ4
および語メモリ5のアドレスを指定するアドレスレジス
タ15と、アドレスレジスタ15の値を加減するための
数値を記憶するレジスタ16と、比較器6の比較結果が
大もしくは小のときレジスタ16の内容をビツトシフト
するシフト回路17と、検索スタートキー3の操作に関
連してレジスタ15と16にそれぞれ所定の初期値を設
定する手段19,20と、前記比較器6の比較結果が大
のときレジスタ15の内容からレジスタ16の内容を減
算し、その結果レジスタ15に記憶させ、かつ小のとき
レジスタ15とレジスタ16の内容を加算し、その結果
をレジスタ15に記憶させる加減算器18とから成るこ
とを特徴とする電子機器。1 means 1 for inputting word information, means 2 for storing coded signals of input word information, search start key 3,
A headword memory 4 that stores headwords related to word information in order according to the signal value of a coded signal, a word memory 5 that stores word information corresponding to or related to the headword at the same address, and a search start key 3. a comparator 6 which compares the value of the encoded signal of the word information stored in the storage means 2 in response to the operation of the headword memory 4 with the value of the encoded signal of the headword read out from the headword memory 4 at this time, and obtains a magnitude relationship therebetween; A flip-flop circuit 1 which is reset when information is input and is set by the output of the comparison circuit 6 when the comparison results are the same.
0, a gate circuit 12 that ANDs the output of the storage means 2 and the reset output of the flip-flop circuit 10, a gate circuit 11 that ANDs the set output of the flip-flop circuit 10, and the output of the memory 5;
means 14 for displaying the OR output of 2; and headword memory 4;
and an address register 15 that specifies the address of the word memory 5, a register 16 that stores numerical values for adding or subtracting the value of the address register 15, and a register 16 that bit-shifts the contents of the register 16 when the comparison result of the comparator 6 is large or small. means 19 and 20 for setting predetermined initial values in the registers 15 and 16, respectively, in connection with the operation of the search start key 3; It is characterized by comprising an adder/subtractor 18 that subtracts the contents of register 16 from , stores the result in register 15, and adds the contents of register 15 and register 16 when the result is small, and stores the result in register 15. electronic equipment.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP53161659A JPS6029428B2 (en) | 1978-12-26 | 1978-12-26 | Electronics |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP53161659A JPS6029428B2 (en) | 1978-12-26 | 1978-12-26 | Electronics |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5587277A JPS5587277A (en) | 1980-07-01 |
| JPS6029428B2 true JPS6029428B2 (en) | 1985-07-10 |
Family
ID=15739381
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP53161659A Expired JPS6029428B2 (en) | 1978-12-26 | 1978-12-26 | Electronics |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6029428B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5769364A (en) * | 1980-10-13 | 1982-04-28 | Canon Inc | Electronic device |
| JPH03257668A (en) * | 1990-03-08 | 1991-11-18 | Nec Corp | Table retrieving system |
| JP2012145619A (en) * | 2011-01-07 | 2012-08-02 | Seiko Epson Corp | Method of manufacturing electro-optic device and electro-optic device |
-
1978
- 1978-12-26 JP JP53161659A patent/JPS6029428B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5587277A (en) | 1980-07-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS5936795B2 (en) | electronic dictionary | |
| US4412305A (en) | Sentence translation device | |
| US4541069A (en) | Storing address codes with words for alphabetical accessing in an electronic translator | |
| JPS59868B2 (en) | Basic word recognition device and translation device using the same | |
| US5063534A (en) | Electronic translator capable of producing a sentence by using an entered word as a key word | |
| JPS6029428B2 (en) | Electronics | |
| JPH0213344B2 (en) | ||
| US4688189A (en) | Electronic equipment for storing number of searches of information | |
| JPS6353569B2 (en) | ||
| JPS6336031B2 (en) | ||
| JPS5843784B2 (en) | information retrieval device | |
| JPS55129855A (en) | Mode designation unit in electronic register | |
| JPS63128468A (en) | Character input device | |
| JPS6012196Y2 (en) | data search device | |
| JPS63170765A (en) | Character processing device | |
| JPH0125100B2 (en) | ||
| JP2988046B2 (en) | Kana-Kanji conversion device | |
| JPS59103136A (en) | Kana-kanji conversion processing device | |
| JPS6247772A (en) | Learning method for kana (japanese syllabary) to kanji-chinese character-conversion | |
| JPH03208162A (en) | Input device | |
| JPS55129862A (en) | Electronic dictionary | |
| JPS5931102B2 (en) | electronic dictionary | |
| JPH0128421B2 (en) | ||
| JPS61100863A (en) | Electronic dictionary | |
| JPS5837730A (en) | Kanji (chinese character) input device |