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 PDFInfo
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本発明は、二つのデータ配列において、データ配列1に含まれるデータがもう一つのデータ配列2に含まれているかを検出する装置及び方法に関する。
The present invention relates to an apparatus and a method for detecting whether data included in a
従来から、二つのデータ配列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
図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
For this reason, it is not necessary to compare with the data of the
また、図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
このとき全てのデータを解析すると解析に時間がかかってしまい、先頭から解析しながら比較すると、データ配列1に含まれるデータの最大値より比較しているデータ配列2のデータが大きくなった場合に比較、解析を取りやめることができる。このため、2分検索法などの検索法を使用するとかえって余計に処理時間、処理負荷がかかってしまう恐れがある。また一度比較したいデータ(EMMの場合だとCardID)を抜き出し保存するメモリが必要である。
このように、データ配列1に含まれるデータがデータ配列2に含まれているデータと一致するかの判定を行う場合、データ配列1に含まれるデータ数が多くなるほど、比較を行う回数は多くなってしまうという問題があった。
Thus, when determining whether the data included in the
本発明に係る一致データ検出装置の一態様は、データ配列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
本発明に係る受信装置の一態様は、送信装置が各受信装置宛の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
本発明に係る一致データ検出プログラムの一態様は、データ配列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
本発明によれば、データ配列1に含まれるデータがデータ配列2に含まれているデータと一致するかの判定を行う場合、データ配列1に含まれるデータのうち判定に必要なデータの範囲をデータ配列2のデータに基づいて判断する。これにより、データ比較を行うデータ数を抑制することができる。
According to the present invention, when it is determined whether the data included in the
以下、本発明の実施形態について、図面を参照しながら説明する。説明の明確化のため、以下の記載及び図面は、適宜、省略、及び簡略化がなされている。各図面において同一の構成または機能を有する構成要素および相当部分には、同一の符号を付し、その説明は省略する。 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とを備える。
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
データ配列1は、複数の保持データ(複数の第1データ)から構成される。ここでは、データ配列1は、複数の保持データが昇順に配置されていることを前提とする。
データ配列2は、複数の比較データ(複数の第2データ)から構成され、複数の比較データの最小値、前記複数の比較データの最大値、及びその他の比較データを配置する配列である。ここでは、データ配列2は、配列の一番目に最小値、配列の二番目に最大値、配列の三番目以降にその他の比較データが昇順に配置された配列であることを前提とする。
The
The
抽出部110は、データ配列2から比較対象となる比較データを抽出する。
比較部120は、データ配列1とデータ配列2とのデータを比較し、一致するデータを出力する。比較部120は、昇順比較手段121と降順比較手段122とを含む。詳細な動作は後述する。
The
The
図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
ここで、本実施形態では、データ配列2は、配列の一番目に最小値、配列の二番目に最大値、配列の三番目以降にその他の比較データが昇順に配置された配列であることを前提としている。しかし、データの構成が不明な場合は、予めデータ配列2の構成を解析する必要がある。例えば、EMMのように、比較したいデータ位置が特定されていない場合はデータ配列2の解析が必要となる。解析に必要なプログラム(装置)は、記憶媒体508に保持し、CPU501がメモリ502にダウンロードして、データ配列2を一致データ検出装置100へ入力するときに解析する。また、データ配列1が昇順(降順)にソートされていない場合はあらかじめソートするためのソート用プログラム(例えば、保持データソート部)も必要となる。
Here, in this embodiment, the
続いて、一致データ検索装置の動作について説明する。図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
まず、全体の流れを説明する。一致データ検索装置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
比較処理が継続する場合(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
続いて、各比較処理の詳細な動作を説明する。まず、データ配列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
比較した結果、一致しない場合(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
次に、データ配列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
比較した結果、一致しない場合(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
次に、データ配列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
比較した結果、一致しない場合(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
以上の動作を具体的な値を用いて説明すると、まず図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
このとき比較部120は、データ配列2の値が50を超えるまではデータ配列2のデータの抽出を行い比較していき、51となった時点でこれ以降50はないので対象外とし(S46)、次のデータ配列1のデータ(60)へと比較対象を移し(S47,42)、データ配列2の51からまた比較を行っていく(図9)(図6のS45、49、41、42、43と繰り返す)。
At this time, the
これを繰り返し、図10のように一致した場合、比較部120はデータを出力し、どれにも一致せずに全てのデータ配列1が対象外になるか、データ配列2が最後のデータまで行った場合は一致するデータなしとして、二つの配列のデータの比較処理を終了する。
When this is repeated and the data match as shown in FIG. 10, the
上記説明したように、従来の技術ではデータ配列1を個別に考えて比較を行っていたため不要な部分の比較が発生していたが、本実施形態ではデータ配列1を昇順に比較していき、前に比較対象としていたデータ未満のデータ配列2のデータとは比較を行わないことで、不要な比較を行わないようになっている。
As described above, in the conventional technique, since comparison was performed considering the
また、データ配列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
さらに、比較していく際に比較対象とするデータ配列2のデータは先頭から取得していくため2分探索法のようにあらかじめ全てのデータを解析する必要がない。例えばデータ配列2の途中でそれ以降のデータを見る必要がなくなった場合にそれ以降のデータを抽出するための無駄な解析を行う必要がない。
Further, since the data of the
また、本実施形態の方法ではデータ配列2のデータは1度次のデータへと比較の対象を移すとそれ以降今まで比較していたデータ配列2のデータは今後比較する必要はなくなるため2分探索法のように保存しておく必要がない。
以上説明したように、本実施形態によれば、比較対象とするデータ配列1のデータ数を抑制することができる。
Further, in the method of this embodiment, when the
As described above, according to the present embodiment, the number of data in the
実施形態2.
実施形態2では、実施形態1で説明した一致データ検出装置100を、EMMの受信装置に適用する一態様を説明する。EMMの受信装置は、送信装置が各受信装置宛のEMMを複数まとめて送信するEMMセッションを受信する。EMMセッションは、EMMの宛て先を識別するCardID(宛て先データ)を含む。ここでは、EMMセッションは、CardIDが最小値のEMMが一番目に配置され、前記CardIDが最大値のEMMが二番目に配置され、CardIDが大きさに基づく順になるようにその他のEMMが三番目以降に配置されたEMMの配列であることを前提とする。図11は、EMM受信器の構成例を示すブロック図である。EMMの受信装置では放送されたデータは図11のような経路をたどる。
In the second embodiment, an aspect in which the coincidence
図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
図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
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
具体的には、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
このように、本発明の好適な実施形態によれば、一致データ検出装置において、次のような機能を実現することができる。(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
なお、上記各実施形態ではデータ配列1、データ配列2の一部分は昇順にソートされている場合を前提として説明したが、降順にソートされている場合であっても、同様の処理が可能である。従って、データの値が大きい順または小さい順のいずれかの順番(大きさに基づく順)でソートされていれば、本発明を適用することは可能である。すなわち、比較部120は、抽出部110が出力した比較データと比較し、比較結果に基づいて、比較の対象とならない保持データを除外する。
In each of the above embodiments, the description has been given on the assumption that a part of the
また、上記各実施形態では、一致データ検出装置は、プログラムによって実現する場合を説明したが、これに限られるわけではなく、ハードウェア、あるいはハードウェアとソフトウェアとの組み合わせなどであってもよい。 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.
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
Claims (7)
前記データ配列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.
前記比較部は、前記残りの第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.
前記データ配列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. .
前記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の宛て先を識別する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は、複数の第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は、複数の第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.
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)
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 |
-
2007
- 2007-02-08 JP JP2007029290A patent/JP2008197719A/en active Pending
Patent Citations (2)
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 |