JP2010165102A - Data retrieval device, data retrieval method, and data retrieval program - Google Patents
Data retrieval device, data retrieval method, and data retrieval program Download PDFInfo
- 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
Links
Images
Abstract
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) (
図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
図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
In the figure, the
従来のデータ検索装置は、一致と判定できない場合に不一致と判定するため、入力データとすべての一致登録データを比較した後でなければ不一致を判定することができない。したがって、不一致判定する場合が最も検索に長い時間を要することになり、入力データの多くが不一致となる状況では平均検索時間が長くなる。 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〜実施例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
In the figure, the data search apparatus according to the first embodiment includes a
判定部30は、一致検出信号2または比較終了信号3または不一致検出信号4を入力すると、表2に示すように、一致検出信号2に対して一致判定の判定信号5を出力し、比較終了信号3または不一致検出信号4に対して不一致判定の判定信号5を出力する。
When the
なお、判定部30は、一致検出部10と不一致検出部20のいずれかから最も早く入力する信号に対応する判定信号5を出力し、その後に入力する信号は無視する構成である。すなわち、一致検出部10が出力する一致検出信号2または比較終了信号3、または不一致検出部20が出力する不一致検出信号4のいずれか早い信号に応じて、表2に示すような判定結果を出力する。これにより、実施例1のデータ検索装置では、一致検出部10のみで検索処理を行う従来構成よりも平均的に早く判定結果を出力することができ、平均検索時間を短縮することができる。
The
次に、一致検出部10および不一致検出部20の構成例について説明するが、一致検出部10は図20に示す従来のデータ検索装置における一致検出部10と同様の構成であるので説明は省略する。
Next, configuration examples of the
図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
In the figure, the
ここで、実施例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
不一致検出部20は、不一致検出信号4だけでなく、全種類の不一致登録データを保持している場合に、入力データ1と一致する不一致登録データがない(未登録の)場合に比較終了信号を出力し、判定部30がこの比較終了信号に対して一致判定の判定信号5を出力するようにしてもよい。
The
不一致検出部20の不一致登録データ格納部61は、全種類の不一致登録データを保持せず、例えば利用頻度の高い不一致登録データのみを保持する構成としてもよい。また、nビットの不一致登録データのうち、例えば上位(n−1)ビットを不一致登録データとして保持し、入力データ1の上位(n−1)ビットの比較データ111と比較する構成としてもよい。また、不一致登録データのビット数を単純に切り捨てるだけでなく、ハッシュ関数等を用いて不一致登録データのビット数を小さくしてもよい。これにより、不一致登録データの数またはデータ量を減らすことができ、平均検索時間の短縮効果を確保しながら、メモリ容量の削減、動作速度の向上、消費電力の削減の各効果を得ることができる。
The non-matching registration
一致検出部10および不一致検出部20は、一致登録データおよび不一致登録データごとの一致回数をカウントし、カウント数の大きいものから順番に検索を行う構成としてもよい。また、一致登録データおよび不一致登録データを並べ替える機能や、利用頻度の低い一致登録データおよび不一致登録データを消去する機能を備えてもよい。これにより、複数の入力データが連続して入力する場合に平均検索時間を短縮することができる。
The
一致登録データを追加する場合には、事前に当該一致登録データを不一致検出部20に入力して不一致検出信号4が出力される場合には、当該一致登録データを不一致登録データから削除してから一致検出部10の一致登録データ格納部60に格納する。不一致登録データを追加する場合にも同様の処理を行ってもよい。これにより、一致登録データと不一致登録データの重複を回避することができる。
When adding match registration data, when the match registration data is input to the
実施例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
実施例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
図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
In the figure, the data search apparatus according to the second embodiment includes a
このように実施例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
実施例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
図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
一致検出部10は、比較終了信号3を出力するとともに、更新信号201を不一致検出部20に出力する。不一致検出部20は、この更新信号201に応じて入力データ1を不一致登録データとして登録し、次の入力データ1に対して登録済みの不一致登録データおよび前回新たに登録した不一致登録データを用いて検索する。このように、実際に不一致判定したデータを不一致登録データとして用いるため、登録する不一致登録データの数が少ない場合でも短時間で不一致判定が可能になり、平均検索時間を短縮することができる。また、不一致登録データの数を減らすことができるので、メモリ容量の削減、動作速度の向上、消費電力の削減の各効果を得ることができる。
The
なお、入力データが不一致検出部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
実施例1の不一致検出部20は、不一致登録データ格納部から不一致登録データを読み出して入力データと比較し、一致する場合に不一致登録信号4を出力した。実施例4の不一致検出部は、不一致登録データ格納部から入力データと一致する不一致登録データが登録されているか否かを示す有無信号を読み出し、有無信号が「有」を示す場合に不一致検出信号4を出力することを特徴とする。
The
図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
In the figure, the
図7は、不一致登録データ格納部62の構成例を示す。
図において、不一致登録データ格納部62はメモリ80で構成される。メモリ80は、不一致登録データの値と等しいアドレスに「有」を示す情報を格納し、それ以外のアドレスに「無」を示す情報を格納している。不一致登録データ格納部62に入力する比較データ115は、メモリ80の読み出しアドレスとなり、比較データ115の値に対応する不一致登録データの有無を示す有無信号116を出力する。
FIG. 7 shows a configuration example of the mismatch registration
In the figure, the mismatch registration
図8は、メモリ80に格納する不一致登録データの作成方法を示す。ここでは、一致登録データから不一致登録データを作成する例を示す。一致登録データとして、20,35, 198,248 の4種類の数値が与えられているときに、メモリ80の一致登録データの値と等しいアドレスに「無」を示す情報を格納し、それ以外のアドレスに「有」を示す情報を格納する。不一致登録データの更新は、一致登録データを更新する際に行う。すなわち、一致登録データを追加するときに、追加する一致登録データの値と等しいアドレスに「無」を示す情報を書き込む。一方、一致登録データを削除するときに、削除する一致登録データの値と等しいアドレスに「有」を示す情報を書き込む。
FIG. 8 shows a method for creating the mismatched registration data stored in the
なお、一致登録データの値をハッシュ値に変換し、ハッシュ値に対応するアドレスに「無」を示す情報を格納してもよい。この場合の一致比較回路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
このような図6〜図8に示す不一致登録データ格納部62の構成により、入力データ1が不一致判定される場合には有無信号116は「有」を示し、一致比較回路52は不一致検出信号4を出力する。逆に、入力データ1が一致判定される場合には有無信号116は「無」を示し、一致比較回路52は不一致検出信号4を出力せず、入力データ1に対する検索処理を終了する。
With the configuration of the mismatch registration
なお、当該メモリ80は、いわゆるCAM(連想メモリ)ではなく、一般のRAMで構成することができるので、回路規模および消費電力の削減によるコスト低減効果を見込むことができる。
Note that since the
また、比較データ115を読み出しアドレスとして有無信号116を出力する不一致登録データ格納部62は、例えばC言語等のプログラム言語で記述したソフトウェアに実施例4を適用する場合には、配列とポインタを使う方式であってもよい。
Further, the mismatch registration
また、実施例4の不一致検出部21は、1回のメモリ読み出し時間で、不一致登録データに一致する入力データを検出することができるので、平均検索時間を大幅に短縮することができる。以下、具体例を用いて説明する。
Further, since the
メモリからデータを読み出すのに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
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
また、図6に示す一致比較回路52において、有無信号116が「有」を示すときは不一致検出信号4を出力し、有無信号116が「無」を示すときは一致検出信号2を出力する構成とすれば、一致検出部10と不一致検出部21の共用が可能となる。すなわち、図9に示すように、不一致検出部21と一致検出部10の機能を1つのメモリを含む構成で実現した一致/不一致検出部15と判定部30でデータ検索装置を構成することができる。
Further, the
実施例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
図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
In the figure, the
なお、入力データおよび一致登録データは均等分割でなくてもよく、分割した入力データと一致登録データが互いに対応するビット数であればよい。 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
図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
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
実施例5の不一致検出部22は、実施例4の不一致検出部21に比べて保持する不一致登録データ数を削減することができ、メモリ容量の削減、動作速度の向上、消費電力の削減によるコスト低減効果を見込むことができる。
The
実施例1のデータ検索装置は、一致検出部10と不一致検出部20が並列に入力データに対する検索処理を実施していた。実施例6のデータ検索装置は、初めに不一致検出部が入力データに対する検索処理を行い、入力データと不一致登録データが一致しないときに一致検出部で検索処理を行うことを特徴とする。
In the data search apparatus according to the first embodiment, the
図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
図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
In the figure, the
このように、実施例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
なお、不一致検出部22が不一致検出信号4を出力した場合には、実施例2のように判定部30または不一致検出部22が一致検出部11の動作を停止するように制御してもよい。
When the
実施例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
一致検出部12は、検索指示信号202を入力したときの入力データ1について検索を開始し、一致検出信号2または比較終了信号3を判定部31に出力する。また、一致検出部12は、一致検出信号2または比較終了信号3を出力するときに、検索対象の入力データ1を被検索データ203として出力する。
The
判定部31は、一致検出信号2に応じて一致判定の判定信号5を出力するか、比較終了信号3または不一致検出信号4に応じて不一致判定の判定信号5を出力するとともに、被検索データ203または被検索データ204をそのまま被検索データ205として出力する。
The
図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
In the figure, the
バッファ制御回路71は、一致比較回路54から比較イネーブル信号125を入力したときに、バッファ回路70に読み出し信号123を出力し、バッファ回路70に記憶したデータを比較データ124として読み出す。さらに、バッファ制御回路71は、比較データ124を比較データ126として一致比較回路54に出力し、次の比較イネーブル信号125を入力するまで比較データ126を保持する。
When the comparison enable signal 125 is input from the
一致比較回路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
ここで、図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
不一致検出部23は、入力データaをレジスタに一時的に保持し、レジスタから出力された入力データaと不一致登録データの一致を検出したときに不一致検出信号4を出力するとともに、入力データaを被検索データ204として出力する。判定部31は、入力データaに対して、不一致判定の判定信号5および被検索データ205を出力する。次に、不一致検出部23は入力データbについて同様に検索し、不一致登録データとの一致を検出しない場合は、検索指示信号202を一致検出部12に出力する。次に、不一致検出部23は入力データcについて同様に検索を開始する。このように、不一致検出部23は、不一致を検出した場合でも、不一致を検出しない場合でも、入力データ1に対する処理が終了すると、ただちに次の入力データの検索処理を開始する。
The
一方、一致検出部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
一致比較回路54は、要求信号112を一致登録データ格納部60に出力して読み出される一致登録データ113と入力データbが一致するか否か検索を開始すると、比較イネーブル信号125をオフとする。ここで、一致比較回路54が一致登録データ113と入力データbの一致を検出すると、一致検出信号2とともに被検索データ203として入力データbを出力する。なお、比較終了信号3を出力する場合も同様に被検索データ203として入力データbを出力する。また、一致比較回路54は検索処理が終了すると、比較イネーブル信号125をオンとし、バッファ制御回路71を介してバッファ回路70に記憶されている比較データ124の読み出しを行う。この比較データ124は、不一致検出部23で不一致を検出しなかった入力データであり、同様に一致登録データとの検索処理に入る。
The
判定部31は、一致検出部12と不一致検出部23から出力される信号により一致判定または不一致判定の判定信号5を出力するとともに、被検索データ203または被検索データ204を被検索データ205として出力する。
The
図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
また、一致検出部12と不一致検出部23は、上記のように検索動作は互いに独立であるので、判定部31に対して同時に、異なる入力データに対する検索結果を出力することがある。この場合には、例えば判定部31で不一致検出部23からの出力を一時的に記憶し、一致検出部12からの信号を優先的に選択して判定処理を行い、その後に不一致検出部23からの信号に対する判定処理を行ってもよい。なお、一致検出部12と不一致検出部23の出力に対する処理順番は逆でもよい。
Further, since the search operation of the
実施例6では、不一致検出部22で不一致を検出できない場合に、一致検出部12の処理が終了するまで不一致検出部22は次の入力データを処理することができなかった。実施例7では、一致検出部12が入力データbに対する検索処理を行っている場合でも、不一致検出部23は次の入力データcに対する検索処理が可能である。そのため、実施例7の構成では、入力データの大部分が不一致判定される場合に、他の実施例に比べてさらに平均検索時間を短縮し、消費電力の削減が可能である。
In the sixth embodiment, when the
以上説明した実施例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
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.
前記一致検出手段は、前記不一致検出手段が前記不一致検出信号を出力したときに、前記判定手段または前記不一致検出手段からの通知により検索処理を中止して次の入力データの検索処理を行う構成であり、
前記不一致検出手段は、前記一致検出手段が前記一致検出信号を出力したときに、前記判定手段または前記一致検出手段からの通知により検索処理を中止して次の入力データの検索処理を行う構成である
ことを特徴とするデータ検索装置。 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.
前記不一致検出手段は、前記入力データに対して前記一致検出手段が前記一致検出信号を出力しないときに、当該入力データを不一致登録データとして追加登録する構成である
ことを特徴とするデータ検索装置。 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.
前記不一致検出手段または前記一致検出手段は、
前記不一致登録データまたは前記一致登録データの値に対応した数値のアドレスに当該データの有無情報を記憶したメモリ手段と、
前記入力データの値を前記メモリ手段の読み出しアドレスに変換して前記有無情報の読み出しを行い、有情報に対して前記不一致検出信号または前記一致検出信号を出力する一致比較手段と
を備えたことを特徴とするデータ検索装置。 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組が不一致であれば前記不一致検出信号を出力する構成である
ことを特徴とするデータ検索装置。 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.
前記不一致検出手段は、前記入力データに対して前記不一致検出信号を出力しないときに検索指示信号を前記一致検出手段に出力する構成であり、
前記一致検出手段は、前記検索指示信号を入力したときに前記入力データに対する検索処理を行う構成である
ことを特徴とするデータ検索装置。 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.
前記一致検出手段は、前記入力データを保持し、前記一致検出信号を出力するときに検索対象となった前記入力データも出力する構成であり、
前記不一致検出手段は、前記入力データを保持し、前記不一致検出信号を出力するときに検索対象となった前記入力データも出力し、前記不一致検出信号または前記検索指示信号を出力した後に次の入力データに対する検索処理に移行する構成であり、
前記判定手段は、前記一致検出信号または前記不一致検出信号とともに入力する前記入力データを、前記判定信号とともに出力する構成である
ことを特徴とするデータ検索装置。 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.
前記一致検出手段は、前記不一致検出手段が前記不一致検出信号を出力したときに、前記判定手段または前記不一致検出手段からの通知により検索処理を中止して次の入力データの検索処理を行い、
前記不一致検出手段は、前記一致検出手段が前記一致検出信号を出力したときに、前記判定手段または前記一致検出手段からの通知により検索処理を中止して次の入力データの検索処理を行う
ことを特徴とするデータ検索方法。 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.
前記不一致検出手段は、前記入力データに対して前記一致検出手段が前記一致検出信号を出力しないときに、当該入力データを不一致登録データとして追加登録する
ことを特徴とするデータ検索方法。 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.
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)
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)
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 |
-
2009
- 2009-01-14 JP JP2009005638A patent/JP5139335B2/en not_active Expired - Fee Related
Patent Citations (4)
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)
Title |
---|
CSNG200900127015; 三浦直樹 外5名: '不一致判定回路を用いた高速パケットフィルタ回路' 電子情報通信学会技術研究報告 VLD2008-143 第108巻 第478号, 20090304, 第101〜106頁, 社団法人電子情報通信学会 * |
Cited By (2)
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 |