Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as institute
The example of the consistent apparatus and method of some aspects be described in detail in attached claims, this specification.
It is only merely for the purpose of description specific embodiment in the term that this specification uses, and is not intended to be limiting this explanation
Book." one kind " of used singulative, " described " and "the" are also intended to bag in this specification and in the appended claims
Most forms are included, unless context clearly shows that other implications.It is also understood that term "and/or" used herein is
Refer to and any or all may be combined comprising the associated list items purpose of one or more.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but
These information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, do not taking off
In the case of this specification scope, the first information can also be referred to as the second information, and similarly, the second information can also be claimed
For the first information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or
" when ... " or " in response to determining ".
It refer to the example shown in Fig. 1 and introduce a kind of embodiment for the method for realizing resource allocation of this specification, such as Fig. 1 institutes
Show, this method may comprise steps of:
Step 110:Receive the resource allocation request that requesting party sends.
Fig. 2 is refer to below shows the exemplary system architecture concept that can be applicable herein.
In system architecture concept map 200, various network nodes can realize the communication of information by network, then complete to hand over
Mutual and data processing.System architecture concept map 200 can include the client via network 23 and one or more requesting parties
21 enter the service end 22 of the operator of row data communication, and can be integrated in the service end 22 or independently of the service end
22 database 221.
The service end 22 can include the server of resource response distribution request, server cluster or based on server
The cloud platform of cluster structure.
Each network 23 can include wired or wireless telecommunication device, and the network equipment that client 21 is based on can lead to
The wired or wireless telecommunication installation is crossed to exchange data.For example, each network 23 can include LAN (" LAN "), wide
Domain net (" WAN "), in-house network, internet, mobile telephone network, Virtual Private Network (VPN), honeycomb fashion or other mobile radio communications
Network, bluetooth, NFC or its any combinations.In the discussion of exemplary, it should be appreciated that term " data " and " information " can
Used interchangeably herein come refer to the word that may be present in computer based environment, image, audio, video or it is any its
The information of its form.
The client 21 is used as asking direction service end 22 to send resource allocation request.Each client 21
The network equipment being based on can include having sending via network 23 and receiving the device of the communication module of data.Example
Such as, the network equipment that each client 21 is based on can include server, desktop computer, laptop computer, flat board
Computer, smart mobile phone, handheld computer, personal digital assistant (" PDA "), or other any wired or wireless processing
Device drive device.In the exemplary that Fig. 2 is described, the network equipment that client 21 is based on can be by finally using
Family is operated.
User (including individual or entity) can use the application such as Web-browser application or stand-alone utility
Program, so as to which file or webpage is checked, downloads, uploaded or otherwise accessed via network 23.Web browser applications journey
The application program of sequence or stand-alone utility, can be with being connected to web page server (or other servers, such as society of network 23
Hand over platform, payment platform etc.) to complete data interaction.
Can be integrated relationship or the computing device 222 of separate relationships, particularly the latter with the service end 22 in Fig. 2
In the case of, typically can be by internal network or dedicated Internet access, or can also be connected by the public network of encryption.
Particularly, when for integrated relationship when, it is therefore possible to use more efficient, the faster internal bus form of transmission speed connection.The calculating
Device 222, when for integrated relationship or separate relationships when, directly (not shown) or can be accessed by the service end 22
Database 221.
Appropriate programming is carried out to computer installation 222, the reality of method in this specification can be controlled by this instruction
Apply.Particularly, when for integrated relationship when, computer installation 222 processing affairs can be considered as being processed without for service end 22
Especially it is distinguish between.
Step 120:Generate the random number for determining resource distribution mode.
In the present embodiment, the step 120, it can include:
According to random number algorithm, the random number for determining resource distribution mode is generated.
In general, random number algorithm can set a random number range, i.e. output valve is at random from the random number range
Middle determination.
In the implementation, random number algorithm can be taking human as being previously provided with a random number range.It is a kind of merely illustrative
Property random number range can be [0,1], that is to say, that using the random number algorithm can try to achieve at random one positioned at [0,
1] random number.
It is noted that the generation random number for being used to determine resource distribution mode can be a variety of by the way of
Various, such as random number can be mapped out by default function.
Step 130:According to the random number calculated, determine that the random number is ordered from least two resource distribution modes
In resource distribution mode.
In the present embodiment, the probability for hitting different resource distribution modes is different, it is believed that different resource point
A probable value related to random number is corresponding with mode.
In case of with the two spike-type cultivars method of salary distribution,
Assuming that the probability of the hit first resource method of salary distribution is 0.3;
The probability for hitting the Secondary resource method of salary distribution is then 0.7 for (1-0.3);
So, random number range corresponding to the first resource method of salary distribution may be considered [0,0.3];
Random number range corresponding to the Secondary resource method of salary distribution may be considered (0.3,1];
If the random number calculated is less than or equal to 0.3, then the first resource method of salary distribution can be hit;
If the random number calculated is more than 0.3, then the Secondary resource method of salary distribution can be hit.
Step 140:According to identified resource distribution mode, the resource quantity for distributing to the requesting party is calculated.
Resource distribution mode determined by the basis, calculate and distribute to the resource quantity of the requesting party, specifically can be with
Including:
Obtain the single distribution resource quantity scope of the resource distribution mode of the determination;The single distributes resource quantity
Scope by single maximum allocated resource quantity, single smallest allocation resource quantity, mean allocation resource quantity, for adjusting difference
The regulatory factor of resource distribution mode mean allocation resource quantity is calculated;
It is random to obtain a resource quantity in the range of single distribution resource quantity;
Acquired distribution resource quantity is defined as distributing to the resource quantity of the requesting party.
It is illustrated below in case of with the two spike-type cultivars method of salary distribution:
Assuming that the probability of the first resource distribution mode is P;The random number of the first resource distribution mode can be hit
Positioned at [0, P];
The probability of second of resource distribution mode is 1-P;The random digit of second of resource distribution mode can be hit
In (P, 1];
Single maximum allocated resource quantity max A, single smallest allocation can be typically configured with this specification, in service end
The tune of mean allocation resource quantity in resource quantity min A and mean allocation resource quantity avgA, second of resource distribution mode
Save factor-alpha;The regulatory factor can be used for the average resource quantity allotted for adjusting second of resource distribution mode.
Based on above-mentioned configuration, under the first resource distribution mode, the scope that can distribute resource quantity is [min A, max
A];Further, the mean allocation resource quantity of the first resource distribution mode can be calculated:AvgA1=(min A+max
A)/2;
Assuming that the mean allocation resource quantity of second of resource distribution mode is avgA2;And due to α=(avgA2-min
A)/(avgA-min A;) can be avgA2=α * (avgA- in the hope of the mean allocation resource quantity of second of resource distribution mode
min A)+min A。
Based on the above, the probability P can be calculated by equation below:
P=(2 (1- α) * min A+2 (α -1) * avgA)/(2 α * avgA+ (1-2 α) * min A-max A) wherein, max A
Single maximum allocated resource quantity is represented, min A represent single smallest allocation resource quantity, and avgA represents mean allocation number of resources
Amount, α represent the regulatory factor of mean allocation resource quantity in second of resource distribution mode.
It is noted that may range from of the α [0,1);
Because the scope that the single of the first resource distribution mode distributes resource quantity is [min A, max A];
After probability P is calculated, further, the single distribution money of second of resource distribution mode can be obtained
The scope of source quantity is [min A, 2 α (avgA-min A)+min A].
The scope of single distribution resource quantity based on above two resource distribution mode, the step 120, can be wrapped
Include:
The random number between [0, P] is generated at random;
On the other hand, the step 130, is specifically included:
In the random digit in the case of [0, P], it is determined that hitting the first resource distribution mode;
Or
The random digit in (P, 1] in the case of, it is determined that hit second of resource distribution mode.
Another further aspect, the step 140, it can include:
A1:In the case where identified resource distribution mode is the first resource distribution mode, obtain it is described the first
The single distribution resource quantity scope [min A, max A] of resource distribution mode;
A2:It is random to obtain a distribution resource in single distribution resource quantity scope [min A, max A]
Quantity;
A3:Acquired distribution resource quantity is distributed to the resource quantity of the requesting party.
Or
B1:In the case where identified resource distribution mode is second of resource distribution mode, obtain described second
The single distribution resource quantity scope [min A, 2 α (avgA-min A)+min A] of resource distribution mode;
B2:It is random to obtain one positioned at single distribution resource quantity scope [min A, 2 α (avgA-min A)+min
A] in distribution resource quantity;
B3:Acquired distribution resource quantity is distributed to the resource quantity of the requesting party.
This specification embodiment, by setting at least two different resource distribution modes, for resource allocation each time
Request, it is necessary first to determine resource distribution mode, the resource quantity of distribution is then calculated according to the resource distribution mode of determination.By
Resource quantity can be influenceed in the different resource method of salary distribution, therefore application the present embodiment can have with flexile distribution resource
Standby larger allocation flexibility.
Another aspect, although setting at least two different resource distribution modes, operator configuration need not be changed
Single maximum allocated resource quantity max A, single smallest allocation resource quantity min A and mean allocation resource quantity avgA,
But each different moneys can be controlled by configuring the regulatory factor α of mean allocation resource quantity in other resource distribution modes
The mean allocation resource quantity of the source method of salary distribution, so as to realize the control of mean allocation resource quantity on the whole.
The embodiment that this specification is provided can be applied in specific business, such as this in prize drawing can be applied specific
Business scenario.Then, the resource allocation request can include prize drawing request, and the resource quantity can include winning amount.
In general, the activity side of holding can be provided with minimum winning amount, maximum winning amount and put down in sweepstake
Equal winning amount, based on cost consideration, generally this average winning amount is often heavily biased towards minimum winning amount;Such as some
Sweepstake, minimum winning amount are 1 yuan, and maximum winning amount is 100 yuan, but average winning amount is only 5 yuan.If it is desired to
Average winning amount is heightened to 10 yuan, it may be necessary to change minimum winning amount or maximum winning amount;It is if minimum
Winning amount, maximum winning amount are constant, then activity rate of winning prize may need to adjust.Not only can spirit by the present embodiment
It is living that a variety of different winning amount methods of salary distribution are set;Moreover, the minimum winning amount set without the modification activity side of holding, most
Big winning amount and average winning amount, but by configuring the regulatory factor α of other winning amount methods of salary distribution, control is respectively
The average winning amount of the individual different winning amount methods of salary distribution, so as to adjust the winning amount that is averaged on the whole;Solve and take out
The problem of average winning amount is heavily biased towards minimum winning amount in prize activity.
On the basis of above-mentioned embodiment illustrated in fig. 1, this specification additionally provides following scheme:
The resource allocation request that the requesting party sends can also carry business point.The business point can be requesting party
Related service provide scoring, such as can be provided in financial business user credit score (in such as Alipay user sesame letter
With point).
Then, the step 140, can specifically include:
Resource distribution mode determined by the basis and the business point, calculate the resource for distributing to the requesting party
Quantity.
Further, described ask is distributed in resource distribution mode determined by the basis and the business point, calculating
The resource quantity for the side of asking, is specifically included:
Obtain the single distribution resource quantity scope of the resource distribution mode of the determination;The single distributes resource quantity
Scope by single maximum allocated resource quantity, single smallest allocation resource quantity, mean allocation resource quantity, for adjusting difference
The regulatory factor of resource distribution mode mean allocation resource quantity is calculated;
Obtain global business point scope;The global business divides minimal service in all requesting parties of Range Representation to assign to maximum
Business point;
Resource quantity scope and the business point are distributed according to the single, is calculated and distributes to the requesting party's
Resource quantity.
With previous embodiment identical, it is illustrated in case of with the two spike-type cultivars method of salary distribution:
Resource distribution mode determined by the basis and the business point, calculate the resource for distributing to the requesting party
Quantity, specifically include:
C1:In the case where identified resource distribution mode is the first resource distribution mode, obtain it is described the first
The single distribution resource quantity scope [min A, max A] of resource distribution mode;
C2:Obtain global business point scope [min A, max A];The global business is divided in all requesting parties of Range Representation
Minimal service assigns to maximum traffic point;
C3:Resource quantity is calculated according to equation below,
Wherein, score represents the business point that this request carries, and max Score represent global maximum traffic point, min
Score represents global minimal service point, and max A represent single maximum allocated resource quantity, and min A represent single smallest allocation
Resource quantity.
Or
D1:In the case where identified resource distribution mode is second of resource distribution mode, obtain described second
The single distribution resource quantity scope [min A, 2 α (avgA-min A)+min A] of resource distribution mode;
D2:Obtain global business point scope [min A, max A];The global business is divided in all requesting parties of Range Representation
Minimal service assigns to maximum traffic point;
D3:Resource quantity is calculated according to equation below,
Wherein, score represents this
The business point that request carries, max Score represent global maximum traffic point, and min Score represent global minimal service point,
AvgA represents mean allocation resource quantity, and α represents the regulatory factor of mean allocation resource quantity in second of resource distribution mode,
Min A represent single smallest allocation resource quantity.
The present embodiment is that the resource allocation request that the requesting party sends can also be taken with upper embodiment difference
With business point, and calculate and distribute to the resource quantity of the requesting party and do not determine at random, but according to resource allocation
Mode simultaneously combines what business point determined jointly.
In actual applications, in the case that same requesting party may have multiple resource allocation request, if according to upper
State the mode of computing resource quantity, it may appear that the problem of resource quantity being calculated every time is identical.In order to solve this problem,
Present description provides following scheme:
In the case where the requesting party has multiple resource allocation request, calculated resource is changed by equation below
Quantity:
Wherein, a is the resource quantity calculated, and base_rate, reduction_rate are the regulatory factor of configuration,
The regulation stall of RLcnt configurations, seq is the requestor requests number, and EXP is logarithmic decrement symbol, SIN is sinusoidal symbol.
, locally can be with configuration adjustment factor base_rate, reduction_rate, regulation stall in the present embodiment
RLcnt.For same requesting party's different resource distribution request, the resource quantity being calculated can be fluctuated, the ripple
It is dynamic to be based on sinusoidal fluctuation and logarithmic decrement.Identical resource quantity is fluctuated by above-mentioned formula, so as to so that
Obtain and ask allocated identical resource quantity to become to differ each time originally.Apply when drawing a lottery business scenario, by meter
Obtained winning amount is fluctuated so that the winning amount that same user repeatedly draws a lottery differs, and is lived so as to lift prize drawing
Dynamic interest.
Corresponding with foregoing resource allocation methods embodiment, this specification additionally provides the embodiment of resource allocation device.
Described device embodiment can be realized by software, can also be realized by way of hardware or software and hardware combining.With software
It is the processor by equipment where it by nonvolatile memory as the device on a logical meaning exemplified by realization
Corresponding computer program instructions read what operation in internal memory was formed.For hardware view, this specification resource allocation dress
A kind of hardware configuration of equipment where putting can include outside processor, network interface, internal memory and nonvolatile memory, real
The equipment in example where device is applied generally according to the resource allocation actual functional capability, other hardware can also be included, this is no longer gone to live in the household of one's in-laws on getting married
State.
Referring to Fig. 3, the module map of the resource allocation device provided for the embodiment of this specification one, described device has corresponded to figure
2 illustrated embodiments, described device include:
Request reception unit 310, receive the resource allocation request that requesting party sends;
Random number generation unit 320, generate the random number for determining resource distribution mode;
Distribution hit unit 330, according to the random number calculated, being determined from least two resource distribution modes should be with
The resource distribution mode that machine number is hit;
Resource Calculation unit 340, according to identified resource distribution mode, calculate the number of resources for distributing to the requesting party
Amount.
In an optional embodiment:
The Resource Calculation unit 340, is specifically included:
First obtains subelement, obtains the single distribution resource quantity scope of the resource distribution mode of the determination;It is described
Single distributes resource quantity scope by single maximum allocated resource quantity, single smallest allocation resource quantity, mean allocation resource
Quantity, it is calculated for adjusting the regulatory factor of different resource method of salary distribution mean allocation resource quantity;
Second obtains subelement, random to obtain a resource quantity in the range of single distribution resource quantity;
Determination subelement, acquired distribution resource quantity is defined as distributing to the resource quantity of the requesting party.
In an optional embodiment:
Business point is carried in the request,
The Resource Calculation unit, is specifically included:
Resource distribution mode determined by the basis and the business point, calculate the resource for distributing to the requesting party
Quantity.
In an optional embodiment:
The Resource Calculation unit, is specifically included:
First obtains subelement, obtains the single distribution resource quantity scope of the resource distribution mode of the determination;It is described
Single distributes resource quantity scope by single maximum allocated resource quantity, single smallest allocation resource quantity, mean allocation resource
Quantity, it is calculated for adjusting the regulatory factor of different resource method of salary distribution mean allocation resource quantity;
Second obtains subelement, obtains global business point scope;The global business is divided in all requesting parties of Range Representation
Minimal service assigns to maximum traffic point;
Resource Calculation subelement, resource quantity scope and the business point are distributed according to the single, be calculated point
The resource quantity of requesting party described in dispensing.
In an optional embodiment:
In the case of with the two spike-type cultivars method of salary distribution,
The probability of the first resource distribution mode is P;
The probability of second of resource distribution mode is 1-P;
Wherein, P is calculated by equation below:
P=(2 (1- α) * min A+2 (α -1) * avgA)/(2 α * avgA+ (1-2 α) * min A-max A) wherein, max A
Single maximum allocated resource quantity is represented, min A represent single smallest allocation resource quantity, and avgA represents mean allocation number of resources
Amount, α represent the regulatory factor of mean allocation resource quantity in second of resource distribution mode;
The scope of the single distribution resource quantity of the first resource distribution mode is [min A, max A];
The scope of the single distribution resource quantity of second of resource distribution mode is [min A, 2 α (avgA-min A)
+min A]。
In an optional embodiment:
The random number computing unit 320, is specifically included:
The random number between [0, P] is generated at random;
The distribution hit unit 340, is specifically included:
In the random digit in the case of [0, P], it is determined that hitting the first resource distribution mode;
Or
The random digit in (P, 1] in the case of, it is determined that hit second of resource distribution mode.
In an optional embodiment:
The Resource Calculation unit 340, is specifically included:
First obtains subelement, in the case where identified resource distribution mode is the first resource distribution mode, obtains
Take the single distribution resource quantity scope [min A, max A] of the first resource distribution mode;
Second obtains subelement, random to obtain one positioned at single distribution resource quantity scope [min A, max A]
Interior distribution resource quantity;
Resource determination subelement, acquired distribution resource quantity is distributed to the resource quantity of the requesting party.
In an optional embodiment:
The Resource Calculation unit 340, is specifically included:
First obtains subelement, in the case where identified resource distribution mode is second of resource distribution mode, obtains
The single of second of resource distribution mode is taken to distribute resource quantity scope [min A, 2 α (avgA-min A)+min A];
Second obtains subelement, random to obtain one positioned at single distribution resource quantity scope [min A, 2 α
(avgA-min A)+min A] in distribution resource quantity;
Resource determination subelement, acquired distribution resource quantity is distributed to the resource quantity of the requesting party.
In an optional embodiment:
Business point is carried in the request,
The Resource Calculation unit 340, is specifically included:
Resource distribution mode determined by the basis and the business point, calculate the resource for distributing to the requesting party
Quantity.
In an optional embodiment:
The Resource Calculation unit, is specifically included:
First obtains subelement, in the case where identified resource distribution mode is the first resource distribution mode, obtains
Take the single distribution resource quantity scope [min A, max A] of the first resource distribution mode;
Second obtains subelement, obtains global business point scope [min A, max A];The global business divides Range Representation
Minimal service assigns to maximum traffic point in all requesting parties;
Resource Calculation subelement, resource quantity is calculated according to equation below,
Wherein, score represents the business point that this request carries, and max Score represent global maximum traffic point, min
Score represents global minimal service point, and max A represent single maximum allocated resource quantity, and min A represent single smallest allocation
Resource quantity.
In an optional embodiment:
The Resource Calculation unit, is specifically included:
First obtains subelement, in the case where identified resource distribution mode is second of resource distribution mode, obtains
The single of second of resource distribution mode is taken to distribute resource quantity scope [min A, 2 α (avgA-min A)+min A];
Second obtains subelement, obtains global business point scope [min A, max A];The global business divides Range Representation
Minimal service assigns to maximum traffic point in all requesting parties;
Resource Calculation subelement, resource quantity is calculated according to equation below,
Wherein, score represents this
The business point that request carries, max Score represent global maximum traffic point, and min Score represent global minimal service point,
AvgA represents mean allocation resource quantity, and α represents the regulatory factor of mean allocation resource quantity in second of resource distribution mode,
Min A represent single smallest allocation resource quantity.
In an optional embodiment:
Described device also includes:
Unit is changed, in the case where the requesting party has multiple resource allocation request, institute is changed by equation below
The resource quantity of calculating:
Wherein, a is the resource quantity calculated, and base_rate, reduction_rate are the regulatory factor of configuration,
The regulation stall of RLcnt configurations, seq is the requestor requests number, and EXP is logarithmic decrement symbol, SIN is sinusoidal symbol.
In an optional embodiment:
The resource allocation request, which includes prize drawing, asks;
The resource distribution mode includes the winning amount method of salary distribution;
The resource quantity includes winning amount.
System, device, module or the unit that above-described embodiment illustrates, it can specifically be realized by computer chip or entity,
Or realized by the product with certain function.One kind typically realizes that equipment is computer, and the concrete form of computer can
To be personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet PC, wearable device or these equipment
The combination of any several equipment.
The function of unit and the implementation process of effect specifically refer to and step are corresponded in the above method in said apparatus
Implementation process, it will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component
The unit of explanation can be or may not be physically separate, can be as the part that unit is shown or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Need to select some or all of module therein to realize the purpose of this specification scheme.Those of ordinary skill in the art are not
In the case of paying creative work, you can to understand and implement.
Figure 3 above describes inner function module and the structural representation of resource allocation device, its substantial executive agent
Can be a kind of electronic equipment, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Receive the resource allocation request that requesting party sends;
Generate the random number for determining resource distribution mode;
According to the random number calculated, the resource that the random number is hit is determined from least two resource distribution modes
The method of salary distribution;
According to identified resource distribution mode, the resource quantity for distributing to the requesting party is calculated.
Optionally, resource distribution mode determined by the basis, the resource quantity for distributing to the requesting party, tool are calculated
Body includes:
Obtain the single distribution resource quantity scope of the resource distribution mode of the determination;The single distributes resource quantity
Scope by single maximum allocated resource quantity, single smallest allocation resource quantity, mean allocation resource quantity, for adjusting difference
The regulatory factor of resource distribution mode mean allocation resource quantity is calculated;
It is random to obtain a resource quantity in the range of single distribution resource quantity;
Acquired distribution resource quantity is defined as distributing to the resource quantity of the requesting party.
Optionally, business point is carried in the request,
Resource distribution mode determined by the basis, the resource quantity for distributing to the requesting party is calculated, is specifically included:
Resource distribution mode determined by the basis and the business point, calculate the resource for distributing to the requesting party
Quantity.
Optionally, the request is distributed in resource distribution mode determined by the basis and the business point, calculating
The resource quantity of side, is specifically included:
Obtain the single distribution resource quantity scope of the resource distribution mode of the determination;The single distributes resource quantity
Scope by single maximum allocated resource quantity, single smallest allocation resource quantity, mean allocation resource quantity, for adjusting difference
The regulatory factor of resource distribution mode mean allocation resource quantity is calculated;
Obtain global business point scope;The global business divides minimal service in all requesting parties of Range Representation to assign to maximum
Business point;
Resource quantity scope and the business point are distributed according to the single, is calculated and distributes to the requesting party's
Resource quantity.
Optionally, in the case of with the two spike-type cultivars method of salary distribution,
The probability of the first resource distribution mode is P;
The probability of second of resource distribution mode is 1-P;
Wherein, P is calculated by equation below:
P=(2 (1- α) * min A+2 (α -1) * avgA)/(2 α * avgA+ (1-2 α) * min A-max A) wherein, max A
Single maximum allocated resource quantity is represented, min A represent single smallest allocation resource quantity, and avgA represents mean allocation number of resources
Amount, α represent the regulatory factor of mean allocation resource quantity in second of resource distribution mode;
The scope of the single distribution resource quantity of the first resource distribution mode is [min A, max A];
The scope of the single distribution resource quantity of second of resource distribution mode is [min A, 2 α (avgA-min A)
+min A]。
Optionally, the random number generated for determining resource distribution mode, is specifically included:
The random number between [0, P] is generated at random;
It is described according to the random number calculated, determine what the random number was hit from least two resource distribution modes
Resource distribution mode, specifically include:
In the random digit in the case of [0, P], it is determined that hitting the first resource distribution mode;
Or
The random digit in (P, 1] in the case of, it is determined that hit second of resource distribution mode.
Optionally, resource distribution mode determined by the basis, the resource quantity for distributing to the requesting party, tool are calculated
Body includes:
In the case where identified resource distribution mode is the first resource distribution mode, the first described resource is obtained
The single distribution resource quantity scope [min A, max A] of the method for salary distribution;
It is random to obtain a distribution number of resources in single distribution resource quantity scope [min A, max A]
Amount;
Acquired distribution resource quantity is distributed to the resource quantity of the requesting party.
Optionally, resource distribution mode determined by the basis, the resource quantity for distributing to the requesting party, tool are calculated
Body includes:
In the case where identified resource distribution mode is second of resource distribution mode, second of resource is obtained
The single distribution resource quantity scope [min A, 2 α (avgA-min A)+min A] of the method for salary distribution;
It is random to obtain one positioned at single distribution resource quantity scope [min A, 2 α (avgA-min A)+min A]
Interior distribution resource quantity;
Acquired distribution resource quantity is distributed to the resource quantity of the requesting party.
Optionally, business point is carried in the request,
Resource distribution mode determined by the basis, the resource quantity for distributing to the requesting party is calculated, is specifically included:
Resource distribution mode determined by the basis and the business point, calculate the resource for distributing to the requesting party
Quantity.
Optionally, the request is distributed in resource distribution mode determined by the basis and the business point, calculating
The resource quantity of side, is specifically included:
In the case where identified resource distribution mode is the first resource distribution mode, the first described resource is obtained
The single distribution resource quantity scope [min A, max A] of the method for salary distribution;
Obtain global business point scope [min A, max A];The global business is divided in all requesting parties of Range Representation most
Small business assigns to maximum traffic point;
Resource quantity is calculated according to equation below,
Wherein, score represents the business point that this request carries, and max Score represent global maximum traffic point, min
Score represents global minimal service point, and max A represent single maximum allocated resource quantity, and min A represent single smallest allocation
Resource quantity.
Optionally, the request is distributed in resource distribution mode determined by the basis and the business point, calculating
The resource quantity of side, is specifically included:
In the case where identified resource distribution mode is second of resource distribution mode, second of resource is obtained
The single distribution resource quantity scope [min A, 2 α (avgA-min A)+min A] of the method for salary distribution;
Obtain global business point scope [min A, max A];The global business is divided in all requesting parties of Range Representation most
Small business assigns to maximum traffic point;
Resource quantity is calculated according to equation below,
Wherein, score represents this
The business point that request carries, max Score represent global maximum traffic point, and min Score represent global minimal service point,
AvgA represents mean allocation resource quantity, and α represents the regulatory factor of mean allocation resource quantity in second of resource distribution mode,
Min A represent single smallest allocation resource quantity.
Optionally, the processor is also configured with:
In the case where the requesting party has multiple resource allocation request, calculated resource is changed by equation below
Quantity:
Wherein, a is the resource quantity calculated, and base_rate, reduction_rate are the regulatory factor of configuration,
The regulation stall of RLcnt configurations, seq is the requestor requests number, and EXP is logarithmic decrement symbol, SIN is sinusoidal symbol.
Optionally, the resource allocation request includes prize drawing request;
The resource distribution mode includes the winning amount method of salary distribution;
The resource quantity includes winning amount.
In the embodiment of above-mentioned electronic equipment, it should be appreciated that the processor can be CPU (English:
Central Processing Unit, referred to as:CPU), it can also be other general processors, digital signal processor (English:
Digital Signal Processor, referred to as:DSP), application specific integrated circuit (English:Application Specific
Integrated Circuit, referred to as:ASIC) etc..General processor can be microprocessor or the processor can also be
Any conventional processor etc., and foregoing memory can be read-only storage (English:Read-only memory, abbreviation:
ROM), random access memory (English:Random access memory, referred to as:RAM), flash memory, hard disk or solid
State hard disk.The step of method with reference to disclosed in the embodiment of the present invention, can be embodied directly in hardware processor and perform completion, or
Hardware and software module combination in person's processor perform completion.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Set especially for electronics
For standby embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is real referring to method
Apply the part explanation of example.
Those skilled in the art will readily occur to this specification after considering specification and putting into practice invention disclosed herein
Other embodiments.This specification is intended to any modification, purposes or adaptations of this specification, these modifications,
Purposes or adaptations follow the general principle of this specification and undocumented in the art including this specification
Common knowledge or conventional techniques.Description and embodiments be considered only as it is exemplary, the true scope of this specification and
Spirit is pointed out by following claim.
It should be appreciated that the precision architecture that this specification is not limited to be described above and is shown in the drawings,
And various modifications and changes can be being carried out without departing from the scope.The scope of this specification is only limited by appended claim
System.