JP2008197719A - Coincident data detector, receiving device, coincident data detecting method, and coincident data detecting program - Google Patents

Coincident data detector, receiving device, coincident data detecting method, and coincident data detecting program Download PDF

Info

Publication number
JP2008197719A
JP2008197719A JP2007029290A JP2007029290A JP2008197719A JP 2008197719 A JP2008197719 A JP 2008197719A JP 2007029290 A JP2007029290 A JP 2007029290A JP 2007029290 A JP2007029290 A JP 2007029290A JP 2008197719 A JP2008197719 A JP 2008197719A
Authority
JP
Japan
Prior art keywords
data
array
comparison
cardid
data array
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2007029290A
Other languages
Japanese (ja)
Inventor
Hiroshi Takasuka
啓 高須賀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Electronics Corp
Original Assignee
NEC Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Electronics Corp filed Critical NEC Electronics Corp
Priority to JP2007029290A priority Critical patent/JP2008197719A/en
Publication of JP2008197719A publication Critical patent/JP2008197719A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To solve such a problem that the number of times of comparison increases as the number of data contained in a data array 1 increases when comparing data in the data array 1 and a data array 2. <P>SOLUTION: This coincidence data detector 100 detects the data in the data array 2 coincident with the data in the data array 1. The data array 1 comprises a plurality of first data. The data array 2 comprises a plurality of second data and contains the minimum value of the plurality of second data, the maximum value of the plurality of second data, and the other second data. The accordance data detector 100 comprises an extraction part 110 which extracts the second data to be compared from the data array 2, and a comparison part 120 which excludes the first data smaller than the minimum value and the first data larger than the maximum value from the data array 1, compares the remaining first data with the second data extracted from the other second data by the extraction part 110, and outputs the coincident second data. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、二つのデータ配列において、データ配列1に含まれるデータがもう一つのデータ配列2に含まれているかを検出する装置及び方法に関する。   The present invention relates to an apparatus and a method for detecting whether data included in a data array 1 is included in another data array 2 in two data arrays.

従来から、二つのデータ配列1、データ配列2を比較する処理では、データ配列1のうちのひとつのデータに対してデータ配列2の各データを比較する処理が行われていた。例えば、データ配列2が、1番目に最小値、2番目に最大値、3番目以降は残りのデータが昇順に配置されている配列の場合の処理について説明する。まず、データ配列1のデータひとつひとつに対してデータ配列2の先頭データと2番目のデータからデータ配列2に含まれている可能性があるかの判定を行い、可能性がない場合は次のデータ配列1のデータの判定を行う。これをデータ配列1のそれぞれのデータに対して行っていた。図13から図16に、従来の検出方法の具体例を示す。判定した結果、一致するデータが存在する可能性がある場合は、データ配列2の3番目以降のデータとデータ配列1のデータの比較を一つずつ行う(図13、14)。一致するデータが検出されるか、データ配列2のデータがデータ配列1のデータより大きくなると(図15)、データ配列1の次のデータとの比較に進む。この動作を全てのデータ配列1のデータに対して行っていた(図16)。   Conventionally, in the process of comparing the two data arrays 1 and 2, the process of comparing each data of the data array 2 with one data of the data array 1 has been performed. For example, a process when the data array 2 is an array in which the first minimum value, the second maximum value, and the third and subsequent data are arranged in ascending order will be described. First, it is determined whether each data in the data array 1 may be included in the data array 2 from the first data and the second data in the data array 2, and if there is no possibility, the next data The data of array 1 is determined. This was performed for each data in the data array 1. FIG. 13 to FIG. 16 show specific examples of conventional detection methods. If there is a possibility that matching data exists as a result of the determination, the third and subsequent data in the data array 2 and the data in the data array 1 are compared one by one (FIGS. 13 and 14). When matching data is detected or the data in the data array 2 becomes larger than the data in the data array 1 (FIG. 15), the process proceeds to comparison with the next data in the data array 1. This operation was performed on the data of all the data arrays 1 (FIG. 16).

図16の場合、データ配列1を昇順に比較していくことで前に比較していたデータ配列1のデータより現在比較しているデータ配列1のデータのほうが大きいこととなる。
そのため前のデータ配列1のデータよりも小さいデータ配列2のデータとは比較を行う必要がないのに比較しており処理時間、処理負荷がかかってしまっていた。具体的には、図16の場合、データ配列2のデータ41〜49は、データ配列1の2番目のデータより小さく、データ配列1が昇順に並んでいる場合は、データ配列1の3番目のデータは、2番目のデータより大きいため、比較する必要がない。
In the case of FIG. 16, by comparing the data array 1 in ascending order, the data of the data array 1 currently compared is larger than the data of the data array 1 compared before.
For this reason, it is not necessary to compare with the data of the data array 2 smaller than the data of the previous data array 1, but the comparison requires a processing time and a processing load. Specifically, in the case of FIG. 16, the data 41 to 49 of the data array 2 are smaller than the second data of the data array 1, and when the data array 1 is arranged in ascending order, the third data of the data array 1 Since the data is larger than the second data, there is no need to compare.

また、図13,14に示すように、データ配列1のデータ一つ一つに対して範囲の確認(データ配列2の1番目の最小値と2番目の最大値との比較)を行っているため、範囲のチェックでもデータ配列1の要素数分は必ずチェックを行う必要が出てきてしまっていた。さらに、一般的に知られている2分検索法などの方法では、比較したいデータの位置が特定されている場合は有効であるが、特定されない場合には用いることが困難であった。例えば、特許文献1に開示されているEMM(Entitlement Management Messages:契約情報)のCardID(カードID)の検索のような場合、比較したいCardIDの位置を特定するためにはデータの先頭から解析する必要がある。図17に、EMMのデータ内容の一例を示す。EMMのデータは、配列の数、要素の値を知るためには全てのデータを解析し、CardIDを抽出後に検索を行う必要がある。   As shown in FIGS. 13 and 14, the range of each data in the data array 1 is confirmed (comparison between the first minimum value and the second maximum value in the data array 2). Therefore, it has become necessary to always check the number of elements in the data array 1 even when checking the range. Furthermore, generally known methods such as a binary search method are effective when the position of data to be compared is specified, but are difficult to use when the position is not specified. For example, in the case of searching for CardID (card ID) of EMM (Entitlement Management Messages: contract information) disclosed in Patent Document 1, it is necessary to analyze from the top of the data in order to specify the position of the CardID to be compared. There is. FIG. 17 shows an example of EMM data contents. For EMM data, in order to know the number of arrays and element values, it is necessary to analyze all the data and perform a search after extracting a CardID.

このとき全てのデータを解析すると解析に時間がかかってしまい、先頭から解析しながら比較すると、データ配列1に含まれるデータの最大値より比較しているデータ配列2のデータが大きくなった場合に比較、解析を取りやめることができる。このため、2分検索法などの検索法を使用するとかえって余計に処理時間、処理負荷がかかってしまう恐れがある。また一度比較したいデータ(EMMの場合だとCardID)を抜き出し保存するメモリが必要である。
特開2004−7809号公報
If all the data is analyzed at this time, the analysis takes time. If the comparison is made while analyzing from the beginning, the data of the data array 2 being compared becomes larger than the maximum value of the data included in the data array 1. Comparison and analysis can be canceled. For this reason, if a search method such as a binary search method is used, the processing time and processing load may be increased. In addition, a memory for extracting and storing data (CardID in the case of EMM) that is to be compared once is required.
JP 2004-7809 A

このように、データ配列1に含まれるデータがデータ配列2に含まれているデータと一致するかの判定を行う場合、データ配列1に含まれるデータ数が多くなるほど、比較を行う回数は多くなってしまうという問題があった。   Thus, when determining whether the data included in the data array 1 matches the data included in the data array 2, the number of comparisons increases as the number of data included in the data array 1 increases. There was a problem that.

本発明に係る一致データ検出装置の一態様は、データ配列1及びデータ配列2を入力し、データ配列1のデータと一致するデータ配列2のデータを検出する一致データ検出装置であって、前記データ配列1は、複数の第1データから構成され、前記データ配列2は、複数の第2データから構成され、前記複数の第2データの最小値、前記複数の第2データの最大値、及びその他の第2データを含み、前記データ配列2から比較対象とする第2データを抽出する抽出部と、前記最小値より小さい第1データと前記最大値よりを大きい第1データを前記データ配列1から除外し、残りの第1データを、前記抽出部が前記その他の第2データから抽出した第2データと比較して一致する第2データを出力する比較部と、を備える。   One aspect of the coincidence data detection apparatus according to the present invention is a coincidence data detection apparatus that receives data array 1 and data array 2 and detects data in data array 2 that matches the data in data array 1, wherein the data The array 1 is composed of a plurality of first data, the data array 2 is composed of a plurality of second data, the minimum value of the plurality of second data, the maximum value of the plurality of second data, and others The second data is extracted from the data array 1, and the first data smaller than the minimum value and the first data larger than the maximum value are extracted from the data array 1. A comparison unit that excludes the remaining first data and outputs second data that matches the second data extracted from the other second data by the extraction unit.

本発明に係る受信装置の一態様は、送信装置が各受信装置宛のEMMを複数まとめて送信するEMMセッションを受信する受信装置であって、前記EMMセッションは、EMMの宛て先を識別するCardIDを含み、前記CardIDが最小値のEMMが一番目に配置され、前記CardIDが最大値のEMMが二番目に配置され、CardIDが大きさに基づく順になるようにその他のEMMが三番目以降に配置されたEMMの配列であり、前記EMMセッションを受信する受信部と、自己宛のEMMであることを示す複数の保持データを配置したデータ配列を保持する保持データ保持部と、前記受信したEMMの配列からCardIDを抽出する抽出部と、前記CardIDの最小値より小さい保持データと前記CardIDの最大値よりを大きい保持データを前記データ配列から除外し、残りのデータ配列を前記抽出部が出力したCardIDと比較して一致するCardIDを含むEMMを出力する比較部と、を備える。   One aspect of a receiving apparatus according to the present invention is a receiving apparatus that receives an EMM session in which a transmitting apparatus transmits a plurality of EMMs addressed to each receiving apparatus, and the EMM session is a CardID that identifies an EMM destination. The EMM with the smallest CardID is placed first, the EMM with the largest CardID is placed second, and the other EMMs are placed after the third so that the CardID is in order based on size. A receiving unit that receives the EMM session, a holding data holding unit that holds a data array in which a plurality of holding data indicating that the EMM is addressed to the EMM session, and the received EMM An extraction unit for extracting a CardID from an array; retained data smaller than the minimum value of the CardID; and a maximum value of the CardID Large holding data Ri excluded from the data array, and a comparison unit for outputting a EMM containing CardID matching compared to CardID the remaining data sequence output by the extraction unit.

本発明に係る一致データ検出方法の一態様は、データ配列1及びデータ配列2を入力し、データ配列1のデータと一致するデータ配列2のデータを検出する一致データ検出方法であって、前記データ配列1は、複数の第1データから構成され、前記データ配列2は、複数の第2データから構成され、前記複数の第2データの最小値、前記複数の第2データの最大値、及びその他の第2データを含み、前記データ配列2から比較対象とする第2データを抽出し、前記最小値より小さい第1データと前記最大値よりを大きい第1データを前記データ配列1から除外し、残りの第1データを前記抽出部が前記その他の第2データから抽出した第2データと比較して一致する第2データを出力する。   One aspect of the coincidence data detection method according to the present invention is a coincidence data detection method for inputting data array 1 and data array 2 and detecting data in data array 2 that coincides with data in data array 1, wherein the data The array 1 is composed of a plurality of first data, the data array 2 is composed of a plurality of second data, the minimum value of the plurality of second data, the maximum value of the plurality of second data, and others Second data to be compared is extracted from the data array 2, and the first data smaller than the minimum value and the first data larger than the maximum value are excluded from the data array 1, The remaining first data is compared with the second data extracted from the other second data by the extraction unit, and the matching second data is output.

本発明に係る一致データ検出プログラムの一態様は、データ配列1及びデータ配列2を入力し、データ配列1のデータと一致するデータ配列2のデータを検出する手順を計算機で実行させるための一致データ検出プログラムであって、前記データ配列1は、複数の第1データから構成され、前記データ配列2は、複数の第2データから構成され、前記複数の第2データの最小値、前記複数の第2データの最大値、及びその他の第2データを含み、前記データ配列2から比較対象とする第2データを抽出する手順と、前記最小値より小さい第1データと前記最大値よりを大きい第1データを前記データ配列1から除外する手順と、残りの第1データを前記抽出部が前記その他の第2データから抽出した第2データと比較して一致する第2データを出力する手順と、を計算機上で実行させる。   One aspect of the coincidence data detection program according to the present invention is the coincidence data for inputting the data array 1 and the data array 2 and causing the computer to execute a procedure for detecting the data of the data array 2 that coincides with the data of the data array 1 In the detection program, the data array 1 is composed of a plurality of first data, the data array 2 is composed of a plurality of second data, the minimum value of the plurality of second data, the plurality of first data Including a maximum value of two data and other second data, and a procedure for extracting second data to be compared from the data array 2, a first data smaller than the minimum value, and a first larger than the maximum value A procedure for excluding data from the data array 1 and a second data that matches the remaining first data by comparing the second data extracted by the extraction unit from the other second data A step of outputting, to run on the computer.

本発明によれば、データ配列1に含まれるデータがデータ配列2に含まれているデータと一致するかの判定を行う場合、データ配列1に含まれるデータのうち判定に必要なデータの範囲をデータ配列2のデータに基づいて判断する。これにより、データ比較を行うデータ数を抑制することができる。   According to the present invention, when it is determined whether the data included in the data array 1 matches the data included in the data array 2, the range of data required for determination among the data included in the data array 1 is determined. The determination is made based on the data in the data array 2. As a result, the number of data to be compared can be suppressed.

以下、本発明の実施形態について、図面を参照しながら説明する。説明の明確化のため、以下の記載及び図面は、適宜、省略、及び簡略化がなされている。各図面において同一の構成または機能を有する構成要素および相当部分には、同一の符号を付し、その説明は省略する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. For clarity of explanation, the following description and drawings are omitted and simplified as appropriate. In the drawings, components having the same configuration or function and corresponding parts are denoted by the same reference numerals and description thereof is omitted.

実施形態1.
図1は、本発明に係る実施形態の一致データ検出装置の構成例を示すブロック図である。図1に示す一致データ検出装置100は、データ配列1及びデータ配列2を入力し、データ配列1のデータと一致するデータ配列2のデータを検出する装置であり、抽出部(比較対象データ抽出手段)110と比較部(配列比較手段)120とを備える。
Embodiment 1. FIG.
FIG. 1 is a block diagram illustrating a configuration example of a coincidence data detection apparatus according to an embodiment of the present invention. A coincidence data detection apparatus 100 shown in FIG. 1 is an apparatus that receives data array 1 and data array 2 and detects data in data array 2 that matches the data in data array 1, and includes an extraction unit (comparison data extraction means). ) 110 and a comparison unit (sequence comparison means) 120.

データ配列1は、複数の保持データ(複数の第1データ)から構成される。ここでは、データ配列1は、複数の保持データが昇順に配置されていることを前提とする。
データ配列2は、複数の比較データ(複数の第2データ)から構成され、複数の比較データの最小値、前記複数の比較データの最大値、及びその他の比較データを配置する配列である。ここでは、データ配列2は、配列の一番目に最小値、配列の二番目に最大値、配列の三番目以降にその他の比較データが昇順に配置された配列であることを前提とする。
The data array 1 is composed of a plurality of retained data (a plurality of first data). Here, it is assumed that the data array 1 has a plurality of retained data arranged in ascending order.
The data array 2 is composed of a plurality of comparison data (a plurality of second data), and is an array in which a minimum value of the plurality of comparison data, a maximum value of the plurality of comparison data, and other comparison data are arranged. Here, it is assumed that the data array 2 is an array in which the minimum value is first in the array, the maximum value is second in the array, and other comparison data is arranged in ascending order after the third array.

抽出部110は、データ配列2から比較対象となる比較データを抽出する。
比較部120は、データ配列1とデータ配列2とのデータを比較し、一致するデータを出力する。比較部120は、昇順比較手段121と降順比較手段122とを含む。詳細な動作は後述する。
The extraction unit 110 extracts comparison data to be compared from the data array 2.
The comparison unit 120 compares the data in the data array 1 and the data array 2 and outputs matching data. The comparison unit 120 includes an ascending order comparison unit 121 and a descending order comparison unit 122. Detailed operation will be described later.

図2は、図1に示す一致データ検出装置が動作する環境の一例を示す図である。図2では、一致データ検出装置及び方法をプログラム(ここでは一致データ検出プログラム)で実現する場合を示し、プログラムが計算機上で動作する環境例を示している。CPU(Central Processing Unit)501は、計算機全体を制御し、記憶媒体508に記憶するプログラムをメモリ502へダウンロードして実行させる。図2は、従って、プログラムをメモリ502へダウンロードした機能イメージ図でもある。データ配列1取得部503は、記憶媒体508の所定の領域に記憶(保持)するデータ配列1情報を取得し、メモリ502上で一致データ検出装置100へ受け渡す。データ配列2は、外部からメモリ502へ入力される。データ配列1、データ配列2は、メモリ502へ一時的に記憶され、一致データ検出装置100によって利用される。メモリ502は、例えばRAM(Random Access Memory)が用いられる。   FIG. 2 is a diagram illustrating an example of an environment in which the coincidence data detection apparatus illustrated in FIG. 1 operates. FIG. 2 shows a case where the coincidence data detection apparatus and method are realized by a program (here, a coincidence data detection program), and shows an example of an environment where the program operates on a computer. A CPU (Central Processing Unit) 501 controls the entire computer, and downloads a program stored in the storage medium 508 to the memory 502 for execution. FIG. 2 is also a functional image diagram in which the program is downloaded to the memory 502. The data array 1 acquisition unit 503 acquires data array 1 information to be stored (held) in a predetermined area of the storage medium 508, and transfers the data array 1 information to the matching data detection apparatus 100 on the memory 502. The data array 2 is input to the memory 502 from the outside. The data array 1 and the data array 2 are temporarily stored in the memory 502 and used by the coincidence data detection apparatus 100. As the memory 502, for example, a RAM (Random Access Memory) is used.

ここで、本実施形態では、データ配列2は、配列の一番目に最小値、配列の二番目に最大値、配列の三番目以降にその他の比較データが昇順に配置された配列であることを前提としている。しかし、データの構成が不明な場合は、予めデータ配列2の構成を解析する必要がある。例えば、EMMのように、比較したいデータ位置が特定されていない場合はデータ配列2の解析が必要となる。解析に必要なプログラム(装置)は、記憶媒体508に保持し、CPU501がメモリ502にダウンロードして、データ配列2を一致データ検出装置100へ入力するときに解析する。また、データ配列1が昇順(降順)にソートされていない場合はあらかじめソートするためのソート用プログラム(例えば、保持データソート部)も必要となる。   Here, in this embodiment, the data array 2 is an array in which the minimum value is the first value in the array, the maximum value is the second value in the array, and other comparison data is arranged in ascending order after the third value in the array. It is assumed. However, when the data configuration is unknown, it is necessary to analyze the configuration of the data array 2 in advance. For example, when the data position to be compared is not specified as in EMM, the data array 2 needs to be analyzed. A program (apparatus) necessary for analysis is stored in the storage medium 508, and is analyzed when the CPU 501 downloads it to the memory 502 and inputs the data array 2 to the coincidence data detection apparatus 100. Further, when the data array 1 is not sorted in ascending order (descending order), a sorting program (for example, a retained data sorting unit) for sorting in advance is also required.

続いて、一致データ検索装置の動作について説明する。図3〜図6は、本実施形態の一致データ検出装置100の動作の一例を示すフローチャートである。図3は全体の動作、図4は比較データの最小値のとの比較、図5は比較データの最大値との比較、図6はその他の比較データとの比較を示している。データ配列1及びデータ配列2の取得方法等についてはここでは説明を省略する。また、図4〜図6中で「データ配列1」を「配列1」、「データ配列2」を「配列2」と記すことがある。   Next, the operation of the matching data search device will be described. 3 to 6 are flowcharts showing an example of the operation of the coincidence data detection apparatus 100 of the present embodiment. 3 shows the overall operation, FIG. 4 shows a comparison with the minimum value of the comparison data, FIG. 5 shows a comparison with the maximum value of the comparison data, and FIG. 6 shows a comparison with other comparison data. The description of the method for acquiring the data array 1 and the data array 2 is omitted here. 4 to 6, “data array 1” may be referred to as “array 1”, and “data array 2” may be referred to as “array 2”.

まず、全体の流れを説明する。一致データ検索装置100は、データ配列(データ配列1、データ配列2)を入力する。データ配列1は比較部120へ、データ配列2は抽出部110へ入力される。データ配列1がソートされていない場合、比較部120は、昇順にソートを行う(S11)。次に、一致データ検索装置100は、データ配列2の最小値とデータ配列1のデータを比較する(S12)。比較処理が終了した場合には(S13でYes)、比較部120は、比較結果を出力用のバッファへ出力する。比較処理が継続する場合(S13でNo)、一致データ検索装置100は、データ配列2の最大値とデータ配列1のデータを比較する(S14)。比較処理が終了した場合には(S15でYes)、比較部120は、比較結果を出力用のバッファへ出力する。   First, the overall flow will be described. The coincidence data search device 100 inputs a data array (data array 1, data array 2). The data array 1 is input to the comparison unit 120 and the data array 2 is input to the extraction unit 110. When the data array 1 is not sorted, the comparison unit 120 sorts in ascending order (S11). Next, the matching data search device 100 compares the minimum value of the data array 2 with the data of the data array 1 (S12). When the comparison process is completed (Yes in S13), the comparison unit 120 outputs the comparison result to the output buffer. When the comparison process continues (No in S13), the coincidence data search device 100 compares the maximum value of the data array 2 with the data of the data array 1 (S14). When the comparison process is completed (Yes in S15), the comparison unit 120 outputs the comparison result to the output buffer.

比較処理が継続する場合(S15でNo)、一致データ検索装置100は、データ配列2のその他の比較データとデータ配列1のデータを比較する(S16)。ステップS14までの比較処理が終了した段階で、比較部120は、データ配列2の最小値より小さい保持データとデータ配列2の最大値よりを大きい保持データをデータ配列1から除外することになる。従って、比較部120は、ステップS16の比較処理において、データ配列2の最小値より大きく、最大値より小さいデータ配列1の保持データについて、データ配列2の比較データと比較処理を実施する。比較処理終了後、比較部120は、比較処理結果を出力用バッファ(図1、2には図示していない)へ出力する。一致したデータがある場合は、一致したデータもしくは一致したデータを含むデータ配列2が出力され、一致したデータがなかった場合は、一致データなしを示すデータが出力される。   When the comparison process continues (No in S15), the coincidence data search device 100 compares the other comparison data in the data array 2 with the data in the data array 1 (S16). At the stage where the comparison processing up to step S14 has been completed, the comparison unit 120 excludes from the data array 1 retained data that is smaller than the minimum value of the data array 2 and retained data that is greater than the maximum value of the data array 2. Therefore, the comparison unit 120 performs the comparison process with the comparison data of the data array 2 for the retained data of the data array 1 that is larger than the minimum value of the data array 2 and smaller than the maximum value in the comparison process of step S16. After the comparison process, the comparison unit 120 outputs the comparison process result to an output buffer (not shown in FIGS. 1 and 2). When there is matching data, the matching data or the data array 2 including the matching data is output. When there is no matching data, data indicating no matching data is output.

続いて、各比較処理の詳細な動作を説明する。まず、データ配列2の最小値との比較処理を、図4を用いて説明する。データ配列2の最小値との比較では、まず、抽出部110は、データ配列2の先頭の比較データ(比較データの最小値)を検索し、抽出する(S21)。比較データの検索が必要ない場合(比較するデータの位置が特定できている場合、データが固定長の場合)は検索は行わなくてよい。すでに特定されている位置のデータを抽出する。比較部120(昇順比較手段121)は、抽出部110が抽出したデータ配列2の先頭の比較データ(データ配列2に含まれる最小の比較データ)とデータ配列1で比較対象となっているデータを先頭から昇順に比較する(S22)。ここで比較対象となっているのは、データ配列1に含まれる複数の保持データとなる。比較した結果、一致した場合は(S23でYes)、比較部120は、その時点で比較処理を終了する(S24)。比較部120は、一致したデータ配列2もしくは比較データを一致データ出力用メモリに出力する(S17)。   Subsequently, the detailed operation of each comparison process will be described. First, comparison processing with the minimum value of the data array 2 will be described with reference to FIG. In the comparison with the minimum value of the data array 2, first, the extraction unit 110 searches for and extracts the first comparison data (minimum value of the comparison data) of the data array 2 (S21). If there is no need to search for comparison data (when the position of the data to be compared can be specified, the data is a fixed length), the search need not be performed. Extract data for locations already identified. The comparison unit 120 (ascending order comparison unit 121) selects the comparison data at the head of the data array 2 extracted by the extraction unit 110 (minimum comparison data included in the data array 2) and the data to be compared in the data array 1 Compare from the top in ascending order (S22). Here, the comparison targets are a plurality of retained data included in the data array 1. If they match as a result of the comparison (Yes in S23), the comparison unit 120 ends the comparison process at that time (S24). The comparison unit 120 outputs the matched data array 2 or the comparison data to the matched data output memory (S17).

比較した結果、一致しない場合(S23でNo)でかつデータ配列1のデータがデータ配列2の比較データより小さい場合は(S25でNo)、比較部120は、比較したデータ配列1の保持データを比較対象外とし、今回のデータ配列2との判定ではこれ以降比較しないように、データ配列1から除外する(S26)。比較対象のデータ配列1がある場合(S27でYes)、ステップS22へ戻り、データ配列1の比較対象を次の保持データへ順番に(昇順に)移し、比較処理を繰り返す。データ配列1に比較対象のデータがない場合(S27でNo)、一致データなしとして、比較処理を終了する(S28)。また、比較した結果、一致しない場合(S23でNo)でかつデータ配列1のデータがデータ配列2の比較データより大きい場合は(S25でYes)、データ配列2に次の比較データがあるか確認し(S29)、ある場合は(S29でYes)、比較部120は、次の比較処理へ移行(比較処理継続)するようにし(S30)、ない場合は(S29でNo)、比較部120は、一致データなしとして、比較処理を終了する(S28)。   As a result of the comparison, if they do not match (No in S23) and the data in the data array 1 is smaller than the comparison data in the data array 2 (No in S25), the comparison unit 120 stores the data held in the compared data array 1 The data array 1 is excluded from comparison, and is excluded from the data array 1 so as not to be compared thereafter in the determination with the data array 2 (S26). If there is a data array 1 to be compared (Yes in S27), the process returns to step S22, the comparison object in the data array 1 is moved to the next held data in order (in ascending order), and the comparison process is repeated. If there is no data to be compared in the data array 1 (No in S27), the comparison process is terminated with no matching data (S28). If the comparison results in a mismatch (No in S23) and the data in the data array 1 is larger than the comparison data in the data array 2 (Yes in S25), the data array 2 is checked for the next comparison data. (S29), if present (Yes in S29), the comparison unit 120 shifts to the next comparison process (continuation of the comparison process) (S30), otherwise (No in S29), the comparison unit 120 Then, the comparison process is terminated with no matching data (S28).

次に、データ配列2の最大値との比較処理を、図5を用いて説明する。データ配列2の最大値との比較では、まず、抽出部110は、データ配列2の2番目の比較データ(比較データの最大値)を抽出する(S31)。比較部120(降順比較手段122)は、抽出部110が抽出したデータ配列2の2番目(データ配列2に含まれる最大の比較データ)とデータ配列1で比較対象となっているデータを降順に比較する(S32)。ここで比較対象となっているのは、データ配列2の最小値より小さい保持データをデータ配列1から除いた複数の保持データとなる。比較した結果、一致した場合は(S33でYes)、その時点でデータ比較処理を終了する(S34)。比較部120は、一致したデータ配列2もしくは比較データを一致データ出力用メモリに出力する。   Next, a comparison process with the maximum value of the data array 2 will be described with reference to FIG. In the comparison with the maximum value of the data array 2, the extraction unit 110 first extracts the second comparison data (maximum value of the comparison data) of the data array 2 (S31). The comparison unit 120 (descending order comparison unit 122) selects the second data array 2 extracted by the extraction unit 110 (maximum comparison data included in the data array 2) and the data to be compared in the data array 1 in descending order. Compare (S32). Here, the comparison target is a plurality of retained data obtained by removing the retained data smaller than the minimum value of the data array 2 from the data array 1. If they match as a result of the comparison (Yes in S33), the data comparison process is terminated at that time (S34). The comparison unit 120 outputs the matched data array 2 or the comparison data to the matched data output memory.

比較した結果、一致しない場合(S33でNo)でかつデータ配列1のデータがデータ配列2の比較データより大きい場合は(S35でNo)、比較部120は、比較したデータ配列1の保持データを比較対象外とし、今回の判定ではこれ以降比較しないように、データ配列1の保持データから除外する(S36)。比較対象のデータ配列1がある場合(S37でYes),ステップS32へ戻り、データ配列1の比較対象を次の保持データへ順番に(降順に)移し、比較処理を繰り返す。データ配列1に比較対象のデータがない場合(S37でNo)、一致データなしとして、比較処理を終了する(S38)。比較した結果、一致しない場合(S33でNo)でかつデータ配列1のデータがデータ配列2の比較データより小さい場合は(S35でYes)、データ配列2に次の比較データがあるか確認し(S39)、ある場合は(S39でYes)、比較部120は、次の比較処理へ移行(比較処理継続)するようにし(S40)、ない場合は(S39でNo)、比較部120は、一致データなしとして、比較処理を終了する(S38)。   As a result of the comparison, if they do not match (No in S33) and the data in the data array 1 is larger than the comparison data in the data array 2 (No in S35), the comparing unit 120 stores the data held in the compared data array 1 Excluded from the comparison data and excluded from the data held in the data array 1 so that no comparison is made in the current determination (S36). If there is a data array 1 to be compared (Yes in S37), the process returns to step S32, the comparison object in the data array 1 is moved to the next stored data in order (descending order), and the comparison process is repeated. When there is no data to be compared in the data array 1 (No in S37), the comparison process is terminated with no matching data (S38). As a result of the comparison, if they do not match (No in S33) and if the data in the data array 1 is smaller than the comparison data in the data array 2 (Yes in S35), it is confirmed whether the data array 2 has the next comparison data ( S39), if present (Yes in S39), the comparison unit 120 shifts to the next comparison process (continuation of comparison process) (S40), otherwise (No in S39), the comparison unit 120 matches. The comparison process is terminated with no data (S38).

次に、データ配列2のその他の比較データとの比較処理を、図6を用いて説明する。データ配列2の3番目以降のデータとの比較では、データ配列2の3番目以降のデータとデータ配列1のデータを昇順に比較していく。まず、抽出部110は、データ配列2の3番目の比較データを抽出する(S41)。ここでは、データ配列2の3番目以降のデータは、昇順に配置されていることを前提としている。昇順になってない場合は、抽出部110において、データ配列2のその他の比較データを昇順に比較部120へ出力すればよい。比較部120(昇順比較手段121)は、抽出部110が抽出したデータ配列2の3番目とデータ配列1で比較対象となっているデータを昇順に比較する(S42)。ここで比較対象となっているのは、データ配列2の最小値より小さい保持データと最大値より大きい保持データとをデータ配列1からを除いた複数の保持データとなる。比較した結果、一致した場合は(S43でYes)、その時点でデータ比較処理を終了する(S44)。比較部120は、一致したデータ配列2もしくは比較データを一致データ出力用メモリに出力する。   Next, comparison processing with other comparison data of the data array 2 will be described with reference to FIG. In the comparison with the third and subsequent data in the data array 2, the third and subsequent data in the data array 2 and the data in the data array 1 are compared in ascending order. First, the extraction unit 110 extracts the third comparison data of the data array 2 (S41). Here, it is assumed that the third and subsequent data in the data array 2 are arranged in ascending order. If not in ascending order, the extraction unit 110 may output other comparison data of the data array 2 to the comparison unit 120 in ascending order. The comparison unit 120 (ascending order comparison means 121) compares the data to be compared between the third data array 2 extracted by the extraction unit 110 and the data array 1 in ascending order (S42). Here, the comparison target is a plurality of retained data obtained by excluding the retained data smaller than the minimum value of the data array 2 and the retained data larger than the maximum value from the data array 1. If they match as a result of the comparison (Yes in S43), the data comparison process is terminated at that time (S44). The comparison unit 120 outputs the matched data array 2 or the comparison data to the matched data output memory.

比較した結果、一致しない場合(S43でNo)でかつデータ配列1のデータがデータ配列2の比較データより大きい場合は(S45でYes)、比較したデータ配列1の保持データを比較対象外とし、今回の判定ではこれ以降比較しないように、データ配列1保持データから除外する(S46)。比較対象のデータ配列1がある場合(S47でYes),ステップS42へ戻り、データ配列1の比較対象を次の保持データに順番に(昇順に)移し、比較処理を繰り返す。データ配列1に比較対象のデータがない場合(S47でNo)、一致データなしとして、比較処理を終了する(S48)。比較した結果、一致しない場合(S43でNo)でかつデータ配列1のデータがデータ配列2の比較データより小さい場合は(S45でNo)、データ配列2に次の比較データがあるか確認し(S49)、ある場合は(S49でYes)、ステップS41へ戻る。抽出部110は、データ配列2の次の比較データの抽出を行い(S41)、比較部120は、同様の比較処理を行う(S42〜45)。データ配列2の3番目以降のデータがなくなるまで、ステップS49までの処理を比較データの昇順に繰り返す。ない場合は(S49でNo)、一致データなしとして、データ比較処理を終了する(S48)。   As a result of the comparison, if they do not match (No in S43) and if the data in the data array 1 is larger than the comparison data in the data array 2 (Yes in S45), the retained data in the compared data array 1 is excluded from comparison, In this determination, the data array 1 is excluded from the retained data so as not to be compared thereafter (S46). If there is a data array 1 to be compared (Yes in S47), the process returns to step S42, the comparison object in the data array 1 is moved to the next held data in order (in ascending order), and the comparison process is repeated. If there is no data to be compared in the data array 1 (No in S47), the comparison process is terminated with no matching data (S48). As a result of the comparison, if they do not match (No in S43) and the data in the data array 1 is smaller than the comparison data in the data array 2 (No in S45), it is confirmed whether the data array 2 has the next comparison data ( If there is (S49: Yes), the process returns to step S41. The extraction unit 110 extracts the next comparison data of the data array 2 (S41), and the comparison unit 120 performs a similar comparison process (S42 to 45). The processing up to step S49 is repeated in ascending order of the comparison data until the third and subsequent data in the data array 2 disappear. If not (No in S49), it is determined that there is no matching data, and the data comparison process is terminated (S48).

以上の動作を具体的な値を用いて説明すると、まず図7のように、比較部120は、データ配列2の1番目のデータからデータ配列1からデータ配列2の最小値である40以下のデータを比較対象外にし、データ配列22番目のデータからデータ配列1からデータ配列2の最大値である70以上のデータを比較対象外にする(図4のS23からS26及び図5のS32からS36の処理に相当)。次に図8のように、比較部120は、データ配列1の比較対象である保持データを昇順に比較していくため、まず50をデータ配列2の3番目以降と比較していく(図6のS42、43、45)。   The above operation will be described using specific values. First, as shown in FIG. 7, the comparison unit 120 starts from the first data of the data array 2 to the minimum value of the data array 1 to the data array 2 of 40 or less. The data is excluded from the comparison target, and the data of the data array 22 from the data array 1 to the data array 2 which is the maximum value of 70 or more is excluded from the comparison target (S23 to S26 in FIG. 4 and S32 to S36 in FIG. 5). Equivalent to the process). Next, as shown in FIG. 8, the comparison unit 120 first compares 50 with the third and subsequent data arrays 2 in order to compare the data to be compared in the data array 1 in ascending order (FIG. 6). S42, 43, 45).

このとき比較部120は、データ配列2の値が50を超えるまではデータ配列2のデータの抽出を行い比較していき、51となった時点でこれ以降50はないので対象外とし(S46)、次のデータ配列1のデータ(60)へと比較対象を移し(S47,42)、データ配列2の51からまた比較を行っていく(図9)(図6のS45、49、41、42、43と繰り返す)。   At this time, the comparison unit 120 extracts and compares the data of the data array 2 until the value of the data array 2 exceeds 50. When the value becomes 51, the comparison unit 120 does not include 50 since then, and is excluded (S46). Then, the comparison object is transferred to the data (60) of the next data array 1 (S47, 42), and comparison is performed again from 51 of the data array 2 (FIG. 9) (S45, 49, 41, 42 in FIG. 6). , 43).

これを繰り返し、図10のように一致した場合、比較部120はデータを出力し、どれにも一致せずに全てのデータ配列1が対象外になるか、データ配列2が最後のデータまで行った場合は一致するデータなしとして、二つの配列のデータの比較処理を終了する。   When this is repeated and the data match as shown in FIG. 10, the comparison unit 120 outputs data, and does not match any data array 1 is excluded, or data array 2 is performed up to the last data. If there is no matching data, the comparison processing of the data of the two arrays is terminated.

上記説明したように、従来の技術ではデータ配列1を個別に考えて比較を行っていたため不要な部分の比較が発生していたが、本実施形態ではデータ配列1を昇順に比較していき、前に比較対象としていたデータ未満のデータ配列2のデータとは比較を行わないことで、不要な比較を行わないようになっている。   As described above, in the conventional technique, since comparison was performed considering the data array 1 individually, comparison of unnecessary portions occurred, but in this embodiment, the data array 1 is compared in ascending order, Unnecessary comparison is not performed by not performing comparison with the data of the data array 2 less than the data that was previously compared.

また、データ配列2の1番目(比較データの最小値)、2番目(比較データの最大値)から、データ配列1の保持データがデータ配列2に含まれるか判定する際にデータ配列を昇順(もしくは降順)に並べておくことで、一つ一つ判定していくのではなくデータ配列1全体で可能性のチェックを行い、データ配列2の1番目以上となったデータ配列1の保持データとデータ配列2の2番目以下となったデータ配列1の保持データの間にある数は全てデータ配列2に含まれる可能性があると判定することができる。従って、一つ一つ判定していくよりも処理が少なくてすむ。   Further, the data array is arranged in ascending order when determining whether the data array 2 contains the retained data of the data array 1 from the first (minimum value of the comparison data) and the second (maximum value of the comparison data) of the data array 2 ( (Or descending order), instead of judging one by one, the entire data array 1 is checked for possibility, and the data array 1 holding data and data that has become the first or higher of the data array 2 It can be determined that there is a possibility that all the numbers between the retained data of the data array 1 that is the second or lower of the array 2 are included in the data array 2. Therefore, less processing is required than making a determination one by one.

さらに、比較していく際に比較対象とするデータ配列2のデータは先頭から取得していくため2分探索法のようにあらかじめ全てのデータを解析する必要がない。例えばデータ配列2の途中でそれ以降のデータを見る必要がなくなった場合にそれ以降のデータを抽出するための無駄な解析を行う必要がない。   Further, since the data of the data array 2 to be compared is acquired from the beginning when compared, it is not necessary to analyze all the data in advance as in the binary search method. For example, when there is no need to see the subsequent data in the middle of the data array 2, there is no need to perform useless analysis for extracting the subsequent data.

また、本実施形態の方法ではデータ配列2のデータは1度次のデータへと比較の対象を移すとそれ以降今まで比較していたデータ配列2のデータは今後比較する必要はなくなるため2分探索法のように保存しておく必要がない。
以上説明したように、本実施形態によれば、比較対象とするデータ配列1のデータ数を抑制することができる。
Further, in the method of this embodiment, when the data array 2 data is transferred to the next data once, the data array 2 data that has been compared so far no longer needs to be compared in the future. There is no need to save like a search method.
As described above, according to the present embodiment, the number of data in the data array 1 to be compared can be suppressed.

実施形態2.
実施形態2では、実施形態1で説明した一致データ検出装置100を、EMMの受信装置に適用する一態様を説明する。EMMの受信装置は、送信装置が各受信装置宛のEMMを複数まとめて送信するEMMセッションを受信する。EMMセッションは、EMMの宛て先を識別するCardID(宛て先データ)を含む。ここでは、EMMセッションは、CardIDが最小値のEMMが一番目に配置され、前記CardIDが最大値のEMMが二番目に配置され、CardIDが大きさに基づく順になるようにその他のEMMが三番目以降に配置されたEMMの配列であることを前提とする。図11は、EMM受信器の構成例を示すブロック図である。EMMの受信装置では放送されたデータは図11のような経路をたどる。
Embodiment 2. FIG.
In the second embodiment, an aspect in which the coincidence data detection device 100 described in the first embodiment is applied to an EMM reception device will be described. The EMM receiving apparatus receives an EMM session in which the transmitting apparatus transmits a plurality of EMMs addressed to each receiving apparatus. The EMM session includes a CardID (destination data) that identifies the destination of the EMM. Here, in the EMM session, the EMM with the smallest CardID is placed first, the EMM with the largest CardID is placed second, and the other EMMs are placed third so that the CardID is in order based on size. It is assumed that this is an EMM arrangement arranged thereafter. FIG. 11 is a block diagram illustrating a configuration example of an EMM receiver. In the EMM receiving apparatus, the broadcast data follows a route as shown in FIG.

図11に示す例では、一致データ検索装置100はEMM解析部604に含まれる。図12にEMM解析部及びEMM解析部が動作する環境の一例を示す。図12では、B−CASカードデータ取得部703、CardID照会プログラム706、CardIDソートプログラム707及び自己CardID情報708がEMM解析部604に含まれる構成となる。図12は図2と同様に、一致データ検索装置及び方法をCardID照会プログラムで実現する場合を示し、プログラムが計算機上で動作する環境例を示している。CardID照会プログラムは、図2に示す一致データ検出プログラムに相当し、同様の機能を有する。CPU701は、記憶媒体709に記憶するプログラム(CardID照会プログラム706、CardIDソートプログラム707)をメモリ702へダウンロードして実行させる。CardID照会プログラムの構成は、図2で示した一致データ検出装置100と同様である。   In the example illustrated in FIG. 11, the matching data search device 100 is included in the EMM analysis unit 604. FIG. 12 shows an example of an environment in which the EMM analysis unit and the EMM analysis unit operate. In FIG. 12, the EMM analysis unit 604 includes a B-CAS card data acquisition unit 703, a CardID inquiry program 706, a CardID sort program 707, and self-CardID information 708. FIG. 12 shows a case where the matching data search apparatus and method are realized by a CardID inquiry program, as in FIG. 2, and shows an example of an environment in which the program operates on a computer. The CardID inquiry program corresponds to the matching data detection program shown in FIG. 2 and has the same function. The CPU 701 downloads the programs (CardID inquiry program 706 and CardID sort program 707) stored in the storage medium 709 to the memory 702 and executes them. The configuration of the CardID inquiry program is the same as that of the coincidence data detection apparatus 100 shown in FIG.

図11、12を用いてEMMセッションを受信するときの受信装置600の動作を説明する。放送されたストリームデータは放送受信部601で受信し、そのデータをフィルタリング部602でフィルタリングし、EMMセクションの取得を行う。取得されたEMMセクションは、EMMセクションバッファ603に出力される。また、EMMセクションはセクションバッファ603からEMM解析部604へ出力される。EMM解析部604では、あらかじめ、B−CASカードデータ取得部703が自己CardIDをB−CASカード605から取得する。CardIDソートプログラム707は、取得した自己CardIDを昇順(降順)にソートし、記憶媒体709の自己CardID情報708の領域に保存する。CardID照会プログラムは、保存していた自己CardIDとEMM解析部604に入力されてきたEMMセクションを解析する。   The operation of receiving apparatus 600 when receiving an EMM session will be described with reference to FIGS. The broadcast stream data is received by the broadcast receiving unit 601, the data is filtered by the filtering unit 602, and the EMM section is acquired. The acquired EMM section is output to the EMM section buffer 603. The EMM section is output from the section buffer 603 to the EMM analysis unit 604. In the EMM analysis unit 604, the B-CAS card data acquisition unit 703 acquires the own CardID from the B-CAS card 605 in advance. The CardID sort program 707 sorts the acquired self CardID in ascending order (descending order) and saves it in the area of the self CardID information 708 of the storage medium 709. The CardID inquiry program analyzes the stored self CardID and the EMM section input to the EMM analysis unit 604.

CardID照会プログラムの構成は、図2で示した一致データ検出装置と同様であり、図2の抽出部110と比較部120が処理を実施する。自己CardIDは、データ配列1の保持データに相当する。また、EMMから抽出した自己CardIDは、データ配列2の比較データに相当する。また、解析の具体的な動作は、実施形態1で説明した一致データ検索装置の動作と同様である。CardID照会プログラムの構成は、図2で示した一致データ検出装置と同様であり、図2の抽出部110と比較部120が処理を実施する。自己CardIDは、データ配列1の保持データに相当する。また、EMMから抽出した自己CardIDは、データ配列2の比較データに相当する。   The configuration of the CardID inquiry program is the same as that of the coincidence data detection apparatus shown in FIG. 2, and the extraction unit 110 and the comparison unit 120 in FIG. The self CardID corresponds to the retained data in the data array 1. The self CardID extracted from the EMM corresponds to the comparison data of the data array 2. The specific operation of the analysis is the same as the operation of the matching data search apparatus described in the first embodiment. The configuration of the CardID inquiry program is the same as that of the coincidence data detection apparatus shown in FIG. 2, and the extraction unit 110 and the comparison unit 120 in FIG. The self CardID corresponds to the retained data in the data array 1. The self CardID extracted from the EMM corresponds to the comparison data of the data array 2.

具体的には、CardID照会プログラムにおいて、抽出部110は、EMMセッションを解析して、CardIDを抽出する。比較部120は、抽出したEMMセクションのEMMに含まれるCardIDと、自己CardIDとを比較する。比較部120は、比較した結果EMMセクション内に自己CardIDと一致するCardIDが含まれていた場合は一致したEMMもしくはEMMセクションをID一致EMMセクション出力バッファ606に出力する。   Specifically, in the CardID inquiry program, the extraction unit 110 analyzes the EMM session and extracts a CardID. The comparison unit 120 compares the CardID included in the EMM of the extracted EMM section with the self CardID. The comparison unit 120 outputs the matching EMM or EMM section to the ID matching EMM section output buffer 606 when the card ID that matches the card ID is included in the EMM section as a result of the comparison.

このように、本発明の好適な実施形態によれば、一致データ検出装置において、次のような機能を実現することができる。(1)比較対象データの範囲のチェックをデータ配列1のデータ全体で行うようにする。(2)データ配列2の3番目以降との比較時に前のデータ配列1の比較対象のデータ未満のデータ配列2のデータとは比較しないようにする。(3)データ配列1のデータが全て対象外になったらそれ以降のデータ配列2の解析は行わないようにする。これにより、比較対象となるデータ数を抑制することにより、処理負荷を抑えること、あるいは、処理時間を短縮することができる。また、2分探索法と比べた場合は無駄なメモリの使用も抑えることができる。   Thus, according to the preferred embodiment of the present invention, the following functions can be realized in the coincidence data detection apparatus. (1) The range of comparison target data is checked for the entire data in the data array 1. (2) When comparing the data array 2 with the third and subsequent data, it is not compared with the data of the data array 2 that is less than the comparison target data of the previous data array 1. (3) If all the data in the data array 1 is excluded, the subsequent analysis of the data array 2 is not performed. Thereby, the processing load can be suppressed or the processing time can be shortened by suppressing the number of data to be compared. Moreover, useless memory can be suppressed as compared with the binary search method.

なお、上記各実施形態ではデータ配列1、データ配列2の一部分は昇順にソートされている場合を前提として説明したが、降順にソートされている場合であっても、同様の処理が可能である。従って、データの値が大きい順または小さい順のいずれかの順番(大きさに基づく順)でソートされていれば、本発明を適用することは可能である。すなわち、比較部120は、抽出部110が出力した比較データと比較し、比較結果に基づいて、比較の対象とならない保持データを除外する。   In each of the above embodiments, the description has been given on the assumption that a part of the data array 1 and the data array 2 is sorted in ascending order. However, the same processing is possible even when the data array 1 and data array 2 are sorted in descending order. . Therefore, the present invention can be applied as long as the data values are sorted in either order of increasing or decreasing order (order based on size). In other words, the comparison unit 120 compares the comparison data output by the extraction unit 110 and excludes retained data that is not a comparison target based on the comparison result.

また、上記各実施形態では、一致データ検出装置は、プログラムによって実現する場合を説明したが、これに限られるわけではなく、ハードウェア、あるいはハードウェアとソフトウェアとの組み合わせなどであってもよい。   In each of the above embodiments, the case where the coincidence data detection device is realized by a program has been described. However, the present invention is not limited to this, and may be hardware or a combination of hardware and software.

さらに、本発明は上記に示す実施形態に限定されるものではない。本発明の範囲において、上記実施形態の各要素を、当業者であれば容易に考えうる内容に変更、追加、変換することが可能である。   Furthermore, the present invention is not limited to the embodiment described above. Within the scope of the present invention, it is possible to change, add, or convert each element of the above-described embodiment to a content that can be easily considered by those skilled in the art.

本発明に係る実施形態の一致データ検出装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the coincidence data detection apparatus of embodiment which concerns on this invention. 図1に示す一致データ検出装置が動作する環境の一例を示す図である。It is a figure which shows an example of the environment where the coincidence data detection apparatus shown in FIG. 1 operates. 実施形態1の一致データ検出装置の動作(全体)の一例を示すフローチャートである。6 is a flowchart illustrating an example of the operation (whole) of the coincidence data detection device according to the first exemplary embodiment. 実施形態1の一致データ検出装置の動作(最小値との比較)の一例を示すフローチャートである。6 is a flowchart illustrating an example of an operation (comparison with a minimum value) of the coincidence data detection device according to the first exemplary embodiment. 実施形態1の一致データ検出装置の動作(最大値との比較)の一例を示すフローチャートである。6 is a flowchart illustrating an example of an operation (comparison with a maximum value) of the coincidence data detection device according to the first exemplary embodiment. 実施形態1の一致データ検出装置の動作(その他の比較データとの比較)の一例を示すフローチャートである。6 is a flowchart illustrating an example of an operation (comparison with other comparison data) of the coincidence data detection device according to the first exemplary embodiment. 実施形態1の検索方法の具体例を示す1番目の図である。4 is a first diagram illustrating a specific example of a search method according to Embodiment 1. FIG. 実施形態1の検索方法の具体例を示す2番目の図である。FIG. 6 is a second diagram illustrating a specific example of the search method according to the first embodiment. 実施形態1の検索方法の具体例を示す3番目の図である。FIG. 10 is a third diagram illustrating a specific example of the search method according to the first embodiment. 実施形態1の検索方法の具体例を示す4番目の図である。FIG. 6 is a fourth diagram illustrating a specific example of the search method according to the first embodiment. EMM受信器の構成例を示すブロック図である。It is a block diagram which shows the structural example of an EMM receiver. EMM解析部及びEMM解析部が動作する環境の一例を示す。An example of the environment where an EMM analysis part and an EMM analysis part operate | move is shown. 従来の検索方法の具体例を示す1番目の図である。It is the 1st figure which shows the specific example of the conventional search method. 従来の検索方法の具体例を示す2番目の図である。It is the 2nd figure which shows the specific example of the conventional search method. 従来の検索方法の具体例を示す3番目の図である。It is a 3rd figure which shows the specific example of the conventional search method. 従来の検索方法の具体例を示す4番目の図である。It is a 4th figure which shows the specific example of the conventional search method. EMMのデータ内容の一例を示す図である。It is a figure which shows an example of the data content of EMM.

符号の説明Explanation of symbols

100 一致データ検出装置
110 抽出部
120 比較部
121 昇順比較手段
122 降順比較手段
502 メモリ
503 データ配列1取得部
508 記憶媒体
600 受信装置
601 放送受信部
602 フィルタリング部
603 セクションバッファ
604 解析部
605 カード
606 セクション出力バッファ
607 マスター鍵
608 ECM復号
609 ワーク鍵
610 デスクランブル
611 視聴判定
612 契約情報
702 メモリ
703 カードデータ取得部
706 CardID照会プログラム
707 CardIDソートプログラム
708 自己CardID情報
709 記憶媒体
100 match data detection device 110 extraction unit 120 comparison unit 121 ascending order comparison unit 122 descending order comparison unit 502 memory 503 data array 1 acquisition unit 508 storage medium 600 reception device 601 broadcast reception unit 602 filtering unit 603 section buffer 604 analysis unit 605 card 606 section Output buffer 607 Master key 608 ECM decryption 609 Work key 610 Descramble 611 Viewing determination 612 Contract information 702 Memory 703 Card data acquisition unit 706 CardID inquiry program 707 CardID sort program 708 Self CardID information 709 Storage medium

Claims (7)

データ配列1及びデータ配列2を入力し、データ配列1のデータと一致するデータ配列2のデータを検出する一致データ検出装置であって、
前記データ配列1は、複数の第1データから構成され、
前記データ配列2は、複数の第2データから構成され、前記複数の第2データの最小値、前記複数の第2データの最大値、及びその他の第2データを含み、
前記データ配列2から比較対象とする第2データを抽出する抽出部と、
前記最小値より小さい第1データと前記最大値よりを大きい第1データを前記データ配列1から除外し、残りの第1データを、前記抽出部が前記その他の第2データから抽出した第2データと比較して一致する第2データを出力する比較部と、を備える一致データ検出装置。
A coincidence data detection device that inputs data array 1 and data array 2 and detects data in data array 2 that coincides with data in data array 1,
The data array 1 is composed of a plurality of first data,
The data array 2 includes a plurality of second data, and includes a minimum value of the plurality of second data, a maximum value of the plurality of second data, and other second data,
An extraction unit for extracting second data to be compared from the data array 2;
The first data smaller than the minimum value and the first data larger than the maximum value are excluded from the data array 1, and the remaining first data is extracted from the other second data by the extraction unit. And a comparison unit that outputs second data that coincides with each other.
前記抽出部は、前記その他の第2データそれぞれを大きさに基づく順に前記比較部へ出力し、
前記比較部は、前記残りの第1データを大きさに基づく順に、前記抽出部が出力した第2データと比較し、比較結果に基づいて、比較対象とならない第1データを前記残りの第1データから除外し、続いて除外後の第1データを、前記比較部が出力する第2データと比較することを、前記除外後の第1データがなくなるまで繰り返すことを特徴とする請求項1記載の一致データ検出装置。
The extraction unit outputs the other second data to the comparison unit in order based on the size,
The comparison unit compares the remaining first data with the second data output by the extraction unit in the order based on the size, and based on the comparison result, the first data that is not a comparison target is compared with the remaining first data. 2. The method of removing the data from the data and subsequently comparing the first data after the exclusion with the second data output by the comparison unit until the first data after the exclusion is eliminated. Match data detection device.
前記データ配列1は、前記複数の第1データが昇順に配置された配列であり、
前記データ配列2は、配列の一番目に前記最小値、配列の二番目に前記最大値、配列の三番目以降にその他の第2データが昇順に配置された配列であり、
前記抽出部は、前記その他の第2データそれぞれを昇順に前記比較部へ出力し、
前記比較部は、前記残りの第1データを昇順に、前記抽出部が出力した第2データと比較し、前記第2データより小さい第1データを前記残りの第1データから除外し、続いて除外後の第1データを昇順に、前記比較部が出力する第2データと比較することを、前記除外後の第1データがなくなるまで繰り返すことを特徴とする請求項2記載の一致データ検出装置。
The data array 1 is an array in which the plurality of first data are arranged in ascending order,
The data array 2 is an array in which the minimum value is first in the array, the maximum value is second in the array, and other second data is arranged in ascending order after the third in the array,
The extraction unit outputs each of the other second data to the comparison unit in ascending order,
The comparison unit compares the remaining first data in ascending order with the second data output by the extraction unit, excludes the first data smaller than the second data from the remaining first data, and subsequently 3. The coincidence data detection device according to claim 2, wherein the first data after exclusion is compared with the second data output by the comparison unit in ascending order until the first data after exclusion disappears. .
前記データ配列2は、送信装置が各受信装置宛のEMM(Entitlement Management Messages:契約情報)を複数まとめて送信するEMMセッションであり、
前記EMMセッションは、EMMの宛て先を識別するCardIDを含み、前記CardIDが最小値のEMMが一番目に配置され、前記CardIDが最大値のEMMが二番目に配置され、CardIDが昇順になるようにその他のEMMが三番目以降に配置されたEMMの配列であり、
前記データ配列1は、自己を宛て先とするCardIDが第1データとして昇順に配置された配列であり、
前記抽出部は、前記EMMからCardIDを抽出して前記比較部へ出力し、
前記比較部は、前記データ配列1と、前記抽出部が出力したCardIDとを比較し、一致したCardIDを含むEMMを出力することを特徴とする請求項1乃至3のいずれかに記載の一致データ検出装置。
The data array 2 is an EMM session in which a transmitting device transmits a plurality of EMMs (Entitlement Management Messages: contract information) addressed to each receiving device.
The EMM session includes a CardID that identifies a destination of the EMM, the EMM having the minimum CardID is arranged first, the EMM having the maximum CardID is arranged second, and the CardID is in ascending order. The other EMMs are arranged in the third and subsequent EMMs,
The data array 1 is an array in which CardIDs addressed to the self are arranged in ascending order as first data,
The extraction unit extracts CardID from the EMM and outputs the CardID to the comparison unit,
4. The coincidence data according to claim 1, wherein the comparison unit compares the data array 1 with a CardID output from the extraction unit, and outputs an EMM including a coincident CardID. 5. Detection device.
送信装置が各受信装置宛のEMMを複数まとめて送信するEMMセッションを受信する受信装置であって、
前記EMMセッションは、EMMの宛て先を識別するCardIDを含み、前記CardIDが最小値のEMMが一番目に配置され、前記CardIDが最大値のEMMが二番目に配置され、CardIDが大きさに基づく順になるようにその他のEMMが三番目以降に配置されたEMMの配列であり、
前記EMMセッションを受信する受信部と、
自己宛のEMMであることを示す複数の保持データを配置したデータ配列を保持する保持データ保持部と、
前記受信したEMMの配列からCardIDを抽出する抽出部と、
前記CardIDの最小値より小さい保持データと前記CardIDの最大値よりを大きい保持データを前記データ配列から除外し、残りのデータ配列を前記抽出部が出力したCardIDと比較して一致するCardIDを含むEMMを出力する比較部と、を備えることを特徴とする受信装置。
A receiving device that receives an EMM session in which a transmitting device collectively transmits a plurality of EMMs addressed to each receiving device,
The EMM session includes a CardID that identifies a destination of the EMM, the EMM having the smallest CardID is placed first, the EMM having the largest CardID is placed second, and the CardID is based on size The other EMMs are arranged in the third and subsequent order so that they are in order,
A receiving unit for receiving the EMM session;
A holding data holding unit that holds a data array in which a plurality of holding data indicating that the EMM is addressed to itself is arranged;
An extractor for extracting a CardID from the received EMM array;
The EMM including the CardID that matches the data that is smaller than the minimum value of the CardID and the data that is larger than the maximum value of the CardID are excluded from the data array, and the remaining data array is compared with the CardID output by the extraction unit. And a comparison unit that outputs.
データ配列1及びデータ配列2を入力し、データ配列1のデータと一致するデータ配列2のデータを検出する一致データ検出方法であって、
前記データ配列1は、複数の第1データから構成され、
前記データ配列2は、複数の第2データから構成され、前記複数の第2データの最小値、前記複数の第2データの最大値、及びその他の第2データを含み、
前記データ配列2から比較対象とする第2データを抽出し、
前記最小値より小さい第1データと前記最大値よりを大きい第1データを前記データ配列1から除外し、
残りの第1データを前記抽出部が前記その他の第2データから抽出した第2データと比較して一致する第2データを出力する一致データ検出方法。
A matching data detection method for inputting data array 1 and data array 2 and detecting data in data array 2 that matches data in data array 1,
The data array 1 is composed of a plurality of first data,
The data array 2 includes a plurality of second data, and includes a minimum value of the plurality of second data, a maximum value of the plurality of second data, and other second data,
Extracting second data to be compared from the data array 2;
Excluding first data smaller than the minimum value and first data larger than the maximum value from the data array 1;
A matching data detection method for outputting second data that matches the second data extracted from the other second data by the extraction unit by comparing the remaining first data.
データ配列1及びデータ配列2を入力し、データ配列1のデータと一致するデータ配列2のデータを検出する手順を計算機で実行させるための一致データ検出プログラムであって、
前記データ配列1は、複数の第1データから構成され、
前記データ配列2は、複数の第2データから構成され、前記複数の第2データの最小値、前記複数の第2データの最大値、及びその他の第2データを含み、
前記データ配列2から比較対象とする第2データを抽出する手順と、
前記最小値より小さい第1データと前記最大値よりを大きい第1データを前記データ配列1から除外する手順と、
残りの第1データを前記抽出部が前記その他の第2データから抽出した第2データと比較して一致する第2データを出力する手順と、を計算機上で実行させるための一致データ検出プログラム。
A coincidence data detection program for inputting a data array 1 and a data array 2 and causing a computer to execute a procedure for detecting data in the data array 2 that coincides with the data in the data array 1,
The data array 1 is composed of a plurality of first data,
The data array 2 includes a plurality of second data, and includes a minimum value of the plurality of second data, a maximum value of the plurality of second data, and other second data,
A procedure for extracting second data to be compared from the data array 2;
Removing the first data smaller than the minimum value and the first data larger than the maximum value from the data array 1;
A matching data detection program for causing a computer to execute the procedure of comparing the remaining first data with the second data extracted by the extraction unit from the other second data and outputting matching second data.
JP2007029290A 2007-02-08 2007-02-08 Coincident data detector, receiving device, coincident data detecting method, and coincident data detecting program Pending JP2008197719A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007029290A JP2008197719A (en) 2007-02-08 2007-02-08 Coincident data detector, receiving device, coincident data detecting method, and coincident data detecting program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007029290A JP2008197719A (en) 2007-02-08 2007-02-08 Coincident data detector, receiving device, coincident data detecting method, and coincident data detecting program

Publications (1)

Publication Number Publication Date
JP2008197719A true JP2008197719A (en) 2008-08-28

Family

ID=39756633

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007029290A Pending JP2008197719A (en) 2007-02-08 2007-02-08 Coincident data detector, receiving device, coincident data detecting method, and coincident data detecting program

Country Status (1)

Country Link
JP (1) JP2008197719A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0328926A (en) * 1989-06-26 1991-02-07 Matsushita Electric Ind Co Ltd Data processor
JP2001016174A (en) * 1999-04-27 2001-01-19 Matsushita Electric Ind Co Ltd Emm broadcasting system, broadcasting device therefor and receiving device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0328926A (en) * 1989-06-26 1991-02-07 Matsushita Electric Ind Co Ltd Data processor
JP2001016174A (en) * 1999-04-27 2001-01-19 Matsushita Electric Ind Co Ltd Emm broadcasting system, broadcasting device therefor and receiving device

Similar Documents

Publication Publication Date Title
KR101620931B1 (en) Similar malicious code retrieval apparatus and method based on malicious code feature information
US9176043B2 (en) Cell image analysis apparatus, cell image analysis method, and program
US20230229699A1 (en) Video retrieval method and apparatus, device and storage medium
KR101976992B1 (en) Automative anti-analysis techniques recognizing scheme based on signature extration
US8375371B2 (en) Importance-based call graph construction
JP2008197719A (en) Coincident data detector, receiving device, coincident data detecting method, and coincident data detecting program
CN101930593B (en) Single object image extracting system and method
KR100261106B1 (en) Video image search method and apparatus
JP2007041709A (en) Document processing system, control method of document processing system, document processing device, computer program and computer readable storage medium
JP2011100459A (en) Learning type image classification device and method, and recording medium imaging device that stores processing program for the same
US8306400B2 (en) Information processing apparatus, information processing method and computer program
JP2009294704A (en) License number recognition device and license number recognition method
CN114547628A (en) Vulnerability detection method and device
CN110032933B (en) Image data acquisition method and device, terminal and storage medium
US20100008542A1 (en) Object detection method and apparatus
JP6131765B2 (en) Information processing apparatus and information processing program
CN113204706A (en) Data screening and extracting method and system based on MapReduce
CN112698883A (en) Configuration data processing method, device, terminal and storage medium
US8780094B2 (en) Image display device, image display system, and image display method
CN101595464A (en) File reception terminal
JP2006259997A (en) Document management system, document management method, document management program, and recording medium
US20230033089A1 (en) Substrate inspection method and device
US7149758B2 (en) Data processing apparatus, data processing method, and data processing program
CN112269804B (en) Fuzzy retrieval method and system for memory data
JP2003263353A (en) Fault occurrence cause analytical device, fault occurrence cause analytical method, and fault occurrence cause analytical program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100114

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120117

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120124

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20120522