CN105930150A - Method and system for determining quantity of resources based on time sorting - Google Patents
Method and system for determining quantity of resources based on time sorting Download PDFInfo
- Publication number
- CN105930150A CN105930150A CN201610236983.8A CN201610236983A CN105930150A CN 105930150 A CN105930150 A CN 105930150A CN 201610236983 A CN201610236983 A CN 201610236983A CN 105930150 A CN105930150 A CN 105930150A
- Authority
- CN
- China
- Prior art keywords
- time
- resource
- time period
- period
- started
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4482—Procedural
Abstract
The present invention relates to a method and system for determining a quantity of resources based on time sorting. The method comprises: S1. creating a storage list that contains a resource that a user applies for and resource time, wherein the resource time comprises a time when the resource takes effect and a time when the resource fails; S2. sorting the resource times in the storage list in ascending chronological order; and S3, traversing the sorted storage list, determining a quantity of resources during each period of time according to the resource times, so as to obtain the quantity of resources corresponding to each period of time. According to the method and system for determining the quantity of resources based on start-end sorting, which are provided by the present invention, the problem of high time consumption and low efficiency that are caused by determining the quantity of resources during each period of time by adopting a pairwise comparison method in the prior art is solved.
Description
Technical field
The present invention relates to computer software fields, be specifically related to a kind of based on time-sequencing determine resource quantity method and
System.
Background technology
In the resource analyzed in user's each time period, and whether resource time segment selected by user meets least resource and
Use during large resource.Pass through computational analysis, it is possible to draw in the resource that user applies at present, the resource quantity mistake of which time period
Many or very few, it is possible to well to alleviate the operating pressure of developer.
Never what good method is compared, particularly with crash time point currently for the intersection between the time period
Verification all the more so.Traditional comparative approach is to compare two-by-two, and this kind of method is the longest, inefficient.
Summary of the invention
The technical problem to be solved is to provide and a kind of determine the method for resource quantity based on time-sequencing and be
System, it is possible to solve in prior art the longest, inefficient problem.
The technical scheme is that a kind of side determining resource quantity based on time-sequencing
Method, including:
S1, creates resource and the storage list of resource time comprising user's application, and described resource time includes resource
Entry-into-force time and out-of-service time;
S2, the order arrangement that the resource time in described storage list was incremented by according to the time;
S3, the described storage list after traversal sequence, the number of resources of each time period is determined according to described resource time
Amount, obtains resource quantity corresponding to each time period.
The invention has the beneficial effects as follows: the storage row comprising resource and resource entry-into-force time and out-of-service time by establishment
Table, the order the arrangement then entry-into-force time in storage list and out-of-service time being all incremented by according to the time, then after traversal sequence
Storage list, determine quantity the record of the resource of each time period according to entry-into-force time of resource and out-of-service time,
The result of rear statistic record, it is to avoid it is time-consuming long that traditional tournament method causes, inefficient problem.
On the basis of technique scheme, the present invention can also do and improve as follows:
Further, described step S3 is:
S31, note resource time is i, and the time period is j;As i=1, time period j=1;Wherein, i and j be more than or etc.
In the integer of 1;
S32, when described i+1 resource time is the entry-into-force time, using i+1 resource time as time period j+1's
Time started;The resource quantity of time period j is added 1 as the resource quantity of time period j+1, and at the end of distributing for time period j
Between;
When described i+1 resource time is the out-of-service time, using i+1 resource time as at the end of time period j
Between;Or using i+1 resource time as end time of time period j+1, the resource quantity of time period j is subtracted 1 as time
Between the resource quantity of section j+1, and distribute the time started for time period j+1;
S33, i=i+1, j=j+1, it is judged that the time type of i+1 resource time, repeat S32, until by institute
The all resource time stated in the storage list after sequence have all judged.
Further, described S32 it is the entry-into-force time when described i+1 resource time, at the end of distributing for time period j
Between, particularly as follows:
If the i-th+2 resource time are the entry-into-force time, then the i-th+2 resource time are deducted the minimum of described resource time
Chronomere is as the end time of time period j, and using the i-th+2 resource time as time started of time period j+1, by time
Between the resource quantity of section j add 1 as the resource quantity of time period j+1;
If described the i-th+2 resource time are the out-of-service time, then using described the i-th+2 resource time as time period j's
End time.
Further, described S32 it is the out-of-service time when described i+1 resource time, when starting for time period j+1 distribution
Between, particularly as follows:
If i-th resource time is the out-of-service time, then i-th resource time is deducted the minimum time unit of resource quantity
Time started as time period j+1.
Further, in described S32 when the out-of-service time that i+1 resource time is time period j, also include:
If the i-th+2 resource time be between entry-into-force time, and i+1 resource time and the i-th+2 resource time not
Continuously, then using i+1 resource time plus the minimum time unit of resource time as time started of time period j+1, i-th
+ 2 resource time deduct the minimum time unit end time as time period j+1 of resource time, by the resource of time period j
Quantity subtracts 1 as the resource quantity of time period j+1;And using the i-th+2 resource time as time started of time period j+2.
The another kind of technical scheme that the present invention solves above-mentioned technical problem is as follows: one determines number of resources based on time-sequencing
The system of amount, including:
Creation module, for creating the resource and the storage list of resource time, described resource time comprising user's application
Entry-into-force time and the out-of-service time including resource;
Order module, for the order arrangement being incremented by according to the time by the resource time in described storage list;
Resource quantity determines module, the described storage list after traveling through sequence, determines often according to described resource time
The resource quantity of one time period, obtains resource quantity corresponding to each time period.
The invention has the beneficial effects as follows: created by creation module and comprise resource and resource entry-into-force time and out-of-service time
Storage list, the order arrangement that the entry-into-force time in storage list and out-of-service time are all incremented by by order module according to the time, really
Fixed and logging modle travels through the storage list after sequence, and entry-into-force time and out-of-service time according to resource determine each time period
The quantity of resource and record, the result of statistical module counts record, it is to avoid it is time-consuming long that traditional tournament method causes,
Inefficient problem.
On the basis of technique scheme, the present invention can also do and improve as follows:
Further, described resource quantity determines that module determines resource quantity the most in accordance with the following methods:
S31, note resource time is i, and the time period is j;As i=1, time period j=1;Wherein, i and j be more than or etc.
In the integer of 1;
S32, when described i+1 resource time is the entry-into-force time, using i+1 resource time as time period j+1's
Time started;The resource quantity of time period j is added 1 as the resource quantity of time period j+1, and at the end of distributing for time period j
Between;
When described i+1 resource time is the out-of-service time, using i+1 resource time as at the end of time period j
Between;Or using i+1 resource time as end time of time period j+1, the resource quantity of time period j is subtracted 1 as time
Between the resource quantity of section j+1, and distribute the time started for time period j+1;
S33, i=i+1, j=j+1, it is judged that the time type of i+1 resource time, repeat S32, until by institute
The all resource time stated in the storage list after sequence have all judged.
Further, described S32 it is the entry-into-force time when described i+1 resource time, at the end of distributing for time period j
Between, particularly as follows:
If the i-th+2 resource time are the entry-into-force time, then the i-th+2 resource time are deducted the minimum of described resource time
Chronomere is as the end time of time period j, and using the i-th+2 resource time as time started of time period j+1, by time
Between the resource quantity of section j add 1 as the resource quantity of time period j+1;
If described the i-th+2 resource time are the out-of-service time, then using described the i-th+2 resource time as time period j's
End time.
Further, when described i+1 resource time is the out-of-service time, distribute the time started for time period j+1, specifically
For:
If i-th resource time is the out-of-service time, then i-th resource time is deducted the minimum time unit of resource quantity
Time started as time period j+1.
Further, when the out-of-service time that i+1 resource time is time period j, also include:
If the i-th+2 resource time be between entry-into-force time, and i+1 resource time and the i-th+2 resource time not
Continuously, then using i+1 resource time plus the minimum time unit of resource time as time started of time period j+1, i-th
+ 2 resource time deduct the minimum time unit end time as time period j+1 of resource time, by the resource of time period j
Quantity subtracts 1 as the resource quantity of time period j+1;And using the i-th+2 resource time as time started of time period j+2.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of method determining resource quantity based on time-sequencing of the present invention;
Fig. 2 is the structural representation of a kind of system determining resource quantity based on time-sequencing of the present invention.
Detailed description of the invention
Being described principle and the feature of the present invention below in conjunction with accompanying drawing, example is served only for explaining the present invention, and
Non-for limiting the scope of the present invention.
As it is shown in figure 1, a kind of method determining resource quantity based on time-sequencing, including:
S1, creates resource and the storage list of resource time comprising user's application, and resource time includes coming into force of resource
Time and out-of-service time;
S2, the order arrangement that the resource time in storage list was incremented by according to the time;
S3, the storage list after traversal sequence, determine the resource quantity of each time period according to resource time, obtain each
The resource quantity that the individual time period is corresponding.
Step S3 is:
S31, note resource time is i, and the time period is j;As i=1, time period j=1;Wherein, i and j be more than or etc.
In the integer of 1;
S32, when described i+1 resource time is the entry-into-force time, using i+1 resource time as time period j+1's
Time started;The resource quantity of time period j is added 1 as the resource quantity of time period j+1, and at the end of distributing for time period j
Between;
When described i+1 resource time is the out-of-service time, using i+1 resource time as at the end of time period j
Between;Or using i+1 resource time as end time of time period j+1, the resource quantity of time period j is subtracted 1 as time
Between the resource quantity of section j+1, and distribute the time started for time period j+1;
S33, i=i+1, j=j+1, it is judged that the time type of i+1 resource time, repeat S32, until by institute
The all resource time stated in the storage list after sequence have all judged.
Wherein, S32 is the entry-into-force time when i+1 resource time, distributes the end time for time period j, particularly as follows:
If the i-th+2 resource time are the entry-into-force time, then the i-th+2 resource time are deducted the minimum of described resource time
Chronomere is as the end time of time period j, and using the i-th+2 resource time as time started of time period j+1, by time
Between the resource quantity of section j add 1 as the resource quantity of time period j+1;
If the i-th+2 resource time are the out-of-service time, then using the i-th+2 resource time as end time of time period j.
When i+1 resource time is the out-of-service time, distribute the time started for time period j+1, particularly as follows:
If i-th resource time is the out-of-service time, then i-th resource time is deducted the minimum time unit of resource quantity
Time started as time period j+1.
When the out-of-service time that i+1 resource time is time period j, also include:
If the i-th+2 resource time be between entry-into-force time, and i+1 resource time and the i-th+2 resource time not
Continuously, then using i+1 resource time plus the minimum time unit of resource time as time started of time period j+1, i-th
+ 2 resource time deduct the minimum time unit end time as time period j+1 of resource time, by the resource of time period j
Quantity subtracts 1 as the resource quantity of time period j+1;And using the i-th+2 resource time as time started of time period j+2.?
The acquisition of little chronomere, such as: resource time is on September 17th, 2015, then day is minimum time.
Specifically, in the storage list after a sequence, first resource time must be the entry-into-force time, then by first
The individual entry-into-force time is as the time started of first time period, and the resource quantity of first time period is designated as 1, continues judgement second
The time type of individual resource time, if second resource time is the entry-into-force time, then means and has started a time period, will
Second resource time deducts the minimum time unit end time as first time period, and using second resource time as
The time started of the second time period, the resource quantity of the second time period is 2, the resource quantity of first time period will add 1 conduct
The resource quantity of the second time period, continues to judge the 3rd resource time;If second resource time is the out-of-service time, then by
Two resource time, directly as the end time of first time period, continue to judge the 3rd resource time;
When second resource time is the entry-into-force time, when the 3rd resource time is entry-into-force time or out-of-service time, then press
Being the entry-into-force time according to above-mentioned first resource time, second resource time is at the method for entry-into-force time or out-of-service time
Reason, i.e. when the 3rd resource time is the entry-into-force time, then means and has started a time period, by the 3rd resource time
Deduct the minimum time unit end time as the second time period, and using the 3rd resource time opening as the 3rd time period
Time beginning, the resource quantity of the 3rd time period is 3, the resource quantity of the second time period will add 1 as the money of the 3rd time period
Source quantity, continues to judge the 4th resource time;If the 3rd resource time is the out-of-service time, then by straight for the 3rd resource time
Connect the end time as second time period, continue to judge the 4th resource time;
When second resource time is the out-of-service time, and when the 3rd resource time is the entry-into-force time, then firstly the need of sentencing
Whether disconnected is continuous time between second resource time and the 3rd resource time, if continuous time, then by the 3rd money
Source time is directly as the time started of second time period, and subtracts 1 as the second time using the resource quantity of first time period
The resource quantity of section, continues to judge the 4th resource time;If not continuous time, then by second resource time plus minimum
Chronomere is as the time started of second time period, and using the 3rd resource time as at the end of second time period
Between, continue to judge the 4th resource time;
When the 3rd resource time is the out-of-service time, and when the 4th resource time is the entry-into-force time, then according to above-mentioned
Two resource time are the out-of-service time, and the 3rd resource time is that the method during entry-into-force time is implemented;When the 3rd resource
Time is the out-of-service time, and when the 4th resource time is the out-of-service time, then be the second time period due to the 3rd resource time
End time, therefore, using the 3rd resource time plus minimum time unit as time started of the 3rd time period, and
4th resource time is deducted the minimum time unit end time as the 3rd time period, the money of the 3rd time period of note
Source quantity is 1, the resource quantity of second time period will subtract 1 as the resource quantity of the 3rd time period;
In the method for the invention, when the resource time in the storage list after sequence is the entry-into-force time, must be to make
It is the time started of a time period, then the quantity of a upper time period of statistics was added 1 as the number of resources of correspondence time period
Amount, in the case of other, is all the resource quantity subtracting 1 using the resource quantity of a upper time period as the corresponding time period.
Above-mentioned situation about listing is all situations that the storage list after sorting can run in cyclic process, therefore,
In follow-up deterministic process, when running into the situation identical with above-mentioned situation, then the processing method in the case of using accordingly processes, directly
Circulate to by storage list.
The present invention may be incorporated into control program, straight needs analyze user resources time interleaving, neutral condition when
Connect and call, particularly as follows: the jar bag including control is incorporated in engineering, according to the incoming user resources of space requirement when calling
The raw out-of-service time, control i.e. can return to the quantity situation of each time period resource.
Below by citing, the method for the present invention is illustrated: such as: the rate that user will submit to are as follows:
A rate: 2015.1.1~2015.7.31
B rate: 2015.5.1~2015.11.30
C rate: 2016.1.1~2016.12.31
Specifically comprising the following steps that of time check analysis is carried out according to the method for the present invention
1) the storage list of rate time is created.Representing the time started with S, E represents the end time
A rate: 2015.1.1 (S);
2015.7.31(E);
B rate: 2015.5.1 (S);
2015.11.30(E);
C rate: 2016.1.1 (S);
2016.12.31(E);
2) list is raw according to rate, out-of-service time unification is ranked up from front to back.
2015.1.1(S)--A
2015.5.1(S)--B
2015.7.31(E)--A
2015.11.30(E)--B
2016.1.1(S)--C
2016.12.31(E)--C
3) circulate the list after above-mentioned sequence, necessarily run into entry-into-force time 2015.1.1 (S) for the first time, be recorded as a money
The time started taken, and rate quantity count recording current slot is 1.
4) next time point is continued cycling through: run into again an entry-into-force time 2015.5.1 (S), then it represents that started again one
Individual rate, the most then by m-1s time 2015.5.1 (S), as the end of a upper rate time period, i.e. 2015.1.1 (S)~
2015.4.30, rate bar number is exactly count:1.Meanwhile, using 2015.5.1 (S) as time started of next rate section, and
And count+1 becomes 2, represent and be superimposed with 2 rate (that is, quantity+1 when meeting the time started) at present simultaneously;
5) next time point is continued cycling through: run into is an out-of-service time 2015.7.31 (E), then with this effect that lost efficacy
Time, as the end time of a upper rate section, is designated as 2015.5.1~2015.7.31, and record rate quantity is current simultaneously
Count:2.Simultaneously by count-1, became for 1 (represent and currently only remain 1 rate).Then opening the next rate time period
Beginning set of time is this out-of-service time+1s, for 2015.8.1.
6) next time point is continued cycling through: run into again is an out-of-service time 2015.11.30 (E), then lost efficacy with this
The effect time, as the end time of a upper rate section, is designated as 2015.8.1~2015.11.30, and record rate quantity is simultaneously
Current count:1.Simultaneously by count-1, became for 0 (representing current without rate).Arrange next rate section to start simultaneously
Time is this out-of-service time+1s, for 2015.12.1.
7) next time point is continued cycling through: run into 2016.1.1 (S), owing to current rate quantity is 0, and
2016.1.1 with 6) the last entry-into-force time 2015.12.1 that produces is inconsistent, so user has the time period of disappearance rate, for
2015.12.1~2015.12.31 (2016.1.1 subtracts 1s).Arrange next period of rate entry-into-force time is 2016.1.1 simultaneously.
8) time period of final rate is by that analogy, for 2016.1.1~2016.12.31.
9) finally sort out the quantity of rate corresponding to each time period, thus judge whether some time period accords with
Close the rate requirement of products configuration, specific as follows:
Time period rate quantity
~2015.4.30 1 2015.1.1
~2015.7.31 2 2015.5.1
~2015.11.30 1 2015.8.1
~2015.12.31 0 2015.12.1
~2016.12.31 1 2016.1.1
As in figure 2 it is shown, a kind of system determining resource quantity based on time-sequencing, including:
Creation module, for creating the resource and the storage list of resource time comprising user's application, resource time includes
The entry-into-force time of resource and out-of-service time;
Order module, for the order arrangement being incremented by according to the time by the resource time in storage list;
Resource quantity determines module, the described storage list after traveling through sequence, determines each according to resource time
The resource quantity of time period, obtains resource quantity corresponding to each time period.
Resource quantity determines that module determines resource quantity the most in accordance with the following methods:
S31, note resource time is i, and the time period is j;As i=1, time period j=1;Wherein, i and j be more than or etc.
In the integer of 1;Judge the time type of i+1 resource time;
When i+1 resource time is the entry-into-force time, using i+1 resource time as time started of time period j+1;
The resource quantity of time period j is added 1 as the resource quantity of time period j+1, and distribute the end time for time period j;
When i+1 resource time is the out-of-service time, using i+1 resource time as end time of time period j;Or
The resource quantity of time period j as the end time of time period j+1, is subtracted 1 as time period j+ by i+1 resource time by person
The resource quantity of 1, and distribute the time started for time period j+1;
S32, i+1=(i+1)+1, j+1=(j+1)+1, j=j+1;Repeat S31, until by the storage row after sequence
All resource time in table have all judged.
S31 is the entry-into-force time when i+1 resource time, distributes the end time for time period j, particularly as follows:
If the i-th+2 resource time are the entry-into-force time, then the i-th+2 resource time are deducted the minimum of described resource time
Chronomere is as the end time of time period j, and using the i-th+2 resource time as time started of time period j+1, by time
Between the resource quantity of section j add 1 as the resource quantity of time period j+1;
If the i-th+2 resource time are the out-of-service time, then using described the i-th+2 resource time as the end of time period j
Time.
When i+1 resource time is the out-of-service time, distribute the time started for time period j+1, particularly as follows:
If i-th resource time is the out-of-service time, then i-th resource time is deducted the minimum time unit of resource quantity
Time started as time period j+1.
When the out-of-service time that i+1 resource time is time period j, also include:
If the i-th+2 resource time be between entry-into-force time, and i+1 resource time and the i-th+2 resource time not
Continuously, then using i+1 resource time plus the minimum time unit of resource time as time started of time period j+1, i-th
+ 2 resource time deduct the minimum time unit end time as time period j+1 of resource time, by the resource of time period j
Quantity subtracts 1 as the resource quantity of time period j+1;And using the i-th+2 resource time as time started of time period j+2.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and
Within principle, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.
Claims (10)
1. the method determining resource quantity based on time-sequencing, it is characterised in that including:
S1, creates resource and the storage list of resource time comprising user's application, and described resource time includes coming into force of resource
Time and out-of-service time;
S2, the order arrangement that the resource time in described storage list was incremented by according to the time;
S3, the described storage list after traversal sequence, the resource quantity of each time period is determined according to described resource time,
To the resource quantity that each time period is corresponding.
A kind of method determining resource quantity based on time-sequencing, it is characterised in that described step
S3 is:
S31, note resource time is i, and the time period is j;As i=1, time period j=1;Wherein, i and j is more than or equal to 1
Integer;
S32, when described i+1 resource time is the entry-into-force time, using i+1 resource time as the beginning of time period j+1
Time;The resource quantity of time period j is added 1 as the resource quantity of time period j+1, and distribute the end time for time period j;
When described i+1 resource time is the out-of-service time, using i+1 resource time as end time of time period j;Or
The resource quantity of time period j as the end time of time period j+1, is subtracted 1 as time period j+ by i+1 resource time by person
The resource quantity of 1, and distribute the time started for time period j+1;
S33, i=i+1, j=j+1, it is judged that the time type of i+1 resource time, repeat S32, until by described row
The all resource time in storage list after sequence have all judged.
A kind of method determining resource quantity based on time-sequencing, it is characterised in that described S32
In when described i+1 resource time be the entry-into-force time, for time period j distribute the end time, particularly as follows:
If the i-th+2 resource time are the entry-into-force time, then the i-th+2 resource time are deducted the minimum time of described resource time
Unit is as the end time of time period j, and using the i-th+2 resource time as time started of time period j+1, by the time period
The resource quantity of j adds 1 as the resource quantity of time period j+1;
If described the i-th+2 resource time are the out-of-service time, then using described the i-th+2 resource time as the end of time period j
Time.
A kind of method determining resource quantity based on time-sequencing, it is characterised in that described S32
In when described i+1 resource time be the out-of-service time, for time period j+1 distribute the time started, particularly as follows:
If i-th resource time is the out-of-service time, then i-th resource time is deducted the minimum time unit of resource quantity as
The time started of time period j+1.
A kind of method determining resource quantity based on time-sequencing, it is characterised in that described S32
In when the out-of-service time that i+1 resource time is time period j, also include:
If the i-th+2 resource time are discontinuous between entry-into-force time, and i+1 resource time and the i-th+2 resource time,
Then using i+1 resource time plus the minimum time unit of resource time as time started of time period j+1, the i-th+2
Resource time deducts the minimum time unit end time as time period j+1 of resource time, by the resource quantity of time period j
Subtract 1 as the resource quantity of time period j+1;And using the i-th+2 resource time as time started of time period j+2.
6. the system determining resource quantity based on time-sequencing, it is characterised in that including:
Creation module, for creating the resource and the storage list of resource time comprising user's application, described resource time includes
The entry-into-force time of resource and out-of-service time;
Order module, for the order arrangement being incremented by according to the time by the resource time in described storage list;
Resource quantity determines module, the described storage list after traveling through sequence, determines each according to described resource time
The resource quantity of time period, obtains resource quantity corresponding to each time period.
A kind of system determining resource quantity based on time-sequencing, it is characterised in that described resource
Quantity determines that module determines resource quantity the most in accordance with the following methods:
S31, note resource time is i, and the time period is j;As i=1, time period j=1;Wherein, i and j is more than or equal to 1
Integer;
S32, when described i+1 resource time is the entry-into-force time, using i+1 resource time as the beginning of time period j+1
Time;The resource quantity of time period j is added 1 as the resource quantity of time period j+1, and distribute the end time for time period j;
When described i+1 resource time is the out-of-service time, using i+1 resource time as end time of time period j;Or
The resource quantity of time period j as the end time of time period j+1, is subtracted 1 as time period j+ by i+1 resource time by person
The resource quantity of 1, and distribute the time started for time period j+1;
S33, i=i+1, j=j+1, it is judged that the time type of i+1 resource time, repeat S32, until by described row
The all resource time in storage list after sequence have all judged.
A kind of system determining resource quantity based on time-sequencing, it is characterised in that described S32
In when described i+1 resource time be the entry-into-force time, for time period j distribute the end time, particularly as follows:
If the i-th+2 resource time are the entry-into-force time, then the i-th+2 resource time are deducted the minimum time of described resource time
Unit is as the end time of time period j, and using the i-th+2 resource time as time started of time period j+1, by the time period
The resource quantity of j adds 1 as the resource quantity of time period j+1;
If described the i-th+2 resource time are the out-of-service time, then using described the i-th+2 resource time as the end of time period j
Time.
A kind of system determining resource quantity based on time-sequencing, it is characterised in that described S32
In when described i+1 resource time be the out-of-service time, for time period j+1 distribute the time started, particularly as follows:
If i-th resource time is the out-of-service time, then i-th resource time is deducted the minimum time unit of resource quantity as
The time started of time period j+1.
A kind of system determining resource quantity based on time-sequencing, it is characterised in that described S32
In when the out-of-service time that i+1 resource time is time period j, also include:
If the i-th+2 resource time are discontinuous between entry-into-force time, and i+1 resource time and the i-th+2 resource time,
Then using i+1 resource time plus the minimum time unit of resource time as time started of time period j+1, the i-th+2
Resource time deducts the minimum time unit end time as time period j+1 of resource time, by the resource quantity of time period j
Subtract 1 as the resource quantity of time period j+1;And using the i-th+2 resource time as time started of time period j+2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610236983.8A CN105930150B (en) | 2016-04-15 | 2016-04-15 | Method and system for determining quantity of resources based on time sequencing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610236983.8A CN105930150B (en) | 2016-04-15 | 2016-04-15 | Method and system for determining quantity of resources based on time sequencing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105930150A true CN105930150A (en) | 2016-09-07 |
CN105930150B CN105930150B (en) | 2020-07-28 |
Family
ID=56839181
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610236983.8A Active CN105930150B (en) | 2016-04-15 | 2016-04-15 | Method and system for determining quantity of resources based on time sequencing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105930150B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109993474A (en) * | 2017-12-29 | 2019-07-09 | 北京京东尚科信息技术有限公司 | Inventory planning detection method, system, computer system and readable storage medium storing program for executing |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101272470A (en) * | 2007-03-23 | 2008-09-24 | 株式会社东芝 | Timer-recording managing apparatus, timer-recording managing method and recorder |
US20110154365A1 (en) * | 2009-12-18 | 2011-06-23 | Electronics And Telecommunications Research Institute | Method for detecting and controlling contention of convergence service based on resource |
CN102169499A (en) * | 2011-04-18 | 2011-08-31 | 北京神州数码思特奇信息技术股份有限公司 | Repeated ticket removing method |
CN103019811A (en) * | 2012-10-19 | 2013-04-03 | 北京神舟航天软件技术有限公司 | Segmental detection method for multi-task resource conflict |
CN104573856A (en) * | 2014-12-25 | 2015-04-29 | 北京理工大学 | Spacecraft resource constraint processing method based on time topological sorting |
-
2016
- 2016-04-15 CN CN201610236983.8A patent/CN105930150B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101272470A (en) * | 2007-03-23 | 2008-09-24 | 株式会社东芝 | Timer-recording managing apparatus, timer-recording managing method and recorder |
US20110154365A1 (en) * | 2009-12-18 | 2011-06-23 | Electronics And Telecommunications Research Institute | Method for detecting and controlling contention of convergence service based on resource |
CN102169499A (en) * | 2011-04-18 | 2011-08-31 | 北京神州数码思特奇信息技术股份有限公司 | Repeated ticket removing method |
CN103019811A (en) * | 2012-10-19 | 2013-04-03 | 北京神舟航天软件技术有限公司 | Segmental detection method for multi-task resource conflict |
CN104573856A (en) * | 2014-12-25 | 2015-04-29 | 北京理工大学 | Spacecraft resource constraint processing method based on time topological sorting |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109993474A (en) * | 2017-12-29 | 2019-07-09 | 北京京东尚科信息技术有限公司 | Inventory planning detection method, system, computer system and readable storage medium storing program for executing |
Also Published As
Publication number | Publication date |
---|---|
CN105930150B (en) | 2020-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101799748B (en) | Method for determining data sample class and system thereof | |
CN105788264B (en) | The method and system of bayonet socket data area crash analysis based on Hbase | |
CN106776984B (en) | A kind of cleaning method of distributed system mining data | |
CN103559123B (en) | Based on function call stack analytical approach and the device of vxworks operating system | |
CN111506485B (en) | Feature binning method, device, equipment and computer-readable storage medium | |
CN107967347A (en) | Batch data processing method, server, system and storage medium | |
CN107103009A (en) | A kind of data processing method and device | |
CN107729137A (en) | Server, the method and storage medium of the decryption of block chain sign test | |
CN109976915A (en) | The optimization method and system of side cloud coordination requirement based on edge calculations | |
CN102929929A (en) | Method and device for data summarization | |
CN106156170B (en) | The analysis of public opinion method and device | |
WO2015088557A1 (en) | Data stream processing based on a boundary parameter | |
CN105930150A (en) | Method and system for determining quantity of resources based on time sorting | |
CN106649344A (en) | Network log compression method and apparatus | |
CN106097708A (en) | One determines method and device with car | |
CN112380195B (en) | SQL (structured query language) interactive data preprocessing method and device based on transaction time sequence directed graph | |
CN104182348A (en) | Software test method and device | |
Gao et al. | A hybrid approach to coping with high dimensionality and class imbalance for software defect prediction | |
CN107515721A (en) | A kind of terminal control method, device and computer installation, readable storage medium storing program for executing | |
CN106790258A (en) | A kind of method and system of screening server network request | |
CN106254470A (en) | Distributed job burst distribution method and device | |
US9619045B1 (en) | User input source identification based on delayed input | |
CN105159946A (en) | Table sorting method and system based on jQuery | |
CN203076999U (en) | Degraded product sorting mechanism for seat wheel assembling machine | |
CN106371912B (en) | A kind of resource regulating method and device of streaming computing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |