CN104835070A - Grouped lottery system and method - Google Patents

Grouped lottery system and method Download PDF

Info

Publication number
CN104835070A
CN104835070A CN201510122031.9A CN201510122031A CN104835070A CN 104835070 A CN104835070 A CN 104835070A CN 201510122031 A CN201510122031 A CN 201510122031A CN 104835070 A CN104835070 A CN 104835070A
Authority
CN
China
Prior art keywords
allottee
ticket
purchase
group
center
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510122031.9A
Other languages
Chinese (zh)
Inventor
邱世军
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201510122031.9A priority Critical patent/CN104835070A/en
Publication of CN104835070A publication Critical patent/CN104835070A/en
Pending legal-status Critical Current

Links

Landscapes

  • Credit Cards Or The Like (AREA)

Abstract

The present invention relates to the technical field of information processing, and provides a grouped lottery system and method used for railway ticket business. And the grouped lottery system and method also can be used as a distribution mode used for the situation that limited and insufficient multi-type resources are distributed to a part of the whole demanders and the demanders comprise small groups. The grouped lottery system comprises four subsystems, i.e., a subscription center, a decision center, a ticket service center, and a query center, wherein the subscription center implements the policy that one person can subscribe for one ticket and group subscription is allowed by comparing history records; the decision center performs grouped lottery and classified sale of tickets; the ticket service center supports a subscription person to subscribe for a plurality of train numbers, but limits the subscription person to buy only one ticket. The system does not achieve queuing according to time sequence, so that instant ticket subscription peak time cannot occur, equipment of buyers and sellers cannot be highly required. The operation process of the system is transparent, fixed and easy to understand, and accords with habits of people. The system reasonably and credibly distributes the limited tickets to passengers, thereby reducing operation cost of the buyers and sellers. And the system has a good practical value based on the reality that the number of passengers is more than the number of tickets.

Description

A kind of grouping number of shaking system and method
Technical field
The present invention relates to technical field of information processing, be a kind of grouping number of shaking system and method, can be used for railway ticket.Also can be used as a kind of allocation scheme for limited insufficient eurypalynous Resourse Distribute to the part in all demanders, and in demander, comprise the situation of groupuscule.
Background technology
At present, Chinese Railway transport power is not enough, and the reality that the many tickets of people in festivals or holidays, peak period, busy section are few is probably difficult to thorough solution for the moment.One has been year celebrates a festival, and the people that grows on trees is in scolding railway interests.In what manner limited ticket is distributed to the passenger of excess, be one glass of Bitters of railway interests for many years always.Real-name train ticket, 12306 Internet ticket sales systems, alleviate the difficult problem of booking to a certain extent.But bring new problem.Ticket method of robbing as 12306 Internet ticket sales systems causes visit capacity instantaneously extremely to rise suddenly and sharply, so that system crash.This causes railway interests must by more manpower and materials to build better system; Also passenger is caused also to need more time and material resources to buy better equipment in the hope of a ticket.This seem fair mode in fact become whose equipment good who just can get ticket, and many tickets can be got; The demander of equipment difference is beyond one's ability to help, and that hopes heaves a sigh.Result also in the appearance of ox, the equipment made good use of and technological means get various tickets to seek illegal profit.
Invent a kind of railway tickets allocation scheme, the limited ticket more rationally believable passenger distributing to excess, and reduce both sides' running cost, reduce railway interests and be scolded and suffer indignity, needed for when being.
Summary of the invention
The object of the invention is the needs that distribute for existing railway tickets and the deficiencies in the prior art, a kind of grouping number of shaking system and method is proposed, in the hope of the limited ticket more rationally believable passenger distributing to excess, reduce railroad and passenger both sides' running cost.
For solving above technical matters, the invention provides a kind of grouping number of shaking system, this system comprises.
Apply to purchase center, applying to purchase ticket operation for accepting allottee, also applying to purchase record for preserving; This is applied to purchase record and comprises allottee individual's mark (as ID (identity number) card No.); This allottee individual mark is used for applying to purchase Record Comparison with history, determining that this allottee applies to purchase with or without repeating, applying to purchase at most an anticipatory remark train number ticket to limit each allottee.(allottee described in the present invention refers to ticket user, does not comprise for consumer).
Decision center, applying to purchase center be connected with described, applying to purchase record for obtaining allottee; And the allottee applied to purchase in record is divided into Nuo Gange allottee group, and the number of each allottee group is equal or only differ a people; Afterwards, decision center gives each allottee little group echo sequence number in order to this allottee group of unique identification successively.
Decision center, with the sequence number of the allottee group number of shaking at random, is sorted to all allottee groups by the number of shaking at random, determines an allottee group array having sequencing.
Decision center, according to the sequencing of allottee group array, buys rations ticket power to successively allottee's small component; Allocation flow comprises following three steps.
Step one: set an operating pointer, operating pointer points to first allottee group (first element) of allottee group array.
Step 2: the number of the allottee group that contrast residue ticket number and operating pointer point to; If residue ticket number is more than or equal to the number of the allottee group that operating pointer points to, booking power is distributed to all allottees of this allottee group, operating pointer points to a rear allottee group of this allottee group in allottee group array, returns and re-executes step 2; If residue ticket number is less than the number of the allottee group that operating pointer points to, perform step 3.
Step 3: terminate, distributes booking power no longer to the allottee in remaining allottee group.
Ticket center, is connected with decision center, obtains the data and result of distributing booking power; For declaring the allottee's booking failure not being assigned to booking power; For declaring, notifying, accept that the allottee being assigned to booking power carries out booking operation; For reclaiming the ticket applied to purchase center and could not distribute; For reclaiming the ticket quit the subscription of.
Help Center, and applies to purchase center and is connected, and for providing the query function of applying to purchase, and release applies to purchase information accordingly; Being connected with decision center, for providing decision process query function, with decision center simultaneous display, the openly number of shaking process, and discharging corresponding information; Being connected with ticket center, for providing ticketing query function, and discharging corresponding information.
Further, described in apply to purchase center while accepting and applying to purchase, collect the guaranty money of allottee; Described ticket center, return the guaranty money of the allottee not being assigned to booking power, and this applies to purchase record to delete this allottee; Described ticket center, the allottee not paying ticketing service expense being assigned to booking power is considered as promise breaking, and the guaranty money of the deduction defaulter is as penalty, and this applies to purchase record to delete this allottee; Described ticket center, returns the guaranty money of this allottee, and returns to this allottee by the form of guaranty money being served as part ticketing service expense to the allottee being assigned to booking and paying for the time being ticketing service expense.
Describedly apply to purchase center and preset and apply to purchase record retention time, apply to purchase in record retention time described, allow allottee to stop to apply to purchase or to pay earnest money, and delete this that stop allottee and apply to purchase record; Exceed and apply to purchase record retention time and do not prop up and pay earnest money, this allottee is considered as termination applies to purchase; Ticketing record retention time is preset in described ticket center, in described ticketing record retention time, allows the allottee being assigned to booking power to quit the subscription of or pay ticketing service expense, but the person of quitting the subscription of is considered as promise breaking; Described ticket center, the guaranty money of the deduction defaulter is as penalty, and this applies to purchase record to delete this allottee; Exceed ticketing record retention time and do not pay ticketing service expense, be considered as quitting the subscription of and break a contract.
Further, according to allottee's wish, described in apply to purchase center record of applying to purchase comprise the information of forming a team of allottee, more than two or two allottees are formed groupuscule; Described decision center, is distributed in the allottee in same groupuscule in same allottee group.
Further, allottee group number is fixed as 100 by decision center.
Further, when allottee group number is fixed, decision center, before the number of shaking at random, is first carried out one or many and is supplemented the number of shaking, each number of shaking of supplementing all deletes part allottee, until remaining allottee's quantity is less than the product of ticket for sale sum and allottee group number.
Further, the number of the shaking machine that decision center uses is mechanical, transparent, and the number of shaking process can be watched in real time.
Preferably, the described one grouping number of shaking system provides two kinds or two or more seats type.Wish is selected at the seat that the described record of applying to purchase applying to purchase center comprises allottee, and allottee can one or more seat types of unrestricted choice.Described decision center carries out decision-making with the basis that is chosen as of allottee, the number of shaking is got to the allottee of booking power, and the seat distributing to allottee belongs to the type of this allottee selection.Allocation flow comprises following 8 steps.
Step (1) setting parameter.Allottee group array define is array A, and allottee's Panel definitions is the element a [n] of array A, and the ordinal number of allottee group is defined as variable n, and the number of allottee group is defined as N; Meet A=a [1], a [2], a [3] ... a [n] ... a [N], (n ∈ [1, N]).
Some allottees (i.e. some elements) in allottee group a [n] are defined as a [n] [q], the ordinal number of the allottee in this allottee group a [n] is defined as variable q, and the number of the allottee in this allottee group a [n] is Q; Meet a [n]=a [n] [1], a [n] [2], a [n] [3].. a [n] [q].. a [n] [Q] }, (q ∈ [1, Q]).
The described one grouping number of shaking system provides two kinds or two or more seats type, the quantity of seat type is defined as M kind, the ordinal number of set B interior element is defined as variable m, form set B with this M type seat for element, meet B={ b1, b2, ... bm, ... bM }, (m ∈ [1, M]).
Refer to seat type or seat type combination with all subsets of set B except empty set by the subsets of how much sequence composition array C(set B described here of element), array C interior element ordinal number be defined as variable p, the number of array C interior element is P.Meet C=c [1], c [2], c [3] ... c [p] ... c [P]=b1}, and b2} ... b1, b2} ... b1, b2 ... bM.(p∈[1,P])。(as system provides the seat of 3 types, B={ b1, b2, b3 }, C={{ b1}, { b2}, { b3}, { b1, b2}, { b1, b3}, { b2, b3}, { b1, b2, b3 } }.
The ticket type set that allottee selects is defined as set D; Meet D B.
In residue ticket, the number of the ticket of element c [p] containing type of array C is defined as variable T1.
In allottee group a [n], allottee's number is defined as variable T2.
Step (2) definition initial value.Define the first seat type c [1] (i.e. first element c [1]) that an operating pointer R, operating pointer R point to array C.
Define first allottee group a [1] (i.e. first element a [1]) that an operating pointer S, operating pointer S point to allottee group array A.
Step (3) judges whether ticket type is assigned, and judges whether allottee is assigned.If the ordinal number p≤P of element of the array C that operating pointer R points to and operating pointer S point to the ordinal number n≤N of the element a [n] of allottee group array, enter step (4); Otherwise, enter step (8).
Step (4) provides the ticket of specified type.From array C, extract the element c [p] that operating pointer R points to, from residue ticket, extract the ticket of c [p] containing type, statistics number T1.The element a [n] that operating pointer S points to is extracted, allottee number T2 in statistics a [n] from allottee group array A; If T1 >=T2, then enter step (5); If T1<T2, next element (i.e. p=p+1) in the array C that operating pointer R points to, returns and performs step (3).
Step (5) definition initial value.Define first allottee a [n] [1] (i.e. first element of allottee group a [n]) of allottee group a [n] that an operating pointer T, operating pointer T point operation pointer S points to.
Step (6) distributes the ticket of specified type to the allottee group specified.Extract from allottee group a [n] that operating pointer S points to allottee a [n] [q] that operating pointer T points to, if the ticket set D that this allottee selects comprises c [p], (i.e. c [p] D), allottee is designated as booking power, otherwise, this allottee is considered as abandoning booking power, does not weigh to booking.
Step (7) judges whether this allottee group is assigned.The ordinal number q<Q of allottee a [n] [q] that if operating pointer T points to, operating pointer T points to next allottee (i.e. q=q+1) in this allottee group a [n], returns and performs step (6).Otherwise operating pointer S points to the next allottee group (i.e. n=n+1) of allottee group array, return and perform step (3).
Step (8) terminates.
Further, that applies to purchase that center preserves applies to purchase in record, comprises allottee institute and ride secondary, upper and lower website; The record of applying to purchase of this allottee, while ticketing is to allottee, is updated to ticketing record by ticket center, upper and lower for this allottee website is updated to the period by bus; When allottee applies to purchase ticket, apply to purchase center and contrast the historical record of this allottee at each train number, if there is ticket that this allottee purchases in historical record to ride that the period, to apply to purchase ticket period of riding overlapping with this, stop to apply to purchase, and delete its this apply to purchase record; Before decision center grouping, decision center contrasts the historical record of this allottee at each train number, if there is ticket that this allottee purchases in historical record to ride that the period, to apply to purchase ticket period of riding overlapping with this, this is applied to purchase and is considered as invalidly applying to purchase, and delete its this apply to purchase record; Before this allottee is given in ticket center ticketing, ticket center contrasts the historical record of this allottee at each train number, if there is ticket that this allottee purchases in historical record to ride that the period, to apply to purchase ticket period of riding overlapping with this, this is applied to purchase and is considered as invalidly applying to purchase, not with ticketing, and delete its this apply to purchase record.
Further, two or more use the different train numbers of a kind of grouping number of shaking system of the present invention simultaneously, share the same number of shaking machine, share the same once number of shaking, and share same allottee group array.
Further, system, to the allottee causing booking failure because the number of shaking does not get booking power, distributes to these allottees by certain rule tail ticket based on the number of shaking order.Described tail ticket derives from: produce when the remaining ticket deficiency of (1) decision center distributes to allottee group personnel; (2) allottee that is assigned to booking power does not finally buy that ticket produces.
For solving above technical matters, present invention also offers a kind of grouping number of shaking method, the method realizes based on the described one grouping number of shaking system, and this system comprises applies to purchase center, decision center, ticket center, Help Center, and the method comprises.
Apply to purchase step, apply to purchase center accept allottee apply to purchase ticket operation, preserve apply to purchase record; This is applied to purchase record and comprises allottee individual's mark (as ID (identity number) card No.); This allottee individual mark is used for applying to purchase Record Comparison with history, determining that this allottee applies to purchase with or without repeating, applying to purchase at most an anticipatory remark train number ticket to limit each allottee.
Steps in decision-making, decision center obtains allottee and applies to purchase record; And the allottee applied to purchase in record is divided into Nuo Gange allottee group, and the number of each allottee group is equal or only differ a people; Afterwards, decision center gives each allottee little group echo sequence number successively.
Decision center, with the sequence number of the allottee group number of shaking at random, is sorted to all allottee groups by the number of shaking at random, determines an allottee group array having sequencing.
Decision center, according to the sequencing of allottee group array, buys rations ticket power to successively allottee's small component; Allocation flow comprises following three steps.
Step one: set an operating pointer, operating pointer points to first allottee group (first element) of allottee group array.
Step 2: the number of the allottee group that contrast residue ticket number and operating pointer point to; If residue ticket number is more than or equal to the number of the allottee group that operating pointer points to, booking power is distributed to all allottees of this allottee group, operating pointer points to a rear allottee group of this allottee group in allottee group array, returns and re-executes step 2; If residue ticket number is less than the number of the allottee group that operating pointer points to, perform step 3.
Step 3: terminate, distributes booking power no longer to the allottee in remaining allottee group.
Ticketing step, ticket center obtains the data and result of distributing booking power; Declaration is not assigned to allottee's booking failure of booking power; Declare, notify, accept to be assigned to that the allottee of booking power carries out booking operation; Reclaim and apply to purchase the ticket that could not distribute at center; Reclaim the ticket quit the subscription of.
The invention has the advantages that.
1) carry out a people and apply to purchase a ticket, the grouping number of shaking, does not rob ticket, not high to the equipment requirement of both parties, more believablely solves the few realistic problem of the many tickets of people.
2) support that groupuscule is applied to purchase, meet the reality need of people.
3) system operation procedure is transparent, fixing, and easy to understand, meets the custom of people.
4) support allottee free seat type, meet the reality need of people.
5) support that allottee applies to purchase multiple train number, but only sell a ticket to him, meet the reality need of people.
6) system has the process of tail ticket, better to serve both parties, meets reality.
In a word, the present invention is based on the reality need that the many tickets of people are few, process is concisely rationally credible, has very strong practical value.
Accompanying drawing explanation
Fig. 1 embodiment of the present invention one grouping number of shaking system schematic.
Fig. 2 embodiment of the present invention booking power allocation flow schematic diagram.
Fig. 3 embodiment of the present invention preferred version booking power allocation flow schematic diagram.
The concrete schematic diagram of Fig. 4 embodiment of the present invention one grouping number of shaking method.
Embodiment
As shown in Figure 1, the embodiment of the present invention one grouping number of shaking system, this system comprises.
Apply to purchase center, applying to purchase ticket operation for accepting allottee, also applying to purchase record for preserving; This is applied to purchase record and comprises allottee individual's mark (as ID (identity number) card No.); This allottee individual mark is used for applying to purchase Record Comparison with history, determining that this allottee applies to purchase with or without repeating, applying to purchase at most an anticipatory remark train number ticket to limit each allottee.(allottee described in the present invention refers to ticket user, does not comprise for consumer).
Decision center, applying to purchase center be connected with described, applying to purchase record for obtaining allottee; And the allottee applied to purchase in record is divided into Nuo Gange allottee group, and the number of each allottee group is equal or only differ a people; Afterwards, decision center gives each allottee little group echo sequence number in order to this allottee group of unique identification successively.
Decision center, with the sequence number of the allottee group number of shaking at random, is sorted to all allottee groups by the number of shaking at random, determines an allottee group array having sequencing.
Decision center, according to the sequencing of allottee group array, buys rations ticket power to successively allottee's small component; Allocation flow comprises following three steps, as shown in Figure 2.
Step one: set an operating pointer, operating pointer points to first allottee group (first element) of allottee group array.
Step 2: the number of the allottee group that contrast residue ticket number and operating pointer point to; If residue ticket number is more than or equal to the number of the allottee group that operating pointer points to, booking power is distributed to all allottees of this allottee group, operating pointer points to a rear allottee group (i.e. n=n+1) of this allottee group in allottee group array, returns and re-executes step 2; If residue ticket number is less than the number of the allottee group that operating pointer points to, perform step 3.
Step 3: terminate, distributes booking power no longer to the allottee in remaining allottee group.
Ticket center, is connected with decision center, obtains the data and result of distributing booking power; For declaring the allottee's booking failure not being assigned to booking power; For declaring, notifying, accept that the allottee being assigned to booking power carries out booking operation; For reclaiming the ticket applied to purchase center and could not distribute; For reclaiming the ticket quit the subscription of.
Help Center, and applies to purchase center and is connected, and for providing the query function of applying to purchase, and release applies to purchase information accordingly; Being connected with decision center, for providing decision process query function, with decision center simultaneous display, the openly number of shaking process, and discharging corresponding information; Being connected with ticket center, for providing ticketing query function, and discharging corresponding information.
Further, described in apply to purchase center while accepting and applying to purchase, collect the guaranty money of allottee; Described ticket center, return the guaranty money of the allottee not being assigned to booking power, and this applies to purchase record to delete this allottee; Described ticket center, the allottee not paying ticketing service expense being assigned to booking power is considered as promise breaking, and the guaranty money of the deduction defaulter is as penalty, and this applies to purchase record to delete this allottee; Described ticket center, returns the guaranty money of this allottee, and returns to this allottee by the form of guaranty money being served as part ticketing service expense to the allottee being assigned to booking and paying for the time being ticketing service expense.
Describedly apply to purchase center and preset and apply to purchase record retention time, apply to purchase in record retention time described, allow allottee to stop to apply to purchase or to pay earnest money, and delete this that stop allottee and apply to purchase record; Exceed and apply to purchase record retention time and do not prop up and pay earnest money, this allottee is considered as termination applies to purchase; Ticketing record retention time is preset in described ticket center, in described ticketing record retention time, allows the allottee being assigned to booking power to quit the subscription of or pay ticketing service expense, but the person of quitting the subscription of is considered as promise breaking; Described ticket center, the guaranty money of the deduction defaulter is as penalty, and this applies to purchase record to delete this allottee; Exceed ticketing record retention time and do not pay ticketing service expense, be considered as quitting the subscription of and break a contract.
Understandably, collect the guaranty money of allottee, what effectively can limit imaginary demand person (as ox) disturbs office; Imaginary demand person seeks illegal profit to have the situation under control, and must apply to purchase in a large number, but after distributing booking power, they do not buy tickets, the existence of guaranty money, and that pays making them is more, and what obtain is little, loses economic worth, thus beats a retreat in the face of difficulties; Certainly, also a small amount of allottee is had to start really to want to buy a ticket, but he has broken an agreement afterwards, also do not buy tickets after distributing booking power, what this allottee and imaginary demand person were maximum be not both, and he needs a ticket instead of applies to purchase in a large number, so, his guaranty money is little, can bear, simultaneously, his promise breaking of breaking an agreement also occupies system resource really, and it is also natural for collecting penalty; In addition, preset recording retention time meets people to operate reality and needs.
Further, according to allottee's wish, described in apply to purchase center record of applying to purchase comprise the information of forming a team of allottee, more than two or two allottees are formed groupuscule; Described decision center, is distributed in the allottee in same groupuscule in same allottee group.
Understandably, the allottee having more than two or two wishes to form groupuscule, or can buy ticket, or all can't buy ticket.The present invention supports this demand, and when conditions permit, decision center preferentially can distribute the ticket of same type to the allottee be assigned in the same group of booking power.When decision center only provides a type ticket, yes is assigned to the ticket of same type for the allottee in same group; When decision center provides polytype ticket to an allottee group, anyway the allottee of this allottee group will obtain booking power, decision center preferentially can distribute to the ticket of same type the groupuscule of this allottee group.
Further, allottee group number is fixed as 100 by decision center.
Understandably, the present invention postichely to do numeral 100 to increase patent right.Allottee group number is fixed as 100, on the one hand, can simplifies the operation of railway interests, each operation is all in the face of same digital number is well easily; On the other hand, also meet the checking of passenger, understand, use habit, such as, certain train number has the allottee of 63% can the number of shaking, as long as certain allottee looks at the allottee group group number of oneself comes which position of allottee group array, be before 63 or after 63, in just knowing, there is no medium size.
Further, when allottee group number is fixed, decision center, before the number of shaking at random, is first carried out one or many and is supplemented the number of shaking, each number of shaking of supplementing all deletes part allottee, until remaining allottee's quantity is less than the product of ticket for sale sum and allottee group number.Because secured allottee group number to be fixed as 100, and in the present invention, maximum apply to purchase between number and allottee group number have correlativity, maximumly apply to purchase number and be greater than ticket for sale sum, be less than ticket for sale sum and the product of allottee group number N.When securing allottee group number, Gonna breakthrough is maximum applies to purchase number, and repeatedly supplementing the number of shaking is solution.
Further, the number of the shaking machine that decision center uses is mechanical, transparent, and the number of shaking process can be watched in real time.
Understandably, ticket is limited, and some allottee inevitable can't buy ticket.Decision process is rationally credible is necessary, the present invention is mechanical, transparent by using, the number of the shaking machine that the number of shaking process can be watched in real time, reduce the possibility of cheating, to increase allottee to confidence of the present invention, believe that the present invention is rationally believable, believe that the people not shaking ticket is that fortune is temporarily not so good.If use the electronics number of shaking machine, the number of shaking process is opaque, not visible, and allottee just has reason to suspect its fairness.In reality, lottery ticket purchase is exactly a close example, and the number of the shaking machine that they use also is mechanical, transparent, and the number of shaking process can be watched in real time.
Preferably, the described one grouping number of shaking system provides two kinds or two or more seats type.Wish is selected at the seat that the described record of applying to purchase applying to purchase center comprises allottee, and allottee can one or more seat types of unrestricted choice.Described decision center carries out decision-making with the basis that is chosen as of allottee, the number of shaking is got to the allottee of booking power, and the seat distributing to allottee belongs to the type of this allottee selection.Allocation flow comprises following 8 steps, as shown in Figure 3.
Step (1) setting parameter.Allottee group array define is array A, and allottee's Panel definitions is the element a [n] of array A, and the ordinal number of allottee group is defined as variable n, and the number of allottee group is defined as N; Meet A=a [1], a [2], a [3] ... a [n] ... a [N], (n ∈ [1, N]).
Some allottees (i.e. some elements) in allottee group a [n] are defined as a [n] [q], the ordinal number of the allottee in this allottee group a [n] is defined as variable q, and the number of the allottee in this allottee group a [n] is Q; Meet a [n]=a [n] [1], a [n] [2], a [n] [3].. a [n] [q].. a [n] [Q] }, (q ∈ [1, Q]).
The described one grouping number of shaking system provides two kinds or two or more seats type, the quantity of seat type is defined as M kind, the ordinal number of set B interior element is defined as variable m, form set B with this M type seat for element, meet B={ b1, b2, ... bm, ... bM }, (m ∈ [1, M]).
Refer to seat type or seat type combination with all subsets of set B except empty set by the subsets of how much sequence composition array C(set B described here of element), array C interior element ordinal number be defined as variable p, the number of array C interior element is P.Meet C=c [1], c [2], c [3] ... c [p] ... c [P]=b1}, and b2} ... b1, b2} ... b1, b2 ... bM.(p∈[1,P])。(as system provides the seat of 3 types, B={ b1, b2, b3 }, C={{ b1}, { b2}, { b3}, { b1, b2}, { b1, b3}, { b2, b3}, { b1, b2, b3 } }.
The ticket type set that allottee selects is defined as set D; Meet D B.
In residue ticket, the number of the ticket of element c [p] containing type of array C is defined as variable T1.
In allottee group a [n], allottee's number is defined as variable T2.
Step (2) definition initial value.Define the first seat type c [1] (i.e. first element c [1]) that an operating pointer R, operating pointer R point to array C.
Define first allottee group a [1] (i.e. first element a [1]) that an operating pointer S, operating pointer S point to allottee group array A.
Step (3) judges whether ticket type is assigned, and judges whether allottee is assigned.If the ordinal number p≤P of element of the array C that operating pointer R points to and operating pointer S point to the ordinal number n≤N of the element a [n] of allottee group array, enter step (4); Otherwise, enter step (8).
Step (4) provides the ticket of specified type.From array C, extract the element c [p] that operating pointer R points to, from residue ticket, extract the ticket of c [p] containing type, statistics number T1.The element a [n] that operating pointer S points to is extracted, allottee number T2 in statistics a [n] from allottee group array A; If T1 >=T2, then enter step (5); If T1<T2, next element (i.e. p=p+1) in the array C that operating pointer R points to, returns and performs step (3).
Step (5) definition initial value.Define first allottee a [n] [1] (i.e. first element of allottee group a [n]) of allottee group a [n] that an operating pointer T, operating pointer T point operation pointer S points to.
Step (6) distributes the ticket of specified type to the allottee group specified.Extract from allottee group a [n] that operating pointer S points to allottee a [n] [q] that operating pointer T points to, if the ticket set D that this allottee selects comprises c [p], (i.e. c [p] D), allottee is designated as booking power, otherwise, this allottee is considered as abandoning booking power, does not weigh to booking.
Step (7) judges whether this allottee group is assigned.The ordinal number q<Q of allottee a [n] [q] that if operating pointer T points to, operating pointer T points to next allottee (i.e. q=q+1) in this allottee group a [n], returns and performs step (6).Otherwise operating pointer S points to the next allottee group (i.e. n=n+1) of allottee group array, return and perform step (3).
Step (8) terminates.
Understandably, in the face of two kinds or two or more seats type, allottee has multiple choices perhaps; But principle of the present invention is, require more, chance is fewer; As can be seen from allocation flow, the allottee's chance do not required seat type is maximum, and allottee's chance of overcritical a kind of seat type is minimum.
Further, that applies to purchase that center preserves applies to purchase in record, comprises allottee institute and ride secondary, upper and lower website; The record of applying to purchase of this allottee, while ticketing is to allottee, is updated to ticketing record by ticket center, upper and lower for this allottee website is updated to the period by bus; When allottee applies to purchase ticket, apply to purchase center and contrast the historical record of this allottee at each train number, if there is ticket that this allottee purchases in historical record to ride that the period, to apply to purchase ticket period of riding overlapping with this, stop to apply to purchase, and delete its this apply to purchase record; Before decision center grouping, decision center contrasts the historical record of this allottee at each train number, if there is ticket that this allottee purchases in historical record to ride that the period, to apply to purchase ticket period of riding overlapping with this, this is applied to purchase and is considered as invalidly applying to purchase, and delete its this apply to purchase record; Before this allottee is given in ticket center ticketing, ticket center contrasts the historical record of this allottee at each train number, if there is ticket that this allottee purchases in historical record to ride that the period, to apply to purchase ticket period of riding overlapping with this, this is applied to purchase and is considered as invalidly applying to purchase, not with ticketing, and delete its this apply to purchase record.
Understandably, in some cases, multiple different train number is had to can be used for passenger to select.Passenger in order to have increased access to booking power chance also wish to apply to purchase multiple different train number.The present invention supports this demand of allottee, support that allottee applies to purchase the ticket of multiple different train number simultaneously, but ticket center at the historical record of each train number, makes allottee can only buy a ticket in all train numbers in same working time by contrast allottee.
In addition, when applying to purchase and grouping time contrast with historical record, can effectively screen out invalid allottee, when raising is applied to purchase, the number of shaking medium size probability, reduces unnecessary turning from side to side.
Further, two or more use the different train numbers of a kind of grouping number of shaking system of the present invention simultaneously, share the same number of shaking machine, share the same once number of shaking, and share same allottee group array.
Understandably, each passenger only may in a train number at the same time, and namely concerning some passengers, the train number that other train number and this passenger take shares same allottee group array not to be affected this passenger.There is multiple train number simultaneously or basic simultaneously in operation in the whole nation, if each train number uses the number of a shaking machine independently number of shaking, can increase the expenditure of railway interests.Railway interests, in order to reduce expenditure, two or more can use the different train numbers of a kind of grouping number of shaking system of the present invention simultaneously, share the same number of shaking machine, shares with the once number of shaking, and shares same allottee group array.But this method is conditional, namely two train numbers that there is same routes or same site can not use the method; Because, although each passenger only may be present in a train number at the same time, but this passenger may apply to purchase the ticket of two identical train numbers to have increased access to the chance of booking power simultaneously, in this case, two train numbers that method in the present invention described in epimere can make some allottee apply to purchase all arrive same number, limit the chance that he obtains booking power.
Further, system, to the allottee causing booking failure because the number of shaking does not get booking power, distributes to these allottees by certain rule tail ticket based on the number of shaking order.Described tail ticket derives from: produce when the remaining ticket deficiency of (1) decision center distributes to allottee group personnel; (2) allottee that is assigned to booking power does not finally buy that ticket produces.
For solving above technical matters, present invention also offers a kind of grouping number of shaking method, the method realizes based on the described one grouping number of shaking system, and this system comprises applies to purchase center, decision center, ticket center, Help Center, and the method comprises:
Apply to purchase step, apply to purchase center accept allottee apply to purchase ticket operation, preserve apply to purchase record; This is applied to purchase record and comprises allottee individual's mark (as ID (identity number) card No.); This allottee individual mark is used for applying to purchase Record Comparison with history, determining that this allottee applies to purchase with or without repeating, applying to purchase at most an anticipatory remark train number ticket to limit each allottee.
Steps in decision-making, decision center obtains allottee and applies to purchase record; And the allottee applied to purchase in record is divided into Nuo Gange allottee group, and the number of each allottee group is equal or only differ a people; Afterwards, decision center gives each allottee little group echo sequence number successively.
Decision center, with the sequence number of the allottee group number of shaking at random, is sorted to all allottee groups by the number of shaking at random, determines an allottee group array having sequencing.
Decision center, according to the sequencing of allottee group array, buys rations ticket power to successively allottee's small component; Allocation flow comprises following three steps.
Step one: set an operating pointer, operating pointer points to first allottee group (first element) of allottee group array.
Step 2: the number of the allottee group that contrast residue ticket number and operating pointer point to; If residue ticket number is more than or equal to the number of the allottee group that operating pointer points to, booking power is distributed to all allottees of this allottee group, operating pointer points to a rear allottee group of this allottee group in allottee group array, returns and re-executes step 2; If residue ticket number is less than the number of the allottee group that operating pointer points to, perform step 3.
Step 3: terminate, distributes booking power no longer to the allottee in remaining allottee group.
Ticketing step, ticket center obtains the data and result of distributing booking power; Declaration is not assigned to allottee's booking failure of booking power; Declare, notify, accept to be assigned to that the allottee of booking power carries out booking operation; Reclaim and apply to purchase the ticket that could not distribute at center; Reclaim the ticket quit the subscription of.
Below, by reference to the accompanying drawings 4 and specific embodiment the present invention done describe in detail further.
Fig. 4 is the idiographic flow schematic diagram of a train number of the use a kind of grouping number of the shaking method of the present invention mainly described from allottee's angle, is described as follows below with regard to its concrete implementation step.
As an instantiation, allottee group personal set is 100, and ticket kind is 3 kinds, and maximum groupuscule number is 10 people, if sell apply to purchase record retention time be 45 minutes, if ticketing record retention time is 45 minutes.
Step 401, ticket query.Allottee enters the described one grouping number of shaking system, is inquired about type of seat, up and down website, running time, admission fee, the information such as requirement, points for attention of forming a team of this train number by Help Center.
Step 403, applies to purchase.After inquiring required ticket information, allottee applies to purchase required ticket to applying to purchase center, applies to purchase center and accepts this and apply to purchase, record this allottee's information personal information, as ID (identity number) card No., up and down website, acceptable seat type, information etc. of forming a team.
Understandably, the allottee having more than two or two wishes to form groupuscule, or can buy ticket, or all can't buy ticket.The present invention supports this demand, and when conditions permit, decision center preferentially can distribute the ticket of same type to the allottee be assigned in the same group of booking power.When decision center only provides a type ticket, yes is assigned to the ticket of same type for the allottee in same group; When decision center provides polytype ticket to an allottee group, anyway the allottee of this allottee group will obtain booking power, decision center preferentially can distribute to the ticket of same type the groupuscule of this allottee group.
Step 405, applies to purchase record.Applying to purchase center by applying to purchase Record Comparison with history, determining that this allottee applies to purchase with or without repeating, apply to purchase at most an anticipatory remark train number ticket to limit each allottee.If there is the record applying to purchase this train number, applies to purchase center and stop to apply to purchase this allottee and accept, delete current record.If no, continue step 407.
Step 407, pays earnest money.Apply to purchase center waits allottee payment and apply to purchase guaranty money's (as 2 yuans).If allottee initiatively exits, or not pay earnest money within the time of agreement, apply to purchase center and stop this allottee and apply to purchase, and delete this that stop allottee and apply to purchase record.If allottee props up and pays earnest money within the time of agreement, continue step 409.
Apply to purchase center to preset retention time and can be set to 45 minutes, in this retention time, allottee can carry out paying or cancelling applying to purchase at any time; After exceeding this retention time, apply to purchase center and can be set to automatically by ticket information release corresponding for record of applying to purchase; Understandably, after exceeding retention time, the default action of applying to purchase center should arrange corresponding prompt facility, to ensure the right to know of user.Above applies to purchase process by network trading, also can on-the-spot over-the-counter trading.
Understandably, collect the guaranty money of allottee, what effectively can limit imaginary demand person (as ox) disturbs office; Imaginary demand person seeks illegal profit to have the situation under control, and must apply to purchase in a large number, but after distributing booking power, they do not buy tickets, the existence of guaranty money, and that pays making them is more, and what obtain is little, loses economic worth, thus beats a retreat in the face of difficulties; Certainly, also a small amount of allottee is had to start really to want to buy a ticket, but he has broken an agreement afterwards, also do not buy tickets after distributing booking power, what this allottee and imaginary demand person were maximum be not both, and he needs a ticket instead of applies to purchase in a large number, so, his guaranty money seldom can bear, meanwhile, his promise breaking of breaking an agreement also occupies system resource really, and it is also natural for collecting penalty; In addition, preset recording retention time meets people to operate reality and needs.
Step 409, the time expires.Apply to purchase center preset apply to purchase the phase.Apply to purchase the phase when the time exceedes, apply to purchase center and stop accepting applying to purchase, continue step 411; When the time is also applying to purchase in the phase, apply to purchase center and remain seized of and apply to purchase.
Understandably, applying to purchase in the phase, applying to purchase center can side by side accept multiple allottee concurrently, does not interfere with each other between each allottee.
Step 411, applies to purchase deficiency.System statistics allottee number, if allottee's number is equal to or less than supply car poll, system directly distributes to each allottee booking power, continues step 441; If allottee's number is more than supply car poll, continue step 413.
Step 413, grouping.These allottees are divided into 100 allottee groups with number by decision center comparatively equably, and described number comparatively evenly refers to that the number of each allottee group is equal or only differ a people; And the allottee in same groupuscule is distributed in same allottee group.Decision center gives each allottee little group echo sequence number in order to this allottee group of unique identification successively.
Understandably, the integral multiple of number not necessarily allottee group is applied to purchase, so the allottee group that just may a have people more than the allottee group had.Dividing into groups comparatively equably with number, is sell ticket for later step is as much as possible.When dividing into groups, first arranging the groupuscule that number is many, finally arranging the single allottee do not formed a team, allottee group can be avoided like this to can not load groupuscule allottee.Allottee be arranged in which group can, the justice of the number of shaking booking after can not affecting.
Understandably, in the present embodiment, allottee group target sequence number is 1 successively, 2,3 ... 100.
Step 415, the number of shaking sorts.Decision center, with the sequence number of the allottee group number of shaking at random, is sorted to all allottee groups by the number of shaking at random, determines an allottee group array having sequencing.
Understandably, because be the number of shaking at random, the value not necessarily 2 of the value (this value is exactly the sequence number of allottee group) of first element of allottee group array not necessarily 1, second array element, in like manner, other array element is also like this.
Step 417, setting parameter.Allottee group array define is array A, and allottee's Panel definitions is the element a [n] of array A, and the ordinal number of allottee group is defined as variable n, and the number of allottee group is defined as N; Meet A=a [1], a [2], a [3] ... a [n] ... a [N], (n ∈ [1, N]).
Some allottees (i.e. some elements) in allottee group a [n] are defined as a [n] [q], the ordinal number of the allottee in this allottee group a [n] is defined as variable q, and the number of the allottee in this allottee group a [n] is Q; Meet a [n]=a [n] [1], a [n] [2], a [n] [3].. a [n] [q].. a [n] [Q] }, (q ∈ [1, Q]).
The described one grouping number of shaking system provides two kinds or two or more seats type, the quantity of seat type is defined as M kind, the ordinal number of set B interior element is defined as variable m, form set B with this M type seat for element, meet B={ b1, b2, ... bm, ... bM }, (m ∈ [1, M]).
Press with all subsets of set B except empty set how much sequence composition array C, array C interior elements of element ordinal number be defined as variable p, the number of array C interior element is P.Meet C=c [1], c [2], c [3] ... c [p] ... c [P]=b1}, and b2} ... b1, b2} ... b1, b2 ... bM.(p∈[1,P])。(as system provides the seat of 3 types, B={ b1, b2, b3 }, C={{ b1}, { b2}, { b3}, { b1, b2}, { b1, b3}, { b2, b3}, { b1, b2, b3 } }.
The ticket type set that allottee selects is defined as set D; Meet D B.
In residue ticket, the number of the ticket of element c [p] containing type of array C is defined as variable T1.
In allottee group a [n], allottee's number is defined as variable T2.
Step 419, definition initial value.Define an operating pointer R, operating pointer R point to array C first element the first seat type of b1}().
Define first element a [1] (first allottee group) that an operating pointer S, operating pointer S point to allottee group array.
Step 421, judges whether ticket type is assigned, and judges whether allottee is assigned.If the ordinal number p≤P of element of the array C that operating pointer R points to and operating pointer S point to the ordinal number n≤N of the element a [n] of allottee group array, enter step 422; Otherwise, enter step 441.
Step 422, provides the ticket of specified type.From array C, extract the element c [p] that operating pointer R points to, from residue ticket, extract the ticket of c [p] containing type, statistics number T1.The element a [n] that operating pointer S points to is extracted, allottee number T2 in statistics a [n] from allottee group array A; If T1 >=T2, then enter step 424; If T1<T2, next element (i.e. p=p+1) in the array C that operating pointer R points to, returns and performs step 421.
Step 424, definition initial value.Define first element a [n] [1] (i.e. first allottee of allottee group a [n]) of allottee group a [n] that an operating pointer T, operating pointer T point operation pointer S points to.
Step 426, distributes the ticket of specified type to the allottee group specified.Extract from allottee group a [n] that operating pointer S points to allottee a [n] [q] that operating pointer T points to, if the ticket set D that this allottee selects comprises c [p], (i.e. c [p] D), allottee is designated as booking power, otherwise, this allottee is considered as abandoning booking power, does not weigh to booking.
Step 428, judges whether this allottee group is assigned.The ordinal number q<Q of allottee a [n] [q] that if operating pointer T points to, operating pointer T points to next element (i.e. q=q+1) in this allottee group a [n], returns and performs step 426.Otherwise operating pointer S points to the next element (i.e. n=n+1) of allottee group array, return and perform step 421.
Step 441, ticket center checks whether remaining all allottees have booking to weigh, if had, this allottee enters step 461; If no, this allottee enters step 442.
Step 461, ticket center waits for that allottee pays ticketing service expense.If allottee does not pay ticketing service expense within the time of agreement, ticket center stops to accept this allottee, is promise breaking, and deducts its guaranty money as penalty, delete current record depending on this allottee.If allottee pays ticketing service expense within the time of agreement, draw a bill in ticket center.
Step 442, the allottee not being assigned to booking power is declared to be booking failure, enters step 444.
Step 444, the allottee of booking failure has two kinds of selections, the first, selects to exit, receives the guaranty money of return; The second, select to wait for tail ticket, enter step 446.
Understandably, described tail ticket derives from (1) decision center remaining ticket deficiency and distributes to that allottee group personnel produce; (2) allottee that is assigned to booking power does not finally buy that ticket produces.
Step 446 defines initial value.Set an operating pointer, operating pointer points to the n-th allottee group (namely in step 421, the element a [n] of the allottee group array that operating pointer S finally points to, namely allottee group array n-th element) of allottee group array.
Step 448, judges whether remaining ticket enough distributes this allottee group.The number T2 of the allottee group that contrast residue ticket number T1 and operating pointer point to; If residue ticket number T1 is more than or equal to the number T2 of the allottee group that operating pointer points to, perform step 449; If residue ticket number T1 is less than the number T2 of the allottee group that operating pointer points to, perform step 450.
Step 449, distribute booking power to all allottees of this allottee group, operating pointer points to a rear allottee group of this allottee group in allottee group array, returns and re-executes step 448.
Step 450, ticket center checks whether remaining all allottees have booking to weigh, if had, this allottee enters step 452; If no, this allottee purchases the failure of tail ticket, receives the guaranty money of return.
Step 452, ticket center waits for that allottee pays ticketing service expense.If allottee does not pay ticketing service expense within the time of agreement, ticket center stops to accept this allottee, is promise breaking, and deducts its guaranty money as penalty, delete current record depending on this allottee.If allottee pays ticketing service expense within the time of agreement, draw a bill in ticket center.
One of ordinary skill in the art will appreciate that said system or step are carried out instruction related hardware by program and completed.Alternatively, all or part of step of above-described embodiment also can use one or more integrated circuit to realize.Correspondingly, each module in above-described embodiment can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
Finally it should be noted that above embodiment only in order to technical scheme of the present invention to be described, be not intended to limit; Any amendment that technical scheme essence described in the present invention is carried out, or equivalent replacement is carried out to wherein some or all of technical characteristic, the essence of appropriate technical solution all can not be made to depart from the scope of technical solution of the present invention.

Claims (11)

1. the grouping number of a shaking system, is characterized in that, this system comprises:
Apply to purchase center, applying to purchase ticket operation for accepting allottee, also applying to purchase record for preserving; This is applied to purchase record and comprises allottee individual mark; This allottee individual mark is used for applying to purchase Record Comparison with history, determining that this allottee applies to purchase with or without repeating, applying to purchase at most an anticipatory remark train number ticket to limit each allottee;
Decision center, applies to purchase center be connected with described, applies to purchase record for obtaining; And the allottee applied to purchase in record is divided into Nuo Gange allottee group, and the number of each allottee group is equal or only differ a people; Afterwards, decision center gives each allottee little group echo sequence number successively;
Decision center, with the sequence number of the allottee group number of shaking at random, is sorted to all allottee groups by the number of shaking at random, determines an allottee group array having sequencing;
Decision center, according to the sequencing of allottee group array, buys rations ticket power to successively allottee's small component; Allocation flow comprises following three steps:
Step one: set an operating pointer, operating pointer points to first allottee group of allottee group array;
Step 2: the number of the allottee group that contrast residue ticket number and operating pointer point to; If residue ticket number is more than or equal to the number of the allottee group that operating pointer points to, booking power is distributed to all allottees of this allottee group, operating pointer points to a rear allottee group of this allottee group in allottee group array, returns and re-executes step 2; If residue ticket number is less than the number of the allottee group that operating pointer points to, perform step 3;
Step 3: terminate, distributes booking power no longer to the allottee in remaining allottee group;
Ticket center, is connected with decision center, obtains the data and result of distributing booking power; For declaring the allottee's booking failure not being assigned to booking power; For declaring, notifying, accept that the allottee being assigned to booking power carries out booking operation; For reclaiming the ticket applied to purchase center and could not distribute; For reclaiming the ticket quit the subscription of;
Help Center, and applies to purchase center and is connected, and for providing the query function of applying to purchase, and release applies to purchase information accordingly; Being connected with decision center, for providing decision process query function, with decision center simultaneous display, the openly number of shaking process, and discharging corresponding information; Being connected with ticket center, for providing ticketing query function, and discharging corresponding information.
2. system according to claim 1, is characterized in that, described in apply to purchase center while accepting and applying to purchase, collect the guaranty money of allottee; Described ticket center, return the guaranty money of the allottee not being assigned to booking power, and this applies to purchase record to delete this allottee; Described ticket center, the allottee not paying ticketing service expense being assigned to booking power is considered as promise breaking, and the guaranty money of the deduction defaulter is as penalty, and this applies to purchase record to delete this allottee; Described ticket center, returns the guaranty money of this allottee, and returns to this allottee by the form of guaranty money being served as part ticketing service expense to the allottee being assigned to booking and paying for the time being ticketing service expense;
Describedly apply to purchase center and preset and apply to purchase record retention time, apply to purchase in record retention time described, allow allottee to stop to apply to purchase or to pay earnest money, and delete this that stop allottee and apply to purchase record; Exceed and apply to purchase record retention time and do not prop up and pay earnest money, this allottee is considered as termination applies to purchase; Ticketing record retention time is preset in described ticket center, in described ticketing record retention time, allows the allottee being assigned to booking power to quit the subscription of or pay ticketing service expense, but the person of quitting the subscription of is considered as promise breaking; Described ticket center, the guaranty money of the deduction defaulter is as penalty, and this applies to purchase record to delete this allottee; Exceed ticketing record retention time and do not pay ticketing service expense, be considered as quitting the subscription of and break a contract.
3. system according to claim 1, is characterized in that, described in apply to purchase center, according to allottee's wish, it applies to purchase the information of forming a team that record comprises allottee, and more than two or two allottees are formed groupuscule; Described decision center, is distributed in the allottee in same groupuscule in same allottee group.
4. system according to claim 1, is characterized in that, allottee group number is fixed as 100 by decision center.
5. the system according to claim 1,4, it is characterized in that, when allottee group number is fixed, decision center is before the number of shaking at random, first carry out one or many and supplement the number of shaking, each number of shaking of supplementing all deletes part allottee, until remaining allottee's quantity is less than the product of ticket for sale sum and allottee group number.
6. the system according to claim 1,4, is characterized in that, the number of the shaking machine that decision center uses is mechanical, transparent, and the number of shaking process can be watched in real time.
7. system according to claim 1, is characterized in that, the described one grouping number of shaking system provides two kinds or two or more seats type; Wish is selected at the seat that the described record of applying to purchase applying to purchase center comprises allottee, and allottee can one or more seat types of unrestricted choice; Described decision center carries out decision-making with the basis that is chosen as of allottee, the number of shaking is got to the allottee of booking power, and the seat distributing to allottee belongs to the type selected by this allottee; Allocation flow comprises following 8 steps:
Step (1) setting parameter; Allottee group array define is array A, and allottee's Panel definitions is the element a [n] of array A, and the ordinal number of allottee group is defined as variable n, and the number of allottee group is defined as N; Meet A=a [1], a [2], a [3] ... a [n] ... a [N], (n ∈ [1, N]);
Some allottees in allottee group a [n] are defined as a [n] [q], and the ordinal number of the allottee in this allottee group a [n] is defined as variable q, and the number of the allottee in this allottee group a [n] is Q; Meet a [n]=a [n] [1], a [n] [2], a [n] [3].. a [n] [q].. a [n] [Q] }, (q ∈ [1, Q]);
The described one grouping number of shaking system provides two kinds or two or more seats type, the quantity of seat type is defined as M kind, the ordinal number of set B interior element is defined as variable m, form set B with this M type seat for element, meet B={ b1, b2, ... bm, ... bM }, (m ∈ [1, M]);
Press with all subsets of set B except empty set how much sequence composition array C, array C interior elements of element ordinal number be defined as variable p, the number of array C interior element is P; Meet C=c [1], c [2], c [3] ..c [p] ... c [P] }=b1}, and b2} ... b1, b2} ... b1, b2 ... bM, (p ∈ [1, P]);
The ticket type set that allottee selects is defined as set D; Meet D B;
In residue ticket, the number of the ticket of element c [p] containing type of array C is defined as variable T1;
In allottee group a [n], allottee's number is defined as variable T2;
Step (2) definition initial value; Define the first seat type c [1] that an operating pointer R, operating pointer R point to array C;
Define first allottee group a [1] that an operating pointer S, operating pointer S point to allottee group array A;
Step (3) judges whether ticket type is assigned, and judges whether allottee is assigned; If the ordinal number p≤P of element of the array C that operating pointer R points to and operating pointer S point to the ordinal number n≤N of the element a [n] of allottee group array, enter step (4); Otherwise, enter step (8);
Step (4) provides the ticket of specified type; From array C, extract the element c [p] that operating pointer R points to, from residue ticket, extract the ticket of c [p] containing type, statistics number T1; The element a [n] that operating pointer S points to is extracted, allottee number T2 in statistics a [n] from allottee group array A; If T1 >=T2, then enter step (5); If T1<T2, next element in the array C that operating pointer R points to, returns and performs step (3);
Step (5) definition initial value; Define first allottee a [n] [1] of allottee group a [n] that an operating pointer T, operating pointer T point operation pointer S points to;
Step (6) distributes the ticket of specified type to the allottee group specified; Extract from allottee group a [n] that operating pointer S points to allottee a [n] [q] that operating pointer T points to, if the ticket set D that this allottee selects comprises c [p], (i.e. c [p] D), allottee is designated as booking power, otherwise, this allottee is considered as abandoning booking power, does not weigh to booking;
Step (7) judges whether this allottee group is assigned; The ordinal number q<Q of allottee a [n] [q] that if operating pointer T points to, operating pointer T points to next allottee in this allottee group a [n], returns and performs step (6); Otherwise operating pointer S points to the next allottee group of allottee group array, return and perform step (3);
Step (8) terminates.
8. system according to claim 1, is characterized in that, that applies to purchase that center preserves applies to purchase in record, comprises allottee institute and ride secondary, upper and lower website; The record of applying to purchase of this allottee, while ticketing is to allottee, is updated to ticketing record by ticket center, upper and lower for this allottee website is updated to the period by bus; When allottee applies to purchase ticket, apply to purchase center and contrast the historical record of this allottee at each train number, if there is ticket that this allottee purchases in historical record to ride that the period, to apply to purchase ticket period of riding overlapping with this, stop to apply to purchase, and delete its this apply to purchase record; Before decision center grouping, decision center contrasts the historical record of this allottee at each train number, if there is ticket that this allottee purchases in historical record to ride that the period, to apply to purchase ticket period of riding overlapping with this, this is applied to purchase and is considered as invalidly applying to purchase, and delete its this apply to purchase record; Before this allottee is given in ticket center ticketing, ticket center contrasts the historical record of this allottee at each train number, if there is ticket that this allottee purchases in historical record to ride that the period, to apply to purchase ticket period of riding overlapping with this, this is applied to purchase and is considered as invalidly applying to purchase, not with ticketing, and delete its this apply to purchase record.
9. the system according to claim 1,4, is characterized in that, two or more use the different train numbers of a kind of grouping number of shaking system of the present invention simultaneously, shares the same number of shaking machine, shares the same once number of shaking, and shares same allottee group array.
10. system according to claim 1, is characterized in that, the described a kind of grouping number of shaking system, to the allottee causing booking failure because the number of shaking does not get booking power, distributes to these allottees by certain rule tail ticket based on the number of shaking order; Described tail ticket derives from: produce when (1) decision center remaining ticket deficiency distributes to allottee group personnel, and the allottee that (2) are assigned to booking power does not finally buy that ticket produces.
11. systems according to claim 1, is characterized in that, the described one grouping number of shaking system additionally provides a kind of grouping number of shaking method, and the method realizes based on the described one grouping number of shaking system; The method comprises:
Apply to purchase step, apply to purchase center accept allottee apply to purchase ticket operation, preserve apply to purchase record; This is applied to purchase record and comprises allottee individual's mark (as ID (identity number) card No.); This allottee individual mark is used for applying to purchase Record Comparison with history, determining that this allottee applies to purchase with or without repeating, applying to purchase at most an anticipatory remark train number ticket to limit each allottee;
Steps in decision-making, decision center obtains allottee and applies to purchase record; And the allottee applied to purchase in record is divided into Nuo Gange allottee group, and the number of each allottee group is equal or only differ a people; Afterwards, decision center gives each allottee little group echo sequence number successively;
Decision center, with the sequence number of the allottee group number of shaking at random, is sorted to all allottee groups by the number of shaking at random, determines an allottee group array having sequencing;
Decision center, according to the sequencing of allottee group array, buys rations ticket power to successively allottee's small component; Allocation flow comprises following three steps;
Step one: set an operating pointer, operating pointer points to first allottee group (first element) of allottee group array;
Step 2: the number of the allottee group that contrast residue ticket number and operating pointer point to; If residue ticket number is more than or equal to the number of the allottee group that operating pointer points to, booking power is distributed to all allottees of this allottee group, operating pointer points to a rear allottee group of this allottee group in allottee group array, returns and re-executes step 2; If residue ticket number is less than the number of the allottee group that operating pointer points to, perform step 3;
Step 3: terminate, distributes booking power no longer to the allottee in remaining allottee group;
Ticketing step, ticket center obtains the data and result of distributing booking power; Declaration is not assigned to allottee's booking failure of booking power; Declare, notify, accept to be assigned to that the allottee of booking power carries out booking operation; Reclaim and apply to purchase the ticket that could not distribute at center; Reclaim the ticket quit the subscription of.
CN201510122031.9A 2015-03-20 2015-03-20 Grouped lottery system and method Pending CN104835070A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510122031.9A CN104835070A (en) 2015-03-20 2015-03-20 Grouped lottery system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510122031.9A CN104835070A (en) 2015-03-20 2015-03-20 Grouped lottery system and method

Publications (1)

Publication Number Publication Date
CN104835070A true CN104835070A (en) 2015-08-12

Family

ID=53812941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510122031.9A Pending CN104835070A (en) 2015-03-20 2015-03-20 Grouped lottery system and method

Country Status (1)

Country Link
CN (1) CN104835070A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105741159A (en) * 2016-01-29 2016-07-06 邱世军 Ticket selling system
CN105844763A (en) * 2016-05-06 2016-08-10 青岛果谱多维信息技术有限公司 House resettlement drawing-lots selecting system
CN106780935A (en) * 2016-11-30 2017-05-31 安徽金曦网络科技股份有限公司 The self-service number of shaking system
CN106846123A (en) * 2017-02-20 2017-06-13 江苏蓝深远望科技股份有限公司 Article purchasing method and device
CN109857914A (en) * 2019-02-12 2019-06-07 上海易点时空网络有限公司 The vehicle number of shaking information query system, method and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090098922A1 (en) * 2006-09-06 2009-04-16 Edith Cummings Lottery game
CN101783029A (en) * 2009-12-05 2010-07-21 周双桂 Real-name system for ticket purchase on basis of reservation on internet and automatic ticket sale
CN101923665A (en) * 2009-06-16 2010-12-22 赵频 Management system and method
CN103246929A (en) * 2012-02-07 2013-08-14 周双桂 Method for data processing and automatic ticket selling for online booking
CN103745387A (en) * 2014-01-27 2014-04-23 胡泽军 Train ticket network sale method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090098922A1 (en) * 2006-09-06 2009-04-16 Edith Cummings Lottery game
CN101923665A (en) * 2009-06-16 2010-12-22 赵频 Management system and method
CN101783029A (en) * 2009-12-05 2010-07-21 周双桂 Real-name system for ticket purchase on basis of reservation on internet and automatic ticket sale
CN103246929A (en) * 2012-02-07 2013-08-14 周双桂 Method for data processing and automatic ticket selling for online booking
CN103745387A (en) * 2014-01-27 2014-04-23 胡泽军 Train ticket network sale method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HXZ1021: "多种开盘销售方式比较表", 《百度文库 URL:HTTPS://WENKU.BAIDU.COM/VIEW/D88E77A40029BD64783E2C67.HTML?FROM=SEARCH》 *
刘鹏辉,李广松主编: "《C语言程序设计 第2版 》", 31 January 2014, 中国铁道出版社 *
杨立鹏等: "铁路互联网售票系统的研究与实现", 《铁路技术创新》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105741159A (en) * 2016-01-29 2016-07-06 邱世军 Ticket selling system
CN105844763A (en) * 2016-05-06 2016-08-10 青岛果谱多维信息技术有限公司 House resettlement drawing-lots selecting system
CN105844763B (en) * 2016-05-06 2018-07-03 青岛果谱多维信息技术有限公司 A kind of placement of moving back of house draws lots and selects house system
CN106780935A (en) * 2016-11-30 2017-05-31 安徽金曦网络科技股份有限公司 The self-service number of shaking system
CN106846123A (en) * 2017-02-20 2017-06-13 江苏蓝深远望科技股份有限公司 Article purchasing method and device
CN109857914A (en) * 2019-02-12 2019-06-07 上海易点时空网络有限公司 The vehicle number of shaking information query system, method and storage medium

Similar Documents

Publication Publication Date Title
CN104835070A (en) Grouped lottery system and method
US9799162B2 (en) System, method, and apparatus for the electronic operation, management, sponsorship, advertising, promotion, marketing, and regulation of games of chance on a network
US6889098B1 (en) Method and apparatus for managing attraction admission
RU2189632C1 (en) Method and device for redistributing original tickets
CN1571973A (en) Reservation system and methods for theme parks
JP2008507790A (en) Managing the flow of passengers, baggage and cargo for operating equipment
CN103353951A (en) Data processing and automatic ticketing of online booking
JP2007509396A (en) Management of the flow of people in the central area where the crowd is concentrated by wireless control
WO2014154912A1 (en) System for the online auctioning of preferential travel fares
CN103745387A (en) Train ticket network sale method
WO2006123877A1 (en) Service discount system connected with time and method of the same
Pustay Toward a global airline industry: prospects and impediments
DE10032406A1 (en) Arrangement for utilizing services has reservation point connected to electronic monitoring unit for transferring identification data for determining authorization to use
CN105741159A (en) Ticket selling system
WO2002031711A1 (en) Program logic for selling authorizations
Kwag et al. Optimal seat allocation strategy for e‐sports gaming center
Klingenberg The future of continental traffic program: how Lufthansa is countering competition from no-frills airlines
CN105608565A (en) Electronic commerce payment management system in field of civil aviation
JP2006065405A (en) Entrance management system and computer program for implementing the same and its method
CN110750353A (en) Number issuing method, number issuing device, number issuing system, and computer program medium
Lee et al. Advertisement Revenue and Exposure Optimization for Digital Screens in Subway Networks Using Smart Card Data
EP1986169A1 (en) System or method for spontaneous information and/or surveillance of passengers in a system for arranged lifts/traffic
JP2023074320A (en) Vehicle use ticket assignment system
Parato Transportation Network Companies' Ability to Sustain Success amid Growing Regulatory Concerns by Local Governments
US20090112641A1 (en) Method for providing overnight accommodations

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150812