JP6134618B2 - Ticketing device - Google Patents
Ticketing device Download PDFInfo
- Publication number
- JP6134618B2 JP6134618B2 JP2013187904A JP2013187904A JP6134618B2 JP 6134618 B2 JP6134618 B2 JP 6134618B2 JP 2013187904 A JP2013187904 A JP 2013187904A JP 2013187904 A JP2013187904 A JP 2013187904A JP 6134618 B2 JP6134618 B2 JP 6134618B2
- Authority
- JP
- Japan
- Prior art keywords
- digit
- data
- numbers
- digits
- ticket issuing
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Time Recorders, Dirve Recorders, Access Control (AREA)
Description
本発明は、発券装置に関する。 The present invention relates to a ticket issuing device.
従来技術として、数字選択式の投票券の発券装置において、発券装置に入力された申込情報を上位装置に送信し登録する技術があった。例えば、特許文献1には、「受付管理部がインターネットを介して会員端末からの投票券の購入申込を受け付けると、その購入申込がデータベースに格納される。数字選択式の投票券の申込の場合、申込データが中継センタに送られ、データ転送管理部は、JLSホスト・システムが稼動状態であるか否かを判定し、稼動状態である場合に、投票券の購入申込を該ホスト・システムに転送する。ホスト・システムにおいて発券された情報は、中継センタ、投票券モール・サイト、インターネットを介して会員端末に配信される。普通くじ申込の場合は、現物管理部が管理する普通投票券の種類を会員に呈示して、会員に種類及び枚数を設定させる。当せん管理部は、当せんした投票券に関するデータを管理し、当せん結果は、インターネットを介して会員端末に配信される」ことが記載されている(要約を参照)。
As a prior art, there has been a technique for transmitting and registering application information input to a ticket issuing device to a host device in a number selection type voting ticket issuing device. For example, in
上位装置側で発券された投票権の情報を管理する場合、上位装置の記憶容量及び処理能力や、発券装置の処理能力や、発券装置と上位装置との間のネットワーク回線の負荷を考慮した、申込情報のデータ量が求められる。上位装置に申込情報を記憶する場合は、上位装置(磁気ディスク等)の容量や、ネットワーク回線(光回線等)の通信速度に対して、申込情報のデータ量が相対的に小さく、申込情報のデータ量の圧縮はされていなかった。 When managing the voting rights information issued on the host device side, considering the storage capacity and processing capacity of the host device, the processing capability of the ticketing device, and the load on the network line between the ticketing device and the host device, The amount of application information data is required. When application information is stored in the host device, the amount of application information is relatively small relative to the capacity of the host device (magnetic disk, etc.) and the communication speed of the network line (optical line, etc.). The amount of data was not compressed.
しかし、上位装置やネットワーク回線の性能が乏しい場合に通信するデータ量を小さくしたり、投票券の紙面などに申込情報を埋め込む必要がある場合に申込情報の書込み領域は小さいため、申込情報のデータ量を圧縮する必要がある。また、上位装置の容量やネットワークの通信速度が速い場合も、申込情報のデータ量を可能な限り圧縮した、データ量を小さくすることが望ましい。 However, if the host device or network line performance is poor, the amount of data to be communicated is small, or the application information writing area is small when the application information needs to be embedded in the voting ticket, etc. The amount needs to be compressed. Even when the capacity of the host device and the network communication speed are fast, it is desirable to reduce the data amount by compressing the data amount of the application information as much as possible.
本発明は、数字選択式の投票券の発券装置において、申込情報のデータ量を圧縮することを目的とする。 An object of the present invention is to compress the data amount of application information in a number selection type voting ticket issuing apparatus.
上記の課題を解決するために、本発明は、数字を入力する入力部と、前記入力部で入力された数字の集合から出力データを生成するデータ生成部と、前記データ生成部で生成された前記出力データを出力する出力部とを備えた発券装置であって、選択対象の数字の所定桁においてとり得る数字の個数より1を減じた個数が、選択される申込数字の個数より小さい場合、前記データ生成部は、前記所定桁においてとり得る数字の個数より1を減じた個数からなるデータと、前記申込数字の個数及びそれぞれの申込数字における前記選択対象の数字の前記所定桁以外の桁数を乗じた個数からなるデータとを用いて、前記出力データを生成することを特徴とする。 In order to solve the above-described problem, the present invention is an input unit that inputs numbers, a data generation unit that generates output data from a set of numbers input by the input unit, and a data generation unit A ticketing device comprising an output unit for outputting the output data, wherein the number obtained by subtracting 1 from the number of numbers that can be taken in a predetermined number of numbers to be selected is smaller than the number of application numbers to be selected; The data generation unit includes data consisting of a number obtained by subtracting 1 from the number of digits that can be taken in the predetermined digits, and the number of the application digits and the number of digits other than the predetermined digits of the number to be selected in each application digit The output data is generated using data consisting of the number multiplied by.
本発明によれば、数字選択式の投票券の発券装置において、申込情報のデータ量を圧縮することが可能となる。 ADVANTAGE OF THE INVENTION According to this invention, it becomes possible to compress the data amount of application information in the number selection type betting ticket issuing apparatus.
(実施例1)
以下、図1〜9を用いて、第1の実施例について説明する。本実施例は、数字選択式投票券や、競馬・競輪・競艇などの公営競技における投票券などの発券システムに関するものである。
Example 1
The first embodiment will be described below with reference to FIGS. The present embodiment relates to a ticketing system for number-selective voting tickets and voting tickets in public competitions such as horse racing, bicycle racing and boat racing.
図1は、発券システムの外観図である。発券システム1は、数字選択式投票券や公営競技における投票券などの発券装置100と、上位装置であるホストコンピュータ200とを広域回線などのネットワーク300を介して接続している。ネットワーク300は、例えば有線のLAN(Local Area Network)であるが、これに限られるものではない。
FIG. 1 is an external view of a ticketing system. The ticket issuing
発券装置100は、投票券売場や競馬場等に設置され、売場係員や顧客の操作によって発券を行う装置である。発券装置100は、利用者により指定された内容が記載された申込用紙が挿入される申込用紙挿入口101と、印字済の投票券(以下、「印字券」と称する)を排出する出口である印字券排出口102とを備える。
The ticket issuing
申込用紙挿入口101は、予め定められた幅の申込用紙が挿入されることを前提としており、申込用紙挿入口101の幅は、幅の広過ぎる媒体が挿入されないように設定されることが望ましい。また、印字券排出口102は、複数枚の投票券を保持する形状や投票券が飛び出さないような機構を有することが望ましい。
The application
図2は、投票券発券システムの機能ブロック図である。発券装置100は、上記申込用紙挿入口101及び印字券排出口102の他に、申込用紙搬送機構103、印字用紙/印字券搬送機構104、申込用紙読取機構105、印字機構106、記憶部107、制御部108、通信部109等から構成されている。
FIG. 2 is a functional block diagram of the betting ticket issuing system. In addition to the application
申込用紙搬送機構103は、申込用紙挿入口101に挿入された申込用紙を、申込用紙読取機構105まで搬送する機構であり、申込用紙を搬送するための搬送ローラや、各種センサを備えている。
The application
印字用紙/印字券搬送機構104は、発券装置100内に収納された印字前の印字用紙を印字機構106に搬送するとともに、印字機構106により印字された印字券を印字券排出口102に排出する機構であり、投票券を搬送するための搬送ローラや、各種センサを備えている。
The printing paper / printing
申込用紙読取機構105は、申込用紙搬送機構103により搬送された申込用紙を読取る機構であり、申込用紙に記載された内容(マークや数字等)を読み取る光学センサ等を備えている。すなわち、申込用紙読取機構105は、数字を入力する入力部に相当する。
The application
印字機構106は、印字用紙/印字券搬送機構104によりスタッカから搬送された印字前の印字用紙に対して、投票券発券装置100内で生成される印字データを印字する機構であり、印字ヘッド等を備えている。すなわち、印字機構106は、後述するデータ生成部(制御部108)で生成された出力データを出力する出力部に相当する。
The
記憶部107は、投票券発券装置100に固有のIDや、各種データテーブルなどを記憶するRAMなどのメモリ等を備えている。制御部108には、各種プログラム、各種データが記憶されており、投票券発券装置100の各機構の制御や、各種の処理、取引を実行する。また、制御部108は、入力部(申込用紙読取機構105)で入力された数字の集合から出力データを生成するデータ生成部に相当する。
通信部109は、ホストコンピュータ200とのデータの送受信を実行する。
The
The
これらの構成の内、申込用紙挿入口101と、申込用紙搬送機構103と、申込用紙読取機構105とは、投票券発券装置100の内部に申込用紙を挿入することにより、申込情報の入力が実行されるための構成である。従って、申込情報を入力することが可能であれば、申込用紙挿入口101、申込用紙搬送機構103及び申込用紙読取機構105の代わりに、キーボード、タッチパネル、非接触ICデバイス等の情報入力機構を用いても良い。
Among these configurations, the application
ホストコンピュータ200は、制御部201、通信部202、データベース203等から構成されている。
The
制御部201には、各種プログラム、各種データが記憶されており、ホストコンピュータ200の各機構の制御や、各種の処理、取引を実行する。通信部202は、投票券発券装置100とのデータの送受信を行う部分である。データベース203には、ホストコンピュータと通信する投票券発券装置の固有の情報や各種の処理、取引に使用する情報等が記憶されている。
The
以下、本実施例における処理について詳細に説明する。図3は、本実施例における処理を示すフローチャートである。 Hereinafter, the process in a present Example is demonstrated in detail. FIG. 3 is a flowchart showing processing in the present embodiment.
投票券発券装置100の制御部108は、申込用紙挿入口101から挿入された申込用紙を、申込用紙搬送機構103により申込用紙読取機構105まで搬送する(ステップS110)。次に、申込用紙読取機構105により、申込用紙に記載された申込情報を読み取る。
The
申込用紙の例を図4に示す。図4は、1〜46までの46個の数字の内、6個を選択する投票券の申込用紙400である。申込用紙400は、6個の数字の組合せを最大5組選択できるが、1つの申込用紙で選択可能な数字の組合せの数はこれに限られない。
An example of an application form is shown in FIG. FIG. 4 shows an
図4に示す申込用紙400の場合、6個の数字の組合せとして、組合せAは「5、12、21、31、32、43」、組合せBは「2、3、11、12、22、42」、組合せCは「23、33、39、44、45、46」、組合せDは「2、3、4、7、8、9」、組合せEは「12、14、16、18、42、46」が選択されたことを示している。
In the case of the
図3に戻り、S101の後、申込用紙読取機構105により、申込用紙400に記載された申込情報を読み取る(ステップS120)。制御部108は、申込用紙読取機構105により読み取られた申込情報のデータに対して、圧縮処理を実行する(ステップS130)。なお、ホストコンピュータ200の制御部201が圧縮処理を実行しても良く、このような場合、制御部108は、通信部109により、圧縮されていない申込情報のデータをホストコンピュータ200に送信し、圧縮された申込情報のデータをホストコンピュータ200から受信することになる。圧縮処理の詳細なフローに関しては、後述する。
Returning to FIG. 3, after S101, the application
制御部108は、印字用紙/印字券搬送機構104により、スタッカから搬送された印字前の印字用紙を印字機構106に搬送する(ステップS140)。印字機構106は、印字用紙に圧縮された申込情報を印字する(ステップS150)。その後、制御部108は、印字用紙/印字券搬送機構104により、申込情報が印字された印字用紙(すなわち、印字券)を印字券排出口102に搬送する(ステップS160)。これにより、圧縮された申込情報が印字された印字券が発行されることになる。
The
続いて、ステップS103の圧縮処理について、詳細に説明する。最初に、選択された数字の組合せの各々に対して、数字の小さな順序に並べ替える(ステップS131)。これは、申込用紙読取機構105にて読み取られる数字の順序が、必ずしも数字の小さな順とは限らないからである。例えば、上記組合せAに対して、例えば、申込用紙読取機構105が読み取った順序や、キーボード、タッチパネル等により選択された順序が「21、31、12、32、43、5」である場合、「5、12、21、31、32、43」に並べ替える。次に、選択された数字の組合せの各々に対して、並べ替えた数字の小さな方から、1番目、2番目、…6番目と定義付ける(ステップS132)。
Next, the compression process in step S103 will be described in detail. First, each selected combination of numbers is rearranged in ascending order of numbers (step S131). This is because the order of the numbers read by the application
図5は、図4に示す申込用紙400に対して、ステップS132の処理を実行した直後のデータ500を示した図である。1つの数字毎のデータ量は2である(2桁の数字はそのままであり、1桁の数字には十の桁に0を付与している)ため、6つの数字の組合せの場合、データ量は12である。すなわち、5種類の組合せを選択した場合、データ500のデータ量は60である。
FIG. 5 is a
図3に戻り、S132の後、データ500の圧縮処理を実行する。最初に、選択された6個の数字のそれぞれについて1の桁の数字を抽出し、1番目〜6番目の順に並べる(ステップS133)。
Returning to FIG. 3, after S132, the
具体的な処理について、図6を用いて説明する。図6は、図5に示したデータ500の内、組合せBに対する圧縮処理を抜き出した図である。組合せBの数字は、1番目〜6番目の数字のデータがそれぞれ「02」「03」「11」「12」「22」「42」であるため、これらの数字の1の桁を並べると「231222」になる。
Specific processing will be described with reference to FIG. FIG. 6 is a diagram in which compression processing for the combination B is extracted from the
次に、選択された6個の10の桁の数字に関するデータを作成する(ステップS134)。このとき、選択された6個の内、10の桁の数字が変化する部分が何番目の数字であるかを抽出する。 Next, data relating to the selected six 10-digit numbers is created (step S134). At this time, it is extracted what number the portion where the 10-digit number changes among the selected 6 numbers.
具体的な処理について、図6や図7に示したフローチャートを用いて説明する。まず、制御部108は、10の桁の数字が「1」である数字の有無を判断する(ステップS1341)。10の桁の数字が「1」である数字が無ければ(ステップS1341:No)、10の桁の数字に関するデータの最初の桁を「0」とし(ステップS1342a)、10の桁の数字が「1」である数字が有れば(ステップS1341:Yes)、10の桁の数字に関するデータの最初の桁を、1〜6番目の内、対応する順番を示す数字とする(ステップS1342b)。なお、10の桁の数字が「1」である数字が複数ある場合は、最も小さい数字とする。
Specific processing will be described with reference to the flowcharts shown in FIGS. First, the
続いて、制御部108は、10の桁の数字が「2」である数字の有無を判断する(ステップS1343)。10の桁の数字が「2」である数字が無ければ(ステップS1343:No)、10の桁の数字に関するデータの2桁目を「0」とし(ステップS1344a)、10の桁の数字が「2」である数字が有れば(ステップS1341:Yes)、10の桁の数字に関するデータの2桁目を、1〜6番目の内、対応する順番を示す数字とする(ステップS1344b)。なお、10の桁の数字が「2」である数字が複数ある場合は、最も小さい数字とする。
Subsequently, the
続いて、制御部108は、10の桁の数字が「3」である数字の有無を判断する(ステップS1345)。10の桁の数字が「3」である数字が無ければ(ステップS1345:No)、10の桁の数字に関するデータの3桁目を「0」とし(ステップS1346a)、10の桁の数字が「3」である数字が有れば(ステップS1345:Yes)、10の桁の数字に関するデータの3桁目を、1〜6番目の内、対応する順番を示す数字とする(ステップS1346b)。なお、10の桁の数字が「3」である数字が複数ある場合は、最も小さい数字とする。
Subsequently, the
続いて、制御部108は、10の桁の数字が「4」である数字の有無を判断する(ステップS1347)。10の桁の数字が「4」である数字が無ければ(ステップS1347:No)、10の桁の数字に関するデータの4桁目を「0」とし(ステップS1348a)、10の桁の数字が「4」である数字が有れば(ステップS1347:Yes)、10の桁の数字に関するデータの4桁目を、1〜6番目の内、対応する順番を示す数字とする(ステップS1348b)。なお、10の桁の数字が「4」である数字が複数ある場合は、最も小さい数字とする。
Subsequently, the
図6に示す図の場合、組合せBの数字の10の桁は、1番目〜6番目の順に「0」「0」「1」「1」「2」「4」である。このとき、10の桁の数字が「1」「2」「3」「4」である数字は、それぞれ3番目及び4番目、5番目、なし、6番目であるため、10の桁の数字に関するデータは「3506」となる。 In the case of the diagram shown in FIG. 6, the ten digits of the combination B are “0”, “0”, “1”, “1”, “2”, and “4” in order from the first to the sixth. At this time, the numbers with the 10-digit numbers “1”, “2”, “3”, and “4” are the third, fourth, fifth, none, and sixth, respectively. The data is “3506”.
図8は、図5に示すデータ500を圧縮した結果を示した図である。圧縮後のデータ800は、数字の組合せ当たりのデータ量が2削減されている。従って、すなわち、5種類の組合せを選択したデータ800全体では、データ量が10削減されて50となる。
FIG. 8 is a diagram showing a result of compressing the
上記の実施例では、1〜46までの46個の数字の内、6個を選択する場合について説明したが、(10x+y)個の数字の内、z個を選択する場合(x、z:1〜9の整数、y:0〜9の整数)に一般化することが可能である。 In the above-described embodiment, the case where six of 46 numbers from 1 to 46 are selected has been described. However, among the (10x + y) numbers, z is selected (x, z: 1). Integer of ~ 9, y: integer of 0-9).
すなわち、制御部108は、選択されたz個の数字を小さな順序に並べ替え、z個の数字のそれぞれについて1の桁の数字を抽出し、抽出された数字を並べ替えた順序の通りに並べると共に、z個の数字の10の桁の数字が変化する部分を抽出し、並べている。
That is, the
z個の数字の10の桁の数字が変化する部分を抽出する際は、10の桁の数字がnである数字の有無を判断し(nは1〜xの整数)、10の桁の数字がnである数字が無ければ、10の桁の数字に関するデータのn桁目を0とし、10の桁の数字がnである数字が有れば、10の桁の数字に関するデータのn桁目を、前記並べ替えた順序の内、対応する順序の最も小さい数字としている。 When extracting the part of the z number where the 10-digit number changes, it is determined whether there is a number whose 10-digit number is n (n is an integer from 1 to x), and the 10-digit number If there is no number whose n is n, the nth digit of the data relating to the tenth digit is 0, and if there is a digit whose tenth digit is n, the nth digit of the data relating to the tenth digit Is the smallest number in the corresponding order in the sorted order.
このとき、図9に示すように、ステップS103の圧縮処理を実行しない場合、z個の数字の組合せのデータ量は2×zになる。一方、ステップS103の圧縮処理を実行する場合、z個の数字の組合せのデータ量は(x+z)になる。圧縮処理によるデータ量の方が小さくなるためには、(x+z)<2×z、すなわち、x<zという条件が必要になる。 At this time, as shown in FIG. 9, when the compression process of step S103 is not executed, the data amount of the combination of z numbers is 2 × z. On the other hand, when the compression process of step S103 is executed, the data amount of the combination of z numbers is (x + z). In order to reduce the data amount by the compression process, the condition of (x + z) <2 × z, that is, x <z is necessary.
換言すると、選択対象の数字の所定桁(上記の実施例では10の桁)においてとり得る数字の個数(上記の実施例では「0、1、2、3、4」の5個)に1を減じた個数(上記の実施例では4個)が、選択される申込数字の個数(上記の実施例では6)より小さい場合、データ生成部である制御部108は、所定桁(10の桁)においてとり得る数字の個数に1を減じた個数(4個)からなるデータと、前記申込数字の個数(6個)及びそれぞれの申込数字における前記選択対象の数字の前記所定桁以外の桁数(上記の実施例では1の桁のみであるため1桁/個)を乗じた個数(上記の実施例では6個×1桁/個=6個)からなるデータとを用いて、出力データを生成している。
In other words, 1 is added to the number of digits (five numbers “0, 1, 2, 3, 4” in the above embodiment) that can be taken in a predetermined digit (10 digits in the above embodiment) of the number to be selected. When the subtracted number (4 in the above embodiment) is smaller than the number of application numbers to be selected (6 in the above embodiment), the
ここで、選択対象の数字の所定桁においてとり得る数字の個数に1を減じているのは、所定桁に関する情報においては、取りうる数字が変化する順番をデータとしているからである。すなわち、上記のステップS1341(S1343、S1345、S1347)は、「10の桁の数字が『0』から『1』に変化する順番」(10の桁の数字が『1』から『2』に変化する順番」、10の桁の数字が『2』から『3』に変化する順番」、10の桁の数字が『3』から『4』に変化する順番」)となる。 Here, the reason why 1 is subtracted from the number of digits that can be taken in a predetermined digit of the numbers to be selected is that, in the information relating to the predetermined digit, the order in which the possible digits change is used as data. That is, in the above step S1341 (S1343, S1345, S1347), “the order in which the 10-digit number changes from“ 0 ”to“ 1 ”” (the 10-digit number changes from “1” to “2”) The order in which the 10-digit number changes from “2” to “3”, the order in which the 10-digit number changes from “3” to “4” ”).
以上の処理を実行することにより、数字選択式の投票券の発券装置において、申込情報のデータ量を圧縮することが可能となる。 By executing the above processing, the data amount of the application information can be compressed in the number selection type voting ticket issuing apparatus.
変形例1:上記の処理の内、ステップS133、S134の処理の順番を入れ替え、選択された6個の10の桁の数字に関するデータを作成した後に、選択された6個の数字のそれぞれについて1の桁の数字を抽出し、1番目〜6番目の順に並べても良い。 Modified example 1: Among the above processes, the order of the processes in steps S133 and S134 is changed to create data related to the selected six 10-digit numbers, and then 1 for each of the selected six numbers. May be extracted and arranged in the order of the first to sixth.
変形例2:上記実施例では、1〜46までの46個の数字の内、6個を選択する場合について説明したが、47〜49に選択される数字とは異なる、特殊な情報を持たせることにより、集合に存在する数字以外の情報を圧縮後のデータに含めることが可能である。例えば、「既に選択された数字以外の数字を装置が自動で一つ選択する」、「既に選択された数字以外の数字の組合せ全て」、「あえて選択していない」などがある。これは、数字選択式投票券におけるクイックピックを組の一部分に適用した場合や、競馬等の流し買いに相当するものである。
(実施例2)
実施例1では、1〜46(または49)までの46(または49)個の数字の内、6個を選択する場合について説明したが、以下のように一般化することが可能である。
Modified example 2: In the above-described embodiment, the case where six of 46 numbers from 1 to 46 are selected has been described. However, special information different from the numbers selected from 47 to 49 is provided. Thus, it is possible to include information other than numbers existing in the set in the compressed data. For example, “the device automatically selects one number other than the number already selected”, “all combinations of numbers other than the number already selected”, “not selected”, and the like. This corresponds to a case where a quick pick in a number selection type voting ticket is applied to a part of a set, or a counter-buying such as horse racing.
(Example 2)
In the first embodiment, the case where six of 46 (or 49) numbers from 1 to 46 (or 49) are selected has been described, but can be generalized as follows.
1(すなわち10の0乗)の桁としてとり得る数字がa0通り、10(すなわち10の1乗)の桁としてとり得る数字がa1通り、…10のi乗の桁としてとり得る数字がai通りである場合(a0、a1、…aiは1〜10の整数)、選択される数字の個数はa0×a1×…×ai個ある。これらの数字の集合からb個の数字が選択される場合にデータ量を圧縮できる場合は以下の通りである。 Numbers that can be taken as 1 (ie 10 to the 10th power) digits are a 0 , numbers that can be taken as 10 (ie 10 to the 1st power) digits are a 1 ,... If it is a i as (a 0, a 1, ... a i is an integer of from 1 to 10), the number of digits to be selected a 0 × a 1 × ... there × a i number. The case where the data amount can be compressed when b numbers are selected from the set of these numbers is as follows.
図10に示すように、圧縮処理を実行しない場合、b個の数字の組合せのデータ量は、1個あたりのデータ量iにbを乗じたb×iになる。一方、10のj乗の桁に対して圧縮処理を実行する場合、b個の数字の組合せのデータ量は、10のj乗の桁としてとり得る数字の個数ajから1を減じたaj−1に、1個あたりのデータ量(i−1)にbを乗じたb×(i−1)を加えた(aj−1)+b(i−1)になる。圧縮処理によるデータ量の方が小さくなるためには、b×i>(aj−1)+b×(i−1)、すなわち、aj−1<bという条件が必要になる。 As shown in FIG. 10, when the compression process is not executed, the data amount of the combination of b numbers is b × i obtained by multiplying the data amount i per piece by b. On the other hand, if you perform a compression process on 10 j-th power of the digits, the data amount of a combination of b pieces of figures, 10 of j-th power of can take as digits a minus one number a j numbers j (A j −1) + b (i−1) obtained by adding b × (i−1) obtained by multiplying the data amount (i−1) per one by b to −1. In order to reduce the data amount by the compression process, the condition of b × i> (a j −1) + b × (i−1), that is, a j −1 <b is necessary.
以下、本実施例における処理について詳細に説明する。図11は、本実施例における処理を示すフローチャートである。なお、ステップS110、S120、S140〜S160は、実施例1における処理(図3参照)と同様であるため、詳細な説明を省略する。以下では、実施例1のステップS130に対応する圧縮処理(ステップS230)について詳細に説明する。 Hereinafter, the process in a present Example is demonstrated in detail. FIG. 11 is a flowchart showing processing in the present embodiment. Note that steps S110, S120, and S140 to S160 are the same as the processing in the first embodiment (see FIG. 3), and thus detailed description thereof is omitted. Below, the compression process (step S230) corresponding to step S130 of Example 1 is demonstrated in detail.
最初に、選択された数字の組合せの各々に対して、数字の小さな順序に並べ替える(ステップS231)。次に、選択された数字の組合せの各々に対して、並べ替えた数字の小さな方から、1番目、2番目、…b番目と定義付ける(ステップS232)。 First, the selected combinations of numbers are rearranged in the order of numbers (step S231). Next, for each selected combination of numbers, the first, second,..., Bth are defined from the smaller of the rearranged numbers (step S232).
その後、データ500の圧縮処理を実行する。最初に、1の桁、10の桁、…10のi乗の桁の内、とり得る数字が最も少ない位を圧縮処理の対象とする。すなわち、a0、a1、…aiの内、最も数字の小さい値min(ai)を取得する(ステップS233)。以下では、とり得る数字が最も少ない位が10のj乗の桁である例(min(ai)=aj)について説明する。
Thereafter, compression processing of the
上述の通り、圧縮処理によるデータ量の方が小さくなるためには、aj−1<bという条件が必要である。そこで、ステップS233の後、10のj乗の桁としてとり得る数字ajと選択される数字の個数bとの間に、aj−1<bという関係が成り立つかを判断する(ステップS234)。ここで、aj−1<bで無い場合、すなわちaj−1≧bである場合(ステップS234:No)は圧縮処理を終了して、ステップS140以降の処理を実行する。一方、aj−1<bである場合(ステップS234:Yes)は、選択されたb個の数字のそれぞれについて10のj乗の桁以外の数字を抽出し、1番目〜b番目の順に並べると共に(ステップS235)、選択されたb個の10のj乗の桁の数字に関するデータを作成する(ステップS236)。 As described above, the condition that a j −1 <b is necessary in order to reduce the amount of data by the compression process. Therefore, after step S233, it is determined whether or not the relationship of a j −1 <b holds between the number a j that can be taken as the 10th power and the number of selected numbers b (step S234). . Here, when a j −1 <b is not satisfied, that is, when a j −1 ≧ b (step S234: No), the compression process is ended, and the processes after step S140 are executed. On the other hand, if a j −1 <b (step S234: Yes), numbers other than the 10 j digit are extracted for each of the selected b numbers and arranged in the order of the first to bth. At the same time (step S235), data relating to the selected b number of 10 to the 10th power is generated (step S236).
変形例1:上記の処理の内、ステップS235、S236の処理の順番を入れ替え、選択されたb個の10のj乗の桁の数字に関するデータを作成した後に、選択されたb個の数字のそれぞれについて10のj乗の桁以外の数字を抽出し、1番目〜b番目の順に並べても良い。 Modified example 1: Among the above processes, the order of the processes in steps S235 and S236 is changed, and data relating to the selected b 10 10 th digits is generated, and then the selected b numbers are changed. For each, numbers other than 10 to the power of j may be extracted and arranged in the order of 1st to bth.
変形例2:上記の処理の内、ステップS233の処理を省略しても良い。このとき、aj−1<bを満たす10のj乗の桁が複数存在することがあるが、いずれを選択しても圧縮処理の効果を有する。このとき、装置のオペレータが圧縮処理の対象とする10のj乗の桁を任意に選択しても良いし、印字データのサイズが予め設定されている場合は、当該サイズに近くなるような10のj乗の桁を圧縮処理の対象としても良い。また、全ての、aj−1<bを満たす10のj乗の桁を圧縮処理の対象としても良い。 Modification 2: Of the above processes, the process of step S233 may be omitted. At this time, there may be a plurality of 10 to the 10th power that satisfies a j −1 <b, and any of them has the effect of compression processing. At this time, the operator of the apparatus may arbitrarily select the 10th power digit to be subjected to the compression process. If the size of the print data is set in advance, the digit 10 is close to the size. The digit of j to the power may be the target of compression processing. Further, all 10 j digits satisfying a j −1 <b may be subjected to compression processing.
変形例3:10のi乗の桁としてとり得る数字が1通りしか存在しない場合は、10のi乗の桁の情報をデータ500から削除、または申込用紙が読み取られてもデータ500に記憶しないようにしても良い。すなわち、10のi乗の桁の情報を出力データに含めないようにしても良い。
Variant 3: If there is only one number that can be taken as the 10th power of the i digit, the information of the 10th power of the i digit is deleted from the
なお、本発明は上記実施例に限定されるものではなく、本発明の趣旨の範囲内において種々変形可能である。 In addition, this invention is not limited to the said Example, A various deformation | transformation is possible within the range of the meaning of this invention.
100:発券装置、101:申込用紙挿入口、102:印字券排出口、103:申込用紙搬送機構、104:投票券搬送機構、105:申込用紙読取機構、106:印字機構、107:記憶部、108:制御部、109:通信部、200:ホストコンピュータ、201:制御部、202:通信部、203:データベース、300:ネットワーク、400:申込用紙、500:データ DESCRIPTION OF SYMBOLS 100: Ticket issuing apparatus, 101: Application paper insertion port, 102: Print ticket discharge port, 103: Application paper conveyance mechanism, 104: Voting ticket conveyance mechanism, 105: Application paper reading mechanism, 106: Printing mechanism, 107: Memory | storage part, 108: control unit, 109: communication unit, 200: host computer, 201: control unit, 202: communication unit, 203: database, 300: network, 400: application form, 500: data
Claims (7)
前記入力部で入力された数字の集合から出力データを生成するデータ生成部と、
前記データ生成部で生成された前記出力データを出力する出力部とを備えた発券装置であって、
選択対象の数字の所定桁においてとり得る数字の個数より1を減じた個数が、選択される申込数字の個数より小さい場合、前記データ生成部は、前記所定桁においてとり得る数字の個数より1を減じた個数からなるデータと、前記申込数字の個数及びそれぞれの申込数字における前記選択対象の数字の前記所定桁以外の桁数を乗じた個数からなるデータとを用いて、前記出力データを生成することを特徴とする発券装置。 An input section for entering numbers;
A data generation unit for generating output data from a set of numbers input at the input unit;
An output unit that outputs the output data generated by the data generation unit;
When the number obtained by subtracting 1 from the number of digits that can be selected at a predetermined digit of the number to be selected is smaller than the number of application digits to be selected, the data generation unit calculates 1 from the number of digits that can be taken at the predetermined digit. The output data is generated using data consisting of the subtracted number and data obtained by multiplying the number of the application numbers and the number of digits other than the predetermined digits of the number to be selected in each application number. A ticketing device characterized by that.
前記データ生成部は、前記選択対象の数字を小さな順序に並べ替え、
前記選択対象のそれぞれについて1の桁の数字を抽出し、該抽出された数字を前記並べ替えた順序の通りに並べると共に、前記選択対象の10の桁の数字が変化する部分を抽出し、該抽出された数字を並べることを特徴とする発券装置。 The ticket issuing device according to claim 1,
The data generation unit rearranges the numbers to be selected in a small order,
Extracting a 1-digit number for each of the selection targets, arranging the extracted numbers in the rearranged order, and extracting a portion where the 10-digit number of the selection target changes, A ticket issuing apparatus characterized by arranging the extracted numbers.
前記データ生成部は、10の桁の数字がnである数字の有無を判断し(n:1〜xの整数)、
10の桁の数字がnである数字が無ければ、10の桁の数字に関するデータのn桁目を0とし、10の桁の数字がnである数字が有れば、10の桁の数字に関するデータのn桁目を、前記並べ替えた順序の内、対応する順序の最も小さい数字とすることを特徴とする発券装置。 The ticket issuing device according to claim 2,
The data generation unit determines whether or not there is a number whose n-digit number is n (n: an integer from 1 to x),
If there is no number in which the 10-digit number is n, the n-th digit of the data relating to the 10-digit number is 0, and if there is a number in which the 10-digit number is n, it relates to the 10-digit number A ticket issuing apparatus characterized in that the n-th digit of data is the smallest number in the corresponding order in the rearranged order.
前記選択対象の数字には、選択対象の数字とは異なる情報を有する数字が含まれており、前記出力データに選択対象の数字と異なる情報を含むことを特徴とする発券装置。 The ticket issuing device according to any one of claims 1 to 3,
The number to be selected includes a number having information different from the number to be selected, and the output data includes information different from the number to be selected.
選択対象の数字の所定桁においてとり得る数字の個数より1を減じた個数が、選択される申込数字の個数より小さい桁が複数存在する場合、
前記データ生成部は、いずれかの前記所定桁においてとり得る数字の個数より1を減じた個数からなるデータと、前記申込数字の個数及びそれぞれの申込数字における前記選択対象の数字の、いずれかの前記所定桁以外の桁数を乗じた個数からなるデータとを用いて、前記出力データを生成することを特徴とする発券装置。 The ticket issuing device according to claim 1,
If there are multiple digits that are less than the number of application numbers to be selected, the number obtained by subtracting 1 from the number of numbers that can be taken in the predetermined digits of the number to be selected,
The data generation unit is any one of the data consisting of the number obtained by subtracting 1 from the number of digits that can be taken in any one of the predetermined digits, and the number of the application numbers and the number to be selected in each application number. The ticket issuing apparatus, wherein the output data is generated using data consisting of a number obtained by multiplying the number of digits other than the predetermined digit.
選択対象の数字の所定桁においてとり得る数字の個数より1を減じた個数が、選択される申込数字の個数より小さい桁が複数存在する場合、
前記データ生成部は、全ての前記所定桁においてとり得る数字の個数より1を減じた個数からなるデータと、前記申込数字の個数及びそれぞれの申込数字における前記選択対象の数字の、全ての前記所定桁の桁数を乗じた個数からなるデータとを用いて、前記出力データを生成することを特徴とする発券装置。 The ticket issuing device according to claim 1,
If there are multiple digits that are less than the number of application numbers to be selected, the number obtained by subtracting 1 from the number of numbers that can be taken in the predetermined digits of the number to be selected,
The data generation unit includes all of the predetermined number of data including the number obtained by subtracting 1 from the number of numbers that can be taken in all the predetermined digits, and the number of the application numbers and the numbers to be selected in the respective application numbers. A ticket issuing apparatus characterized in that the output data is generated using data consisting of the number of digits multiplied by the number of digits.
選択対象の数字の所定桁においてとり得る数字の個数が1通りしか存在しない場合、
前記データ生成部は、前記所定桁のデータを前記出力データに含めないことを特徴とする発券装置。 The ticket issuing device according to claim 1,
If there is only one possible number of digits in a given digit of the number to be selected,
The ticket generation apparatus, wherein the data generation unit does not include the predetermined-digit data in the output data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2013187904A JP6134618B2 (en) | 2013-09-11 | 2013-09-11 | Ticketing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2013187904A JP6134618B2 (en) | 2013-09-11 | 2013-09-11 | Ticketing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2015055949A JP2015055949A (en) | 2015-03-23 |
| JP6134618B2 true JP6134618B2 (en) | 2017-05-24 |
Family
ID=52820325
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2013187904A Expired - Fee Related JP6134618B2 (en) | 2013-09-11 | 2013-09-11 | Ticketing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6134618B2 (en) |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2993540B2 (en) * | 1991-12-26 | 1999-12-20 | 新日本製鐵株式会社 | Ascending integer sequence data compression and decoding system |
| JPH06119520A (en) * | 1992-10-05 | 1994-04-28 | Omron Corp | Lottery sales system |
| JP2001143002A (en) * | 1999-11-15 | 2001-05-25 | Nec Corp | Method and system for managing combination number |
| US8262453B2 (en) * | 2005-02-09 | 2012-09-11 | Scientific Games International, Inc. | Combination lottery and raffle game |
-
2013
- 2013-09-11 JP JP2013187904A patent/JP6134618B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2015055949A (en) | 2015-03-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101313299A (en) | Automated processing of forms using remotely stored templates | |
| CN107133225A (en) | A kind of logistics information input method and system | |
| CN113724050A (en) | Information processing method, device, system, equipment and storage medium | |
| De Mello et al. | Cross evaluation using weight restrictions in unitary input DEA models: Theoretical aspects and application to Olympic Games ranking | |
| JP6134618B2 (en) | Ticketing device | |
| JP2017187826A (en) | Totalizator system, voting terminal and server | |
| EP2518700A1 (en) | Money handling system and money handling method | |
| US9116935B2 (en) | Method and system to promote database cost savings | |
| CN104835238B (en) | A kind of color method of throwing and electronic equipment | |
| JP2006171881A (en) | Lottery purchase system and information processor | |
| CN109753253B (en) | Method, apparatus, system, and medium for document matching printing | |
| JP6659229B2 (en) | POS system, information processing method, and program | |
| JP2007095000A (en) | Lottery verification management device, lottery verification management method, program thereof and recording medium | |
| JP2015106715A (en) | Form data management system, method, program, and form data management apparatus | |
| CN106529848A (en) | Printing and shipping management system being able to confirm shipping | |
| JP7524746B2 (en) | Trading system, control server and program | |
| JP6242443B1 (en) | Article management system and program | |
| JP2007022675A (en) | Article delivery system, and article delivery method | |
| JP2020091807A (en) | Voting program, voting method, voting device, and voting system | |
| CN113633993B (en) | Game resource processing method, device, equipment and storage medium | |
| JP5918721B2 (en) | Voting ticketing device | |
| CN101075324B (en) | Data processing system | |
| JP2020029330A (en) | Number-of-deployments determination device and number-of-deployments determination method | |
| CN120875737A (en) | Order data processing method, order data processing device, electronic equipment and computer readable medium | |
| US20150024831A1 (en) | Method, system and program product for contests involving prediction of decimals |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160518 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160518 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20170116 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20170123 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170316 |
|
| 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: 20170328 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170424 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6134618 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| LAPS | Cancellation because of no payment of annual fees |