JPH03257668A - Table retrieving system - Google Patents

Table retrieving system

Info

Publication number
JPH03257668A
JPH03257668A JP2058582A JP5858290A JPH03257668A JP H03257668 A JPH03257668 A JP H03257668A JP 2058582 A JP2058582 A JP 2058582A JP 5858290 A JP5858290 A JP 5858290A JP H03257668 A JPH03257668 A JP H03257668A
Authority
JP
Japan
Prior art keywords
word
length
retrieval
input
exclusive
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.)
Pending
Application number
JP2058582A
Other languages
Japanese (ja)
Inventor
Tsuyoshi Murakumo
強 村雲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2058582A priority Critical patent/JPH03257668A/en
Publication of JPH03257668A publication Critical patent/JPH03257668A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To accelerate retrieval by providing an exclusive table, which is divided into the length of each word, in a word table and executing retrieval form the exclusive table corresponding to the length of the word. CONSTITUTION:A word input part 1 inputs a word to be the object of retrieval from a keyboard or the like and stores this word into an input buffer 2. A word analysis part 3 calculates the length of the word from the inputted word and decides the block of the word table to be retrieved from the length of the word. Namely, when the length of the word is one character, a one-character word table is decided, when the length of the word is two characters, a two- character word table is decided and when the length of the word is (n) characters, an (n)-character word table is decided. Therefore, a word table 4 prepares the exclusive tables for the respective lengths of these words. A word retrieval part 5 retrieves the exclusive table decided by the word analysis part 3 by binary search and a word judgement part 6 judges whether there is the inputted word in the exclusive table or not as the result of retrieval. Thus, the retrieval can be accelerated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はテーブル検索方式、特に多数の語を格納したテ
ーブルから特定の語を検索するテーブル検索方式に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a table search method, and particularly to a table search method for searching for a specific word from a table storing a large number of words.

〔従来の技術〕[Conventional technology]

従来、この種のテーブル検索方式は、被検索対象となる
全ての語が一つのテーブルに格納されていて、通常、そ
のテーブルをバイナリサーチすることによって特定の語
な見つけている。
Conventionally, in this type of table search method, all the words to be searched are stored in one table, and a specific word is usually found by performing a binary search on the table.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のテーブル検索方式は被検索対象となる全
ての語を一つのテーブルに格納しているため、語の数が
非常に多い場合に多量の検索時間を要するという問題が
ある。
In the conventional table search method described above, all the words to be searched are stored in one table, so there is a problem that a large amount of search time is required when the number of words is very large.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のテーブル検索方式は、多数の語を格納したテー
ブルから特定の語を検索するテーブル検索方式において
、検索する語を入力する語入力部と、入力した語を解析
して語の長さを求める語解析部と、被検索対象となる語
の長さによって区分された語の専用テーブルと、入力さ
れた語の長さによ−ってそれぞれの前記専用テーブルを
検索する語検索部と、入力された語が前記専用テーブル
に有ったか無かったかを判断する語判断部とを備えるこ
とにより構成される。
The table search method of the present invention is a table search method in which a specific word is searched from a table storing a large number of words. a word analysis unit for searching, a dedicated table of words classified according to the length of the word to be searched, and a word search unit that searches each of the dedicated tables according to the length of the input word; and a word determination unit that determines whether the input word is present in the dedicated table or not.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の構成図で、語入力部l、入
力バッファ21語解析部31語テーブル4゜語検索部5
2語判断部62判断結果出力部7から構成される。語入
力部1はキーボード等から検索の対象となる語を入力し
、この語を入力バッファ2に格納する。語解析部3は入
力された語から語の長さを求め、語の長さから検索する
語テーブルの区分を決定する。即ち、語の長さが1文字
の場合には1文字語テーブルが、語の長さが2文字の場
合には2文字語テーブルが、語の長さがn文字の場合に
はn文字語テーブルが決定される。このため語テーブル
4はこれらの文字の長さごとの専用テーブルが準備され
ている。語検索部5は語解析部3で決定された専用テー
ブルをバイナリサーチによって検索する。語判断部6は
検索した結果、専用テーブルに入力された語があったか
どうかを判断する。判断結果出力部7は判断された結果
、入力された語があった場合には結果格納領域に“1”
な、無かった場合には“O″を入れて判断結果を出力す
る。
FIG. 1 is a block diagram of an embodiment of the present invention, which includes a word input section 1, an input buffer 21, a word analysis section 31, a word table 4, a word search section 5
It is composed of a two-word judgment section 62 and a judgment result output section 7. A word input unit 1 inputs a word to be searched from a keyboard or the like, and stores this word in an input buffer 2. The word analysis unit 3 calculates the length of the input word, and determines the classification of the word table to be searched based on the length of the word. That is, if the word length is one character, there will be a one-letter word table, if the word length is two characters, there will be a two-letter word table, and if the word length is n characters, there will be an n-letter word table. The table is determined. For this reason, the word table 4 has dedicated tables for each length of these characters. The word search section 5 searches the dedicated table determined by the word analysis section 3 by binary search. As a result of the search, the word determination unit 6 determines whether or not there is a word input into the dedicated table. As a result of the judgment, the judgment result output unit 7 stores “1” in the result storage area if there is an input word.
If there is not, enter "O" and output the judgment result.

第2図は第1図の処理のフロー図で、語テーブル4が第
1表に示す専用テーブル1.専用テーブル2.・・・を
有しているものとして、具体例を引用して処理のフロー
を説明する。
FIG. 2 is a flowchart of the process shown in FIG. 1, in which word table 4 is the dedicated table 1 shown in Table 1. Dedicated table 2. The processing flow will be explained by citing a specific example, assuming that the system has the following.

第1表 今、語“ABC”が入力されたとすると(ステップの)
、語解析部3はこの語を解析して長さを求め3文字な得
て(ステップ■)、使用する専用テーブル3を決定する
(ステップ■)。語検索部5は語テーブル4のうち専用
テーブル3から語“ABC”を検索する(ステップ■)
。検索の結果該当の語を見付けたので、判断結果出力部
7に見付けたことが通知され、判断結果出力部7は結果
格納領域に“1′°を入れ(ステップ■、■)、判断結
果を出力する(ステップ■)。次に、ステップ1で語“
AB”が入力されたとすると、ステップ■では2文字を
得て、使用する専用テーブル2から語“AB″を検索す
る(ステップ■)、検索した結果、該当の語を見付ける
ことができないので、判断結果出力部7にこのことが通
知されると、判断結果出力部7は結果格納領域に“0”
を入れ(ステップ■、■)、ステップ■に移る。
Table 1: Now, if the word “ABC” is input (step)
, the word analysis unit 3 analyzes this word to find the length and obtains three characters (step ■), and determines the dedicated table 3 to be used (step ■). The word search unit 5 searches for the word "ABC" from the dedicated table 3 of the word tables 4 (step ■)
. Since the corresponding word was found as a result of the search, the judgment result output section 7 is notified that it has been found, and the judgment result output section 7 enters "1'°" into the result storage area (steps ■, ■) and stores the judgment result. Output (step ■). Next, in step 1, write the word “
Assuming that "AB" is input, in step ■, two characters are obtained, and the word "AB" is searched from the dedicated table 2 to be used (step ■). As a result of the search, the corresponding word cannot be found, so it is difficult to judge. When the result output unit 7 is notified of this, the judgment result output unit 7 stores “0” in the result storage area.
(steps ■, ■) and move on to step ■.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、語テーブルl:語の長さ
ごとに区分した専用テーブルを持って、語の長さごとに
対応する専用テーブルから検索するので、検索の高速化
がはかられるという効果がある。
As explained above, the present invention has a word table l: a dedicated table divided by word length, and searches are performed from the dedicated table corresponding to each word length, thereby speeding up the search. There is an effect.

第1図の処理のフロー図である。FIG. 2 is a flow diagram of the process of FIG. 1;

1・・・・・・語入力部、2・・・・・・入力バッファ
、3・・・・・語解析部、4・・・・・・語テーブル、
5・・・・・・語検出部、6・・・・・・語判断部、7
・・・・・・判断結果出力部。
1...Word input section, 2...Input buffer, 3...Word analysis section, 4...Word table,
5...Word detection unit, 6...Word judgment unit, 7
...Judgment result output section.

Claims (1)

【特許請求の範囲】[Claims] 多数の語を格納したテーブルから特定の語を検索するテ
ーブル検索方式において、検索する語を入力する語入力
部と、入力した語を解析して語の長さを求める語解析部
と、被検索対象となる語の長さによって区分された語の
専用テーブルと、入力された語の長さによってそれぞれ
の前記専用テーブルを検索する語検索部と、入力された
語が前記専用テーブルに有ったか無かったかを判断する
語判断部とを備えることを特徴とするテーブル検索方式
In a table search method that searches for a specific word from a table storing a large number of words, there is a word input section that inputs the word to be searched, a word analysis section that analyzes the input word to find the length of the word, and a word analysis section that analyzes the input word to find the length of the word. A dedicated table of words classified according to the length of the target word, a word search unit that searches each of the dedicated tables according to the length of the input word, and whether the input word is in the dedicated table or not. A table search method characterized by comprising a word judgment unit that judges whether a word exists or not.
JP2058582A 1990-03-08 1990-03-08 Table retrieving system Pending JPH03257668A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2058582A JPH03257668A (en) 1990-03-08 1990-03-08 Table retrieving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2058582A JPH03257668A (en) 1990-03-08 1990-03-08 Table retrieving system

Publications (1)

Publication Number Publication Date
JPH03257668A true JPH03257668A (en) 1991-11-18

Family

ID=13088457

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2058582A Pending JPH03257668A (en) 1990-03-08 1990-03-08 Table retrieving system

Country Status (1)

Country Link
JP (1) JPH03257668A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5587277A (en) * 1978-12-26 1980-07-01 Sharp Corp Electronic equipment
JPS61136182A (en) * 1984-12-07 1986-06-24 Mitsubishi Electric Corp Word reading method
JPS61267885A (en) * 1984-11-21 1986-11-27 Nec Corp Word dictionary collating device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5587277A (en) * 1978-12-26 1980-07-01 Sharp Corp Electronic equipment
JPS61267885A (en) * 1984-11-21 1986-11-27 Nec Corp Word dictionary collating device
JPS61136182A (en) * 1984-12-07 1986-06-24 Mitsubishi Electric Corp Word reading method

Similar Documents

Publication Publication Date Title
US10216792B2 (en) Automated join detection
JP3123836B2 (en) Text type database device
JPH03257668A (en) Table retrieving system
JPS62241026A (en) Character string retrieving system
JPH05143647A (en) Data base retrieval processing method
JPS617936A (en) Information retrieving system
JPH07134720A (en) Method and device for presenting relative information in sentence preparing system
JPH01237724A (en) Method for retrieving and displaying ambiguous character string
JPH1069490A (en) Device and method for document narrowing-down retrieval, and document retrieval device
JPH02300917A (en) Key word input system
JPH07210565A (en) Method and device for retrieving information
JP2714940B2 (en) Text search device
JPH05165889A (en) Document retrieval device
JPH04241672A (en) Character string retrieving system
JPH0644308A (en) Automatic keyword selecting method
JPH06325088A (en) Information retrieving system
JPS63238622A (en) Relation retrieval system
JPS62175824A (en) Document retrieving device
JPH04259058A (en) Document processor with space deleting function
JPH11126208A (en) Data processor
JPH0628405A (en) User definition procedure analyzer of extensible data base
JPH06168271A (en) Data base retrieval system utilizing dictionary by item
JPH06168272A (en) Related term preparing device
JPH0497488A (en) Attribute information registering system
JP2003316815A (en) Narrowing-down retrieval device and retrieval method