JPS63257030A - Character string retrieving circuit - Google Patents

Character string retrieving circuit

Info

Publication number
JPS63257030A
JPS63257030A JP62090850A JP9085087A JPS63257030A JP S63257030 A JPS63257030 A JP S63257030A JP 62090850 A JP62090850 A JP 62090850A JP 9085087 A JP9085087 A JP 9085087A JP S63257030 A JPS63257030 A JP S63257030A
Authority
JP
Japan
Prior art keywords
character string
input
search
collation
search condition
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
JP62090850A
Other languages
Japanese (ja)
Inventor
Norihiko Oshita
尾下 典彦
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62090850A priority Critical patent/JPS63257030A/en
Publication of JPS63257030A publication Critical patent/JPS63257030A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten a retrieval time, by providing a means which selects the decision processing of a retrieval condition decision part after the collation of an input character string or in the middle way of the collation. CONSTITUTION:A character retrieval circuit is constituted of a character collation part 1, a collation result latch part 2, a retrieval condition decision part 3, and a control part 4 which controls the parts 1-3 and includes a selection means. The selection means controls the decision part 3 by analyzing a retrieval condition inputted from the outside via a command line 17, detecting the case of the retrieval condition whose retrieved result is recognized in the middle way of the collation of the input character string, and outputting a selection signal to perform decision at the decision part 3 at every character of the input character string, or after completing the collation of the input character string to a signal line 15. In such a way, in a case where it is enough to satisfy either two conditions in one character string, it is possible to interrupt a collation processing at a time when either is satisfied without performing the retrieval of another condition, thereby, it is possible to perform the retrieval processing at high speed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、文字列検索回路に関し、特に、複数の検索条
件を組み合わせて文字列の検索を行う検索処理に適用し
て好適な文字列検索回路に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a character string search circuit, and particularly to a character string search circuit suitable for application to a search process in which a character string is searched by combining a plurality of search conditions. Regarding circuits.

〔従来の技術〕[Conventional technology]

たとえば事務処理の効率化などによる情報量の増大に伴
い、多量の文字情報を蓄積したデータベースなどにおけ
る目的の文字情報の検索処理の効率化が要請されている
For example, as the amount of information increases due to more efficient office processing, there is a demand for more efficient search processing for target character information in databases that store a large amount of character information.

このような要請に呼応し、データベースに蓄積された文
字列や文章の検索を専用ハードウェアで行うことにより
、処理の高速化、高機能化を達成しようとする技術の一
つに、特開昭61>105039号公報に開示されるも
のが知られている。
In response to these demands, Japanese Patent Laid-Open Publication No. 2006-1993 has developed a technology that aims to achieve faster processing and higher functionality by using specialized hardware to search for character strings and sentences stored in databases. 61>105039 is known.

その概要は、検索処理を行う有限オートマトンに関する
状態遷移テーブルとともに一致判定テーブルを使用する
ことにより、入力文字列と状態遷移テーブルに登録され
た複数種の部分文字列とを連続的に照合することを可能
にしたものである。
The outline is that by using a match judgment table together with a state transition table related to a finite automaton that performs search processing, it is possible to continuously match an input string with multiple types of substrings registered in the state transition table. It made it possible.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら、上記の従来技術では、複数の部分文字列
照合結果の論理積または論理和またはそれらの組合せで
検索条件が与えられる検索において、入力文字列の照合
途中に検索条件に合致することが判定できるような場合
の照合処理については考慮されていない。
However, in the above-mentioned conventional technology, in a search in which a search condition is given by the logical product or logical sum of multiple substring matching results, or a combination thereof, it is possible to determine that the search condition is met during matching of the input string. Verification processing in such cases is not considered.

すなわち、一般の文字列の検索では、入力文字列が、た
とえば氏名や住所といった比較的短い文字列に限らず、
文章形式の長い文字列をも対象とすることが考えられ、
このような場合、検索条件の種類にかかわらず入力文字
列の最後まで照合処理を行っていたのでは、必要以上に
処理時間が増大するという問題を生じるものである。
In other words, in general character string searches, input character strings are not limited to relatively short character strings such as names and addresses;
It is possible to target long character strings in sentence format,
In such a case, if the matching process is performed until the end of the input character string regardless of the type of search condition, a problem arises in that the processing time increases more than necessary.

本発明の目的は、入力文字列中における目的の2種以上
の部分文字列の検索に要する時間を短縮することが可能
な文字列検索回路を提供することにある。
An object of the present invention is to provide a character string search circuit that can shorten the time required to search for two or more target partial character strings in an input character string.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、入力文字列と目的の2種以上の部分文字列と
を照合する文字列照合部と、文字列照合部の照合結果出
力を保持する照合結果ラッチ部と、照合結果ラッチ部の
出力を入力とし、2種以上の部分文字列の照合結果の論
理積または論理和またはそれらの組合せにより予め与え
られる検索条件に合致するか否かを判定する検索条件判
定部とを有する文字列検索回路において、検索条件判定
部による判定処理を入力文字列の照合後に行う場合と人
、方丈字列の照合途中に行う場合とを選択することが可
能な選択手段を備えるようにしたものである。
The present invention provides a string matching section that matches an input string with two or more target substrings, a matching result latch section that holds the matching result output of the string matching section, and an output of the matching result latch section. and a search condition determination unit that receives as input and determines whether or not a predetermined search condition is met based on the AND or OR of the matching results of two or more types of partial strings, or a combination thereof. In the present invention, a selection means is provided which can select whether the determination process by the search condition determination unit is performed after collation of input character strings or during the collation of human and hojo character strings.

〔作用〕[Effect]

上記した手段によれば、目的とする複数種の部分文字列
の検索条件の種類に応じて、たとえば、入力文字列の照
合途中に検索条件に合致することが判定できるような場
合には当該入力文字列の残りの部分の照合操作を打ち切
って直ちに検索を終了することができる。具体的には、
1つの文字列の中で、2つの条件の内どちらか一方を満
足すれば良い場合、どちらか一方を満足した時点で他方
の検索を行わずに照会を打ち切る。これにより、検索条
件の種類にかかわらず入力文字列の最後まで照合を行う
場合などに比較して、検索に要する時間を短縮すること
ができる。
According to the above-mentioned means, depending on the type of search conditions for multiple types of target substrings, for example, if it can be determined that the input string matches the search conditions during matching of the input string, the input The search can be immediately terminated by aborting the matching operation for the remaining part of the string. in particular,
If either one of the two conditions needs to be satisfied in one character string, the inquiry is terminated without searching for the other one when either one is satisfied. As a result, the time required for a search can be shortened compared to a case where matching is performed until the end of an input character string regardless of the type of search condition.

〔実施例〕〔Example〕

以下、本発明の一実施例について図面を引用しながら詳
細に説明する。
Hereinafter, one embodiment of the present invention will be described in detail with reference to the drawings.

第1図(a)は本発明の一実施例を示す文字列検索回路
のブロック図であり、第1図ら)はその要部を構成する
論理回路の説明図、さらに第2図は、検索回路の各部の
動作の関連を説明する線図である。
FIG. 1(a) is a block diagram of a character string search circuit showing an embodiment of the present invention, FIG. FIG. 2 is a diagram illustrating the relationship between the operations of each part.

第1図(a)に示されるように、本実施例の文字列検索
回路は、文字列照合部1と、照合結果ラッチ部2と、検
索条件判定部3とを備えており、これらの各部は制御部
4によって統括して制御されるように構成されている。
As shown in FIG. 1(a), the character string search circuit of this embodiment includes a character string matching section 1, a matching result latch section 2, and a search condition determining section 3. are configured to be centrally controlled by the control section 4.

文字列照合部1は、データ線5を介して外部の図示しな
い記憶装置などから入力される入力文字列と、制御部4
から制御線12を介して設定される目的の複数の部分文
字列とを照合し、その照合結果を複数の信号線6.信号
線7.信号線8を介して照合結果ラッチ部2に伝達する
ように構成されている。
The character string collation unit 1 receives an input character string input from an external storage device (not shown) via a data line 5, and a control unit 4.
, and a plurality of target partial character strings set via control lines 12, and the results of the comparison are sent to a plurality of signal lines 6. Signal line 7. It is configured to transmit the verification result to the latch section 2 via the signal line 8.

なお、本実施例の場合、説明の都合上、3種の部分文字
列の各々に対応して3本の信号線6,7゜8が設けられ
ているものについて例示的に説明する。
In the case of this embodiment, for convenience of explanation, an example will be described in which three signal lines 6, 7.8 are provided corresponding to each of three types of partial character strings.

照合結果ラッチ部2においては、制御線13を介した制
御部4からの指令により、前段の文字列照合部1から複
数の信号線6.7.8を介して入力される複数の部分文
字列の各々と入力文字列との照合結果が個別に保持され
、保持された複数の照合結果は、前記の複数の信号線6
,7.8に対応する複数の信号線9.信号線10.信号
線11を介して検索条件判定部3に入力されるものであ
る。
In the matching result latch unit 2, in response to a command from the control unit 4 via the control line 13, a plurality of partial character strings input from the preceding character string matching unit 1 via a plurality of signal lines 6, 7, and 8 are processed. The matching results between each of the input character strings and the input character string are individually held, and the held matching results are transmitted to the plurality of signal lines 6.
, 7.8, a plurality of signal lines 9. Signal line 10. This is input to the search condition determining section 3 via the signal line 11.

検索条件判定部3には、制御部4から制御線14および
制御線15が接続されており、制御線15を介して制御
部4から“l”レベルの指令信号が入力されることによ
り、前段の照合結果ラッチ部2から複数の信号線9,1
0.11を介して入力される複数の部分文字列の各々に
ついての照合結果が、制御線14を介して設定される検
索条件に基づいて判定され、この判定結果は信号線16
を介して制御部4に伝達される構造“とされている。
A control line 14 and a control line 15 are connected to the search condition determination unit 3 from the control unit 4, and when a command signal of “l” level is input from the control unit 4 via the control line 15, the search condition determination unit 3 from the verification result latch unit 2 to the plurality of signal lines 9, 1
The matching result for each of the plurality of partial character strings input via the control line 14 is determined based on the search conditions set via the control line 14, and this determination result is transmitted to the signal line 16.
The information is transmitted to the control section 4 via the "structure".

さらに制御部4に対しては、より上位の制御装置(図示
せず)などから指令線17を介して検索操作の開始命令
および検索条件などが入力されるとともに、検索条件判
定部3から信号線16を経て該制御部4に把握された判
定結果は該制御部4から応答線18を介してより上位の
制御装置(図示せず)に伝達されるように構成されてい
る。
Further, a search operation start command, search conditions, etc. are input to the control unit 4 from a higher-level control device (not shown) via a command line 17, and a signal line is input from the search condition determination unit 3. The determination result obtained by the control section 4 via the control section 16 is transmitted from the control section 4 to a higher-order control device (not shown) via a response line 18.

また、データ線5を介して文字列照合部1に入力文字列
を入力する図示しない記憶装置などには制御部4から制
御線19が接続されており、入力文字列の入力開始のタ
イミングなどが制御されるように構成されている。
In addition, a control line 19 is connected from the control unit 4 to a storage device (not shown) that inputs the input string to the character string matching unit 1 via the data line 5, and the timing for starting input of the input string is controlled. configured to be controlled.

なお、文字列照合部1としては、たとえば特開昭60−
105039号公報に開示されるものを用いることがで
きる。また、検索条件判定部3は、複数の要素の論理積
または論理和またはその組合せによって与えられる検索
条件と、文字列の照合結果との合致を判定するものであ
り、特開昭56−145428号公報に開示される論理
積回路群および論理和回路群の組合せを用いることがで
き= 7− る。
In addition, as the character string collation unit 1, for example,
The material disclosed in Japanese Patent No. 105039 can be used. Further, the search condition determination unit 3 determines whether a search condition given by the AND or OR of a plurality of elements or a combination thereof matches the matching result of the character string, and is disclosed in Japanese Patent Laid-Open No. 56-145428. A combination of the AND circuit group and the OR circuit group disclosed in the publication can be used.

この場合、外部から検索操作の開始命令および検索条件
などを制御部4に指令する指令線17と検索条件判定部
3の起動を行う制御線15との間における制御部4には
、第1図(b)に示されるような選択手段Sが設けられ
ている。
In this case, the control unit 4 between the command line 17 for instructing the control unit 4 to start a search operation, search conditions, etc. from the outside and the control line 15 for starting the search condition determination unit 3 is connected to the control unit 4 as shown in FIG. A selection means S as shown in (b) is provided.

この選択手段Sは、指令線17を経て外部から与えられ
る検索条件を解析し、入力文字列の照合途中に検索結果
が判明する検索条件の場合には制御線31に“1”レベ
ルを出力し、入力文字列の照合終了後に検索結果が判明
する場合には“0”レベルを出力する解析部20と、入
力文字列における一文字を照合する毎に信号線32に“
l”レベルの第1のタイミング信号を出力するとともに
、ひとつの入力文字列の照合終了時に信号線33に“1
”レベルの第2のタイミング信号を出力するタイミング
信号発生部21と、解析部20からの入力とタイミング
信号発生部21からの第1のタイミング信号との論理積
をとる第1の論理積回路22と、否定回路24を介して
入力される解析部20からの入力の否定とタイミング信
号発生部21からの第2のタイミング信号との論理積を
とる第2の論理積回路23と、第1の論理積回路22お
よび第2の論理積回路23からの入力の論理和を制御線
15に出力する論理和回路25とを備えている。
This selection means S analyzes the search conditions given from the outside via the command line 17, and outputs a "1" level to the control line 31 if the search conditions are such that the search result becomes clear during the collation of the input character string. , an analysis unit 20 that outputs a “0” level when the search result is known after the completion of matching the input string;
In addition to outputting the first timing signal of "1" level, "1" is output to the signal line 33 at the end of matching one input character string.
A timing signal generation section 21 that outputs a second timing signal of "level", and a first AND circuit 22 that takes an AND of the input from the analysis section 20 and the first timing signal from the timing signal generation section 21. and a second AND circuit 23 which calculates the AND of the negation of the input from the analysis section 20 inputted via the NOT circuit 24 and the second timing signal from the timing signal generation section 21; The logical sum circuit 25 outputs the logical sum of the inputs from the logical product circuit 22 and the second logical product circuit 23 to the control line 15.

そして、信号線15には、制御線31における指令線1
7からの検索条件に対応する“1”または“0″の信号
レベルに応じて、信号線32または33のいずれかにお
ける“l”レベルが出力され、検索条件判定部3におけ
る判定を、入力文字列の一文字毎に行うか、または入力
文字列の照合終了後に行うかが選択されるものである。
The signal line 15 includes a command line 1 in the control line 31.
According to the signal level of "1" or "0" corresponding to the search condition from 7, the "l" level on either the signal line 32 or 33 is output, and the judgment in the search condition judgment section 3 is made based on the input character. It is possible to select whether to perform this for each character in the string or after the completion of collation of the input character string.

以下、本実施例の作用について説明する。The operation of this embodiment will be explained below.

まず、指令線17を介して指令される検索条件が、[入
力文字列中に、部分文字列“ABC’ および“DE’
 が存在すること、または部分文字列“ABC’ およ
びQR’ が存在すること。」という場合を考える。
First, the search condition commanded via the command line 17 is [Input character string contains partial character strings “ABC” and “DE”.
, or the substrings "ABC' and QR'exist."

これを論理式で表すと、 x= (xl ・ X2 )v (xl ・ x3 )
 ・ ・ ・(1)となる。
Expressing this as a logical formula, x= (xl ・X2)v (xl ・x3)
・ ・ ・(1) becomes.

ここで、xl  は文字列“ABC”を、x2 は“D
E’ を、X3 はQR’を、それぞれ発見したことを
表し、“・”は論理積、“V”は論理和を示すものであ
る。
Here, xl is the character string “ABC”, x2 is “D”
E' and X3 represent the discovery of QR', respectively, "." represents a logical product, and "V" represents a logical sum.

上記の検索条件の指令を受けた制御部4は、複数の信号
線6,7.8が式(1)のXI l  X21  X3
にそれぞれ対応するように文字列照合部1を設定し、同
様に複数の信号線9,10.11が式(1)のx、 l
  x2 +  x、にそれぞれ対応するように検索条
件判定部3を設定する。
Upon receiving the command of the above search condition, the control unit 4 sets the plurality of signal lines 6, 7.8 to XI l X21 X3 of formula (1).
The character string matching section 1 is set so as to correspond to each of
The search condition determination unit 3 is set to correspond to x2 + x, respectively.

さらに、制御部4においては、前記の式(1)で示され
る検索条件が、(X、  ・X2 )または(XI・X
3 )の一方が成立した時点で満足されることが認識さ
れ、選択手段Sにおいて、制御線31には“1”レベル
が出力されることとなり、制御線15には、タイミング
信号発生部21の信号線32における“ビルベルが出力
され、検索条件判定部3の起動は1文字処理毎に行われ
るように設定される。
Furthermore, in the control unit 4, the search condition shown by the above formula (1) is set to (X, ・X2) or (XI・X
3) is recognized to be satisfied when one of the conditions is satisfied, and in the selection means S, the control line 31 is outputted with a “1” level, and the control line 15 is output with the timing signal generator 21 outputting a “1” level. "Bill bell" is output on the signal line 32, and the search condition determining unit 3 is set to be activated every time one character is processed.

第2図は、本実施例において式(1)の検索条件により
検索を行う場合の動作を表す線図であり、制御線13に
は文字列照合部1が1文字処理する毎にラッチ指令信号
として“1”レベルが出力され、信号線15には文字列
照合部1が1文字処理する毎に、すなわち、信号線13
におけるラッチ指令信号が出力される毎に、検索条件判
定部3を起動する制御信号として゛1″レベルが出力さ
れる。
FIG. 2 is a diagram showing the operation when performing a search using the search condition of formula (1) in this embodiment. "1" level is output to the signal line 15, and every time the character string matching unit 1 processes one character, the signal line 13
Every time the latch command signal in is outputted, the "1" level is outputted as a control signal for activating the search condition determining section 3.

文字列照合部1は文字列’DE’ を発見した時点で信
号線7に“1″レベルを、文字列’ABC°を発見した
時点で信号線6に“1′°レベルをそれぞれ出力する。
The character string matching section 1 outputs a "1" level to the signal line 7 when it finds the character string 'DE', and outputs a "1'° level to the signal line 6 when it finds the character string 'ABC°."

これらの信号は制御線13の指令により照合結果ラッチ
部2を介して信号線9および10に“1′ルベルとして
保持される。
These signals are held in the signal lines 9 and 10 as "1" level via the verification result latch section 2 in response to a command from the control line 13.

検索条件判定部3は、制御線15に“1″レベルが出力
される毎に、すなわち入力文字列の一文字の照合操作毎
に、信号線9,10.11の出力レベルが検索条件に合
致するかを判定しており、信号線9およびlOにおける
出力がともに1″′レベルになった後、制御信号線15
を介して“1”レベルが入力された時点(第2図の41
で示される時点)で直ちに、現在照合中の入力文字列が
検索条件に合致することを示す1”レベルを信号線16
を介して制御部4に出力する。
The search condition determining unit 3 determines that the output levels of the signal lines 9, 10, and 11 match the search condition every time a level "1" is output to the control line 15, that is, every time a character in the input string is compared. After the outputs on signal lines 9 and 10 both reach the 1″ level, the control signal line 15
When the “1” level is input via
Immediately at the time point indicated by
It is output to the control section 4 via.

制御部4は信号線16からの“1”レベルの入力により
検索条件が満足されたことを認識し、当該入力文字列に
対する検索処理を打ち切るとともに、応答線18に“1
″ルベルを出力することにより当該入力文字列が検索条
件に合致したことおよび当該入力文字列に対する検索処
理が終了したことをより上位の図示しない制御装置に伝
達する。
The control unit 4 recognizes that the search condition is satisfied by the “1” level input from the signal line 16, terminates the search process for the input character string, and sends a “1” to the response line 18.
``By outputting the label, it is transmitted to a higher-level control device (not shown) that the input character string matches the search conditions and that the search process for the input character string has been completed.

このように、本実施例においては、制御部4に設けられ
た選択手段Sにより、照合操作の途中で検索結果が判明
するような検索条件の場合には、検索結果判明後の当該
入力文字列に対する無駄な照合操作を打ち切ることがで
きるので、検索処理に要する時間を短縮することができ
る。
As described above, in this embodiment, in the case of search conditions such that the search result is known during the matching operation, the selection means S provided in the control unit 4 selects the input character string after the search result is known. Since it is possible to abort wasteful matching operations for , the time required for search processing can be shortened.

このことは、1種類の検索条件により、多数個の長い入
力文字列を連続して検索しようとするような場合に特に
有効となる。
This is particularly effective when a large number of long input character strings are to be searched consecutively using one type of search condition.

また、検索条件が式(2)に示されるように、[特定の
文字列が存在しないこと」という条件を含む場合には、
入力文字列をその最後まで照合処理することが不可欠で
あり、この時、選択手段Sにおける解析部20から制御
線31には“0″レベルが出力され、制御線15には、
タイミング信号発生部21の信号線33における゛1″
レベルが出力され、検索条件判定部3の起動はひと続き
の入力文字列の照合処理後に行われる。
Furthermore, if the search condition includes the condition that a specific character string does not exist, as shown in formula (2),
It is essential to collate the input character string to the end, and at this time, the analysis section 20 in the selection means S outputs the "0" level to the control line 31, and the control line 15 outputs the "0" level.
“1” in the signal line 33 of the timing signal generator 21
The level is output, and the search condition determination unit 3 is activated after a series of input character strings are collated.

x−(r−r  ・X2 )V (XI  −X3 )
  ・・・(2)なお、上記の説明では、1文字処理毎
に検索条件判定部3を起動しているが、検索条件判定部
3の処理速度等の制約から1文字処理毎の判定が困難な
場合には、入力文字列の照合途中の任意の時点でたとえ
ば2文字処理毎に検索条件判定部3を起動してもよい。
x-(r-r ・X2)V (XI-X3)
...(2) In the above explanation, the search condition determination unit 3 is started every time one character is processed, but it is difficult to make a determination for each character processing due to constraints such as the processing speed of the search condition determination unit 3. In such a case, the search condition determination unit 3 may be activated at any time during the collation of the input character string, for example, every time two characters are processed.

〔発明の効果〕 本発明によれば、入力文字列と目的の2種以上の部分文
字列とを照合する文字列照合部と、該文字列照合部の照
合結果出力を保持する照合結果ラッチ部と、該照合結果
ラッチ部の出力を入力とし、2種以上の前記部分文字列
の照合結果の論理積または論理和またはそれらの組合せ
により予め与えられる検索条件に合致するか否かを判定
する検索条件判定部とを有する文字列検索回路において
、前記検索条件判定部による判定処理を、前記入力文字
列の照合後に行う場合と前記入力文字列の照合途中に行
う場合とで選択することが可能な選択手段を備えている
ので、目的とする複数種の部分文字列の検索条件の種類
に応じて、たとえば、入力文字列の照合途中に検索条件
に合致することが判定できるような場合には当該入力文
字列の残りの部分の照合操作を打ち切って直ちに検索を
終了することができ、検索条件の種類にかかわらず入力
文字列の最後まで照合を行う場合などに比較して、検索
に要する時間を短縮することができる。
[Effects of the Invention] According to the present invention, there is provided a character string matching unit that matches an input character string with two or more target substrings, and a matching result latch unit that holds the matching result output of the string matching unit. and the output of the matching result latch unit as input, and a search that determines whether or not a search condition given in advance is met by the AND or OR of the matching results of two or more types of partial character strings, or a combination thereof. In the character string search circuit having a condition determination unit, it is possible to select whether the determination process by the search condition determination unit is performed after collation of the input character string or in the middle of collation of the input character string. Since it is equipped with a selection means, depending on the type of search conditions for multiple types of target substrings, for example, if it is determined that the search conditions match the input string, the corresponding The search can be immediately terminated by aborting the matching operation for the remaining part of the input string, reducing the time required for the search compared to cases where matching is performed to the end of the input string regardless of the type of search condition. Can be shortened.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図(a)は本発明の一実施例を示す文字列検索回路
のブロック図、 第1図ら)はその要部を構成する論理回路の説明図、 第2図は検索回路の各部の動作の関連を説明する線図で
ある。 1・・・文字列照合部、2・・・照合結果ラッチ部、3
・・・検索条件判定部、4・・・制御部、5・・・デー
タ線、6,7.8・・・信号線、9゜10.11・・・
信号線、12,13.14.15・・・制御線、16・
・・信号線、17・・・指令線、18・・・応答線、1
9・・・制御線、20・・・解析部、21・・・タイミ
ング信号発生部、22・・・第1の論理積回路、23・
・・第2の論理積回路、24・・・否定回路、25・・
・論理和回路、31・・・制御線、32.33・・・信
号線、41・・・検索条件判定部の起動第1図 (Q) (b) 第2図 入力文字列
FIG. 1(a) is a block diagram of a character string search circuit showing an embodiment of the present invention, FIG. FIG. 1... Character string matching section, 2... Matching result latch section, 3
...Search condition determination unit, 4...Control unit, 5...Data line, 6, 7.8...Signal line, 9゜10.11...
Signal line, 12, 13.14.15... Control line, 16.
...Signal line, 17...Command line, 18...Response line, 1
9... Control line, 20... Analysis section, 21... Timing signal generation section, 22... First AND circuit, 23.
...Second AND circuit, 24...Negation circuit, 25...
・OR circuit, 31...control line, 32.33...signal line, 41...startup of search condition determination section Figure 1 (Q) (b) Figure 2 input character string

Claims (1)

【特許請求の範囲】 1、入力文字列と目的の2種以上の部分文字列とを照合
する文字列照合部と、該文字列照合部の照合結果出力を
保持する照合結果ラッチ部と、該照合結果ラッチ部の出
力を入力とし、2種以上の前記部分文字列の照合結果の
論理積または論理和またはそれらの組合せにより予め与
えられる検索条件に合致するか否かを判定する検索条件
判定部とを有する文字列検索回路であって、前記検索条
件判定部による判定処理を、前記入力文字列の照合後に
行う場合と前記入力文字列の照合途中に行う場合とで選
択することが可能な選択手段を備えていることを特徴と
する文字列検索回路。 2、前記選択手段が、外部から与えられる前記検索条件
を解析し、前記入力文字列の照合途中に検索結果が判明
する検索条件の場合には“1”レベルを出力し、照合後
に検索条件が判明する場合には“0”レベルを出力する
解析部と、前記入力文字列における一文字を照合する毎
に“1”レベルの第1のタイミング信号を出力するとと
もに、該入力文字列の照合終了時に“1”レベルの第2
のタイミング信号を出力するタイミング信号発生部と、
前記解析部からの入力と前記タイミング信号発生部から
の第1のタイミング信号との論理積をとる第1の論理積
回路と、前記解析部からの入力の否定と前記タイミング
信号発生部からの第2のタイミング信号との論理積をと
る第2の論理積回路と、前記第1および第2の論理積回
路からの入力の論理和を出力する論理和回路とからなる
ことを特徴とする特許請求の範囲第1項記載の文字列検
索回路。
[Claims] 1. A character string matching section that matches an input string with two or more target substrings; a matching result latch section that holds the matching result output of the string matching section; a search condition determining unit that receives the output of the matching result latch unit as input and determines whether or not a search condition given in advance is met based on the AND or OR of the matching results of two or more types of partial character strings, or a combination thereof; A character string search circuit having a character string search circuit, wherein the determination process by the search condition determining unit is selective between performing the determination process after collating the input character string and performing the determination process during collation of the input character string. A character string search circuit characterized by comprising means. 2. The selection means analyzes the search condition given from the outside, and outputs a level "1" if the search condition is such that the search result is known during the collation of the input character string, and the search condition is determined after the collation. an analysis unit that outputs a “0” level if it is found; and an analysis unit that outputs a first timing signal of a “1” level every time one character in the input string is compared, and an analysis unit that outputs a “1” level first timing signal every time a character in the input string is compared; “1” level 2nd
a timing signal generator that outputs a timing signal;
a first AND circuit that takes an AND of the input from the analysis section and a first timing signal from the timing signal generation section; A patent claim characterized in that the invention comprises a second AND circuit that takes an AND with two timing signals, and an OR circuit that outputs the OR of inputs from the first and second AND circuits. The character string search circuit according to the first item in the range.
JP62090850A 1987-04-15 1987-04-15 Character string retrieving circuit Pending JPS63257030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62090850A JPS63257030A (en) 1987-04-15 1987-04-15 Character string retrieving circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62090850A JPS63257030A (en) 1987-04-15 1987-04-15 Character string retrieving circuit

Publications (1)

Publication Number Publication Date
JPS63257030A true JPS63257030A (en) 1988-10-24

Family

ID=14010056

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62090850A Pending JPS63257030A (en) 1987-04-15 1987-04-15 Character string retrieving circuit

Country Status (1)

Country Link
JP (1) JPS63257030A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02231677A (en) * 1989-03-06 1990-09-13 Fujitsu Ltd Search processing system
JP2005339150A (en) * 2004-05-26 2005-12-08 Mitsubishi Electric Corp Document retrieval device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02231677A (en) * 1989-03-06 1990-09-13 Fujitsu Ltd Search processing system
JP2005339150A (en) * 2004-05-26 2005-12-08 Mitsubishi Electric Corp Document retrieval device

Similar Documents

Publication Publication Date Title
JPS63500479A (en) Memory that can address patterns
JPS63257030A (en) Character string retrieving circuit
JPH11213004A (en) Data processor, its method and storage medium storing data processing program
JP2880192B2 (en) Character string search method and apparatus
JPH03286371A (en) Document information retrieving device
JPH06274701A (en) Word collating device
JP2734373B2 (en) Fingerprint collation processor
JP2772125B2 (en) Dictionary search method
JPH0492973A (en) Image information registration/retrieval device
JPS63153632A (en) Character string retrieval system
JPH10145453A (en) Method and device for processing communication protocol
JPH10228484A (en) Data base retrieval device/method
JPS6373422A (en) Information retrieving device
JP2529466B2 (en) Separator
JPH0642248B2 (en) Information retrieval device
JPS63138479A (en) Character recognizing device
JPS63254522A (en) Key word extracting device
JP2000293635A (en) Character recognizing device and its method and character recognition program recording medium
JPS61123929A (en) Data retrieval system
JPH0268663A (en) Character string retrieving device
JPH11175531A (en) Similar event retrieving device and method therefor
JPH03278194A (en) Character recognition processing system
JPH06103319A (en) Document filing system
JPS6072023A (en) Information retrieving device
JP2006004368A (en) Electronic device and method for string fast comparison search