Multi-level resource allocation method and device, equipment and storage medium
By determining the resource needs of the primary allocation targets, formulating resource allocation strategies, and seeking resources to be allocated from higher levels, the problems of uneven resource allocation and waste in existing technologies are solved, and more efficient resource allocation is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2026-04-10
AI Technical Summary
Existing resource allocation technologies cannot flexibly meet the diverse needs of different types and levels of users, leading to resource waste and uneven distribution.
By determining the resource requirements of the primary allocation target, resources to be allocated are determined based on these requirements, and a resource allocation strategy is formulated according to the resources to be allocated and the resource requirements. Resources to be allocated are then sought from the user's superior, and the optimal resource allocation strategy is formulated to meet the user's needs.
It achieves the goal of meeting the diverse needs of different types and levels of users while avoiding resource waste and uneven distribution, thus improving resource allocation efficiency.
Smart Images

Figure CN121833210A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of data processing technology, specifically relating to a multi-level resource allocation method, apparatus, device, and storage medium. Background Technology
[0002] The development and application of internet technology has given rise to various online resources such as virtual currency, game equipment, and coupons. In order to improve service quality and resource allocation efficiency, resource allocation technology is usually used to allocate online resources to meet users' resource needs.
[0003] Existing resource allocation technologies typically employ fixed allocation strategies to distribute resources to users. For example, in a shopping scenario, an on-demand allocation strategy is used based on user-submitted coupon code requests to assign coupon codes to users and monitor coupon code usage.
[0004] However, a single allocation strategy cannot flexibly address the diverse needs of different types and levels of users, and may lead to problems such as resource waste and uneven allocation. Summary of the Invention
[0005] This application provides a multi-level resource allocation method, apparatus, device, and storage medium to solve the problem that the prior art cannot flexibly meet the diverse needs of different types and levels of users, resulting in resource waste and uneven allocation.
[0006] On the one hand, this application provides a multi-level resource allocation method, including:
[0007] Determine the resource requirements of the primary allocation object; and based on the resource requirements, determine the corresponding resources to be allocated, wherein the resources to be allocated are the resources allocated by the corresponding secondary allocation object to the primary allocation object, and the secondary allocation object is the superior of the primary allocation object;
[0008] Based on the resource requirements and the resources to be allocated, determine the resource allocation strategy corresponding to the primary allocation object;
[0009] According to the resource allocation strategy, resources are allocated to the first-level allocation objects.
[0010] Optionally, determining the corresponding resources to be allocated based on the resource requirements includes:
[0011] Determine the secondary allocation object corresponding to the primary allocation object, and determine the total allocated resources and the number of allocation objects corresponding to the secondary allocation object;
[0012] Based on the total allocated resources and the number of allocated objects, the resources to be allocated corresponding to the first-level allocated objects are determined.
[0013] Optionally, determining the resource allocation strategy corresponding to the primary allocation object based on the resource demand and the resources to be allocated includes:
[0014] Determine whether the resource to be allocated meets the resource requirement;
[0015] If the resources to be allocated do not meet the resource requirements, determine the public resource information in the public pool;
[0016] The resource allocation strategy is determined based on the resources to be allocated and the public resource information;
[0017] If the resource to be allocated meets the resource requirement, the resource allocation strategy is determined to be a first resource allocation strategy, which is used to instruct the resource to be allocated to the first-level allocation object.
[0018] Optionally, the resource requirement includes: requirement type and requirement quantity; determining the resource allocation strategy based on the resources to be allocated and the public resource information includes:
[0019] Based on the public resource information, determine the quantity of public resources corresponding to the demand type within the public pool;
[0020] Determine whether the sum of the quantity of the resources to be allocated and the quantity of the public resources is less than the demand quantity, wherein the resource type of the resources to be allocated is the demand type;
[0021] If the sum of the number of resources to be allocated and the number of public resources is less than the number of needs, the number of resources to be supplemented is determined, and the number of remaining resources corresponding to the demand type in the three-level allocation object is determined, wherein the three-level allocation object is the superior of the two-level allocation object;
[0022] The resource allocation strategy is determined based on the quantity of resources to be replenished, the quantity of remaining resources, the resources to be allocated, and the public resource information.
[0023] Optionally, determining the resource allocation strategy based on the quantity of resources to be replenished, the quantity of remaining resources, the resources to be allocated, and the public resource information includes:
[0024] Determine whether the remaining resource quantity is greater than or equal to the resource quantity to be replenished;
[0025] If so, the resource allocation strategy is determined to be the third resource allocation strategy. The third resource allocation strategy is used to instruct the use of the remaining resources of the first-level allocation object to allocate resources using the resources to be allocated, the public resources corresponding to the demand type in the public pool, and the number of resources to be supplemented of the third-level allocation object.
[0026] If not, then the resource allocation strategy is determined to be the fourth resource allocation strategy, which is used to instruct the first-level allocation object to be allocated resources using the resources to be allocated, the public resources corresponding to the demand type in the public pool, and the remaining resources of the third-level allocation object.
[0027] Optionally, after determining whether the sum of the quantity of the resources to be allocated and the quantity of the public resources is less than the required quantity, the method further includes:
[0028] If the sum of the number of resources to be allocated and the number of public resources is not less than the number of demands, the resource allocation strategy is determined to be a second resource allocation strategy. The second resource allocation strategy is used to instruct the allocation of resources to the first-level allocation object using the resources to be allocated and the public resources corresponding to the demand type in the public pool.
[0029] Optionally, when the resource allocation strategy is the fourth resource allocation strategy, the method further includes:
[0030] Based on the quantity of resources to be replenished, adjustment information is generated, which is used to indicate adjustments to the resource allocation rules.
[0031] Secondly, this application provides a multi-level resource allocation device, comprising:
[0032] The determination module is used to determine the resource requirements of the primary allocation object; and based on the resource requirements, determine the corresponding resources to be allocated, wherein the resources to be allocated are the resources allocated by the corresponding secondary allocation object to the primary allocation object, and the secondary allocation object is the superior of the primary allocation object;
[0033] The determining module is further configured to determine the resource allocation strategy corresponding to the primary allocation object based on the resource requirements and the resources to be allocated;
[0034] The allocation module is used to allocate resources to the first-level allocation objects according to the resource allocation strategy.
[0035] Optionally, the determining module is further configured to determine the secondary allocation object corresponding to the primary allocation object, and to determine the total allocated resources and the number of allocation objects corresponding to the secondary allocation object;
[0036] The determining module is further configured to determine the resources to be allocated corresponding to the first-level allocation object based on the total allocated resources and the number of allocation objects.
[0037] Optionally, the device further includes: a determination module;
[0038] The judgment module is used to determine whether the resource to be allocated meets the resource requirements;
[0039] The determining module is further configured to determine public resource information within the public pool when the resources to be allocated do not meet the resource requirements.
[0040] The determining module is further configured to determine the resource allocation strategy based on the resource to be allocated and the public resource information;
[0041] The determining module is further configured to determine the resource allocation strategy as a first resource allocation strategy when the resource to be allocated meets the resource requirements. The first resource allocation strategy is used to instruct the resource to be allocated to the first-level allocation object.
[0042] Optionally, the determining module is further configured to determine the quantity of public resources corresponding to the demand type in the public pool based on the public resource information;
[0043] The judgment module is further configured to determine whether the sum of the quantity of the resources to be allocated and the quantity of the public resources is less than the demand quantity, wherein the resource type of the resources to be allocated is the demand type;
[0044] The determining module is further configured to determine the quantity of resources to be supplemented when the sum of the quantity of resources to be allocated and the quantity of public resources is less than the quantity of demand, and to determine the quantity of remaining resources corresponding to the demand type in the three-level allocation object, wherein the three-level allocation object is the superior of the two-level allocation object;
[0045] The determining module is further configured to determine the resource allocation strategy based on the quantity of resources to be replenished, the quantity of remaining resources, the resources to be allocated, and the public resource information.
[0046] Optionally, the judging module is further configured to judge whether the remaining resource quantity is greater than or equal to the resource quantity to be replenished;
[0047] The determining module is further configured to determine the resource allocation strategy as a third resource allocation strategy if the condition is met. The third resource allocation strategy is configured to instruct the use of the remaining resources of the first-level allocation object to allocate resources using the resources to be allocated, the public resources corresponding to the demand type in the public pool, and the number of resources to be supplemented of the third-level allocation object.
[0048] The determining module is further configured to, if not, determine that the resource allocation strategy is a fourth resource allocation strategy, wherein the fourth resource allocation strategy is used to instruct the first-level allocation object to be allocated resources using the resources to be allocated, the public resources corresponding to the demand type in the public pool, and the remaining resources of the third-level allocation object.
[0049] Optionally, the determining module is further configured to determine the resource allocation strategy as a second resource allocation strategy if the sum of the number of resources to be allocated and the number of public resources is not less than the demand quantity. The second resource allocation strategy is used to instruct the allocation of resources to the first-level allocation object using public resources corresponding to the demand type in the public pool.
[0050] Optionally, the apparatus further includes: a generation module;
[0051] The generation module is used to generate adjustment information based on the quantity of resources to be supplemented, and the adjustment information is used to indicate the adjustment of the resource allocation rules.
[0052] Thirdly, this application provides a multi-level resource allocation device, comprising:
[0053] Memory;
[0054] processor;
[0055] The memory stores computer-executed instructions;
[0056] The processor executes computer execution instructions stored in the memory to implement the multi-level resource allocation method as described in the first aspect and various possible implementations of the first aspect above.
[0057] Fourthly, this application provides a computer storage medium storing computer execution instructions thereon, which are executed by a processor to implement the multi-level resource allocation method as described in the first aspect and various possible implementations of the first aspect above.
[0058] The multi-level resource allocation method provided in this application determines the resource needs of a first-level allocation object, identifies the corresponding resources to be allocated based on these needs, determines a resource allocation strategy for the first-level allocation object based on the resource needs and the resources to be allocated, and then allocates resources to the first-level allocation object according to this strategy. The resources to be allocated are those allocated to the first-level allocation object by the corresponding second-level allocation object, which is the superior of the first-level allocation object. This method addresses the diverse needs of different types and levels of users by seeking resources to be allocated from the user's superior and determining the resource allocation strategy based on these resources and the user's needs. This approach satisfies user needs while avoiding resource waste and uneven allocation. Attached Figure Description
[0059] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0060] Figure 1 This application provides a process for a multi-level resource allocation method. Figure 1 ;
[0061] Figure 2 This application provides a process for a multi-level resource allocation method. Figure 2 ;
[0062] Figure 3 This application provides a process for a multi-level resource allocation method. Figure 3 ;
[0063] Figure 4 This application provides a process for a multi-level resource allocation method. Figure 4 ;
[0064] Figure 5 This is a flowchart illustrating a coupon code allocation method provided in this application;
[0065] Figure 6 This is a schematic diagram of the structure of a multi-level resource allocation device provided in this application;
[0066] Figure 7 This is a schematic diagram of the structure of a multi-level resource allocation device provided in this application.
[0067] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0068] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0069] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein.
[0070] In this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0071] The development of Internet technology is accompanied by the generation and application of massive resources. In order to improve service quality and resource allocation efficiency, a resource allocation system is usually adopted to allocate network resources to meet users' resource needs.
[0072] The existing resource allocation system generates resources, registers and sets user levels, and each user submits resource requests according to their needs. The resource allocation system adopts a fixed allocation strategy, performs resource allocation operations based on each user's resource requests, and conducts periodic reviews to adjust the allocation plan.
[0073] However, a fixed resource allocation strategy cannot flexibly meet the diverse needs of different types and levels of users. It may lead to some users receiving too many resources while other users face insufficient resources, resulting in resource waste and uneven distribution.
[0074] To address the aforementioned issues, this application provides a multi-level resource allocation method. This method determines the resources to be allocated from the parent level of the object to be allocated based on the resource requirements of the object to be allocated and the level at which the object is located. Based on the resources to be allocated and the aforementioned resource requirements, an optimal resource allocation strategy is formulated for the object to be allocated, thereby improving the efficiency of resource allocation and avoiding resource waste and uneven resource allocation.
[0075] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0076] Figure 1 The flowchart of a multi-level resource allocation method provided in this application embodiment Figure 1 .like Figure 1 As shown, this embodiment provides a multi-level resource allocation method, including:
[0077] S101: Determine the resource requirements of the primary allocation object; and based on the resource requirements, determine the corresponding resources to be allocated.
[0078] In this context, the first-level allocation object is the first-level object to be allocated, and the resource to be allocated is the resource allocated by the corresponding second-level allocation object to the first-level allocation object. The second-level allocation object is the superior of the first-level allocation object.
[0079] Optionally, for each allocation object in the first level, each allocation object with resource requirements is identified as a first-level allocation object. Based on the level of the first-level allocation object, the resource information of each superior allocation object of the first-level allocation object is queried from low to high. Based on the resource information and the resource requirements of the first-level allocation object, the resources to be allocated and the second-level allocation object are determined. The second-level allocation object is in the second level.
[0080] For example, in an allocation system, the hierarchical order of allocation objects from highest to lowest is A, B, and C. After determining the resource requirements of allocation objects at level C, the resource information of each allocation object in level B is first determined. Based on this resource information and the aforementioned resource requirements, the unallocated resource information for the resources to be allocated in each allocation object at level B is determined. If, at level B, only allocation object b has unallocated resources that meet the aforementioned resource requirements, allocation object b is designated as a second-level allocation object. Conversely, if the unallocated resources in any allocation object at level B do not meet the aforementioned resource requirements, the unallocated resources in each allocation object at level A are determined. Based on the unallocated resource information corresponding to these unallocated resources, a second-level allocation object that meets the aforementioned resource requirements is then identified.
[0081] Understandably, this method is based on the hierarchy of the first-level allocation object and its resource requirements. According to the hierarchy of the allocation object, it sequentially determines whether each of the superior allocation objects of the first-level allocation object has met the resource requirements, and determines the resources to be allocated based on the resource requirements and the resource information of the superior allocation objects. This allows resource allocation to be refined to specific allocation objects at specific levels, which is conducive to flexibly dealing with allocation systems with complex organizations and structures and improving resource allocation efficiency.
[0082] It should be noted that the first and second levels mentioned above are used to distinguish the allocation objects of multiple levels, rather than to describe a specific level.
[0083] S102: Determine the resource allocation strategy corresponding to the first-level allocation object based on the resource requirements and the resources to be allocated.
[0084] Specifically, after identifying the resources to be allocated, based on the resource information of these resources, it is determined whether the resources meet the resource requirements of the primary allocation object. Based on the determination result, a resource allocation strategy corresponding to the primary allocation object is then determined. For example, the resource allocation strategy could be to use an on-demand allocation strategy if the resources to be allocated meet the resource requirements of the primary allocation object; and to activate backup resources from the backup resource pool and determine the corresponding backup resource allocation strategy if the resources to be allocated do not meet the resource requirements of the primary allocation object.
[0085] Understandably, this method determines the resource allocation strategy based on resource demand and the resources to be allocated in the secondary allocation objects. On the basis of meeting the resource demand of the primary allocation objects, it can obtain a more reasonable resource allocation scheme, which is conducive to reducing resource waste.
[0086] It should be noted that resource allocation strategies include on-demand allocation, average allocation, and reserve resource allocation strategies. This application does not impose any restrictions on these strategies.
[0087] S103: Allocate resources to the first-level allocation object according to the resource allocation strategy.
[0088] Specifically, according to the resource allocation strategy, the resources to be allocated are distributed to the allocation objects. For example, based on the determined resource allocation strategy, the resources to be allocated in the secondary allocation objects are distributed to the corresponding primary allocation objects, so as to achieve the effect of adapting the optimal resource allocation strategy to the allocation objects according to the resource needs of different levels of allocation objects.
[0089] Optionally, after completing the resource allocation for the primary allocation objects, the resource usage of the primary allocation objects can be tracked and recorded, and the resource allocation strategy can be adjusted based on the resource usage to achieve adaptive adjustment of the resource allocation strategy, improve resource allocation efficiency, and reduce resource waste.
[0090] This embodiment provides a multi-level resource allocation method. It determines the resource requirements of a first-level allocation object, identifies corresponding resources to be allocated based on these requirements, and then determines a resource allocation strategy for that object based on the resource requirements and the resources to be allocated. Resources are then allocated to the first-level allocation object according to this strategy. The resources to be allocated are those allocated to the first-level allocation object by a corresponding second-level allocation object, which is the superior of the first-level allocation object. This method seeks resources to be allocated from the superior of the first-level allocation object and determines the resource allocation strategy based on these resources and the aforementioned resource requirements. This approach provides users with an optimal resource allocation strategy while meeting the diverse needs of users at different levels, and avoids resource waste and uneven resource allocation.
[0091] Figure 2 The flowchart of a multi-level resource allocation method provided in this application embodiment Figure 2 .like Figure 2 As shown, in this embodiment... Figure 1 Based on the embodiments, a multi-level resource allocation method is described in detail. This embodiment illustrates a multi-level resource allocation method, including:
[0092] S201: Determine the resource requirements of the primary allocation objects.
[0093] This step S201 is similar to step S101 above, and will not be described again here.
[0094] S202: Determine the secondary allocation object corresponding to the primary allocation object, and determine the total allocation resources and the number of allocation objects corresponding to the secondary allocation object.
[0095] The total allocated resources and the number of allocated objects are determined by the number of primary allocated objects and the resource requirements of the primary allocated objects. For example, the resource requirements of primary allocated objects include the requirement type and the requirement quantity. Based on the requirement type, all resources in secondary allocated objects with the same requirement type are determined as the total allocated resources, and the number of allocated objects is determined based on the number of primary allocated objects.
[0096] Optionally, based on the hierarchy of the primary allocation object, the corresponding secondary allocation object is determined, and according to the resource requirements in step S201, the total allocation resources corresponding to the secondary allocation object are determined. Then, based on the resource requirements, the number of allocation objects is determined from the total allocation resources. For example, Figure 5 The diagram illustrates a flowchart of a coupon code allocation method. This method can be implemented in scenarios such as online shopping, using different types of coupon codes as resources, and allocating them to departments at different levels, including stores and a coupon code management center. The store's department level is lower than the coupon code management center's. In the coupon code allocation process, it is first determined whether each store needs coupon codes. After confirming that the first and second stores need coupon codes, and that the total number of coupon codes needed by the first and second stores is 3000 discount coupons, it is determined that the coupon code management center has 2000 discount coupons. Therefore, the total number of coupon codes available for average allocation is 2000, meaning the coupon code management center has 2000 coupon codes to allocate.
[0097] S203: Based on the total allocated resources and the number of allocated objects, determine the resources to be allocated corresponding to the first-level allocated object.
[0098] Specifically, after determining the total allocation resources and the number of allocation objects corresponding to the secondary allocation objects, the resources to be allocated are determined from the total allocation resources based on the number of allocation objects. For example, in the instance of step S202 above, if the number of allocation coupons corresponding to the coupon code management center is 2000, then 2000 discount coupons are determined as coupon codes to be allocated in the coupon code management center.
[0099] S204: Determine whether the resource to be allocated meets the resource requirements.
[0100] Optionally, the resource information corresponding to the resource to be allocated is determined, and based on this resource information and the resource requirements of the primary allocation object, it is determined whether the resource to be allocated meets the resource requirements. Then, based on the determination result, a resource allocation strategy is determined. For example, in... Figure 5 In the coupon code allocation method shown, after determining the total number of coupon codes to be allocated on an average basis, it is determined whether the remaining total number of coupon codes to be allocated on an average basis in the coupon code management center is greater than or equal to the required number of coupon codes, and the coupon code allocation strategy is determined based on the determination result.
[0101] Understandably, this method determines whether the resources to be allocated meet the resource requirements and further determines the resource allocation strategy based on the judgment result. It is suitable for multi-level and complex allocation systems. It carefully considers the resources to be allocated in each of the superior allocation objects of the first-level allocation object, making the resource allocation strategy obtained based on the above judgment result more reasonable and helping to avoid the problem of uneven resource allocation.
[0102] S205: If the resources to be allocated do not meet the resource requirements, determine the public resource information in the public pool.
[0103] The public resources stored in the public pool can be accessed by allocation objects at any level to meet the resource needs of the objects to be allocated.
[0104] Optionally, if the resources to be allocated do not meet the resource requirements—that is, if the resources to be allocated in the parent allocation object of the primary allocation object cannot meet the resource requirements of the primary allocation object—then public resource information in the public pool is invoked to identify public resources with the same attributes as the resources to be allocated, and then these public resources are used to meet the resource requirements of the primary allocation object. The public resource information includes, but is not limited to, the resource type, the quantity of resources corresponding to the resource type, and the effective usage time corresponding to each public resource.
[0105] Understandably, this method queries the parent allocation objects of the first-level allocation objects level by level, and if it is determined from the query results that the resources to be allocated in the parent allocation objects do not meet the resource requirements of the first-level allocation objects, it calls the public resources in the public pool, thereby improving the flexibility of resource allocation while meeting the resource requirements of the first-level allocation objects.
[0106] S206: Determine the resource allocation strategy based on the resources to be allocated and the public resource information.
[0107] Specifically, based on public resource information, public resources with the same attributes as the resources to be allocated are identified within the public pool. Then, based on the resources to be allocated and the public resources, a resource allocation strategy is further determined to meet the resource needs of the primary allocation targets. The attributes of the resources to be allocated include, but are not limited to, resource type and resource usage period.
[0108] Optionally, based on public resource information and the attributes of the resources to be allocated, public resources with the same attributes are identified, as well as the quantity of those public resources. A resource allocation strategy is then further determined based on this quantity and the quantity of resources to be allocated. For example, in... Figure 5 In the coupon code allocation process shown, the coupon code information in the public coupon code pool is queried, and the number of public coupon codes is determined. Then, it is determined whether the sum of the average total number of allocated coupon codes and the number of public coupon codes is greater than or equal to the store's demand. Based on the judgment result, the resource allocation strategy is further determined.
[0109] S207: If the resources to be allocated meet the resource requirements, the resource allocation strategy is determined to be the first resource allocation strategy.
[0110] The first resource allocation strategy is used to instruct the allocation of resources to the first-level allocation object using the resources to be allocated.
[0111] Optionally, after completing step S204 and obtaining the judgment result on whether the resources to be allocated meet the resource requirements of the allocation objects, if the judgment result indicates that the resources to be allocated meet the resource requirements, the resource allocation strategy is determined as the first resource allocation strategy. This avoids the problem of uneven resource allocation while satisfying the resource requirements of the first-level allocation objects. The first resource allocation strategy includes, but is not limited to, the resource allocation quantity, resource allocation type, and resource allocation time.
[0112] For example, in such Figure 5 In the coupon code allocation method shown, if the total number of coupon codes remaining in the coupon code management center is greater than or equal to the demand for coupon codes, an average allocation strategy is adopted to allocate coupon codes to stores. That is, if the total number of average allocated coupon codes is 10,000, and the demand for stores one, two, and three is 2,000, 2,500, and 3,000 respectively, then the total number of average allocated coupon codes (10,000) is greater than the demand (7,500). Therefore, 7,500 coupon codes are determined in the coupon code management center and allocated to stores one, two, and three according to the average allocation strategy.
[0113] Understandably, after resource allocation is completed according to the first resource allocation strategy, the quantity of resources to be allocated to the first-level allocation object is determined. If this quantity exceeds the required quantity in the resource demand, the quantity of remaining allocation resources is determined based on the quantity of resources to be allocated and the required quantity, and this quantity of remaining allocation resources is returned to the second-level allocation object. Optionally, after resource allocation is completed according to the first resource allocation strategy, the usage of the resources to be allocated can also be tracked to determine whether to return the remaining allocation resources to the second-level allocation object.
[0114] S208: Allocate resources to the first-level allocation object according to the resource allocation strategy.
[0115] This step S208 is similar to step S103 above, and will not be described again here.
[0116] This embodiment provides a multi-level resource allocation method. It determines the resource requirements of a first-level allocation object, queries its parent allocation objects based on these requirements, identifies the corresponding second-level allocation objects, and determines the total allocated resources and number of allocation objects for each second-level allocation object. Then, it determines the resources to be allocated based on the total allocated resources and the number of allocation objects, and determines whether these resources meet the resource requirements of the allocation objects. Based on the determination result, it determines a resource allocation strategy. If the determination result indicates that the resources to be allocated do not meet the resource requirements, it invokes public resource information from a public pool to satisfy the resource requirements of the first-level allocation object. This method, based on the resource requirements of the first-level allocation object, not only determines the resources to be allocated in the parent allocation objects of the first-level allocation object level by level, but also considers public resource information, providing a more flexible allocation strategy while satisfying the resource requirements of the first-level allocation object.
[0117] Figure 3 The flowchart of a multi-level resource allocation method provided in this embodiment Figure 3 .like Figure 3 As shown, in this embodiment... Figure 2 Based on the embodiments, a possible implementation of determining the resource allocation strategy according to the resources to be allocated and the public resource information is described in detail. This embodiment illustrates a multi-level resource allocation method, including:
[0118] S301: Based on the public resource information, determine the quantity of public resources corresponding to the demand type within the public pool.
[0119] The resource demand includes the demand type and the demand quantity, and the public resource information includes the public resource type.
[0120] Optionally, based on the demand type in the resource demand, the public resource information is analyzed and organized to obtain the public resources with the same demand type, and then the quantity of public resources for that public resource is determined.
[0121] S302: Determine whether the sum of the quantity of the resources to be allocated and the quantity of the public resources is less than the required quantity.
[0122] The resource type of the resource to be allocated is the demand type.
[0123] Optionally, after determining the quantity of public resources, it is determined whether the sum of the quantity of resources to be allocated and the quantity of public resources is less than the demand of the primary allocation object, and then a resource allocation strategy is determined based on the determination result. For example, in... Figure 5In the coupon code allocation method shown, after determining the number of public coupon codes, it is determined whether the sum of the average total number of allocated coupon codes and the number of public coupon codes is greater than or equal to the required quantity. Based on the determination result, a coupon code allocation strategy is obtained for the object with the determination result. Different determination results correspond to different coupon code allocation strategies.
[0124] Understandably, this method determines whether the resources to be allocated in the secondary allocation object and the public pool meet the resource requirements of the primary allocation object by judging whether the sum of the quantities of the resources to be allocated and the public resources is less than the required quantity of the primary allocation object. This helps to provide a more flexible allocation strategy for resource allocation and improve resource allocation efficiency.
[0125] S303: If the sum of the number of resources to be allocated and the number of public resources is less than the demand quantity, determine the number of resources to be supplemented and determine the remaining number of resources corresponding to the demand type in the three-level allocation object.
[0126] The third-level allocation object is the superior of the second-level allocation object.
[0127] Optionally, if the secondary allocation object is not the highest-level allocation object, and the sum of the quantity of resources to be allocated and the quantity of public resources in the secondary allocation object is less than the required quantity, the parent allocation object of the secondary allocation object is determined according to the hierarchical query principle. Based on the resource requirements of the primary allocation object, the remaining resources and quantities corresponding to the requirement type in the resource requirements are determined in the parent allocation object of the secondary allocation object, as well as the tertiary allocation object. Furthermore, based on the sum of the quantity of public resources and the quantity of resources to be allocated, the difference between this sum and the aforementioned required quantity is calculated, and this difference is determined as the quantity of resources to be supplemented.
[0128] S304: Determine the resource allocation strategy based on the quantity of resources to be replenished, the quantity of remaining resources, the resources to be allocated, and the public resource information.
[0129] Optionally, after determining the remaining resource quantity corresponding to the third-level allocation object, it is determined whether the remaining resource quantity is greater than or equal to the aforementioned supplementary resource quantity. Based on the determination result, the resource allocation strategy for the first-level allocation object is further determined. This method, when the sum of the quantities of resources of the same type as the resource to be allocated in the second-level allocation object and the common pool does not meet the resource requirements of the first-level allocation object, seeks the required resources from the parent allocation object of the second-level allocation object. This achieves multi-level resource allocation, which is beneficial for the rational allocation of resources at each level and reduces resource waste.
[0130] S305: If the sum of the number of resources to be allocated and the number of public resources is not less than the required quantity, the resource allocation strategy is determined to be the second resource allocation strategy.
[0131] The second resource allocation strategy is used to instruct the allocation of resources to the first-level allocation object using public resources corresponding to the demand type in the public pool.
[0132] Optionally, if the sum of the quantity of resources to be allocated and the quantity of public resources is not less than the required quantity, the resource allocation strategy is determined as the second resource allocation strategy. For example, in the case of... Figure 5 In the coupon code allocation method shown, if the sum of the average allocation of coupon codes and the number of public coupon codes is greater than or equal to the demand, the coupon code allocation strategy is determined to be a public allocation strategy. Then, according to the public allocation strategy, the average allocation of coupon codes and public coupon codes can be allocated to the corresponding stores to meet the coupon code demand of the stores.
[0133] This embodiment provides a multi-level resource allocation method. It determines the quantity of shared resources in a public pool corresponding to the demand type object by using public resource information, and then determines whether the sum of the quantity of resources to be allocated and the quantity of public resources is less than the demand quantity. Based on the determination result, a resource allocation strategy is then determined. In this method, if the sum of the quantity of resources to be allocated and the quantity of public resources is not less than the demand quantity, public resources in the public pool are invoked, and a second resource allocation strategy is used to complete the resource allocation, satisfying the resource needs of the first-level allocation object and providing a more flexible resource allocation strategy for it. Furthermore, if the sum of the quantity of resources to be allocated and the quantity of public resources is less than the demand quantity, the method further determines the resource allocation strategy based on the remaining resources corresponding to the third-level allocation object. This facilitates the rational allocation of resources at each level, reduces resource waste, and helps provide the optimal resource allocation strategy for the first-level allocation object.
[0134] Figure 4 The flowchart of a multi-level resource allocation method provided in this embodiment Figure 3 .like Figure 4 As shown, in this embodiment... Figure 1-3 Based on the embodiments, a possible implementation of determining the resource allocation strategy according to the quantity of resources to be replenished, the quantity of remaining resources, the resources to be allocated, and the public resource information is described in detail. This embodiment illustrates a multi-level resource allocation method, including:
[0135] S401: Determine whether the remaining resource quantity is greater than or equal to the resource quantity to be replenished.
[0136] Optionally, in the above Figure 3 After step S304 in the embodiment, it is determined whether the remaining resource quantity corresponding to the third-level allocation object is greater than or equal to the resource quantity to be supplemented, and then the resource allocation strategy of the first-level allocation object is determined based on the determination result.
[0137] Understandably, the above-mentioned first-level allocation objects, second-level allocation objects, and third-level allocation objects are only used to distinguish allocation objects at different allocation levels, and do not specifically refer to allocation objects at a particular level.
[0138] S402: If so, then the resource allocation strategy is determined to be the third resource allocation strategy.
[0139] The third resource allocation strategy is used to instruct the first-level allocation object to be allocated resources using the resources to be allocated, the public resources corresponding to the demand type in the public pool, and the remaining resources of the third-level allocation object to be supplemented.
[0140] Optionally, if the number of remaining resources in the third-level allocation object is greater than or equal to the number of resources to be replenished, the resource allocation strategy is determined as the third resource allocation strategy. Then, in the process of allocating resources to the first-level allocation object according to the resource allocation strategy, the resources to be allocated, the public resources in the public pool corresponding to the demand type, and the number of remaining resources to be replenished are allocated to the first-level allocation object.
[0141] Understandably, after resource allocation is completed, the allocation results can be backed up in the resource allocation system's database to allow for adaptive adjustments to resource allocation strategies and resource generation rules based on the results. These results include, but are not limited to, resource allocation time, resource allocation type, resource allocation quantity, and the objects to be allocated.
[0142] S403: If not, then the resource allocation strategy is determined to be the fourth resource allocation strategy.
[0143] The fourth resource allocation strategy is used to instruct the allocation of resources to the first-level allocation object using the resources to be allocated, the public resources corresponding to the demand type in the public pool, and the remaining resources of the third-level allocation object.
[0144] Optionally, if the third-level allocation object is the highest-level allocation object, and the remaining resources in the third-level allocation object are less than the number of resources to be supplemented, it indicates that the number of resources of the same type as the resource to be allocated in the allocation system is less than the demand of the first-level allocation object. Therefore, the resource allocation strategy is the fourth resource allocation strategy. Then, according to the fourth resource allocation strategy, the resources to be allocated that have been determined in the allocation system, the public resources in the public pool that correspond to the demand type, and the remaining resources of the third-level allocation object are first allocated to the first-level allocation object to meet part of the demand of the first-level allocation object.
[0145] S404: Generate adjustment information based on the quantity of resources to be replenished.
[0146] The adjustment information is used to indicate adjustments to the resource allocation rules.
[0147] Optionally, after step S403 above, the remaining demand quantity of the primary allocation object is the quantity of resources to be supplemented. Based on this quantity of resources to be supplemented and the demand type of the primary allocation object, adjustment information is generated, and the resource allocation rules are adjusted based on this adjustment information. For example, the demand type and the quantity of resources to be supplemented in the adjustment information are analyzed, and combined with the resource usage of the primary allocation object, it is determined that the utilization rate of the resource by the primary allocation object is less than the preset utilization rate. Therefore, in the subsequent allocation strategy, a resource allocation weight is generated based on the utilization rate of the primary allocation object, and resources are allocated to the primary object in combination with this resource allocation weight.
[0148] For example, in such Figure 5 In one of the coupon code allocation methods, when the sum of the average allocation coupon codes and the public coupon codes is less than the required quantity, it is determined that the total number of coupon codes in the coupon code management center is less than the number of coupon codes required by the stores. Therefore, the average allocation coupon codes and public coupon codes in the coupon code management center are first allocated to the stores, and adjustment information is generated based on the missing coupon code quantity and coupon code type. Based on the adjustment information, the coupon code allocation strategy is adjusted.
[0149] Understandably, the resource generation rules can also be adjusted based on this adjustment information. For example, resources of the corresponding type and quantity can be generated based on the demand type and the quantity of resources to be supplemented in the adjustment information.
[0150] This embodiment provides a multi-level resource allocation method. By determining whether the remaining resource quantity is greater than or equal to the quantity of resources to be replenished, it determines whether the quantity of resources corresponding to the demand type among the three-level allocation objects can reach the quantity of resources to be replenished. If the remaining resource quantity is greater than or equal to the quantity of resources to be replenished, a third resource allocation strategy is used for further resource allocation. Conversely, if the remaining resource quantity is less than the quantity of resources to be replenished, resources already identified in the allocation system corresponding to the demand type are first allocated to the first-level category objects, and adjustment information is generated for adaptive adjustment of the resource allocation rules in the resource allocation system. This method achieves the effect of flexibly responding to the diverse needs of different types and levels of users, and provides users with a more adaptable resource allocation strategy.
[0151] Figure 6 This application provides a schematic diagram of the structure of a multi-level resource allocation device. (For example...) Figure 6 As shown, this application provides a multi-level resource allocation device, which includes:
[0152] The determination module 601 is used to determine the resource requirements of the primary allocation object; and based on the resource requirements, determine the corresponding resources to be allocated, wherein the resources to be allocated are the resources allocated by the corresponding secondary allocation object to the primary allocation object, and the secondary allocation object is the superior of the primary allocation object;
[0153] The determining module 601 is further configured to determine the resource allocation strategy corresponding to the primary allocation object based on the resource requirements and the resources to be allocated;
[0154] The allocation module 602 is used to allocate resources to the first-level allocation object according to the resource allocation strategy.
[0155] Optionally, the determining module 601 is further configured to determine the secondary allocation object corresponding to the primary allocation object, and to determine the total allocation resources and the number of allocation objects corresponding to the secondary allocation object;
[0156] The determining module 601 is further configured to determine the resources to be allocated corresponding to the first-level allocation object based on the total allocated resources and the number of allocation objects.
[0157] Optionally, the device further includes: a judgment module 603;
[0158] The judgment module 603 is used to determine whether the resource to be allocated meets the resource requirements;
[0159] The determining module 601 is further configured to determine public resource information in the public pool when the resources to be allocated do not meet the resource requirements;
[0160] The determining module 601 is further configured to determine the resource allocation strategy based on the resource to be allocated and the public resource information;
[0161] The determining module 601 is further configured to determine the resource allocation strategy as a first resource allocation strategy when the resource to be allocated meets the resource requirements. The first resource allocation strategy is used to instruct the resource to be allocated to the first-level allocation object.
[0162] Optionally, the determining module 601 is further configured to determine the quantity of public resources corresponding to the demand type in the public pool based on the public resource information;
[0163] The judgment module 603 is further configured to determine whether the sum of the number of resources to be allocated and the number of public resources is less than the demand quantity, wherein the resource type of the resources to be allocated is the demand type;
[0164] The determining module 601 is further configured to determine the quantity of resources to be supplemented and the quantity of public resources when the sum of the quantity of resources to be allocated and the quantity of public resources is less than the quantity of demand, and to determine the quantity of remaining resources corresponding to the demand type in the three-level allocation object, wherein the three-level allocation object is the superior of the two-level allocation object.
[0165] The determining module 601 is further configured to determine the resource allocation strategy based on the quantity of resources to be replenished, the quantity of remaining resources, the resources to be allocated, and the public resource information.
[0166] Optionally, the judgment module 603 is further configured to determine whether the remaining resource quantity is greater than or equal to the resource quantity to be replenished;
[0167] The determining module 601 is further configured to determine the resource allocation strategy as a third resource allocation strategy if the condition is met. The third resource allocation strategy is configured to instruct the use of the remaining resources of the first-level allocation object to allocate resources using the resources to be allocated, the public resources corresponding to the demand type in the public pool, and the number of resources to be supplemented of the third-level allocation object.
[0168] The determining module 601 is further configured to, if not, determine that the resource allocation strategy is a fourth resource allocation strategy, wherein the fourth resource allocation strategy is used to instruct the first-level allocation object to be allocated resources using the resources to be allocated, the public resources corresponding to the demand type in the public pool, and the remaining resources of the third-level allocation object.
[0169] Optionally, the determining module 601 is further configured to determine the resource allocation strategy as a second resource allocation strategy if the sum of the number of resources to be allocated and the number of public resources is not less than the demand quantity. The second resource allocation strategy is used to instruct the allocation of resources to the first-level allocation object using the resources to be allocated and the public resources corresponding to the demand type in the public pool.
[0170] Optionally, the apparatus further includes: a generation module 604;
[0171] The generation module 604 is used to generate adjustment information based on the quantity of resources to be supplemented, and the adjustment information is used to indicate the adjustment of the resource allocation rules.
[0172] Figure 7 This application provides a structural schematic diagram of a multi-level resource allocation device. (For example...) Figure 7 As shown, this application provides a multi-level resource allocation device, which includes: a receiver 701, a transmitter 702, a processor 703, and a memory 404.
[0173] Receiver 701 is used to receive commands and data;
[0174] Transmitter 702 is used to send commands and data;
[0175] Memory 704 is used to store instructions executed by the computer;
[0176] The processor 703 is used to execute computer execution instructions stored in the memory 704 to implement the various steps of the multi-level resource allocation method in the above embodiments. For details, please refer to the relevant description in the foregoing embodiments of the multi-level resource allocation method.
[0177] Alternatively, the memory 704 can be either standalone or integrated with the processor 403.
[0178] When the memory 704 is set up independently, the electronic device also includes a bus for connecting the memory 704 and the processor 703.
[0179] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement a multi-level resource allocation method as described above by a multi-level resource allocation device.
[0180] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0181] The technical solutions of this application have been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it is readily understood by those skilled in the art that the scope of protection of this application is obviously not limited to these specific embodiments. The above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A multi-level resource allocation method, characterized in that, include: Determine the resource requirements of the primary allocation objects; Based on the resource requirements, the corresponding resources to be allocated are determined. The resources to be allocated are the resources allocated by the corresponding secondary allocation object to the primary allocation object. The secondary allocation object is the superior of the primary allocation object. Based on the resource requirements and the resources to be allocated, determine the resource allocation strategy corresponding to the primary allocation object; According to the resource allocation strategy, resources are allocated to the first-level allocation objects.
2. The method according to claim 1, characterized in that, The process of determining the corresponding resources to be allocated based on the resource requirements includes: Determine the secondary allocation object corresponding to the primary allocation object, and determine the total allocated resources and the number of allocation objects corresponding to the secondary allocation object; Based on the total allocated resources and the number of allocated objects, the resources to be allocated corresponding to the first-level allocated objects are determined.
3. The method according to claim 1, characterized in that, The step of determining the resource allocation strategy corresponding to the primary allocation object based on the resource demand and the resources to be allocated includes: Determine whether the resource to be allocated meets the resource requirement; If the resources to be allocated do not meet the resource requirements, determine the public resource information in the public pool; The resource allocation strategy is determined based on the resources to be allocated and the public resource information; If the resource to be allocated meets the resource requirement, the resource allocation strategy is determined to be a first resource allocation strategy, which is used to instruct the resource to be allocated to the first-level allocation object.
4. The method according to claim 3, characterized in that, The resource requirements include: requirement type and requirement quantity. Determining the resource allocation strategy based on the resources to be allocated and the public resource information includes: Based on the public resource information, determine the quantity of public resources corresponding to the demand type within the public pool; Determine whether the sum of the quantity of the resources to be allocated and the quantity of the public resources is less than the demand quantity, wherein the resource type of the resources to be allocated is the demand type; If the sum of the number of resources to be allocated and the number of public resources is less than the number of needs, the number of resources to be supplemented is determined, and the number of remaining resources corresponding to the demand type in the three-level allocation object is determined, wherein the three-level allocation object is the superior of the two-level allocation object; The resource allocation strategy is determined based on the quantity of resources to be replenished, the quantity of remaining resources, the resources to be allocated, and the public resource information.
5. The method according to claim 4, characterized in that, The step of determining the resource allocation strategy based on the quantity of resources to be replenished, the quantity of remaining resources, the resources to be allocated, and the public resource information includes: Determine whether the remaining resource quantity is greater than or equal to the resource quantity to be replenished; If so, the resource allocation strategy is determined to be the third resource allocation strategy. The third resource allocation strategy is used to instruct the use of the remaining resources of the first-level allocation object to allocate resources using the resources to be allocated, the public resources corresponding to the demand type in the public pool, and the number of resources to be supplemented of the third-level allocation object. If not, then the resource allocation strategy is determined to be the fourth resource allocation strategy, which is used to instruct the first-level allocation object to be allocated resources using the resources to be allocated, the public resources corresponding to the demand type in the public pool, and the remaining resources of the third-level allocation object.
6. The method according to claim 4, characterized in that, After determining whether the sum of the quantity of resources to be allocated and the quantity of public resources is less than the required quantity, the method further includes: If the sum of the number of resources to be allocated and the number of public resources is not less than the number of demands, the resource allocation strategy is determined to be a second resource allocation strategy. The second resource allocation strategy is used to instruct the allocation of resources to the first-level allocation object using the resources to be allocated and the public resources corresponding to the demand type in the public pool.
7. The method according to claim 5, characterized in that, When the resource allocation strategy is the fourth resource allocation strategy, the method further includes: Based on the quantity of resources to be replenished, adjustment information is generated, which is used to indicate adjustments to the resource allocation rules.
8. A multi-level resource allocation device, characterized in that, include: The determination module is used to determine the resource requirements of the primary allocation objects; Based on the resource requirements, the corresponding resources to be allocated are determined. The resources to be allocated are the resources allocated by the corresponding secondary allocation object to the primary allocation object. The secondary allocation object is the superior of the primary allocation object. The determining module is further configured to determine the resource allocation strategy corresponding to the primary allocation object based on the resource requirements and the resources to be allocated; The allocation module is used to allocate resources to the first-level allocation objects according to the resource allocation strategy.
9. A multi-level resource allocation device, characterized in that, include: Memory; processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the multi-level resource allocation method as described in any one of claims 1-7.
10. A computer storage medium, characterized in that, The computer storage medium stores computer execution instructions, which, when executed by a processor, are used to implement the multi-level resource allocation method as described in any one of claims 1-7.