JP2010165102A - Data retrieval device, data retrieval method, and data retrieval program - Google Patents

Data retrieval device, data retrieval method, and data retrieval program Download PDF

Info

Publication number
JP2010165102A
JP2010165102A JP2009005638A JP2009005638A JP2010165102A JP 2010165102 A JP2010165102 A JP 2010165102A JP 2009005638 A JP2009005638 A JP 2009005638A JP 2009005638 A JP2009005638 A JP 2009005638A JP 2010165102 A JP2010165102 A JP 2010165102A
Authority
JP
Japan
Prior art keywords
data
match
mismatch
signal
input data
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.)
Granted
Application number
JP2009005638A
Other languages
Japanese (ja)
Other versions
JP5139335B2 (en
Inventor
Naoki Miura
直樹 三浦
Tomoshi Shigematsu
智志 重松
Takahiro Hatano
孝裕 羽田野
Mamoru Nakanishi
衛 中西
Masami Urano
正美 浦野
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2009005638A priority Critical patent/JP5139335B2/en
Publication of JP2010165102A publication Critical patent/JP2010165102A/en
Application granted granted Critical
Publication of JP5139335B2 publication Critical patent/JP5139335B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To shorten an average retrieval time by shortening a determination time of non-matching. <P>SOLUTION: The data retrieval device is provided with: a matching detection means for comparing input data with matching registration data, and outputting a matching detection signal when the matching registration data matched with the input data are detected; a non-matching detection means for comparing a portion of the input data with a portion of preliminarily registered non-matching registration data, or comparing the whole of the input data with the whole of the non-matching registration data, and outputting a non-matching detection signal when the non-matching registration data matched with the input data or determined to be matched with the input data are detected; and a determination means for inputting the matching detection signal and the non-matching detection signal, outputting the determination signal of matching determination when the previously input signal is the matching detection signal, and outputting the determination signal of non-matching determination when it is the non-matching detection signal. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、入力データが登録データに一致するか否かを判定するデータ検索装置、データ検索方法およびデータ検索プログラムに関する。   The present invention relates to a data search apparatus, a data search method, and a data search program that determine whether or not input data matches registered data.

データ処理を行う電子機器等には、受信データにフィルタリングなどの処理を行うためにデータ検索装置を搭載しているものがある。このデータ検索装置は、受信データの一部または全部を入力データとして入力し、入力データが事前に登録した複数のデータ(登録データ)のいずれかに一致するか否かを判定し、その判定結果を出力する構成である。   Some electronic devices that perform data processing are equipped with a data search device in order to perform processing such as filtering on received data. This data search apparatus inputs part or all of received data as input data, determines whether or not the input data matches any of a plurality of pre-registered data (registered data), and the determination result Is output.

インターネットを利用する各ユーザが取り扱うデータ量が増加すると、データ検索装置には多種大量の受信データを短時間で処理するために、1つの入力データが入力されてから判定結果を出力するまでに要する平均的な時間(平均検索時間)の短縮が求められている。ここで、データ検索装置において、総数N(Nは自然数)の入力データをT秒(Tは自然数)で処理する場合の平均検索時間はT/Nで表される。   As the amount of data handled by each user using the Internet increases, it takes a long time from the input of one input data to the output of a determination result in order to process a large amount of received data in the data search device in a short time. There is a need to reduce average time (average search time). Here, in the data search device, the average search time when processing the total number N (N is a natural number) of input data in T seconds (T is a natural number) is represented by T / N.

データ検索方法の1つである線形検索方法は、登録データを1つずつ順番に入力データと比較し、入力データと一致する登録データを検出した場合に一致と判定する。逆に、入力データと全登録データとを比較して一致する登録データを検出できない場合に不一致と判定する。すなわち、線形検索方法では一致を判定するとともに、一致を判定できないとき(未登録の場合)に不一致と判定している(非特許文献1)。   The linear search method, which is one of the data search methods, compares registered data with input data one by one in order, and determines that a match is found when registered data that matches the input data is detected. On the contrary, when the input data and all the registration data are compared and matching registration data cannot be detected, it is determined that they do not match. That is, in the linear search method, a match is determined, and a match is determined when the match cannot be determined (unregistered) (Non-Patent Document 1).

他のデータ検索方法である2分探索木方法は、異なる値をもつ複数の登録データを昇順または降順に並べ替え、並べ替えた登録データ群の中央の登録データと入力データとを比較し、その大小関係から次の検索対象を半分に絞りこんでいく。そして、検索対象を絞り込んでいく過程で、入力データと一致する登録データを検出した場合に一致と判定し、比較対象がなくなった場合に不一致と判定する。すなわち、2分探索木方法においても、線形検索方法と同様に一致を判定するとともに、一致を判定できないとき(未登録の場合)に不一致と判定している(特許文献1,非特許文献2)。   The binary search tree method, which is another data search method, sorts a plurality of registered data having different values in ascending or descending order, compares the registered data in the center of the sorted registered data group with the input data, Narrow down the next search target in half from the size relationship. Then, in the process of narrowing down the search target, it is determined as matching when registration data matching the input data is detected, and it is determined as mismatching when there is no comparison target. That is, even in the binary search tree method, a match is determined as in the linear search method, and a mismatch is determined when a match cannot be determined (unregistered) (Patent Document 1, Non-Patent Document 2). .

図19は、従来のデータ検索装置の代表的な構成例を示す。
図において、データ検索装置は、一致検出部10および判定部32から構成される。一致検出部10は、入力データ1と一致登録データとを比較し、入力データ1と一致する一致登録データを検出した場合に一致検出信号2を出力し、入力データ1と一致する一致登録データがない場合に比較終了信号3を出力する。判定部32は、一致検出信号2または比較終了信号3を入力すると、表1に示すように、一致検出信号2に対して一致判定の判定信号5を出力し、比較終了信号3に対して不一致判定の判定信号5を出力する。
FIG. 19 shows a typical configuration example of a conventional data search apparatus.
In the figure, the data search device includes a match detection unit 10 and a determination unit 32. The coincidence detection unit 10 compares the input data 1 with the coincidence registration data, and outputs a coincidence detection signal 2 when the coincidence registration data that coincides with the input data 1 is detected. If not, the comparison end signal 3 is output. When the match detection signal 2 or the comparison end signal 3 is input, the determination unit 32 outputs the match determination determination signal 5 for the match detection signal 2 and does not match the comparison end signal 3 as shown in Table 1. A determination signal 5 for determination is output.

Figure 2010165102
Figure 2010165102

図20は、一致検出部10の構成例を示す。
図において、一致検出部10は、レジスタ40、一致比較回路50および一致登録データ格納部60から構成される。一致検出部10に入力する入力データ1は、レジスタ40で一時的に保持され、一致比較回路50に比較データ111として出力される。一致比較回路50は比較データ111を入力すると、複数の一致登録データを格納した一致登録データ格納部60に要求信号112を出力し、一致登録データ格納部13から1つずつ読み出した一致登録データ113と比較データ111とを比較する。このとき、一致登録データ113と比較データ111が一致すれば、一致比較回路50は一致検出信号2を出力する。一方、登録データ格納部13から読み出す一致登録データがなくなれば、一致比較回路12は比較終了信号3を出力する。
FIG. 20 shows a configuration example of the coincidence detection unit 10.
In the figure, the match detection unit 10 includes a register 40, a match comparison circuit 50, and a match registration data storage unit 60. The input data 1 input to the coincidence detection unit 10 is temporarily held in the register 40 and output as comparison data 111 to the coincidence comparison circuit 50. When the comparison data 111 is input, the match comparison circuit 50 outputs a request signal 112 to the match registration data storage unit 60 that stores a plurality of match registration data, and the match registration data 113 read one by one from the match registration data storage unit 13. And the comparison data 111 are compared. At this time, if the coincidence registration data 113 and the comparison data 111 coincide, the coincidence comparison circuit 50 outputs the coincidence detection signal 2. On the other hand, when there is no coincidence registration data to be read from the registration data storage unit 13, the coincidence comparison circuit 12 outputs a comparison end signal 3.

従来のデータ検索装置は、一致と判定できない場合に不一致と判定するため、入力データとすべての一致登録データを比較した後でなければ不一致を判定することができない。したがって、不一致判定する場合が最も検索に長い時間を要することになり、入力データの多くが不一致となる状況では平均検索時間が長くなる。   Since the conventional data search apparatus determines that there is a mismatch when it cannot be determined as a match, it can only determine a mismatch after comparing the input data with all the match registration data. Therefore, when the mismatch is determined, the search takes the longest time, and in the situation where most of the input data does not match, the average search time becomes long.

本発明は、不一致の判定時間を短縮することによって平均検索時間を短くするデータ検索装置、データ検索方法およびデータ検索プログラムを提供することを目的とする。   An object of the present invention is to provide a data search device, a data search method, and a data search program that shorten the average search time by reducing the mismatch determination time.

第1の発明は、入力データが予め登録した一致登録データに一致するか否かを判定するデータ検索装置において、入力データと一致登録データとを比較し、入力データと一致する一致登録データを検出した場合に一致検出信号を出力する一致検出手段と、入力データの一部と予め登録した不一致登録データの一部とを比較し、あるいは入力データの全部と不一致登録データの全部とを比較し、入力データと一致または一致とみなす不一致登録データを検出した場合に不一致検出信号を出力する不一致検出手段と、一致検出信号および不一致検出信号をそれぞれ入力し、先に入力した信号が一致検出信号であれば一致判定の判定信号を出力し、不一致検出信号であれば不一致判定の判定信号を出力する判定手段とを備える。   According to a first aspect of the present invention, in a data search apparatus for determining whether or not input data matches previously registered matching registration data, the input data and the matching registration data are compared, and matching registration data matching the input data is detected. A match detection means for outputting a match detection signal in this case, comparing a part of the input data with a part of the mismatch registration data registered in advance, or comparing all of the input data and all of the mismatch registration data, A mismatch detection unit that outputs a mismatch detection signal when a mismatch registration data that matches or matches the input data is detected, and a match detection signal and a mismatch detection signal are input, respectively, and the previously input signal is a match detection signal. A determination signal for outputting a determination signal for coincidence determination, and a determination means for outputting a determination signal for disagreement determination for a mismatch detection signal.

第1の発明のデータ検索装置における一致検出手段は、不一致検出手段が不一致検出信号を出力したときに、判定手段または不一致検出手段からの通知により検索処理を中止して次の入力データの検索処理を行う構成であり、不一致検出手段は、一致検出手段が一致検出信号を出力したときに、判定手段または一致検出手段からの通知により検索処理を中止して次の入力データの検索処理を行う構成としてもよい。   The coincidence detection means in the data search device of the first invention is such that when the mismatch detection means outputs a mismatch detection signal, the search processing is stopped by a notification from the determination means or the mismatch detection means, and search processing for the next input data The non-coincidence detection unit is configured to stop the search process by a notification from the determination unit or the match detection unit and perform a search process for the next input data when the match detection unit outputs a match detection signal. It is good.

第1の発明のデータ検索装置における不一致検出手段は、入力データに対して一致検出手段が一致検出信号を出力しないときに、当該入力データを不一致登録データとして追加登録する構成としてもよい。   The mismatch detection means in the data search device of the first invention may be configured to additionally register the input data as mismatch registration data when the match detection means does not output a match detection signal for the input data.

第1の発明のデータ検索装置における不一致検出手段または一致検出手段は、不一致登録データまたは一致登録データの値に対応した数値のアドレスに当該データの有無情報を記憶したメモリ手段と、入力データの値をメモリ手段の読み出しアドレスに変換して有無情報の読み出しを行い、有情報に対して不一致検出信号または一致検出信号を出力する一致比較手段とを備える構成としてもよい。   The mismatch detection means or the match detection means in the data search device of the first invention includes: a memory means for storing presence / absence information of the data at a numerical address corresponding to the value of the mismatch registration data or the match registration data; and a value of the input data It may be configured to include coincidence comparison means for converting presence / absence information by converting into a read address of the memory means and outputting a mismatch detection signal or a match detection signal for the presence information.

第1の発明のデータ検索装置における不一致検出手段は、入力データと一致登録データをそれぞれ複数の分割データと複数の分割一致登録データに分割し、対応する分割データと分割一致登録データとをそれぞれ比較し、その少なくとも1組が不一致であれば不一致検出信号を出力する構成としてもよい。   The inconsistency detection means in the data search device of the first invention divides input data and coincidence registration data into a plurality of divided data and a plurality of division coincidence registration data, respectively, and compares the corresponding divided data with the division coincidence registration data, respectively. If at least one of the sets does not match, a mismatch detection signal may be output.

第1の発明のデータ検索装置における不一致検出手段は、入力データに対して不一致検出信号を出力しないときに検索指示信号を一致検出手段に出力する構成であり、一致検出手段は、検索指示信号を入力したときに入力データに対する検索処理を行う構成としてもよい。   The mismatch detection means in the data search device of the first invention is configured to output a search instruction signal to the match detection means when no mismatch detection signal is output with respect to the input data. The match detection means receives the search instruction signal. It is good also as a structure which performs the search process with respect to input data, when it inputs.

また、一致検出手段は、入力データを保持し、一致検出信号を出力するときに検索対象となった入力データも出力する構成であり、不一致検出手段は、入力データを保持し、不一致検出信号を出力するときに検索対象となった入力データも出力し、不一致検出信号または検索指示信号を出力した後に次の入力データに対する検索処理に移行する構成であり、判定手段は、一致検出信号または不一致検出信号とともに入力する入力データを、判定信号とともに出力する構成としてもよい。   The coincidence detection means holds the input data and also outputs the input data that is searched when outputting the coincidence detection signal. The mismatch detection means holds the input data and outputs the mismatch detection signal. The input data that is the search target is also output when output, and after the output of the mismatch detection signal or search instruction signal, the process proceeds to the search process for the next input data, and the determination means is a match detection signal or mismatch detection The input data input together with the signal may be output together with the determination signal.

第2の発明は、入力データが予め登録した一致登録データに一致するか否かを判定するデータ検索方法において、一致検出手段で入力データと一致登録データとを比較し、入力データと一致する一致登録データを検出した場合に一致検出信号を出力し、不一致検出手段で入力データの一部と予め登録した不一致登録データの一部とを比較し、あるいは入力データの全部と不一致登録データの全部とを比較し、入力データと一致または一致とみなす不一致登録データを検出した場合に不一致検出信号を出力し、判定手段で一致検出信号および不一致検出信号をそれぞれ入力し、先に入力した信号が一致検出信号であれば一致判定の判定信号を出力し、不一致検出信号であれば不一致判定の判定信号を出力する。   According to a second aspect of the present invention, in the data search method for determining whether or not the input data matches the previously registered match registration data, the match detection means compares the input data with the match registration data and matches the input data. When the registration data is detected, a match detection signal is output, and the mismatch detection means compares a part of the input data with a part of the mismatch registration data registered in advance, or all the input data and all the mismatch registration data Are output, a mismatch detection signal is output when mismatched registration data that matches or matches the input data is detected, and a match detection signal and a mismatch detection signal are input by the judging means, and the previously input signal is detected as a match. If it is a signal, a determination signal for coincidence determination is output, and if it is a mismatch detection signal, a determination signal for mismatch determination is output.

第2の発明のデータ検索方法における一致検出手段は、不一致検出手段が不一致検出信号を出力したときに、判定手段または不一致検出手段からの通知により検索処理を中止して次の入力データの検索処理を行い、不一致検出手段は、一致検出手段が一致検出信号を出力したときに、判定手段または一致検出手段からの通知により検索処理を中止して次の入力データの検索処理を行うようにしてもよい。   In the data search method according to the second aspect of the present invention, when the mismatch detection means outputs a mismatch detection signal, the match detection means stops the search process by a notification from the determination means or the mismatch detection means and searches for the next input data. The mismatch detection unit may stop the search process by a notification from the determination unit or the match detection unit and perform a search process for the next input data when the match detection unit outputs a match detection signal. Good.

第2の発明のデータ検索方法における不一致検出手段は、入力データに対して一致検出手段が一致検出信号を出力しないときに、当該入力データを不一致登録データとして追加登録するようにしてもよい。   The mismatch detection means in the data search method of the second invention may additionally register the input data as mismatch registration data when the match detection means does not output a match detection signal for the input data.

第3の発明は、第1の発明のデータ検索装置の各手段を、コンピュータで実行するプログラムで実現したことを特徴とする。   A third invention is characterized in that each means of the data search device of the first invention is realized by a program executed by a computer.

本発明は、入力データと一致登録データとの一致を検出する一致検出手段と、不一致登録データとの一致(入力データと一致登録データとの不一致)を検出する不一致検出手段を備え、いずれか先に出力された検索結果を一致/不一致判定出力とする。これにより、入力データとすべての一致登録データを比較することなく、不一致判定を行うことができる。したがって、入力データの多くが不一致判定するような場合でも、短時間で検索結果を出力することができ、従来装置に比べて平均検索時間を短縮することができる。   The present invention includes a match detection unit that detects a match between input data and match registration data, and a mismatch detection unit that detects a match between mismatch registration data (a mismatch between input data and match registration data). The search result output in is used as a match / mismatch determination output. Thereby, it is possible to perform the mismatch determination without comparing the input data with all the matching registration data. Therefore, even when much of the input data is judged to be inconsistent, the search result can be output in a short time, and the average search time can be shortened compared to the conventional apparatus.

本発明のデータ検索装置の実施例1の構成例を示す図である。It is a figure which shows the structural example of Example 1 of the data search device of this invention. 実施例1における不一致検出部20の構成例を示す図である。It is a figure which shows the structural example of the mismatch detection part 20 in Example 1. FIG. 本発明のデータ検索装置の実施例2の構成例を示す図である。It is a figure which shows the structural example of Example 2 of the data search device of this invention. 本発明のデータ検索装置の実施例2の他の構成例を示す図である。It is a figure which shows the other structural example of Example 2 of the data search device of this invention. 本発明のデータ検索装置の実施例3の構成例を示す図である。It is a figure which shows the structural example of Example 3 of the data search device of this invention. 実施例4における不一致検出部21の構成例を示す図である。It is a figure which shows the structural example of the mismatch detection part 21 in Example 4. FIG. 不一致登録データ格納部62の構成例を示す図である。5 is a diagram illustrating a configuration example of a mismatched registration data storage unit 62. FIG. メモリ80に格納する不一致登録データの作成方法を説明する図である。FIG. 6 is a diagram for explaining a method of creating mismatch registration data stored in a memory 80. 本発明のデータ検索装置の実施例4の変形例を示す図である。It is a figure which shows the modification of Example 4 of the data search device of this invention. 実施例5における不一致検出部22の構成例を示す図である。It is a figure which shows the structural example of the mismatch detection part 22 in Example 5. FIG. 分割データの形態を示す図である。It is a figure which shows the form of division | segmentation data. 分割一致登録データの形態を示す図である。It is a figure which shows the form of division | segmentation coincidence registration data. 分割不一致検出部23の構成例を示す図である。3 is a diagram illustrating a configuration example of a division mismatch detection unit 23. FIG. 本発明のデータ検索装置の実施例6の構成例を示す図である。It is a figure which shows the structural example of Example 6 of the data search device of this invention. 実施例6における一致検出部11の構成例を示す図である。FIG. 10 is a diagram illustrating a configuration example of a coincidence detection unit 11 according to a sixth embodiment. 本発明のデータ検索装置の実施例7の構成例を示す図である。It is a figure which shows the structural example of Example 7 of the data search device of this invention. 実施例7における一致検出部12の構成例を示す図である。FIG. 10 is a diagram illustrating a configuration example of a coincidence detection unit 12 according to a seventh embodiment. 本発明のデータ検索装置の実施例7の動作例を示すタイミングチャートである。It is a timing chart which shows the operation example of Example 7 of the data search device of this invention. 従来のデータ検索装置の代表的な構成例を示す図である。It is a figure which shows the typical structural example of the conventional data search device. 一致検出部10の構成例を示す図である。2 is a diagram illustrating a configuration example of a coincidence detection unit 10. FIG.

以下、本発明のデータ検索装置、データ検索方法およびデータ検索プログラムの実施の形態について、実施例1〜実施例8に基づいて詳細に説明する。   Hereinafter, embodiments of a data search device, a data search method, and a data search program of the present invention will be described in detail based on Examples 1 to 8.

実施例1のデータ検索装置は、入力データと一致する一致登録データおよび不一致登録データを検索し、一致判定または不一致判定を並列に行うことを特徴とする。   The data search apparatus according to the first embodiment is characterized in that it searches for matching registration data and mismatching registration data that match input data, and performs matching determination or mismatching determination in parallel.

図1は、本発明のデータ検索装置の実施例1の構成例を示す。
図において、実施例1のデータ検索装置は、一致検出部10、不一致検出部20および判定部30から構成される。データ検索装置に入力する入力データ1は、一致検出部10および不一致検出部20に入力する。一致検出部10は、入力データ1と一致登録データとを比較し、入力データ1と一致する一致登録データを検出した場合に一致検出信号2を出力し、入力データ1と一致する一致登録データがない(未登録の)場合に比較終了信号3を出力する。不一致検出部20は、入力データ1と不一致登録データとを比較し、入力データ1と一致する不一致登録データを検出した場合に不一致検出信号4を出力する。
FIG. 1 shows a configuration example of Embodiment 1 of the data search apparatus of the present invention.
In the figure, the data search apparatus according to the first embodiment includes a match detection unit 10, a mismatch detection unit 20, and a determination unit 30. Input data 1 to be input to the data search device is input to the match detection unit 10 and the mismatch detection unit 20. The coincidence detection unit 10 compares the input data 1 with the coincidence registration data, and outputs a coincidence detection signal 2 when the coincidence registration data that coincides with the input data 1 is detected. When there is no (not registered), the comparison end signal 3 is output. The mismatch detection unit 20 compares the input data 1 with the mismatch registration data, and outputs a mismatch detection signal 4 when the mismatch registration data that matches the input data 1 is detected.

判定部30は、一致検出信号2または比較終了信号3または不一致検出信号4を入力すると、表2に示すように、一致検出信号2に対して一致判定の判定信号5を出力し、比較終了信号3または不一致検出信号4に対して不一致判定の判定信号5を出力する。   When the determination unit 30 receives the match detection signal 2, the comparison end signal 3, or the mismatch detection signal 4, as shown in Table 2, the determination unit 30 outputs a match determination determination signal 5 for the match detection signal 2, and the comparison end signal 3 or a mismatch detection signal 4 is output as a mismatch determination signal 5.

Figure 2010165102
Figure 2010165102

なお、判定部30は、一致検出部10と不一致検出部20のいずれかから最も早く入力する信号に対応する判定信号5を出力し、その後に入力する信号は無視する構成である。すなわち、一致検出部10が出力する一致検出信号2または比較終了信号3、または不一致検出部20が出力する不一致検出信号4のいずれか早い信号に応じて、表2に示すような判定結果を出力する。これにより、実施例1のデータ検索装置では、一致検出部10のみで検索処理を行う従来構成よりも平均的に早く判定結果を出力することができ、平均検索時間を短縮することができる。   The determination unit 30 is configured to output the determination signal 5 corresponding to the signal input earliest from either the coincidence detection unit 10 or the mismatch detection unit 20, and ignore the signal input thereafter. That is, a determination result as shown in Table 2 is output according to the earlier one of the match detection signal 2 or the comparison end signal 3 output from the match detection unit 10 or the mismatch detection signal 4 output from the mismatch detection unit 20. To do. Thereby, in the data search apparatus of Example 1, a determination result can be output on average faster than the conventional structure which performs a search process only by the coincidence detection part 10, and average search time can be shortened.

次に、一致検出部10および不一致検出部20の構成例について説明するが、一致検出部10は図20に示す従来のデータ検索装置における一致検出部10と同様の構成であるので説明は省略する。   Next, configuration examples of the match detection unit 10 and the mismatch detection unit 20 will be described. Since the match detection unit 10 has the same configuration as the match detection unit 10 in the conventional data search apparatus shown in FIG. .

図2は、実施例1における不一致検出部20の構成例を示す。
図において、不一致検出部20は、レジスタ40、一致比較回路51および不一致登録データ格納部61から構成される。不一致検出部20に入力する入力データ1は、レジスタ40で一時的に保持され、一致比較回路51に比較データ111として出力される。一致比較回路51は比較データ111を入力すると、複数の不一致登録データを格納した不一致登録データ格納部61に要求信号112を出力し、不一致登録データ格納部61から1つずつ読み出した不一致登録データ114と比較データ111とを比較する。このとき、不一致登録データ114と比較データ111が一致すれば、一致比較回路51は不一致検出信号4を出力する。なお、入力データ1に一致する不一致登録データが未登録であれば、一致比較回路51はなにも出力しない。
FIG. 2 shows a configuration example of the mismatch detection unit 20 in the first embodiment.
In the figure, the mismatch detection unit 20 includes a register 40, a match comparison circuit 51, and a mismatch registration data storage unit 61. The input data 1 input to the mismatch detection unit 20 is temporarily held in the register 40 and output as the comparison data 111 to the match comparison circuit 51. When the comparison data 51 is input, the match comparison circuit 51 outputs a request signal 112 to the mismatch registration data storage unit 61 storing a plurality of mismatch registration data, and the mismatch registration data 114 read out from the mismatch registration data storage unit 61 one by one. And the comparison data 111 are compared. At this time, if the mismatch registration data 114 and the comparison data 111 match, the match comparison circuit 51 outputs the mismatch detection signal 4. If the mismatch registration data that matches the input data 1 is not registered, the match comparison circuit 51 outputs nothing.

ここで、実施例1の変形例について説明する。この変形例は、以下に示す他の実施例においても同様に適用可能である。   Here, a modification of the first embodiment will be described. This modification can be similarly applied to other embodiments described below.

実施例1で説明した一致検出部10および不一致検出部20は、線形検索方法に対応する構成を想定しているが、これに限定されるものではなく、例えば2分探索木方法に対応する構成であってもよい。また、一致検出部10と不一致検出部20は、互いに異なる検索方法に対応する構成であってもよい。   The match detection unit 10 and the mismatch detection unit 20 described in the first embodiment assume a configuration corresponding to the linear search method, but the configuration is not limited to this, and for example, a configuration corresponding to the binary search tree method It may be. Further, the match detection unit 10 and the mismatch detection unit 20 may be configured to correspond to different search methods.

不一致検出部20は、不一致検出信号4だけでなく、全種類の不一致登録データを保持している場合に、入力データ1と一致する不一致登録データがない(未登録の)場合に比較終了信号を出力し、判定部30がこの比較終了信号に対して一致判定の判定信号5を出力するようにしてもよい。   The mismatch detection unit 20 holds not only the mismatch detection signal 4 but also all types of mismatch registration data, and if there is no mismatch registration data that matches the input data 1 (unregistered), The determination unit 30 may output the determination signal 5 for determining the coincidence with respect to the comparison end signal.

不一致検出部20の不一致登録データ格納部61は、全種類の不一致登録データを保持せず、例えば利用頻度の高い不一致登録データのみを保持する構成としてもよい。また、nビットの不一致登録データのうち、例えば上位(n−1)ビットを不一致登録データとして保持し、入力データ1の上位(n−1)ビットの比較データ111と比較する構成としてもよい。また、不一致登録データのビット数を単純に切り捨てるだけでなく、ハッシュ関数等を用いて不一致登録データのビット数を小さくしてもよい。これにより、不一致登録データの数またはデータ量を減らすことができ、平均検索時間の短縮効果を確保しながら、メモリ容量の削減、動作速度の向上、消費電力の削減の各効果を得ることができる。   The non-matching registration data storage unit 61 of the non-matching detection unit 20 may be configured not to hold all types of non-matching registration data, but to hold only non-matching registration data that is frequently used, for example. Further, of the n-bit mismatch registration data, for example, the upper (n−1) bits may be held as the mismatch registration data and compared with the upper (n−1) -bit comparison data 111 of the input data 1. Further, not only simply truncating the number of bits of mismatched registration data, but also the number of bits of mismatched registration data may be reduced using a hash function or the like. As a result, the number or data amount of inconsistent registration data can be reduced, and the effects of reducing memory capacity, improving operation speed, and reducing power consumption can be obtained while ensuring the effect of shortening the average search time. .

一致検出部10および不一致検出部20は、一致登録データおよび不一致登録データごとの一致回数をカウントし、カウント数の大きいものから順番に検索を行う構成としてもよい。また、一致登録データおよび不一致登録データを並べ替える機能や、利用頻度の低い一致登録データおよび不一致登録データを消去する機能を備えてもよい。これにより、複数の入力データが連続して入力する場合に平均検索時間を短縮することができる。   The match detection unit 10 and the mismatch detection unit 20 may be configured to count the number of matches for each of the match registration data and the mismatch registration data and perform a search in descending order of the count number. Further, a function of rearranging the matching registration data and the mismatching registration data, and a function of deleting the matching registration data and the mismatching registration data that are less frequently used may be provided. Thereby, when a plurality of input data are continuously input, the average search time can be shortened.

一致登録データを追加する場合には、事前に当該一致登録データを不一致検出部20に入力して不一致検出信号4が出力される場合には、当該一致登録データを不一致登録データから削除してから一致検出部10の一致登録データ格納部60に格納する。不一致登録データを追加する場合にも同様の処理を行ってもよい。これにより、一致登録データと不一致登録データの重複を回避することができる。   When adding match registration data, when the match registration data is input to the mismatch detection unit 20 in advance and the mismatch detection signal 4 is output, the match registration data is deleted from the mismatch registration data. The data is stored in the match registration data storage unit 60 of the match detection unit 10. Similar processing may be performed when adding mismatched registration data. Thereby, duplication of coincidence registration data and non-coincidence registration data can be avoided.

実施例1のデータ検索装置は、一致判定または不一致判定の判定信号5を出力するが、一致判定の判定信号5に代えて関連データを出力するようにしてもよい。例えば、関連データを出力ポートとすればルータとしての機能を付加することができ、関連データを出力キューとすれば優先制御としての機能を付加することができる。なお、この関連データは、一致検出部10の一致登録データ格納部(図20の60)から一致登録データ(図20の113)とともに出力され、一致検出信号2とともに判定部30に出力され、判定部30が一致判定を行うときに判定信号5に代わって出力される。   The data search apparatus according to the first embodiment outputs the determination signal 5 for matching determination or non-matching determination, but may output related data instead of the determination signal 5 for matching determination. For example, if the related data is an output port, a function as a router can be added, and if the related data is an output queue, a function as priority control can be added. The related data is output together with the match registration data (113 in FIG. 20) from the match registration data storage unit (60 in FIG. 20) of the match detection unit 10, and is output to the determination unit 30 together with the match detection signal 2. It is output instead of the determination signal 5 when the unit 30 performs the coincidence determination.

実施例2のデータ検索装置は、入力データと一致する一致登録データおよび不一致登録データを検索し、一致判定または不一致判定を行った後に一致検出部10および不一致検出部20の検索動作を終了させ、次の入力データに対する検索を可能にすることを特徴とする。   The data search apparatus according to the second embodiment searches for match registration data and mismatch registration data that match the input data, and after performing match determination or mismatch determination, ends the search operation of the match detection unit 10 and the mismatch detection unit 20, It is possible to search for the next input data.

図3は、本発明のデータ検索装置の実施例2の構成例を示す。
図において、実施例2のデータ検索装置は、基本的機能が実施例1と同様の一致検出部10、不一致検出部20および判定部30から構成される。実施例2の判定部30は、不一致検出信号4の入力に対する判定信号5を出力するとともに、一致検出部10に対して入力データと一致登録データとの比較を中止させる比較中止信号6を出力する。また、実施例2の判定部30は、一致検出信号2または比較終了信号3の入力に対する判定信号5を出力するとともに、不一致検出部20に対して入力データと不一致登録データとの比較を中止させる比較中止信号7を出力する。
FIG. 3 shows a configuration example of Embodiment 2 of the data search apparatus of the present invention.
In the figure, the data search apparatus according to the second embodiment includes a coincidence detection unit 10, a mismatch detection unit 20, and a determination unit 30 that have the same basic functions as those of the first embodiment. The determination unit 30 according to the second embodiment outputs a determination signal 5 with respect to the input of the mismatch detection signal 4 and also outputs a comparison stop signal 6 that causes the match detection unit 10 to stop comparing the input data with the match registration data. . The determination unit 30 according to the second embodiment outputs a determination signal 5 corresponding to the input of the coincidence detection signal 2 or the comparison end signal 3 and causes the mismatch detection unit 20 to stop comparing the input data with the mismatch registration data. The comparison stop signal 7 is output.

このように実施例2では、入力データに対して一致判定または不一致判定を行った後に、データ検索処理を速やかに終了して次の入力データに対する検索処理に移行することができる。これにより、複数の入力データが連続して入力する場合に平均検索時間を短縮することができる。   As described above, according to the second embodiment, after the matching determination or the mismatching determination is performed on the input data, the data search process can be promptly terminated and the search process for the next input data can be performed. Thereby, when a plurality of input data are continuously input, the average search time can be shortened.

なお、図3に示す実施例2では、判定部30が一致検出部10または不一致検出部20に比較中止信号を出力する構成であるが、図4に示すように、一致検出部10と不一致検出部20との間で相互に比較中止信号を出力する構成でもよい。すなわち、不一致検出部20は、不一致検出信号4を出力するとともに、一致検出部10に対して比較中止信号8を出力する。一致検出部10は、一致検出信号2または比較終了信号3を出力するとともに、不一致検出部20に対して比較中止信号9を出力する。   In the second embodiment illustrated in FIG. 3, the determination unit 30 outputs a comparison stop signal to the coincidence detection unit 10 or the disagreement detection unit 20. However, as illustrated in FIG. A configuration may also be employed in which a comparison stop signal is mutually output with the unit 20. That is, the mismatch detection unit 20 outputs the mismatch detection signal 4 and also outputs the comparison stop signal 8 to the match detection unit 10. The coincidence detection unit 10 outputs the coincidence detection signal 2 or the comparison end signal 3 and also outputs a comparison stop signal 9 to the inconsistency detection unit 20.

実施例3のデータ検索装置は、入力データと一致する一致登録データを検索し、当該入力データが一致登録データとして未登録のときに、当該入力データを不一致登録データとして不一致検出部20に登録する不一致データの学習機能を特徴とする。   The data search apparatus according to the third embodiment searches for coincidence registration data that matches input data, and registers the input data as inconsistency registration data in the inconsistency detection unit 20 when the input data is not registered as coincidence registration data. It features a learning function for inconsistent data.

図5は、本発明のデータ検索装置の実施例3の構成例を示す。
図において、実施例3のデータ検索装置は、基本的機能が実施例1と同様の一致検出部10、不一致検出部20および判定部30から構成される。ここでは、不一致判定される入力データが不一致検出部20の不一致登録データとして登録されていない場合を想定する。すなわち、この入力データに対して、不一致検出部20から不一致検出信号4が出力されず、一致検出部10が比較終了信号3を出力し、判定部30が不一致判定の判定信号5を出力する場合である。
FIG. 5 shows a configuration example of Embodiment 3 of the data search apparatus of the present invention.
In the figure, the data search apparatus according to the third embodiment includes a coincidence detection unit 10, a mismatch detection unit 20, and a determination unit 30 whose basic functions are the same as those of the first embodiment. Here, it is assumed that the input data to be determined to be inconsistent is not registered as the mismatch registration data of the mismatch detection unit 20. That is, when the mismatch detection signal 4 is not output from the mismatch detection unit 20 for this input data, the match detection unit 10 outputs the comparison end signal 3, and the determination unit 30 outputs the determination signal 5 of the mismatch determination It is.

一致検出部10は、比較終了信号3を出力するとともに、更新信号201を不一致検出部20に出力する。不一致検出部20は、この更新信号201に応じて入力データ1を不一致登録データとして登録し、次の入力データ1に対して登録済みの不一致登録データおよび前回新たに登録した不一致登録データを用いて検索する。このように、実際に不一致判定したデータを不一致登録データとして用いるため、登録する不一致登録データの数が少ない場合でも短時間で不一致判定が可能になり、平均検索時間を短縮することができる。また、不一致登録データの数を減らすことができるので、メモリ容量の削減、動作速度の向上、消費電力の削減の各効果を得ることができる。   The coincidence detection unit 10 outputs the comparison end signal 3 and also outputs the update signal 201 to the inconsistency detection unit 20. The mismatch detection unit 20 registers the input data 1 as mismatch registration data in response to the update signal 201, and uses the registered mismatch registration data registered for the next input data 1 and the previously registered mismatch registration data. Search for. As described above, since the data actually determined to be mismatched is used as the mismatch registration data, the mismatch determination can be performed in a short time even when the number of mismatch registration data to be registered is small, and the average search time can be shortened. In addition, since the number of inconsistent registration data can be reduced, it is possible to obtain the effects of reducing memory capacity, improving operation speed, and reducing power consumption.

なお、入力データが不一致検出部20の不一致登録データとして既に登録されている場合には、不一致検出部20が不一致検出信号4を出力するとともに、一致検出部10が比較終了信号3および更新信号201を出力することになる。この場合、不一致検出部20は更新信号201を無視する。あるいは、実施例2に示すように、比較中止信号を用いて更新信号201の出力を停止するか、更新信号201に対応する動作を停止するようにしてもよい。   When the input data is already registered as the mismatch registration data of the mismatch detection unit 20, the mismatch detection unit 20 outputs the mismatch detection signal 4, and the match detection unit 10 outputs the comparison end signal 3 and the update signal 201. Will be output. In this case, the mismatch detection unit 20 ignores the update signal 201. Alternatively, as shown in the second embodiment, the output of the update signal 201 may be stopped using the comparison stop signal, or the operation corresponding to the update signal 201 may be stopped.

実施例1の不一致検出部20は、不一致登録データ格納部から不一致登録データを読み出して入力データと比較し、一致する場合に不一致登録信号4を出力した。実施例4の不一致検出部は、不一致登録データ格納部から入力データと一致する不一致登録データが登録されているか否かを示す有無信号を読み出し、有無信号が「有」を示す場合に不一致検出信号4を出力することを特徴とする。   The mismatch detection unit 20 according to the first embodiment reads the mismatch registration data from the mismatch registration data storage unit, compares it with the input data, and outputs the mismatch registration signal 4 when they match. The mismatch detection unit of the fourth embodiment reads the presence / absence signal indicating whether or not the mismatch registration data matching the input data is registered from the mismatch registration data storage unit, and the mismatch detection signal when the presence / absence signal indicates “present” 4 is output.

図6は、実施例4における不一致検出部21の構成例を示す。
図において、不一致検出部21は、レジスタ40、一致比較回路52および不一致登録データ格納部62から構成される。不一致検出部21に入力する入力データ1は、レジスタ40で一時的に保持され、一致比較回路52に比較データ111として出力される。一致比較回路52は比較データ111を入力すると、不一致登録データ格納部62を構成するメモリのアドレスに変換した比較データ115を出力する。不一致登録データ格納部62は、メモリのアドレスと不一致登録データを対応させて登録/未登録の有無情報を保持しており、比較データ115で示されるアドレスから不一致登録データの有無に応じた有無信号116を読み出し、一致比較回路52に出力する。一致比較回路52は、有無信号116が「有」を示していれば不一致検出信号4を出力する。
FIG. 6 shows a configuration example of the mismatch detection unit 21 in the fourth embodiment.
In the figure, the mismatch detection unit 21 includes a register 40, a match comparison circuit 52, and a mismatch registration data storage unit 62. The input data 1 input to the mismatch detection unit 21 is temporarily held in the register 40 and output as the comparison data 111 to the match comparison circuit 52. When the comparison data 111 is input, the match comparison circuit 52 outputs the comparison data 115 converted into the address of the memory constituting the mismatch registration data storage unit 62. The mismatched registration data storage unit 62 holds information on the presence / absence of registration / unregistration by associating the memory address with the mismatched registration data, and a presence / absence signal corresponding to the presence / absence of mismatched registration data from the address indicated by the comparison data 115 116 is read and output to the coincidence comparison circuit 52. The coincidence comparison circuit 52 outputs the mismatch detection signal 4 if the presence / absence signal 116 indicates “present”.

図7は、不一致登録データ格納部62の構成例を示す。
図において、不一致登録データ格納部62はメモリ80で構成される。メモリ80は、不一致登録データの値と等しいアドレスに「有」を示す情報を格納し、それ以外のアドレスに「無」を示す情報を格納している。不一致登録データ格納部62に入力する比較データ115は、メモリ80の読み出しアドレスとなり、比較データ115の値に対応する不一致登録データの有無を示す有無信号116を出力する。
FIG. 7 shows a configuration example of the mismatch registration data storage unit 62.
In the figure, the mismatch registration data storage unit 62 is constituted by a memory 80. The memory 80 stores information indicating “present” at an address equal to the value of the mismatched registration data, and stores information indicating “absent” at other addresses. The comparison data 115 input to the mismatch registration data storage unit 62 serves as a read address of the memory 80, and outputs a presence / absence signal 116 indicating the presence / absence of mismatch registration data corresponding to the value of the comparison data 115.

図8は、メモリ80に格納する不一致登録データの作成方法を示す。ここでは、一致登録データから不一致登録データを作成する例を示す。一致登録データとして、20,35, 198,248 の4種類の数値が与えられているときに、メモリ80の一致登録データの値と等しいアドレスに「無」を示す情報を格納し、それ以外のアドレスに「有」を示す情報を格納する。不一致登録データの更新は、一致登録データを更新する際に行う。すなわち、一致登録データを追加するときに、追加する一致登録データの値と等しいアドレスに「無」を示す情報を書き込む。一方、一致登録データを削除するときに、削除する一致登録データの値と等しいアドレスに「有」を示す情報を書き込む。   FIG. 8 shows a method for creating the mismatched registration data stored in the memory 80. Here, an example in which mismatched registration data is created from matched registration data is shown. When four types of numerical values 20, 35, 198, and 248 are given as coincidence registration data, information indicating “none” is stored at an address equal to the value of the coincidence registration data in the memory 80, and other information Information indicating “present” is stored in the address. The mismatch registration data is updated when the match registration data is updated. That is, when adding the matching registration data, information indicating “none” is written at an address equal to the value of the matching registration data to be added. On the other hand, when deleting the coincidence registration data, information indicating “present” is written at an address equal to the value of the coincidence registration data to be deleted.

なお、一致登録データの値をハッシュ値に変換し、ハッシュ値に対応するアドレスに「無」を示す情報を格納してもよい。この場合の一致比較回路52は、比較データ111をハッシュ値に変換した比較データ115を出力する。   Note that the value of the coincidence registration data may be converted into a hash value, and information indicating “none” may be stored in the address corresponding to the hash value. In this case, the coincidence comparison circuit 52 outputs comparison data 115 obtained by converting the comparison data 111 into a hash value.

このような図6〜図8に示す不一致登録データ格納部62の構成により、入力データ1が不一致判定される場合には有無信号116は「有」を示し、一致比較回路52は不一致検出信号4を出力する。逆に、入力データ1が一致判定される場合には有無信号116は「無」を示し、一致比較回路52は不一致検出信号4を出力せず、入力データ1に対する検索処理を終了する。   With the configuration of the mismatch registration data storage unit 62 shown in FIGS. 6 to 8, when the input data 1 is determined to be mismatched, the presence / absence signal 116 indicates “present”, and the match comparison circuit 52 indicates the mismatch detection signal 4. Is output. Conversely, if the input data 1 is determined to match, the presence / absence signal 116 indicates “none”, and the match comparison circuit 52 does not output the mismatch detection signal 4 and ends the search process for the input data 1.

なお、当該メモリ80は、いわゆるCAM(連想メモリ)ではなく、一般のRAMで構成することができるので、回路規模および消費電力の削減によるコスト低減効果を見込むことができる。   Note that since the memory 80 can be configured by a general RAM instead of a so-called CAM (associative memory), it is possible to expect a cost reduction effect by reducing the circuit scale and power consumption.

また、比較データ115を読み出しアドレスとして有無信号116を出力する不一致登録データ格納部62は、例えばC言語等のプログラム言語で記述したソフトウェアに実施例4を適用する場合には、配列とポインタを使う方式であってもよい。   Further, the mismatch registration data storage unit 62 that outputs the presence / absence signal 116 using the comparison data 115 as a read address uses an array and a pointer when the fourth embodiment is applied to software described in a program language such as C language. It may be a method.

また、実施例4の不一致検出部21は、1回のメモリ読み出し時間で、不一致登録データに一致する入力データを検出することができるので、平均検索時間を大幅に短縮することができる。以下、具体例を用いて説明する。   Further, since the mismatch detection unit 21 of the fourth embodiment can detect input data that matches the mismatch registration data in one memory read time, the average search time can be greatly shortened. Hereinafter, a specific example will be described.

メモリからデータを読み出すのに1サイクルの時間を要し、一致登録データ数をMとし、総数Nの入力データを検索する場合を想定する。また、N個の入力データには、cサイクルの時間で一致となる入力データがp個あるとすると、既存の検索方法による合計検索時間Vサイクルは、不一致を判定するまでMサイクルかかるため、
V=(p*c+M*(N−p))/N
となる。
It is assumed that one cycle time is required to read data from the memory, the number of coincidence registration data is M, and a total number N of input data is searched. Further, if there are p pieces of input data that match in the time of c cycles in the N pieces of input data, the total search time V cycle according to the existing search method takes M cycles until a mismatch is determined.
V = (p * c + M * (N−p)) / N
It becomes.

一方、一致検出部10を線形探索方法で実現し、不一致検出部21を実施例4の方法で実現する場合、不一致を1サイクルで判定できる入力データがz個存在すると、合計検索時間Wサイクルは、
W=(p*c+z+M*(N−p−z))/N
となる。ここで、z≧0かつN≧1の場合、
V−W=z*(M−1)/N≧0
が常に成立するため、実施例4の構成により検索時間を短縮できることがわかる。
On the other hand, when the coincidence detecting unit 10 is realized by the linear search method and the inconsistency detecting unit 21 is realized by the method of the fourth embodiment, if there are z input data that can determine the inconsistency in one cycle, the total search time W cycle is ,
W = (p * c + z + M * (N−p−z)) / N
It becomes. Here, when z ≧ 0 and N ≧ 1,
V−W = z * (M−1) / N ≧ 0
Therefore, it can be seen that the search time can be shortened by the configuration of the fourth embodiment.

また、実施例4の不一致検出部21のメモリ80を用いた構成は、一致検出部20にも同様に適用することができる。この場合、一致検出部20の一致登録データ格納部を構成するメモリと、不一致検出部21の不一致登録データ格納部62を構成するメモリ80のデータは、各アドレスの情報が「有」と「無」で逆になる。   The configuration using the memory 80 of the mismatch detection unit 21 according to the fourth embodiment can be similarly applied to the match detection unit 20. In this case, the memory of the match registration data storage unit of the match detection unit 20 and the data of the memory 80 of the mismatch detection data storage unit 62 of the mismatch detection unit 21 have the information of each address “present” and “no”. "The reverse.

また、図6に示す一致比較回路52において、有無信号116が「有」を示すときは不一致検出信号4を出力し、有無信号116が「無」を示すときは一致検出信号2を出力する構成とすれば、一致検出部10と不一致検出部21の共用が可能となる。すなわち、図9に示すように、不一致検出部21と一致検出部10の機能を1つのメモリを含む構成で実現した一致/不一致検出部15と判定部30でデータ検索装置を構成することができる。   Further, the coincidence comparison circuit 52 shown in FIG. 6 outputs the mismatch detection signal 4 when the presence / absence signal 116 indicates “present”, and outputs the match detection signal 2 when the presence / absence signal 116 indicates “absence”. Then, the coincidence detection unit 10 and the mismatch detection unit 21 can be shared. That is, as shown in FIG. 9, the data search apparatus can be configured by the match / mismatch detection unit 15 and the determination unit 30 in which the functions of the mismatch detection unit 21 and the match detection unit 10 are realized by a configuration including one memory. .

実施例5の不一致検出部は、入力データと一致登録データをそれぞれ複数に分割し、分割した入力データのいずれかで不一致となれば不一致検出信号4を出力することを特徴とする。   The mismatch detection unit according to the fifth embodiment divides input data and match registration data into a plurality of pieces, and outputs a mismatch detection signal 4 if any of the divided input data does not match.

図10は、実施例5における不一致検出部22の構成例を示す。
図において、不一致検出部22は、データ分割回路41、複数t個の分割不一致検出部23−1〜23−t、集計部90から構成される。不一致検出部22に入力するnビットの入力データ1は、データ分割回路41において、図11に示すようにmビットの分割データ1−1〜1−tにt分割され(n=m×t)、分割不一致検出部23−1〜23−tにそれぞれ入力する。分割不一致検出部23−1〜23−tは、図12に示すようにnビットの一致登録データ113をt分割したmビットの分割一致登録データ113−1〜113−tをそれぞれ有し、それぞれ分割データ1−1〜1−tと不一致の場合に分割不一致検出信号4−1〜4−tを出力する。各分割不一致検出信号4−1〜4−tは集計部90で集計され、分割不一致検出信号4−1〜4−tの少なくとも1つを入力した場合に不一致検出信号4を出力する。
FIG. 10 shows a configuration example of the mismatch detection unit 22 in the fifth embodiment.
In the figure, the mismatch detection unit 22 includes a data division circuit 41, a plurality of t division mismatch detection units 23-1 to 23-t, and a totaling unit 90. The n-bit input data 1 input to the mismatch detection unit 22 is t-divided into m-bit divided data 1-1 to 1-t (n = m × t) as shown in FIG. Are input to the division mismatch detection units 23-1 to 23-t, respectively. The division mismatch detection units 23-1 to 23-t have m-bit division match registration data 113-1 to 113-t obtained by dividing the n-bit match registration data 113 by t as shown in FIG. When there is a mismatch with the divided data 1-1 to 1-t, the division mismatch detection signals 4-1 to 4-t are output. The division mismatch detection signals 4-1 to 4-t are counted by the counting unit 90, and the mismatch detection signal 4 is output when at least one of the division mismatch detection signals 4-1 to 4-t is input.

なお、入力データおよび一致登録データは均等分割でなくてもよく、分割した入力データと一致登録データが互いに対応するビット数であればよい。   Note that the input data and the coincidence registration data may not be equally divided, and the divided input data and the coincidence registration data may have any number of bits corresponding to each other.

図11および図12に示す例では、分割データ1−2が「0」、分割一致登録データ113−2が「120」であるので、分割不一致検出部23−2から分割不一致検出信号4−2が出力され、入力データ1は一致登録データ113と一致していないとして集計部90から不一致検出信号4が出力される。   In the example shown in FIGS. 11 and 12, since the divided data 1-2 is “0” and the divided match registration data 113-2 is “120”, the divided mismatch detection unit 23-2 sends the divided mismatch detection signal 4-2. Is output, and the counting unit 90 outputs the mismatch detection signal 4 on the assumption that the input data 1 does not match the matching registration data 113.

図13は、分割不一致検出部23の構成例を示す。
図において、分割不一致検出部23−1〜23−tは、実施例4と同様にメモリで構成された一致登録データ格納部81−1〜81−tを備える。一致登録データ113をt分割し、それぞれの値と等しいアドレスに「有」、その他のアドレスに「無」を示す情報が書き込まれる。分割データ1−1〜1−tをアドレスとして入力し、対応する情報が「無」であれば分割不一致検出信号4−1〜4−tを出力する。
FIG. 13 shows a configuration example of the division mismatch detection unit 23.
In the figure, the division mismatch detection units 23-1 to 23-t include match registration data storage units 81-1 to 81-t configured by a memory as in the fourth embodiment. The coincidence registration data 113 is divided into t, and information indicating “present” is written in an address equal to each value, and “absent” is written in other addresses. The divided data 1-1 to 1-t are input as addresses, and if the corresponding information is “none”, the division mismatch detection signals 4-1 to 4-t are output.

実施例5の不一致検出部22は、実施例4の不一致検出部21に比べて保持する不一致登録データ数を削減することができ、メモリ容量の削減、動作速度の向上、消費電力の削減によるコスト低減効果を見込むことができる。   The mismatch detection unit 22 according to the fifth embodiment can reduce the number of mismatch registration data to be held as compared with the mismatch detection unit 21 according to the fourth embodiment, and can reduce costs due to a reduction in memory capacity, an improvement in operation speed, and a reduction in power consumption. Reduction effect can be expected.

実施例1のデータ検索装置は、一致検出部10と不一致検出部20が並列に入力データに対する検索処理を実施していた。実施例6のデータ検索装置は、初めに不一致検出部が入力データに対する検索処理を行い、入力データと不一致登録データが一致しないときに一致検出部で検索処理を行うことを特徴とする。   In the data search apparatus according to the first embodiment, the match detection unit 10 and the mismatch detection unit 20 perform search processing on input data in parallel. The data search apparatus according to the sixth embodiment is characterized in that the mismatch detection unit first performs a search process on the input data, and the match detection unit performs the search process when the input data does not match the mismatch registration data.

図14は、本発明のデータ検索装置の実施例6の構成例を示す。
図において、実施例6のデータ検索装置は、一致検出部11、不一致検出部22および判定部30から構成される。不一致検出部22は、入力データ1に一致する不一致登録データが未登録であり、不一致検出信号4を判定部30に出力しないときに、検索指示信号202を一致検出部11に出力する。一致検出部11は、この検索指示信号202を入力したときに検索を開始し、一致検出信号2または比較終了信号3を判定部30に出力する。
FIG. 14 shows a configuration example of Embodiment 6 of the data search apparatus of the present invention.
In the figure, the data search device according to the sixth embodiment includes a match detection unit 11, a mismatch detection unit 22, and a determination unit 30. The mismatch detection unit 22 outputs the search instruction signal 202 to the match detection unit 11 when the mismatch registration data that matches the input data 1 is unregistered and does not output the mismatch detection signal 4 to the determination unit 30. The match detection unit 11 starts searching when the search instruction signal 202 is input, and outputs the match detection signal 2 or the comparison end signal 3 to the determination unit 30.

図15は、実施例6における一致検出部11の構成例を示す。
図において、一致検出部11は、レジスタ40、一致比較回路53および一致登録データ格納部60から構成される。一致検出部11に入力する入力データ1は、レジスタ40で一時的に保持され、一致比較回路53に比較データ111として出力される。一致比較回路53は、検索指示信号202および比較データ111を入力したときに、一致登録データ格納部60に要求信号112を出力し、一致登録データ格納部60から1つずつ読み出した一致登録データ113と比較データ111とを比較する。このとき、一致登録データ113と比較データ111が一致すれば、一致比較回路53は一致検出信号2を出力する。一方、一致登録データ格納部60から読み出す一致登録データがなくなった場合には、一致比較回路53は比較終了信号3を出力する。
FIG. 15 illustrates a configuration example of the coincidence detection unit 11 according to the sixth embodiment.
In the figure, the match detection unit 11 includes a register 40, a match comparison circuit 53, and a match registration data storage unit 60. The input data 1 input to the match detection unit 11 is temporarily held in the register 40 and is output as the comparison data 111 to the match comparison circuit 53. The match comparison circuit 53 outputs a request signal 112 to the match registration data storage unit 60 when the search instruction signal 202 and the comparison data 111 are input, and the match registration data 113 read one by one from the match registration data storage unit 60. And the comparison data 111 are compared. At this time, if the coincidence registration data 113 and the comparison data 111 coincide, the coincidence comparison circuit 53 outputs the coincidence detection signal 2. On the other hand, when there is no match registration data to be read from the match registration data storage unit 60, the match comparison circuit 53 outputs a comparison end signal 3.

このように、実施例6のデータ検索装置は、不一致検出部22で不一致を検出しない場合のみ一致検出部11が処理を実行する。判定部30は、不一致検出部22から不一致検出信号4を入力すれば不一致判定の判定信号5を出力し、不一致検出信号4を入力しない場合には、一致検出部11から出力される一致検出信号2または比較終了信号3によって一致判定または不一致判定の判定信号5を出力する。これにより、一致検出部11と不一致検出部22の並列動作に比べて消費電力の削減が可能となる。   As described above, in the data search device according to the sixth embodiment, the coincidence detection unit 11 executes the process only when the mismatch detection unit 22 does not detect a mismatch. When the mismatch detection signal 4 is input from the mismatch detection unit 22, the determination unit 30 outputs the determination signal 5 of the mismatch determination. When the mismatch detection signal 4 is not input, the determination unit 30 outputs the match detection signal output from the match detection unit 11. 2 or a comparison end signal 3 is used to output a determination signal 5 for determination of coincidence or disagreement. Thereby, power consumption can be reduced as compared with the parallel operation of the coincidence detection unit 11 and the mismatch detection unit 22.

なお、不一致検出部22が不一致検出信号4を出力した場合には、実施例2のように判定部30または不一致検出部22が一致検出部11の動作を停止するように制御してもよい。   When the mismatch detection unit 22 outputs the mismatch detection signal 4, the determination unit 30 or the mismatch detection unit 22 may be controlled to stop the operation of the match detection unit 11 as in the second embodiment.

実施例7のデータ検索装置は、実施例6のデータ検索装置の機能に加えて、入力データを一時的に保持し、一致判定または不一致判定の判定信号5とともに、検索対象の入力データを被検索データとして出力することを特徴とする。   In addition to the function of the data search device of the sixth embodiment, the data search device of the seventh embodiment temporarily holds the input data and searches the input data to be searched together with the determination signal 5 for the match determination or the mismatch determination. It is output as data.

図16は、本発明のデータ検索装置の実施例7の構成例を示す。
図において、実施例7のデータ検索装置は、一致検出部12、不一致検出部23および判定部31から構成される。不一致検出部23は、入力データ1と不一致登録データの一致を検出したときに不一致検出信号4を出力し、同時に検索対象の入力データ1を被検索データ204として出力する。また、不一致検出部23は、入力データ1に一致する不一致登録データが未登録であり、不一致検出信号4を判定部31に出力しないときに検索指示信号202を一致検出部12に出力する。
FIG. 16 shows a configuration example of Embodiment 7 of the data search apparatus of the present invention.
In the figure, the data search apparatus according to the seventh embodiment includes a match detection unit 12, a mismatch detection unit 23, and a determination unit 31. The mismatch detection unit 23 outputs a mismatch detection signal 4 when detecting a match between the input data 1 and the mismatch registration data, and simultaneously outputs the input data 1 to be searched as the search target data 204. The mismatch detection unit 23 outputs the search instruction signal 202 to the match detection unit 12 when the mismatch registration data that matches the input data 1 is not registered and the mismatch detection signal 4 is not output to the determination unit 31.

一致検出部12は、検索指示信号202を入力したときの入力データ1について検索を開始し、一致検出信号2または比較終了信号3を判定部31に出力する。また、一致検出部12は、一致検出信号2または比較終了信号3を出力するときに、検索対象の入力データ1を被検索データ203として出力する。   The match detection unit 12 starts searching for the input data 1 when the search instruction signal 202 is input, and outputs the match detection signal 2 or the comparison end signal 3 to the determination unit 31. Further, when outputting the match detection signal 2 or the comparison end signal 3, the match detection unit 12 outputs the search target input data 1 as the search target data 203.

判定部31は、一致検出信号2に応じて一致判定の判定信号5を出力するか、比較終了信号3または不一致検出信号4に応じて不一致判定の判定信号5を出力するとともに、被検索データ203または被検索データ204をそのまま被検索データ205として出力する。   The determination unit 31 outputs a match determination determination signal 5 according to the match detection signal 2, or outputs a mismatch determination determination signal 5 according to the comparison end signal 3 or the mismatch detection signal 4. Alternatively, the search target data 204 is output as the search target data 205 as it is.

図17は、実施例7における一致検出部12の構成例を示す。
図において、一致検出部12は、レジスタ40、バッファ回路70、バッファ制御回路71、一致比較回路54および一致登録データ格納部60から構成される。一致検出部11に入力する入力データ1は、レジスタ40で一時的に保持され、バッファ回路70に比較データ111として出力される。バッファ回路70は、検索指示信号202を入力したときの比較データ111を記憶し、バッファ制御回路71から読み出し信号123を入力したときに記憶したデータを比較データ124としてバッファ制御回路71に出力する。
FIG. 17 illustrates a configuration example of the coincidence detection unit 12 in the seventh embodiment.
In the figure, the match detection unit 12 includes a register 40, a buffer circuit 70, a buffer control circuit 71, a match comparison circuit 54, and a match registration data storage unit 60. The input data 1 input to the coincidence detection unit 11 is temporarily held in the register 40 and output as comparison data 111 to the buffer circuit 70. The buffer circuit 70 stores the comparison data 111 when the search instruction signal 202 is input, and outputs the data stored when the read signal 123 is input from the buffer control circuit 71 to the buffer control circuit 71 as the comparison data 124.

バッファ制御回路71は、一致比較回路54から比較イネーブル信号125を入力したときに、バッファ回路70に読み出し信号123を出力し、バッファ回路70に記憶したデータを比較データ124として読み出す。さらに、バッファ制御回路71は、比較データ124を比較データ126として一致比較回路54に出力し、次の比較イネーブル信号125を入力するまで比較データ126を保持する。   When the comparison enable signal 125 is input from the coincidence comparison circuit 54, the buffer control circuit 71 outputs a read signal 123 to the buffer circuit 70 and reads data stored in the buffer circuit 70 as comparison data 124. Further, the buffer control circuit 71 outputs the comparison data 124 as the comparison data 126 to the coincidence comparison circuit 54 and holds the comparison data 126 until the next comparison enable signal 125 is input.

一致比較回路54は、比較データ126を入力すると一致登録データ格納部60に要求信号112を出力し、一致登録データ格納部60から1つずつ読み出した一致登録データ113と比較データ126とを比較する。このとき、一致登録データ113と比較データ126が一致すれば、一致比較回路54は一致検出信号2を出力する。一方、一致登録データ格納部60から読み出す一致登録データがなくなった場合には、一致比較回路54は比較終了信号3を出力する。また、一致比較回路54は、一致検出信号2または比較終了信号3を出力するときに、検索対象の比較データ126を被検索データ203として出力し、次の比較イネーブル信号125をバッファ制御回路71に出力する。   When the comparison data 126 is input, the match comparison circuit 54 outputs a request signal 112 to the match registration data storage unit 60 and compares the match registration data 113 read one by one from the match registration data storage unit 60 with the comparison data 126. . At this time, if the coincidence registration data 113 and the comparison data 126 coincide, the coincidence comparison circuit 54 outputs the coincidence detection signal 2. On the other hand, when there is no coincidence registration data to be read from the coincidence registration data storage unit 60, the coincidence comparison circuit 54 outputs a comparison end signal 3. When the coincidence comparison circuit 54 outputs the coincidence detection signal 2 or the comparison end signal 3, the coincidence comparison circuit 54 outputs the comparison target data 126 to be searched as the search target data 203 and sends the next comparison enable signal 125 to the buffer control circuit 71. Output.

ここで、図18のタイミングチャートを参照して実施例7のデータ検索装置の動作例について説明する。
入力データ1は、一致検出部12および不一致検出部23に入力され、初めに不一致検出部23で検索が実行される。ここでは、入力データ1をa,b,cとし、入力データa,cが一致判定され、入力データbが不一致判定されるものとする。
Here, an operation example of the data search apparatus according to the seventh embodiment will be described with reference to the timing chart of FIG.
The input data 1 is input to the coincidence detection unit 12 and the disagreement detection unit 23, and the disagreement detection unit 23 first performs a search. Here, it is assumed that the input data 1 is a, b, c, the input data a, c are determined to match, and the input data b is determined to be mismatched.

不一致検出部23は、入力データaをレジスタに一時的に保持し、レジスタから出力された入力データaと不一致登録データの一致を検出したときに不一致検出信号4を出力するとともに、入力データaを被検索データ204として出力する。判定部31は、入力データaに対して、不一致判定の判定信号5および被検索データ205を出力する。次に、不一致検出部23は入力データbについて同様に検索し、不一致登録データとの一致を検出しない場合は、検索指示信号202を一致検出部12に出力する。次に、不一致検出部23は入力データcについて同様に検索を開始する。このように、不一致検出部23は、不一致を検出した場合でも、不一致を検出しない場合でも、入力データ1に対する処理が終了すると、ただちに次の入力データの検索処理を開始する。   The mismatch detection unit 23 temporarily holds the input data a in a register, and outputs a mismatch detection signal 4 when the match between the input data a output from the register and the mismatch registration data is detected, and the input data a Output as searched data 204. The determination unit 31 outputs a determination signal 5 for mismatch determination and data to be searched 205 for the input data a. Next, the mismatch detection unit 23 searches similarly for the input data b, and outputs a search instruction signal 202 to the match detection unit 12 when no match with the mismatch registration data is detected. Next, the mismatch detection unit 23 similarly starts searching for the input data c. In this way, the mismatch detection unit 23 starts the search process for the next input data immediately after the process for the input data 1 is completed, regardless of whether a mismatch is detected or a mismatch is not detected.

一方、一致検出部12のレジスタ40は、入力データa,b,cを入力して比較データ111としてバッファ回路70に出力しているが、バッファ回路70は検索指示信号202を入力したときの入力データbを記憶する。このとき、バッファ制御回路71は比較イネーブル信号125を入力し、バッファ回路70は読み出し信号123を入力しているので、バッファ回路70は入力データbを読み出し、比較データ124としてバッファ制御回路71に出力し、さらにバッファ制御回路71は一致比較回路54に比較データ126として出力する。バッファ制御回路71は比較データ126として入力データbを出力すると、バッファ回路70に対する読み出し信号123はオフとなり、入力データbが保持される。   On the other hand, the register 40 of the coincidence detection unit 12 inputs the input data a, b, and c and outputs the input data as comparison data 111 to the buffer circuit 70. The buffer circuit 70 is input when the search instruction signal 202 is input. Data b is stored. At this time, since the buffer control circuit 71 receives the comparison enable signal 125 and the buffer circuit 70 receives the read signal 123, the buffer circuit 70 reads the input data b and outputs it as the comparison data 124 to the buffer control circuit 71. Further, the buffer control circuit 71 outputs the comparison data 126 to the coincidence comparison circuit 54. When the buffer control circuit 71 outputs the input data b as the comparison data 126, the read signal 123 for the buffer circuit 70 is turned off and the input data b is held.

一致比較回路54は、要求信号112を一致登録データ格納部60に出力して読み出される一致登録データ113と入力データbが一致するか否か検索を開始すると、比較イネーブル信号125をオフとする。ここで、一致比較回路54が一致登録データ113と入力データbの一致を検出すると、一致検出信号2とともに被検索データ203として入力データbを出力する。なお、比較終了信号3を出力する場合も同様に被検索データ203として入力データbを出力する。また、一致比較回路54は検索処理が終了すると、比較イネーブル信号125をオンとし、バッファ制御回路71を介してバッファ回路70に記憶されている比較データ124の読み出しを行う。この比較データ124は、不一致検出部23で不一致を検出しなかった入力データであり、同様に一致登録データとの検索処理に入る。   The match comparison circuit 54 outputs a request signal 112 to the match registration data storage 60 and starts a search to determine whether or not the match registration data 113 read out matches the input data b. When the match comparison circuit 54 detects a match between the match registration data 113 and the input data b, the input data b is output as the search target data 203 together with the match detection signal 2. Similarly, when the comparison end signal 3 is output, the input data b is output as the search target data 203. When the search processing is completed, the match comparison circuit 54 turns on the comparison enable signal 125 and reads the comparison data 124 stored in the buffer circuit 70 via the buffer control circuit 71. This comparison data 124 is input data for which no mismatch was detected by the mismatch detection unit 23, and similarly enters a search process for matching registration data.

判定部31は、一致検出部12と不一致検出部23から出力される信号により一致判定または不一致判定の判定信号5を出力するとともに、被検索データ203または被検索データ204を被検索データ205として出力する。   The determination unit 31 outputs a determination signal 5 for a match determination or a mismatch determination based on signals output from the match detection unit 12 and the mismatch detection unit 23, and outputs the search target data 203 or the search target data 204 as the search target data 205. To do.

図18に示すタイミングチャートでは、入力データa,cに対する不一致判定の判定信号5が先に出力され、遅れて入力データbに対する一致判定の判定信号5が出力される。すなわち、入力データの入力順番と、判定結果が出力される順番が異なることになるが、被検索データ205とともに出力されるので後段処理部で一致、不一致の判定結果に基づく処理には特に支障ない。あるいは、判定部31にバッファ回路を備え、入力データの入力順番で判定結果を出力するようにしてもよい。   In the timing chart shown in FIG. 18, the determination signal 5 for the mismatch determination for the input data a and c is output first, and the determination signal 5 for the determination of the match for the input data b is output later. That is, the input order of input data is different from the order in which the determination results are output, but since it is output together with the search target data 205, there is no particular problem in the processing based on the determination result of the match or mismatch in the subsequent processing unit. . Alternatively, the determination unit 31 may be provided with a buffer circuit, and the determination result may be output in the input order of the input data.

また、一致検出部12と不一致検出部23は、上記のように検索動作は互いに独立であるので、判定部31に対して同時に、異なる入力データに対する検索結果を出力することがある。この場合には、例えば判定部31で不一致検出部23からの出力を一時的に記憶し、一致検出部12からの信号を優先的に選択して判定処理を行い、その後に不一致検出部23からの信号に対する判定処理を行ってもよい。なお、一致検出部12と不一致検出部23の出力に対する処理順番は逆でもよい。   Further, since the search operation of the match detection unit 12 and the mismatch detection unit 23 is independent from each other as described above, search results for different input data may be output to the determination unit 31 at the same time. In this case, for example, the determination unit 31 temporarily stores the output from the mismatch detection unit 23, preferentially selects the signal from the match detection unit 12, performs the determination process, and then the mismatch detection unit 23 A determination process may be performed on the signal. Note that the processing order of the outputs of the coincidence detection unit 12 and the mismatch detection unit 23 may be reversed.

実施例6では、不一致検出部22で不一致を検出できない場合に、一致検出部12の処理が終了するまで不一致検出部22は次の入力データを処理することができなかった。実施例7では、一致検出部12が入力データbに対する検索処理を行っている場合でも、不一致検出部23は次の入力データcに対する検索処理が可能である。そのため、実施例7の構成では、入力データの大部分が不一致判定される場合に、他の実施例に比べてさらに平均検索時間を短縮し、消費電力の削減が可能である。   In the sixth embodiment, when the mismatch detection unit 22 cannot detect a mismatch, the mismatch detection unit 22 cannot process the next input data until the process of the match detection unit 12 is completed. In the seventh embodiment, even when the match detection unit 12 performs a search process for the input data b, the mismatch detection unit 23 can perform a search process for the next input data c. Therefore, in the configuration of the seventh embodiment, when most of the input data is determined to be inconsistent, the average search time can be further shortened and the power consumption can be reduced as compared with the other embodiments.

以上説明した実施例1〜実施例7の構成および機能はハードウェアで実現するだけでなく、プログラム言語で記述したソフトウェアとコンピュータで実現することもできる。また、当該プログラムを記録媒体に記録することも、ネットワークを通して提供することも可能である。   The configurations and functions of the first to seventh embodiments described above can be realized not only by hardware but also by software described in a program language and a computer. Further, the program can be recorded on a recording medium or provided through a network.

本発明は、入力データの多くが不一致判定されるような場合に、平均検索時間を短縮するデータ検索装置および方法として有用である。   INDUSTRIAL APPLICABILITY The present invention is useful as a data search apparatus and method for shortening the average search time when a lot of input data is judged to be inconsistent.

10,11,12 一致検出部
15 一致/不一致検出部
20,21,22,23 不一致検出部
23 分割不一致検出部
30,31 判定部
40 レジスタ
41 データ分割回路
51,52,53,54 一致比較回路
61,62 不一致登録データ格納部
70 バッファ回路
71 バッファ制御回路
80,81 メモリ
90 集計部
10, 11, 12 Match detection unit 15 Match / mismatch detection unit 20, 21, 22, 23 Mismatch detection unit 23 Division mismatch detection unit 30, 31 determination unit 40 Register 41 Data division circuit 51, 52, 53, 54 Match comparison circuit 61, 62 Mismatch registration data storage unit 70 Buffer circuit 71 Buffer control circuit 80, 81 Memory 90 Totaling unit

特開平10−126442号公報JP-A-10-126442

David E.Taylor,"Survey and Taxonomy of Packet Classification Techniques", ACM Computing Surveys,Vol.37, No.3,September 2005,pp.238-275David E. Taylor, "Survey and Taxonomy of Packet Classification Techniques", ACM Computing Surveys, Vol. 37, No. 3, September 2005, pp. 238-275 弓場、星、「木構造を用いた見出し探索の技法」、情報処理、Vol.21, No.1, January 1980, pp.28-49Yumiba, Hoshi, "Heading Search Technique Using Tree Structure", Information Processing, Vol.21, No.1, January 1980, pp.28-49

Claims (11)

入力データが予め登録した一致登録データに一致するか否かを判定するデータ検索装置において、
前記入力データと前記一致登録データとを比較し、前記入力データと一致する前記一致登録データを検出した場合に一致検出信号を出力する一致検出手段と、
前記入力データの一部と予め登録した不一致登録データの一部とを比較し、あるいは前記入力データの全部と前記不一致登録データの全部とを比較し、前記入力データと一致または一致とみなす前記不一致登録データを検出した場合に不一致検出信号を出力する不一致検出手段と、
前記一致検出信号および前記不一致検出信号をそれぞれ入力し、先に入力した信号が前記一致検出信号であれば一致判定の判定信号を出力し、前記不一致検出信号であれば不一致判定の判定信号を出力する判定手段と
を備えたことを特徴とするデータ検索装置。
In the data search device for determining whether or not the input data matches the registered registration data registered in advance,
A match detection means for comparing the input data with the match registration data and outputting a match detection signal when the match registration data matching the input data is detected;
Compare the part of the input data with a part of the pre-registered non-matching registration data, or compare the whole of the input data with the whole of the non-matching registration data, and match the input data with the non-matching Mismatch detection means for outputting a mismatch detection signal when registration data is detected;
The coincidence detection signal and the mismatch detection signal are respectively input, and if the previously input signal is the coincidence detection signal, a coincidence determination determination signal is output. If the previously input signal is the disagreement detection signal, a mismatch determination determination signal is output. A data search apparatus comprising: a determination unit that performs the determination.
請求項1に記載のデータ検索装置において、
前記一致検出手段は、前記不一致検出手段が前記不一致検出信号を出力したときに、前記判定手段または前記不一致検出手段からの通知により検索処理を中止して次の入力データの検索処理を行う構成であり、
前記不一致検出手段は、前記一致検出手段が前記一致検出信号を出力したときに、前記判定手段または前記一致検出手段からの通知により検索処理を中止して次の入力データの検索処理を行う構成である
ことを特徴とするデータ検索装置。
The data search device according to claim 1,
The coincidence detection unit is configured to perform a search process for the next input data by stopping the search process by a notification from the determination unit or the mismatch detection unit when the mismatch detection unit outputs the mismatch detection signal. Yes,
The mismatch detection means is configured to stop the search process by a notification from the determination means or the match detection means and perform a search process for the next input data when the match detection means outputs the match detection signal. A data retrieval device characterized by being.
請求項1に記載のデータ検索装置において、
前記不一致検出手段は、前記入力データに対して前記一致検出手段が前記一致検出信号を出力しないときに、当該入力データを不一致登録データとして追加登録する構成である
ことを特徴とするデータ検索装置。
The data search device according to claim 1,
The data search device, wherein the mismatch detection means is configured to additionally register the input data as mismatch registration data when the match detection means does not output the match detection signal for the input data.
請求項1に記載のデータ検索装置において、
前記不一致検出手段または前記一致検出手段は、
前記不一致登録データまたは前記一致登録データの値に対応した数値のアドレスに当該データの有無情報を記憶したメモリ手段と、
前記入力データの値を前記メモリ手段の読み出しアドレスに変換して前記有無情報の読み出しを行い、有情報に対して前記不一致検出信号または前記一致検出信号を出力する一致比較手段と
を備えたことを特徴とするデータ検索装置。
The data search device according to claim 1,
The mismatch detection means or the match detection means includes:
Memory means for storing presence / absence information of the data at a numerical address corresponding to the mismatch registration data or the value of the match registration data;
A match comparison unit that converts the value of the input data into a read address of the memory unit, reads the presence / absence information, and outputs the mismatch detection signal or the match detection signal with respect to presence information. A data search device that is characterized.
請求項1に記載のデータ検索装置において、
前記不一致検出手段は、前記入力データと前記一致登録データをそれぞれ複数の分割データと複数の分割一致登録データに分割し、対応する分割データと分割一致登録データとをそれぞれ比較し、その少なくとも1組が不一致であれば前記不一致検出信号を出力する構成である
ことを特徴とするデータ検索装置。
The data search device according to claim 1,
The mismatch detection means divides the input data and the match registration data into a plurality of divided data and a plurality of divided match registration data, respectively, compares the corresponding divided data with the divided match registration data, and at least one set thereof. The data search device is characterized in that if there is a mismatch, the mismatch detection signal is output.
請求項1に記載のデータ検索装置において、
前記不一致検出手段は、前記入力データに対して前記不一致検出信号を出力しないときに検索指示信号を前記一致検出手段に出力する構成であり、
前記一致検出手段は、前記検索指示信号を入力したときに前記入力データに対する検索処理を行う構成である
ことを特徴とするデータ検索装置。
The data search device according to claim 1,
The mismatch detection means is configured to output a search instruction signal to the match detection means when not outputting the mismatch detection signal for the input data,
The coincidence detection means is configured to perform a search process on the input data when the search instruction signal is input.
請求項6に記載のデータ検索装置において、
前記一致検出手段は、前記入力データを保持し、前記一致検出信号を出力するときに検索対象となった前記入力データも出力する構成であり、
前記不一致検出手段は、前記入力データを保持し、前記不一致検出信号を出力するときに検索対象となった前記入力データも出力し、前記不一致検出信号または前記検索指示信号を出力した後に次の入力データに対する検索処理に移行する構成であり、
前記判定手段は、前記一致検出信号または前記不一致検出信号とともに入力する前記入力データを、前記判定信号とともに出力する構成である
ことを特徴とするデータ検索装置。
The data search device according to claim 6, wherein
The coincidence detecting means is configured to hold the input data and also output the input data to be searched when outputting the coincidence detection signal,
The mismatch detection means holds the input data and also outputs the input data to be searched when outputting the mismatch detection signal, and outputs the next input after outputting the mismatch detection signal or the search instruction signal. It is a configuration that shifts to search processing for data,
The data search device, wherein the determination unit is configured to output the input data input together with the match detection signal or the mismatch detection signal together with the determination signal.
入力データが予め登録した一致登録データに一致するか否かを判定するデータ検索方法において、
一致検出手段で前記入力データと前記一致登録データとを比較し、前記入力データと一致する前記一致登録データを検出した場合に一致検出信号を出力し、
不一致検出手段で前記入力データの一部と予め登録した不一致登録データの一部とを比較し、あるいは前記入力データの全部と前記不一致登録データの全部とを比較し、前記入力データと一致または一致とみなす前記不一致登録データを検出した場合に不一致検出信号を出力し、
判定手段で前記一致検出信号および前記不一致検出信号をそれぞれ入力し、先に入力した信号が前記一致検出信号であれば一致判定の判定信号を出力し、前記不一致検出信号であれば不一致判定の判定信号を出力する
ことを特徴とするデータ検索方法。
In a data search method for determining whether or not input data matches previously registered match registration data,
The match detection means compares the input data with the match registration data, and outputs a match detection signal when the match registration data that matches the input data is detected,
The mismatch detection means compares a part of the input data with a part of the mismatch registration data registered in advance, or compares all of the input data with all of the mismatch registration data to match or match the input data. A mismatch detection signal is output when the mismatch registration data considered to be
The determination means inputs the match detection signal and the mismatch detection signal, and outputs a match determination determination signal if the previously input signal is the match detection signal, and determines a mismatch determination if the signal is the mismatch detection signal. A data search method characterized by outputting a signal.
請求項8に記載のデータ検索方法において、
前記一致検出手段は、前記不一致検出手段が前記不一致検出信号を出力したときに、前記判定手段または前記不一致検出手段からの通知により検索処理を中止して次の入力データの検索処理を行い、
前記不一致検出手段は、前記一致検出手段が前記一致検出信号を出力したときに、前記判定手段または前記一致検出手段からの通知により検索処理を中止して次の入力データの検索処理を行う
ことを特徴とするデータ検索方法。
The data search method according to claim 8,
When the mismatch detection means outputs the mismatch detection signal, the match detection means stops the search process by a notification from the determination means or the mismatch detection means and performs a search process for the next input data,
The mismatch detection means, when the match detection means outputs the match detection signal, stops the search process by a notification from the determination means or the match detection means and performs a search process for the next input data. Characteristic data search method.
請求項8に記載のデータ検索方法において、
前記不一致検出手段は、前記入力データに対して前記一致検出手段が前記一致検出信号を出力しないときに、当該入力データを不一致登録データとして追加登録する
ことを特徴とするデータ検索方法。
The data search method according to claim 8,
The data search method, wherein the mismatch detection means additionally registers the input data as mismatch registration data when the match detection means does not output the match detection signal for the input data.
請求項1〜請求項7のいずれかに記載のデータ検索装置の各手段を、コンピュータで実行するプログラムで実現したことを特徴とするデータ検索プログラム。   A data search program characterized in that each means of the data search device according to any one of claims 1 to 7 is realized by a program executed by a computer.
JP2009005638A 2009-01-14 2009-01-14 Data search device, data search method, and data search program Expired - Fee Related JP5139335B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009005638A JP5139335B2 (en) 2009-01-14 2009-01-14 Data search device, data search method, and data search program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009005638A JP5139335B2 (en) 2009-01-14 2009-01-14 Data search device, data search method, and data search program

Publications (2)

Publication Number Publication Date
JP2010165102A true JP2010165102A (en) 2010-07-29
JP5139335B2 JP5139335B2 (en) 2013-02-06

Family

ID=42581222

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009005638A Expired - Fee Related JP5139335B2 (en) 2009-01-14 2009-01-14 Data search device, data search method, and data search program

Country Status (1)

Country Link
JP (1) JP5139335B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013003644A (en) * 2011-06-13 2013-01-07 Nippon Telegr & Teleph Corp <Ntt> Consistency determination device, method, and program
JP2013126058A (en) * 2011-12-14 2013-06-24 Nippon Telegr & Teleph Corp <Ntt> Data determination device and data determination program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10304095A (en) * 1997-04-25 1998-11-13 Taito Corp Combined communication device
JP2001195413A (en) * 2000-01-12 2001-07-19 Sony Corp Device and method for retrieving character string
JP2001306614A (en) * 2000-04-20 2001-11-02 Omron Corp Character, string retrieving method and character string retrieving device using the same method
JP2002158693A (en) * 2000-11-20 2002-05-31 Yokogawa Electric Corp Network quality evaluating device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10304095A (en) * 1997-04-25 1998-11-13 Taito Corp Combined communication device
JP2001195413A (en) * 2000-01-12 2001-07-19 Sony Corp Device and method for retrieving character string
JP2001306614A (en) * 2000-04-20 2001-11-02 Omron Corp Character, string retrieving method and character string retrieving device using the same method
JP2002158693A (en) * 2000-11-20 2002-05-31 Yokogawa Electric Corp Network quality evaluating device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CSNG200900127015; 三浦直樹 外5名: '不一致判定回路を用いた高速パケットフィルタ回路' 電子情報通信学会技術研究報告 VLD2008-143 第108巻 第478号, 20090304, 第101〜106頁, 社団法人電子情報通信学会 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013003644A (en) * 2011-06-13 2013-01-07 Nippon Telegr & Teleph Corp <Ntt> Consistency determination device, method, and program
JP2013126058A (en) * 2011-12-14 2013-06-24 Nippon Telegr & Teleph Corp <Ntt> Data determination device and data determination program

Also Published As

Publication number Publication date
JP5139335B2 (en) 2013-02-06

Similar Documents

Publication Publication Date Title
US10957423B2 (en) Method and apparatus for performing similarity searching
CN106295250B (en) Short sequence quick comparison analysis method and device was sequenced in two generations
US8719206B2 (en) Pattern-recognition processor with matching-data reporting module
TWI720491B (en) Reducing probabilistic filter query latency
US7908283B2 (en) Finding superlatives in an unordered list
JP2015505399A (en) Counter operation in a state machine grid
US20140019486A1 (en) Logic Content Processing for Hardware Acceleration of Multi-Pattern Search
JP2023501010A (en) A Classification Method for Application Preference Text Based on TextRank
CN104182360B (en) The trace log output processing method and system of multi-core environment
JP5139335B2 (en) Data search device, data search method, and data search program
KR101169099B1 (en) SYSTEMS AND METHODS FOR PERFORMING STREAMING CHECKS ON DATA FORMAT FOR UDTs
KR20210082390A (en) Systems and methods for grouping and collapsing sequencing reads
CN113495901B (en) Quick retrieval method for variable-length data blocks
CN112148359B (en) Distributed code clone detection and search method, system and medium based on subblock filtering
US10776429B2 (en) Optimizing memory usage for a HyperLogLog estimator
Bose et al. k-core: Hardware Accelerator for k-mer Generation and Counting used in Computational Genomics
CN111722829A (en) Double-concurrent pre-reading high-performance merging and sorting method and application
CN114386384B (en) Approximate repetition detection method, system and terminal for large-scale long text data
US11687572B2 (en) Computer security using context triggered piecewise hashing
CN112882887B (en) Dynamic establishment method for service fault model in cloud computing environment
US8560981B2 (en) Segmenting integrated circuit layout design files using speculative parsing
CN115729752A (en) Register checking method and device and storage medium
Köster et al. Massively parallel read mapping on GPUs with PEANUT
JPH0193820A (en) Retrieving device
CN105808654A (en) Stream data-oriented two-level sorting method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120703

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120712

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20121113

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121115

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151122

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees