JP2014013519A - Data specification method - Google Patents

Data specification method Download PDF

Info

Publication number
JP2014013519A
JP2014013519A JP2012150991A JP2012150991A JP2014013519A JP 2014013519 A JP2014013519 A JP 2014013519A JP 2012150991 A JP2012150991 A JP 2012150991A JP 2012150991 A JP2012150991 A JP 2012150991A JP 2014013519 A JP2014013519 A JP 2014013519A
Authority
JP
Japan
Prior art keywords
data
combination
winning
numbers
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2012150991A
Other languages
Japanese (ja)
Other versions
JP6078245B2 (en
Inventor
Masato Ishinabe
雅人 石鍋
Hideki Ishiai
秀喜 石合
Makoto Takada
真 高田
Susumu Kubo
奨 久保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2012150991A priority Critical patent/JP6078245B2/en
Publication of JP2014013519A publication Critical patent/JP2014013519A/en
Application granted granted Critical
Publication of JP6078245B2 publication Critical patent/JP6078245B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To suppress prolonged batch centralized processing time posterior to determination in data specification (search) such as the lottery(winning) number determination of lottery.SOLUTION: Processing of generating and totaling all combined numbers derived from application numbers until lottery numbers are determined and processing of storing combined numbers as the candidates of winning numbers of each rank in a table different for each rank makes it possible to solve the above mentioned problem. Also, the combination of unit data as the candidates of each portion corresponding data is stored in a table different for each hierarchy of each portion corresponding data such that the processing can be quickened. Furthermore, those processing may be used for the lottery number specification of lottery.

Description

本発明は、大量のデータから、所定の条件に合致するデータを抽出する技術に関する。その中でも特に、当選口数算出システムにおける当選口数の算出を高速化する技術に関する。   The present invention relates to a technique for extracting data that matches a predetermined condition from a large amount of data. In particular, the present invention relates to a technique for speeding up the calculation of the winning number in the winning number calculating system.

現在、クラウドコンピューティングの普及などで大量のデータを扱うことが一般になされている。しかし、データが大量になれば、その中から所望のデータ抽出(所定条件を満たすデータの数の算出)することが困難になってくる。例えば、宝くじのようなサービスでは、参加者が多数であり、それぞれが複数の番号を指定してる場合、扱うデータ量が大量となる。そして、当選番号が決まった場合、その口数に応じて賞金総額を把握する必要があるが、扱うデータが大量な場合、その口数算出に時間が掛かってしまう。   Currently, a large amount of data is generally handled due to the spread of cloud computing. However, when the amount of data becomes large, it becomes difficult to extract desired data (calculation of the number of data satisfying a predetermined condition) from the data. For example, in a service such as a lottery ticket, if there are a large number of participants and each designates a plurality of numbers, the amount of data handled becomes large. When the winning number is determined, it is necessary to grasp the total prize amount according to the number of units. However, when a large amount of data is handled, it takes time to calculate the number of units.

このような大量データを対象とするデータ抽における問題を解決するために、例えば、特許文献1が提案されている。特許文献1では、大量のファイルを分類して管理することで、検索の効率化を図ることが開示されている。   For example, Patent Document 1 has been proposed in order to solve such a problem in data extraction for a large amount of data. Japanese Patent Application Laid-Open No. 2004-151858 discloses that search efficiency is improved by classifying and managing a large number of files.

また、本発明の一適用例である宝くじでの情報処理については、支払い処理の効率化を図るための技術が特許文献2に記載されている。   In addition, for information processing in a lottery that is an application example of the present invention, Patent Document 2 describes a technique for improving the efficiency of payment processing.

購入者は予め用意された1〜60の60個の数字から、任意の9個の数字を選択する。このとき、主催者から発表される抽選番号が16個の数字の組合せ{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}であれば、1等となる数字の組は、{1,2,3,4,5,6,7,8,9}や{2,3,4,5,6,7,8,9,10}、などとなり、1等だけでも複数通りの組合せがある。以下、{1,2,3,4,5,6,7,8,17}や{2,3,4,5,6,7,8,9,17}など、9個の選んだ数字の組合せのうち、8個の数字が抽選番号と一致するときに2等となる。   The purchaser selects any nine numbers from 60 numbers from 1 to 60 prepared in advance. At this time, the lottery number announced by the organizer is a combination of 16 numbers {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }, The set of numbers such as 1 is {1, 2, 3, 4, 5, 6, 7, 8, 9} or {2, 3, 4, 5, 6, 7, 8, 9 , 10}, etc., and there are a plurality of combinations even if only 1 is. Hereafter, nine selected numbers such as {1, 2, 3, 4, 5, 6, 7, 8, 17} and {2, 3, 4, 5, 6, 7, 8, 9, 17} It becomes 2 etc. when eight numbers correspond to a lottery number among combinations.

特開2003−167767号公報JP 2003-167767 A 特開2006−107333号公報JP 2006-107333 A

しかしながら、特許文献1では、検索に用いる属性情報とファイルを予め対応付けておくの事前処理が必要になってくる。ここで、宝くじにおいては、抽選番号確定後に全申込データの中から当選結果口数を算出することが要望されている。これに伴い、購入等から当選口数を特定するためのデータ抽出については、事前処理をしている特許文献1では現実的でないとの問題がある。つまり、特許文献1では、データ収集からデータの抽出まで時間が短い場合対応が困難との課題がある。また、扱うデータ(申込データ)の数が増大した場合、一括集中処理の長時間化が懸念されている。   However, in Patent Document 1, it is necessary to perform pre-processing for associating attribute information used for search with a file in advance. Here, in the lottery, it is desired to calculate the winning result number from all application data after the lottery number is confirmed. Along with this, there is a problem that data extraction for specifying the number of winning units from purchase or the like is not realistic in Patent Document 1 in which preprocessing is performed. In other words, Patent Document 1 has a problem that it is difficult to cope with a short time from data collection to data extraction. Further, when the number of data (application data) to be handled increases, there is a concern that the collective centralized processing may take a long time.

また、特許文献2では、提示された宝くじの券の当選の有無を判断するものであり、大量のデータから特定のものを抽出(当選結果口数の算出)については考慮されてない。   Patent Document 2 determines whether or not the presented lottery ticket has been won, and does not take into account the extraction of a specific item from a large amount of data (calculation of the number of winning results).

本発明では、大量のデータから特定のデータを抽出する技術(例えば、抽選結果発表後の短時間で算出)することを目的とする。   An object of the present invention is to provide a technique for extracting specific data from a large amount of data (for example, calculation in a short time after announcement of a lottery result).

この目的を達成するために、本発明では、以下の構成を設けた。
予め、単位データの組合せからなる複数の対象データを格納しておき、
単位データの組合せであって、対象データを構成する単位データ数より多い単位データ数を選択して該当データを生成し、
生成された該当データを構成する単位データの組合せで構成され、対象データを構成する単位データ数より少ない単位データ数で構成される複数の部分該当データを生成し、
複数の部分該当データを満たす対象データを特定し、特定された対象データ数の総数を算出し、
特定された対象データのうち、各部分該当データでの重複数を算出して、対象データ数の総数から減算することで、部分該当データに合致する対象データ数を特定するものである。
In order to achieve this object, the present invention has the following configuration.
Store a plurality of target data consisting of combinations of unit data in advance,
Select a unit data number that is a combination of unit data and is larger than the number of unit data constituting the target data, and generate the corresponding data.
Generate a plurality of partial corresponding data consisting of a combination of unit data constituting the generated corresponding data and having a smaller number of unit data than the number of unit data constituting the target data,
Identify target data that satisfies multiple partial corresponding data, calculate the total number of identified target data,
Among the identified target data, the overlap number in each partial corresponding data is calculated and subtracted from the total number of target data to identify the number of target data that matches the partial corresponding data.

ここで、複数の部分該当データとは、階層構造を有し、それぞれ異なる数の単位データで構成され、下位の部分該当データを構成する単位データは上位の部分該当データを構成する単位データに含まれるものである。また、単位データとは、一桁の数字が含まれる。   Here, the plurality of partial corresponding data have a hierarchical structure and are configured by different numbers of unit data, and the unit data constituting the lower partial corresponding data is included in the unit data constituting the upper partial corresponding data. It is what The unit data includes a single digit number.

さらに、本発明では、宝くじのような当選番号の特定に適用可能なものである。つまり、数字選択式の宝くじにおいて、該当データとして10桁の数字を特定し、そのうち数桁(上位の等ほど桁数が多い)が一致した場合当選とするものである。この場合、対象データは購入者の選択した数字(特定の桁の)であり、複数の部分該当データが各等の当選番号を示すものである。   Furthermore, the present invention is applicable to the identification of a winning number such as a lottery ticket. In other words, in a number selection type lottery, a 10-digit number is specified as the corresponding data, and if several digits (the higher the number of digits, etc.) match, the winning is made. In this case, the target data is a number (in a specific digit) selected by the purchaser, and a plurality of partial corresponding data indicate the winning numbers of each.

この場合、まず、組合せ数字が存在するか確認し、同一の組合せデータが存在するか確認し、申込数字から派生したそれぞれの組合せ数字を抽選番号が確定される前までに生成し、集計する。   In this case, first, it is confirmed whether there is a combination number, whether there is the same combination data, each combination number derived from the application number is generated and counted before the lottery number is confirmed.

また、本発明では、(宝くじ以外に適用する場合も含め)、各部分該当データの候補となる単位データの組合せを、各部分該当データの階層毎に異なるテーブルに格納して、処理を高速化することもその一態様である。   Further, in the present invention (including the case where it is applied to other than lottery), the combination of unit data as candidates for each partial corresponding data is stored in a different table for each hierarchical level of each partial corresponding data, thereby speeding up the processing. It is also one mode.

本発明によれば、より効率的に、所定の条件に合致する情報の特定が可能になる。   According to the present invention, it is possible to more efficiently identify information that matches a predetermined condition.

本発明の実施の形態のシステム構成概要図である。It is a system configuration outline figure of an embodiment of the invention. 申込数字から派生した組合せ数字を生成するフローチャートである。It is a flowchart which produces | generates the combination number derived | led-out from the application number. 当選結果を算出するフローチャートである。It is a flowchart which calculates a winning result. 組合せデータを組合せテーブルに格納するための詳細フローチャートである。It is a detailed flowchart for storing combination data in a combination table. 申込データを格納する申込テーブルの例である。It is an example of the application table which stores application data. 申込データから派生した1等候補の組合せデータを格納する組合せ(1等)テーブルの例である。It is an example of a combination (first etc.) table for storing first candidate combination data derived from application data. 申込データから派生した2等候補の組合せデータを格納する組合せ(2等)テーブルの例である。It is an example of a combination (second etc.) table storing combination data of second choice candidates derived from application data. 申込データから派生した3等候補の組合せデータを格納する組合せ(3等)テーブルの例である。It is an example of a combination (3 etc.) table storing combination data of 3rd candidate candidates derived from application data. 申込テーブルと各等数の組合せ(n等)テーブルのデータ関連図の例である。It is an example of the data related figure of an application table and the combination (n etc.) table of each equal number. 当選結果データを格納する当選結果テーブルの例である。It is an example of a winning result table storing winning result data.

以下に、本発明を実施するための形態を図面を用いて説明する。
図1は、本発明における実施の形態を示す全体システム構成概要図である。100は申込受付装置、200はAPサーバ、300はデータ格納サーバであり、各装置はネットワークを介して接続されている。また、データ格納サーバ300にはデータを格納するためのテーブルがあり、310は申込テーブル、320は組合せ(n等)テーブル、330は当選結果テーブルである。申込受付装置100は、各抽選に参加するために購入された申込数字を窓口担当者が利用する装置であり、この装置から申込数字と申込口数(申込データ)をAPサーバ200に送信する。APサーバ200は、各抽選の申込数字を分散配置されたデータ格納サーバ300へ申込データを割り振り、抽選結果を申込受付装置100へ送信する。データ格納サーバ300は、APサーバ200より受信した申込データを申込テーブル310、申込データより生成した組合せ数字と組合せ口数(組合せデータ)を組合せ(n等)テーブル320、等数と組合せ(n等)テーブル320より生成した当選口数(当選結果データ)を当選結果テーブル330にそれぞれ格納し、抽選結果をAPサーバ200へ送信する。
EMBODIMENT OF THE INVENTION Below, the form for implementing this invention is demonstrated using drawing.
FIG. 1 is an overall system configuration schematic diagram showing an embodiment of the present invention. Reference numeral 100 is an application receiving apparatus, 200 is an AP server, and 300 is a data storage server, and each apparatus is connected via a network. The data storage server 300 has a table for storing data, 310 is an application table, 320 is a combination (n etc.) table, and 330 is a winning result table. The application accepting apparatus 100 is an apparatus in which the person in charge of the application uses the application numbers purchased for participating in each lottery, and transmits the application numbers and the number of applications (application data) from this apparatus to the AP server 200. The AP server 200 allocates application data to the data storage server 300 in which application numbers for each lottery are distributed and transmits the lottery results to the application reception apparatus 100. The data storage server 300 applies the application data received from the AP server 200 to the application table 310, the combination number generated from the application data and the combination number (combination data) to the combination (n etc.) table 320, the equal number and the combination (n etc.) The winning number (winning result data) generated from the table 320 is stored in the winning result table 330, and the lottery result is transmitted to the AP server 200.

図2は、申込数字の組合せ数字を生成するフローチャートである。以下、ステップ毎にその処理内容を説明する。
410:申込受付装置100から入力された申込データを契機に、各申込データを申込テーブル310へ格納する。
FIG. 2 is a flowchart for generating a combination number of application numbers. Hereinafter, the processing contents will be described for each step.
410: Each application data is stored in the application table 310 in response to the application data input from the application reception apparatus 100.

420:申込テーブル310に申込データが格納されたことを契機に、申込数字の組合せ数字を生成する。その際、上位等数から順(1等→2等→3等→…の順)に組合せ数字を生成するが、下位等数から順に生成することも可能である。処理は、最下位等数の組合せ数字を生成するまで繰り返す。   420: When the application data is stored in the application table 310, a combination number of application numbers is generated. At this time, the combination numbers are generated in order from the higher order equality (1st order → 2nd order → 3rd order →...), But it is also possible to generate the combination numbers in order from the lower order equality. The process is repeated until the lowest equal number combination number is generated.

430:生成した組合せデータを等数毎の組合せ(n等)テーブル320へ格納する。このとき、等数毎の組合せ(n等)テーブル320へ組合せデータを格納するため、等数毎に並行して処理することが可能である。処理は、申込データに派生するすべての組合せデータを格納するまで繰り返し、申込データの投入が終わるまで、410→420→430の順に処理を繰り返す。   430: Store the generated combination data in the combination (n etc.) table 320 for each equal number. At this time, since combination data is stored in the combination (n etc.) table 320 for each equal number, it is possible to process in parallel for each equal number. The processing is repeated until all the combination data derived from the application data is stored, and the processing is repeated in the order of 410 → 420 → 430 until the application data is input.

図3は、当選結果を算出するフローチャートである。以下、その内容をステップ毎に説明する。
440:抽選数字の確定を契機に、抽選数字から派生する当選数字を生成する。このとき、上位等数から順に当選数字を生成するが、下位等数から順に生成することも可能である。処理は、すべての当選数字を生成するまで繰り返す。
FIG. 3 is a flowchart for calculating the winning result. Hereinafter, the contents will be described step by step.
440: When the lottery number is confirmed, a winning number derived from the lottery number is generated. At this time, the winning numbers are generated in order from the higher equality, but may be generated in order from the lower equality. The process repeats until all winning numbers are generated.

450:各当選数字の生成が完了したことを契機に、当選数字から各等の組合せ(n等)テーブルへ該当の当選数字を検索し、該当の当選数字が存在した場合にはその数字の口数を加算する。組合せ(n等)テーブル320に該当の組合せ数字が存在しない場合、何もせずに次の当選数字の処理をする。このとき、等数毎の当選数字から組合せ(n等)テーブル320を検索するため、等数毎に並行して処理することが可能である。すべての当選数字の検索が完了次第、各等数の当選口数の総和を算出する。各等数の当選口数の総和は、等数毎に並行して処理することが可能である。処理は、すべての等数の総和を算出するまで繰り返す。   450: When the generation of each winning number is completed, the winning number is searched from the winning number to each combination (n, etc.) table, and if the corresponding winning number exists, the number of the number Is added. If the corresponding combination number does not exist in the combination (n etc.) table 320, the next winning number is processed without doing anything. At this time, since the combination (n etc.) table 320 is searched from the winning numbers for every equal number, it is possible to process in parallel for every equal number. As soon as all the winning numbers have been searched, the sum of the number of winning units for each equal number is calculated. The total number of winning units of each equal number can be processed in parallel for each equal number. The process is repeated until the sum of all equal numbers is calculated.

460:各等数の当選口数の総和の算出が完了したことを契機に、各等の当選結果口数を算出する。このとき、各等数の当選結果口数は、上位等数の当選結果口数を減算をするため、上位等数から順に当選口数の総和から重複分の口数を減算する。例えば1等は、上位等数と重複する当選口数が存在しないため、1等の当選口数の総和が当選結果口数となる。2等は、2等の当選口数の総和−nC(n-1)×1等の当選結果口数が当選口数となり、以下、3等は、3等の当選口数の総和−(nC(n-2)×1等の当選結果口数+(n-1)C(n-2)×2等の当選結果口数)が当選口数となり、4等は、4等の当選口数の総和−(nC(n-3)×1等の当選結果口数+(n-1)C(n-3)×2等の当選結果口数+(n-2)C(n-3)×3等の当選結果口数の総和)が当選口数となり、5等は、5等の当選口数の総和−(nC(n-4)×1等の当選結果口数+(n-1)C(n-4)×2等の当選結果口数+(n-2)C(n-4)×3等の当選結果口数+(n-3)C(n-4)×4等の当選結果口数)が当選口数となる。処理は、最下位等数の当選結果口数を算出するまで繰り返す。   460: When the calculation of the sum of the winning numbers of each equal number is completed, the winning result number of each etc. is calculated. At this time, the winning number of each equal number is subtracted from the total number of winning numbers in order from the higher number in order to subtract the winning result number of the upper equal number. For example, for 1 etc., there is no number of winning units that overlaps with the upper order number, so the sum of the number of winning units such as 1 is the winning result number. 2nd prize is the total number of winning prizes of 2nd class-nC (n-1) x 1 winning prize number is 1st prize. ) × 1 etc. Winning Result Units + (n-1) C (n-2) × 2 etc. Winning Result Units) becomes the Winning Units, 4th is the sum of 4th etc. Winning Units-(nC (n- 3) × 1 etc. winning results number + (n-1) C (n-3) × 2 winning results number + (n-2) C (n-3) × 3 etc. total winning results number) Is the number of winning units, 5th is the total number of winning units of 5th-(nC (n-4) x 1 winning unit number + (n-1) C (n-4) x 2 winning unit number + (N-2) C (n-4) × 3 etc. winning result number + (n-3) C (n-4) × 4 etc. winning result number) is the winning number. The process is repeated until the winning result number of the lowest equal number is calculated.

470:当選結果口数の算出が完了したことを契機に、当選結果口数を当選結果テーブル330へ格納する。このとき、上位等数の当選結果口数から順に該当等数のレコードへ当選結果口数を格納するが、下位等数から順に格納することも可能である。処理は、すべての当選結果口数を当選結果テーブル330へ格納するまで繰り返す。   470: When the calculation of the winning result number is completed, the winning result number is stored in the winning result table 330. At this time, the winning result number is stored in the corresponding equal number of records in order from the highest equal number winning result number, but may be stored in order from the lower equal number. The process is repeated until all winning result numbers are stored in the winning result table 330.

図4は、組合せデータを組合せ(n等)テーブル320に格納するための詳細フローチャートである。以下、その内容をステップ毎に説明する。
431:等数n(:自然数)に1を代入する
432:等数nと最下位等数m(:自然数)の値を比較する。このとき、mは各抽選によって異なる値になる場合がある。nの値がm以下の場合、433の処理へ進む。nの値がmより大きい場合、処理を終了する。
FIG. 4 is a detailed flowchart for storing combination data in the combination (n, etc.) table 320. Hereinafter, the contents will be described step by step.
431: 1 is substituted into the equal number n (: natural number) 432: The value of the equal number n and the lowest order equal number m (: natural number) are compared. At this time, m may be different depending on each lottery. When the value of n is less than or equal to m, the process proceeds to 433. If the value of n is larger than m, the process is terminated.

433:生成された組合せ数字に組合せ(n等)テーブル320に格納する組合せ数字が存在するかを判定する。組合せ(n等)テーブル320に格納する組合せ数字が存在する場合、434の処理へ進む。存在しない場合、438の処理へ進む。   433: It is determined whether there is a combination number stored in the combination (n etc.) table 320 in the generated combination number. If there is a combination number to be stored in the combination (n etc.) table 320, the process proceeds to step 434. If not, the process proceeds to 438.

434:組合せ(n等)テーブルに同一の組合せ数字が存在するかを判定する。組合せ(n等)テーブル320に同一の組合せ数字が存在する場合、435の処理へ進む。存在しない場合、436の処理へ進む。   434: It is determined whether the same combination number exists in the combination (n etc.) table. If the same combination number exists in the combination (n etc.) table 320, the process proceeds to 435. If not, the process proceeds to 436.

435:組合せ(n等)テーブル320の組合せ数字の口数を加算する処理を実行する。このとき、加算した組合せ数字の口数を組合せ(n等)テーブル320に上書きする。
436:組合せ(n等)テーブル320の組合せデータを新たに追加する処理を実行する。
437:次の組合せデータを取得する。
438:nの値を1加算する。
435: A process of adding the number of combination numbers in the combination (n etc.) table 320 is executed. At this time, the number of combination numbers added is overwritten in the combination (n, etc.) table 320.
436: A process of newly adding combination data in the combination (n etc.) table 320 is executed.
437: The next combination data is acquired.
438: Add 1 to the value of n.

図5〜10は、本実施形態に関し、申込番号の具体的な例を用いて、その処理内容を説明する図である。
例:選択可能な数字を9個、申込数字を3個、抽選数字を5個、当選最下位等数を3等とする。以下に、抽選申込者が1〜9の選択可能な数字の中から3個を選択し、申込者6人が申込数字を1口ずつ購入する例を示す。
申込者1:申込数字{1,3,5}、口数:1口
申込者2:申込数字{2,4,6}、口数:1口
申込者3:申込数字{1,2,3}、口数:1口
申込者4:申込数字{4,5,6}、口数:1口
申込者5:申込数字{5,6,7}、口数:1口
申込者6:申込数字{6,7,8}、口数:1口。
5-10 is a figure explaining the processing content regarding this embodiment using the specific example of an application number.
Example: Nine selectable numbers, three application numbers, five lottery numbers, and the winning lowest equal number are three. In the following, an example is shown in which the lottery applicant selects three from 1 to 9 selectable numbers, and six applicants purchase the application numbers one by one.
Applicant 1: Application number {1, 3, 5}, Number: 1 Applicant 2: Application number {2, 4, 6}, Number: 1 Applicant 3: Application number {1, 2, 3}, Number of units: 1 applicant 4: Application number {4, 5, 6}, Number of applications: 1 Applicant 5: Application number {5, 6, 7}, Number of applications: 1 Applicant 6: Application number {6, 7 , 8}, 1 mouth.

図5は、申込データを格納する申込テーブル310の例である。申込テーブル310は、申込者1〜6の申込数字と申込口数を格納する。このとき、将来のサービス拡張などを考慮して申込者と申込データの関連を意識して申込データを格納したいため、申込を行った順に通番を付与して、管理する。   FIG. 5 is an example of an application table 310 that stores application data. The application table 310 stores application numbers and the number of applications for the applicants 1 to 6. At this time, in order to store the application data in consideration of the relationship between the applicant and the application data in consideration of future service expansion, etc., a serial number is assigned and managed in the order of application.

図6は、申込データから派生した組合せ1等候補のデータを格納する組合せ(1等)テーブルの例である。321は、申込テーブル320に格納している申込データから派生した1等候補の組合せ数字と組合せ口数を格納するテーブルである。組合せ(1等)テーブル321では、申込者と組合せデータの関連を意識して格納しないため、通番を付与せず管理する。   FIG. 6 is an example of a combination (first etc.) table storing candidate first grade data derived from application data. Reference numeral 321 denotes a table that stores combination numbers and combination numbers of first-class candidates derived from application data stored in the application table 320. The combination (1 etc.) table 321 is managed without assigning a serial number because it is not stored in consideration of the relationship between the applicant and the combination data.

図7は、申込データから派生した組合せ2等候補のデータを格納する組合せ(2等)テーブルの例である。322は、申込テーブル320に格納している申込データから派生した2等候補の組合せ数字と組合せ口数を格納するテーブルである。組合せ(2等)テーブル322では、申込者と組合せデータの関連を意識して格納しないため、通番を付与せず管理する。   FIG. 7 is an example of a combination (second etc.) table for storing candidate combination second grade data derived from application data. A table 322 stores combination numbers and combination numbers of second-class candidates derived from application data stored in the application table 320. The combination (2 etc.) table 322 is managed without assigning a serial number because it is not stored in consideration of the relationship between the applicant and the combination data.

図8は、申込データから派生した組合せ3等候補のデータを格納する組合せ(3等)テーブルの例である。323は、申込テーブル320に格納している申込データから派生した3等候補の組合せ数字と組合せ口数を格納するテーブルである。組合せ(3等)テーブル323では、申込者と組合せデータの関連を意識て格納しないため、通番を付与せず管理する。   FIG. 8 is an example of a combination (3 etc.) table storing candidate 3 grade candidate data derived from the application data. A table 323 stores combination numbers and combination numbers of third-class candidates derived from application data stored in the application table 320. In the combination (3 etc.) table 323, since the relation between the applicant and the combination data is not stored, it is managed without assigning a serial number.

図9は、申込テーブル310と申込データから派生した各等数の組合せ(n等)テーブル320のデータ関連図の例である。申込テーブル310に格納された申込データは組合せ(1等)テーブル321、組合せ(2等)テーブル322、組合せ(3等)テーブル323に対して、申込データから生成された組合せデータを各テーブルに格納する。このとき、等数毎に格納する組合せ(n等)テーブル320へ組合せデータを格納するため、等数毎に並行して処理することが可能である。   FIG. 9 is an example of a data relation diagram of the application table 310 and each combination (n etc.) table 320 derived from application data. The application data stored in the application table 310 is a combination (1 etc.) table 321, a combination (2 etc.) table 322, and a combination (3 etc.) table 323. The combination data generated from the application data is stored in each table. To do. At this time, since combination data is stored in the combination (n etc.) table 320 stored for each equal number, it is possible to process in parallel for each equal number.

図10は、当選結果データを格納する当選結果テーブル330の例である。当選結果テーブル330は、等数と当選結果口数を格納する。本例では、1等の当選口数の総和は申込者1{1,3,5}と申込者3{1,2,3}の計2口であり、以下2等の当選口数の総和は、{1,3}2口、{1,5}1口、{3,5}1口、{2,4}1口、{1,2}1口{2,3}1口、{4,5}1口の計8口であり、3等の当選口数の総和は、{1}2口、{3}2口、{5}3口、{2}2口、{4}2口の計11口である。1等の当選結果口数は、当選口数と同じ数になるため、2口となる。2等以降は460の計算式に従うと、8−3×2=2口となり、3等は、11−(3×2+2×2)=1口となる。   FIG. 10 is an example of a winning result table 330 that stores winning result data. The winning result table 330 stores an equal number and a winning result number. In this example, the total number of winning units such as 1st is 2 units in total: Applicant 1 {1, 3, 5} and Applicant 3 {1, 2, 3}. {1,3} 2 ports, {1,5} 1 port, {3,5} 1 port, {2,4} 1 port, {1,2} 1 port {2,3} 1 port, {4, The total number of winning units such as 3 etc. is {1} 2, 2 {3}, 2 {5} 3, 2 {2}, 2 {4}. There are a total of 11 ports. Since the number of winning results such as 1 is the same as the number of winning units, it is two. According to the calculation formula of 460 after 2 etc., 8-3 × 2 = 2 units, and 3 etc. is 11− (3 × 2 + 2 × 2) = 1 unit.

本実施の形態によれば、抽選番号が確定する前までに申込数字から派生した組合せ数字と組合せ口数を集計すること、また各等数の当選数字の候補となる組合せ数字を等数毎に異なるテーブルに格納することにより、等数毎に並行してテーブルにアクセスすることが可能になるため、抽選番号確定後の一括集中処理を短時間にすることが可能となる。また、申込データの数が増大した場合でも本処理は当選数字の数に依存する処理方式を取っているため、一括集中処理の負荷軽減が可能となる。   According to the present embodiment, the combination numbers derived from the application numbers and the number of combinations are counted before the lottery number is determined, and the combination numbers that are candidates for the equal number of winning numbers are different for each equal number. By storing in the table, it becomes possible to access the table in parallel for every equal number, so that the batch concentration process after the determination of the lottery number can be shortened. Further, even when the number of application data increases, this processing uses a processing method that depends on the number of winning numbers, so the load of the batch centralized processing can be reduced.

100 申込受付装置
200 APサーバ
300 データ格納サーバ
310 申込テーブル
320 組合せ(n等)テーブル
321 組合せ(1等)テーブルの例
322 組合せ(2等)テーブルの例
323 組合せ(3等)テーブルの例
330 当選結果テーブル
100 Application receiving device 200 AP server 300 Data storage server 310 Application table 320 Combination (n etc.) table 321 Example of combination (1 etc.) table 322 Example of combination (2 etc.) table 323 Example of combination (3 etc.) table 330 Winning Results table

Claims (4)

予め、単位データの組合せからなる複数の対象データを格納しておき、
単位データの組合せであって、対象データを構成する単位データ数より多い単位データ数を選択して該当データを生成し、
生成された該当データを構成する単位データの組合せで構成され、対象データを構成する単位データ数より少ない単位データ数で構成される複数の部分該当データを生成し、
複数の部分該当データを満たす対象データを特定し、特定された対象データ数の総数を算出し、
特定された対象データのうち、各部分該当データでの重複数を算出して、対象データ数の総数から減算することで、部分該当データに合致する対象データ数を特定するものであることを特徴とするデータ特定方法。
Store a plurality of target data consisting of combinations of unit data in advance,
Select a unit data number that is a combination of unit data and is larger than the number of unit data constituting the target data, and generate the corresponding data.
Generate a plurality of partial corresponding data consisting of a combination of unit data constituting the generated corresponding data and having a smaller number of unit data than the number of unit data constituting the target data,
Identify target data that satisfies multiple partial corresponding data, calculate the total number of identified target data,
Among the identified target data, the number of target data matching the partial corresponding data is specified by calculating the duplication number of each partial corresponding data and subtracting it from the total number of target data. Data identification method.
請求項1に記載のデータ特定方法において、
前記複数の部分該当データは、階層構造を有し、それぞれ異なる数の単位データで構成され、下位の部分該当データを構成する単位データは上位の部分該当データを構成する単位データに含まれることを特徴とするデータ特定方法。
The data identification method according to claim 1,
The plurality of partial corresponding data have a hierarchical structure and are configured by different numbers of unit data, and unit data constituting lower partial corresponding data is included in unit data constituting upper partial corresponding data. Characteristic data identification method.
請求項2に記載のデータ特定方法において、
前記部分該当データの候補となる単位データの組合せを、前記部分該当データの階層毎に異なるテーブルに格納して、前記重複数の算出を行うことを特徴とするデータ特定方法。
In the data identification method of Claim 2,
A combination of unit data that is candidates for the partial corresponding data is stored in a different table for each layer of the partial corresponding data, and the duplication calculation is performed.
請求項1乃至3のいずれかに記載のデータ特定方法において、
前記対象データは利用者が選択した複数桁の応募数字であって、
前記応募数字から、前記部分該当データとして生成される当選番号を特定することを特徴とするデータ特定方法。
In the data identification method according to any one of claims 1 to 3,
The target data is a multi-digit application number selected by the user,
A data identification method for identifying a winning number generated as the partial corresponding data from the application number.
JP2012150991A 2012-07-05 2012-07-05 Data identification method Expired - Fee Related JP6078245B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012150991A JP6078245B2 (en) 2012-07-05 2012-07-05 Data identification method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012150991A JP6078245B2 (en) 2012-07-05 2012-07-05 Data identification method

Publications (2)

Publication Number Publication Date
JP2014013519A true JP2014013519A (en) 2014-01-23
JP6078245B2 JP6078245B2 (en) 2017-02-08

Family

ID=50109157

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012150991A Expired - Fee Related JP6078245B2 (en) 2012-07-05 2012-07-05 Data identification method

Country Status (1)

Country Link
JP (1) JP6078245B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001143002A (en) * 1999-11-15 2001-05-25 Nec Corp Method and system for managing combination number
JP2004220283A (en) * 2003-01-14 2004-08-05 Fujitsu Ltd Extraction method, extraction device and computer program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001143002A (en) * 1999-11-15 2001-05-25 Nec Corp Method and system for managing combination number
JP2004220283A (en) * 2003-01-14 2004-08-05 Fujitsu Ltd Extraction method, extraction device and computer program

Also Published As

Publication number Publication date
JP6078245B2 (en) 2017-02-08

Similar Documents

Publication Publication Date Title
CN104317650B (en) A kind of job scheduling method towards Map/Reduce type mass data processing platforms
Oukil Embedding OWA under preference ranking for DEA cross‐efficiency aggregation: Issues and procedures
CN105630590B (en) A kind of business information processing method and processing device
JP2020013405A (en) Information processing method, information processor, and program
CN109063935A (en) A kind of method, apparatus and storage medium of prediction task processing time
CN110222920A (en) Performance data storage method, device, equipment and readable storage medium storing program for executing
CN108241531A (en) A kind of method and apparatus for distributing resource for virtual machine in the cluster
US20190080248A1 (en) System and method for facilitating model-based classification of transactions
CN110209714A (en) Report form generation method, device, computer equipment and computer readable storage medium
CN107070645A (en) Compare the method and system of the data of tables of data
CN103488672B (en) Optimization standard of comparison is created in associative storage
CN110478908A (en) The control method and device of Random Factor Mahjong, storage medium, electronic equipment
JP2019212233A (en) Information processing device, information processing method and program
KR102042796B1 (en) Method and system for managing project results generated by a specialist based on bigdata
CN111275481A (en) Virtual resource allocation method and device based on electronic certificate and electronic equipment
CN114626735A (en) Urging case allocation method, urging case allocation device, urging case allocation equipment and computer readable storage medium
CN105023353B (en) A kind of method and apparatus of reasonable utilization cash box withdrawal
KR102240888B1 (en) Method and system for managing project results generated by a specialist based on bigdata stored in blockchain
JP6078245B2 (en) Data identification method
CN107067128A (en) Task quality detecting method, the method and device for determining dereferenced user
CN107392745B (en) Reconciliation data fragmentation processing method
CN110245985A (en) A kind of information processing method and device
CN107491509B (en) A kind of customer attribute information method for digging, device and medium
Li et al. Learning to bundle proactively for on-demand meal delivery
JP5890882B2 (en) Data collation apparatus, data collation method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150618

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160609

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160614

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160803

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20161220

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170116

R150 Certificate of patent or registration of utility model

Ref document number: 6078245

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees