CN112308707A - Information recommendation method and device and electronic equipment - Google Patents

Information recommendation method and device and electronic equipment Download PDF

Info

Publication number
CN112308707A
CN112308707A CN202011310453.6A CN202011310453A CN112308707A CN 112308707 A CN112308707 A CN 112308707A CN 202011310453 A CN202011310453 A CN 202011310453A CN 112308707 A CN112308707 A CN 112308707A
Authority
CN
China
Prior art keywords
resource
container
parameter
share
resource container
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011310453.6A
Other languages
Chinese (zh)
Inventor
汪仕富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN202011310453.6A priority Critical patent/CN112308707A/en
Publication of CN112308707A publication Critical patent/CN112308707A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06312Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Marketing (AREA)
  • Accounting & Taxation (AREA)
  • Educational Administration (AREA)
  • Technology Law (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an information recommendation method, an information recommendation device and electronic equipment, wherein the method comprises the following steps: determining a first parameter corresponding to the first resource based on the resource share of the first resource acquired by the request and the set first ratio; the first parameter represents the minimum resource share required to be locked when the first resource is obtained; outputting recommendation information about the M first resource container sets based on the first parameter and the resource share corresponding to each resource container in the at least one resource container; the recommendation information is used for determining a resource container set locked when the first resource is acquired; the M first resource container sets are the first M resource container sets with the minimum total resource share in the N resource container sets; the N resource container sets are obtained by combining at least one resource container; the total share of the resources corresponding to each resource container set in the N resource container sets is greater than or equal to a first parameter; m and N are both positive integers and N is greater than M.

Description

Information recommendation method and device and electronic equipment
Technical Field
The invention relates to the technical field of financial technology (Fintech), in particular to an information recommendation method and device and electronic equipment.
Background
With the development of computer technology, more and more technologies are applied in the financial field, and the traditional financial industry is gradually changing to financial technology, however, the financial technology also puts higher demands on the technologies due to the requirements of security and real-time performance of the financial industry. In the field of financial technology, when one resource is locked to be exchanged for another resource, the resource is not fully utilized due to the fact that the locked resource is too much, and resource waste is caused.
Disclosure of Invention
In view of this, embodiments of the present invention are intended to provide an information recommendation method, an information recommendation apparatus, and an electronic device, so as to solve the technical problem in the related art that resources are wasted due to too many locked resources and insufficient resources.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the embodiment of the invention provides an information recommendation method, which comprises the following steps:
determining a first parameter corresponding to a first resource based on a resource share of the first resource acquired by a request and a set first ratio; the first parameter represents a minimum resource share which requires locking when the first resource is obtained;
outputting recommendation information about the M first resource container sets based on the first parameter and the resource share corresponding to each resource container in the at least one resource container; the recommendation information is used for determining a resource container set locked when the first resource is acquired; wherein,
the M first resource container sets are the first M resource container sets with the minimum total resource share in the N resource container sets; the N resource container sets are obtained by combining the at least one resource container; the total share of the resources corresponding to each of the N resource container sets is greater than or equal to the first parameter; the M and the N are both positive integers and the N is greater than the M.
In the foregoing solution, when the recommendation information on the M first resource container sets is output based on the first parameter and the resource share corresponding to each resource container in the at least one resource container, the method includes:
determining M first resource container sets based on a set threshold, the first parameter and a resource share corresponding to each resource container in the at least one resource container; wherein,
the set threshold characterizes a maximum number of resource containers allowed to be locked; and determining that the total number of the resource containers in each first resource container set is less than or equal to the set threshold.
In the foregoing solution, when determining M first resource container sets based on the set threshold, the first parameter, and the resource share corresponding to each resource container in the at least one resource container, the method includes:
under the condition that the set threshold is 1, determining N resource container sets from resource containers with resource shares larger than or equal to the first parameter; wherein each determined resource container set comprises one resource container.
In the foregoing solution, when determining M first resource container sets based on the set threshold, the first parameter, and the resource share corresponding to each resource container in the at least one resource container, the method includes:
under the condition that the set threshold is greater than or equal to 2, determining a first number of resource containers from the resource containers with the resource shares smaller than the first parameter according to the sequence of the resource shares from large to small; wherein the first number is equal to the set threshold;
determining M first resource container sets based on the set threshold, the first parameter and the resource share corresponding to each resource container in the at least one resource container when the total resource share corresponding to the first number of resource containers is greater than or equal to the first parameter;
outputting prompt information under the condition that the total resource share corresponding to the first number of resource containers is smaller than the first parameter and the resource containers with the resource shares larger than or equal to the first parameter are not found; the prompt information represents that the first resource container set does not exist;
and when the total resource share corresponding to the first number of resource containers is smaller than the first parameter and the resource containers with the resource shares larger than or equal to the first parameter are found, determining M first resource container sets based on the resource containers with the resource shares larger than or equal to the first parameter, wherein each determined first resource container set comprises one resource container.
In the foregoing solution, the determining M first resource container sets based on the set threshold, the first parameter, and the resource share corresponding to each resource container in the at least one resource container includes:
in the case that M is 1, searching a first resource container with a resource share equal to the first parameter in the at least one resource container;
under the condition that the first resource container is found, determining the first resource container as a first resource container set;
and under the condition that the first resource container is not found, determining a first resource container set with the minimum total resource share based on a set threshold, the first parameter and the resource share corresponding to each resource container in the at least one resource container.
In the foregoing solution, the determining M first resource container sets based on the set threshold, the first parameter, and the resource share corresponding to each resource container in the at least one resource container includes:
combining the at least one resource container based on the set threshold and the first parameter to obtain the N resource container sets; wherein the total number of resource containers in each resource container set is less than or equal to the set threshold;
and determining M first resource container sets from the N resource container sets according to the sequence of the total resource share from small to large.
The combining the at least one resource container based on the set threshold and the first parameter to obtain the N resource container sets includes:
determining a resource container set from a second resource container with the resource share larger than or equal to the first parameter; determining that each resource container set comprises a second resource container;
and combining the third resource containers with the resource shares smaller than the first parameter based on the set threshold and the first parameter to obtain a resource container set with the total resource share larger than or equal to the first parameter.
In the foregoing solution, the determining a resource container set from a second resource container whose resource share is greater than or equal to the first parameter includes:
and under the condition that M is 1, determining a second resource container with the minimum resource share from second resource containers with the resource shares larger than or equal to the first parameter to obtain a resource container set.
In the foregoing solution, when the third resource container with the resource share smaller than the first parameter is combined based on the set threshold and the first parameter to obtain the resource container set with the total resource share greater than or equal to the first parameter, the method includes:
determining a first element of a resource container set; the first element is one of the third resource containers with the largest resource share;
combining third resource containers except the first element based on the set threshold and the first difference to obtain a second element of the resource container set; wherein,
the first difference value represents a difference value between the first parameter and a resource share corresponding to the first element;
the second element comprises at least one third resource container; the total number of third resource containers in the second element is less than or equal to a difference between a first set threshold and 1.
An embodiment of the present invention further provides an information recommendation apparatus, including:
the determining unit is used for determining a first parameter corresponding to a first resource based on a resource share of the first resource acquired by a request and a set first ratio; the first parameter represents a minimum resource share which requires locking when the first resource is obtained;
a recommending unit, configured to output recommendation information regarding the M first resource container sets based on the first parameter and a resource share corresponding to each resource container in the at least one resource container; the recommendation information is used for determining a resource container set locked when the first resource is acquired; wherein,
the M first resource container sets are the first M resource container sets with the minimum total resource share in the N resource container sets; the N resource container sets are obtained by combining the at least one resource container; the total share of the resources corresponding to each of the N resource container sets is greater than or equal to the first parameter; the M and the N are both positive integers and the N is greater than the M.
An embodiment of the present invention further provides an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor,
the processor is configured to execute any one of the steps of the information recommendation method when the computer program is run.
An embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the above information recommendation methods.
According to the embodiment of the invention, the minimum resource share required to be locked when the first resource is acquired is determined based on the resource share of the first resource requested to be acquired and the set first ratio; and outputting recommendation information about the M first resource container sets based on the minimum resource share and the resource share corresponding to each resource container in the at least one resource container, so that a user can determine the resource container set locked when acquiring the first resource according to the recommendation information. Because the M first resource container sets are the first M resource container sets with the smallest total resource share in the N resource container sets, and the total resource share corresponding to each resource container set in the N resource container sets is greater than or equal to the calculated minimum resource share, a user can determine the first resource container set with the smallest total resource share in the M first resource container sets as the resource container set locked when the first resource is acquired according to the recommendation information output by the electronic device, so that the resource utilization rate can be improved, and resource waste caused by insufficient utilization of resources in the resource containers is avoided.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of an information recommendation method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation process of determining M first resource container sets in the information recommendation method according to the embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating an implementation process of determining M first resource container sets in an information recommendation method according to another embodiment of the present invention;
fig. 4 is a schematic flow chart illustrating an implementation process of determining M first resource container sets in an information recommendation method according to yet another embodiment of the present invention;
fig. 5 is a schematic flow chart illustrating an implementation process of determining N resource container sets in the information recommendation method according to the embodiment of the present invention;
fig. 6 is a schematic flow chart illustrating an implementation process of determining N resource container sets in an information recommendation method according to another embodiment of the present invention;
fig. 7 is a schematic diagram illustrating an implementation flow of an information recommendation method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an information recommendation device according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware component structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In the related art, in a scenario of trading for one resource by locking another resource, it is generally required that the total share of the resource that is locked is greater than or equal to the minimum share of the resource. And the minimum resource share is a positive integer and is greater than or equal to the quotient between the resource share of the resource requested to be obtained and the set ratio. However, in actual operation, the total share of the resource of the locked resource is usually much larger than the minimum share of the resource, and the resource beyond the minimum share of the resource cannot be fully utilized because the locked resource cannot be circulated, thereby resulting in resource waste.
The embodiment of the invention provides an information recommendation method, which can determine the minimum resource share required to be locked when a first resource is acquired based on the resource share of the first resource requested to be acquired and a set first ratio; and outputting recommendation information about the M first resource container sets based on the minimum resource share and the resource share corresponding to each resource container in the at least one resource container, so that a user can determine the resource container set locked when acquiring the first resource according to the recommendation information. Because the M first resource container sets are the first M resource container sets with the smallest total resource share in the N resource container sets, and the total resource share corresponding to each resource container set in the N resource container sets is greater than or equal to the calculated minimum resource share, a user can determine the first resource container set with the smallest total resource share in the M first resource container sets as the resource container set locked when the first resource is acquired according to the recommendation information output by the electronic device, so that the resource utilization rate can be improved, and resource waste caused by insufficient utilization of resources in the resource containers is avoided.
The technical solution of the present invention is further described in detail with reference to the drawings and the specific embodiments of the specification.
Fig. 1 shows a schematic flow chart of an implementation of an information recommendation method provided by an embodiment of the present invention. In the embodiment of the invention, the execution main body of the information recommendation method is electronic equipment, the electronic equipment comprises a terminal, a server and the like, and the terminal comprises a mobile phone, a tablet personal computer and the like.
Referring to fig. 1, an information recommendation method provided in an embodiment of the present application includes:
s101: determining a first parameter corresponding to a first resource based on a resource share of the first resource acquired by a request and a set first ratio; the first parameter characterizes a minimum share of the resource that requires locking when the first resource is acquired.
Here, the electronic device calculates a quotient between the resource share of the first resource requested to be acquired and the set first ratio, and determines the first parameter based on the calculated quotient. When the calculated quotient is a decimal, determining a minimum positive integer larger than the calculated quotient as a first parameter corresponding to the first resource; and when the calculated quotient is an integer, determining the quotient as a first parameter corresponding to the first resource.
The set first ratio is a ratio corresponding to a scene of replacing the first resource by locking at least one resource container.
S102: outputting recommendation information about the M first resource container sets based on the first parameter and the resource share corresponding to each resource container in the at least one resource container; the recommendation information is used for determining a resource container set locked when the first resource is acquired; wherein,
the M first resource container sets are the first M resource container sets with the minimum total resource share in the N resource container sets; the N resource container sets are obtained by combining the at least one resource container; the total share of the resources corresponding to each of the N resource container sets is greater than or equal to the first parameter; the M and the N are both positive integers and the N is greater than the M.
N characterizes a total share of resources greater than or equal to a total number of the set of resource containers of the first parameter.
Here, the electronic device may obtain, based on the unique identity of the user requesting to obtain the first resource, at least one first resource container associated with the unique identity of the user, where the unique identity may be an identification number.
Under the condition that at least one first resource container is acquired, the electronic device may combine all the acquired first resource containers based on the first parameter to obtain a resource container set in which the total share of the N resources is greater than or equal to the first parameter. Here, the total share of the resource corresponding to the set of resource containers corresponding to each combination result is greater than or equal to the first parameter.
Under the condition that at least one first resource container is obtained, the electronic equipment can also combine all the obtained first resource containers to obtain at least one combination result; calculating the total share of the resources corresponding to each combination result based on the share of the resources of each first resource container; and determining N combined results with the total resource shares larger than or equal to the first parameter from all the combined results based on the first parameter and the total resource shares corresponding to each combined result, and obtaining N resource container sets.
Under the condition that the N resource container sets are determined, the electronic equipment selects a first resource container set with the minimum M total resource shares from the N resource container sets according to the sequence of the total resource shares from small to large. When M is 1, the first resource container set is a resource container set with the smallest total resource share among the N resource container sets. When M is greater than or equal to 2, the N resource container sets may be sorted in order of the total resource share from small to large, and the first M resource container sets are selected from the sorted N resource container sets to obtain M first resource container sets. Of course, the electronic device may also sort the N resource container sets in the order of the total resource shares from large to small, and sequentially select the M resource container sets with the minimum total resource share from the sorted N resource container sets.
It should be noted that the resource container set may include one resource container, and the resource container set may also include at least two resource containers. When a resource container is included in the set of resource containers, the share of resources characterizing the resource container is greater than or equal to a first parameter. When at least two resource containers are included in the resource container set, the resource share of one resource container may be greater than or equal to the first parameter, or may be smaller than the first parameter, as long as the total share of resources of all resource containers in the resource container set is greater than or equal to the first parameter.
And under the condition that the M first resource container sets are determined, the electronic equipment outputs recommendation information about the M first resource container sets, so that a user can determine a resource container set locked when acquiring the first resource based on the recommendation information.
It should be noted that, in the case of a pledge loan, the resource share of the first resource corresponds to the loan amount, the set first ratio corresponds to the pledge rate, and the first parameter corresponds to the minimum amount of the item that is required to be frozen or mortgage when the loan is obtained. The item may be a physical item or a virtual product. In practical applications, the item may be a certificate of real property (e.g., a property certificate), a periodic deposit receipt, a certificate of a purchased financial product, or the like. The first resource container corresponds to the item. When the first resource container is the periodic deposit list, the resource share of the first resource container corresponds to the amount of the periodic deposit list. When the first resource container is a property certificate, the resource share of the first resource container corresponds to the total amount of the property.
For example, in the case where the user needs 8000 yuan for loan, the pledge rate is 0.8, and the user has five deposit slips with amounts of 20000 yuan, 9000 yuan, 6000 yuan, 5000 yuan, and 800 yuan, respectively, the electronic device calculates a quotient of 8000 and 0.8, and obtains 10000. The minimum pledge amount required to be frozen when the electronic equipment acquires the 8000 yuan loan is 10000 yuan. And the electronic equipment combines the five deposit bill amounts of the user based on the determined minimum pledge amount to obtain 19 deposit bill sets with the total amount larger than or equal to 10000 yuan. The 19 deposit receipt sets are respectively: {20000 yuan }, {20000 yuan, 9000 yuan }, {20000 yuan, 6000 yuan }, {20000 yuan, 5000 yuan }, {20000 yuan, 800 yuan }, {20000 yuan, 9000 yuan, 6000 yuan }, {20000 yuan, 9000 yuan, 5000 yuan }, {20000 yuan, 9000 yuan, 800 yuan, {20000 yuan, 6000 yuan, 5000 yuan, 20000 yuan, 6000 yuan, 800 yuan }, {20000 yuan, 5000 yuan, 800 yuan, 20000 yuan, 9000 yuan, 6000 yuan, 5000 yuan, 800 yuan, 9000 yuan, 6000 yuan, 9000 yuan, 5000 yuan, 9000 yuan, 6000 yuan, 5000 yuan, 9000 yuan, 5000 yuan }, {9000 yuan, 6000 yuan, 800 yuan, 5000 yuan, 6000 yuan.
When the electronic device selects 3 first deposit list sets from 19 deposit list sets with the total amount greater than or equal to 10000 yuan, the 3 first deposit list sets: {6000 yuan, 5000 yuan }, {6000 yuan, 5000 yuan, 800 yuan }, {9000 yuan, 5000 yuan }.
In the scheme provided by this embodiment, a first parameter is determined based on a resource share of a first resource requested to be obtained and a set first ratio; and outputting recommendation information about the M first resource container sets based on the first parameter and the resource share corresponding to each resource container in the at least one resource container, so that a user can determine a resource container set locked when acquiring the first resource according to the recommendation information. Because the M first resource container sets are the first M resource container sets with the smallest total resource share in the N resource container sets, and the total resource share corresponding to each resource container set in the N resource container sets is greater than or equal to the calculated minimum resource share, a user can determine the first resource container set with the smallest total resource share in the M first resource container sets as the resource container set locked when the first resource is acquired according to the recommendation information output by the electronic device, so that the resource utilization rate can be improved, and resource waste caused by insufficient utilization of resources in the resource containers is avoided.
As another embodiment of the present invention, when obtaining a set threshold, and outputting recommendation information on M first resource container sets based on the first parameter and a resource share corresponding to each resource container in at least one resource container, the method includes:
determining M first resource container sets based on a set threshold, the first parameter and a resource share corresponding to each resource container in the at least one resource container; wherein,
the set threshold characterizes a maximum number of resource containers allowed to be locked; and determining that the total number of the resource containers in each first resource container set is less than or equal to the set threshold.
Here, when a set threshold corresponding to an application scenario in which the first resource is obtained by locking at least one resource container is set, the electronic device determines M first resource container sets based on the set threshold, the first parameter, and a resource share corresponding to each resource container in the at least one resource container. The set threshold value characterizes the maximum number of resource containers that are allowed to be locked, and is set to an integer. The difference between this embodiment and the previous embodiment S102 is that the total number of resource containers included in each of the M first resource container sets is smaller than or equal to a set threshold. That is, the electronic device may, on the basis of determining that the total share of the resource is greater than or equal to N resource container sets of the first parameter in S102, based on a set threshold, screen out a resource container set from the N resource container sets, where the total number of resource containers is less than or equal to the set threshold, and determine, from the screened resource container sets, the top M resource container sets with the minimum total share of the resource.
It should be noted that the total resource share is greater than or equal to the total number of resource containers included in the N resource container sets of the first parameter, and may be less than or equal to the set threshold, or may be greater than the set threshold.
For example, in a case of a pledge loan, when the threshold is set to 2, the total number of deposit slips included in a deposit slip set representing that the total amount is greater than or equal to the minimum pledge amount is less than or equal to 2, and when the minimum pledge amount is 1000 yuan and the electronic device is selected from a 19 deposit slip set having a total amount greater than or equal to 10000 yuan, 2 first deposit slip combinations selected by the electronic device from the 19 deposit slip sets are respectively: {6000 yuan, 5000 yuan }, {9000 yuan, 5000 yuan }.
In an embodiment, when determining M first resource container sets based on the set threshold, the first parameter, and the resource share corresponding to each resource container in the at least one resource container, the method includes:
under the condition that the set threshold is 1, determining N resource container sets from resource containers with resource shares larger than or equal to the first parameter; wherein each determined resource container set comprises one resource container.
Here, when the threshold is set to 1, there is only one resource container included in the first resource container set, and therefore, in order to reduce the amount of computation of the electronic device, the electronic device screens out, from all the acquired resource containers, resource containers having resource shares greater than or equal to the first parameter based on the first parameter to obtain N resource container sets, and thereby determines M first resource container sets from the N resource container sets in order of the resource shares from small to large. Wherein each of the N resource container sets comprises a resource container.
In the solution provided in this embodiment, when the set threshold is 1, N resource container sets are determined from resource containers whose resource shares are greater than or equal to the first parameter, and the electronic device does not need to combine all resource container sets, which may reduce the amount of computation of the electronic device, improve the data processing efficiency of the electronic device, and also reduce the power consumption of the electronic device.
As another embodiment of the present invention, fig. 2 is a schematic diagram illustrating an implementation flow of determining M first resource container sets in an information recommendation method provided in an embodiment of the present invention. Referring to fig. 2, in an embodiment, when determining M first resource container sets based on the set threshold, the first parameter, and the resource share corresponding to each resource container in the at least one resource container, the method includes:
s201: under the condition that the set threshold is greater than or equal to 2, determining a first number of resource containers from the resource containers with the resource shares smaller than the first parameter according to the sequence of the resource shares from large to small; wherein the first number is equal to the set threshold.
Here, the electronic device determines resource containers with resource shares smaller than the first parameter from all the acquired first resource containers, and sequentially determines a first number of resource containers from the resource containers with resource shares smaller than the first parameter in the descending order of resource shares.
And under the condition that the first number of resource containers are determined, calculating the total resource share corresponding to the first number of resource containers, and comparing the total resource share corresponding to the first number of resource containers with the first parameter to obtain a comparison result.
When the comparison result indicates that the total share of the resource corresponding to the first number of resource containers is greater than or equal to the first parameter, the characterization may determine a set of resource containers whose total share of the resource is greater than or equal to the first parameter from all resource containers whose share of the resource is less than the first parameter, and then S202 is performed.
When the comparison result indicates that the total resource share corresponding to the first number of resource containers is smaller than the first parameter, the electronic device determines that the total resource share is greater than or equal to the resource container set of the first parameter from all the resource containers of which the resource share is smaller than the first parameter, at this time, searches the resource container of which the resource share is greater than or equal to the first parameter from the acquired resource containers, and when the resource container of which the resource share is greater than or equal to the first parameter is not found, indicates that the resource container set of which the total resource share is greater than or equal to the first parameter is not available from all the acquired resource containers, and step S203 is executed; when the resource container with the resource share larger than or equal to the first parameter is found, the characterization may obtain a resource container set with the total resource share larger than or equal to the first parameter from all the obtained resource containers, and execute S204.
S202: determining M first resource container sets based on the set threshold, the first parameter and the resource share corresponding to each of the at least one resource container when the total resource share corresponding to the first number of resource containers is greater than or equal to the first parameter.
Here, please refer to the relevant description in the above embodiment for the implementation manner of the electronic device determining the M first resource container sets, which is not described herein again. The determined first resource container set can only comprise one resource container with the resource share larger than or equal to the first parameter; the first set of resource containers may also include at least two resource containers having resource shares smaller than the first parameter.
S203: outputting prompt information under the condition that the total resource share corresponding to the first number of resource containers is smaller than the first parameter and the resource containers with the resource shares larger than or equal to the first parameter are not found; the hint information characterizes an absence of the first set of resource containers.
When the total resource share corresponding to the first number of resource containers is smaller than the first parameter and the resource container with the resource share larger than or equal to the first parameter is not found, the electronic device cannot determine the resource container set with the total resource share larger than or equal to the first parameter from all the acquired resource containers, that is, the first resource container set cannot be obtained, and therefore, prompt information is output.
S204: determining M first resource container sets from the resource containers with the resource shares larger than or equal to the first parameter under the condition that the total resource shares corresponding to the first number of resource containers are smaller than the first parameter and the resource containers with the resource shares larger than or equal to the first parameter are found; and each first resource container set comprises one resource container.
Here, in a case that the total resource share corresponding to the first number of resource containers is smaller than the first parameter and a resource container having a resource share greater than or equal to the first parameter is found, the characterization electronic device may determine, from the obtained resource containers, a resource container set having a resource share greater than or equal to the first parameter.
The electronic device may determine M first resource container sets from the resource containers having the resource shares larger than the first parameter, where each first resource container set includes a resource container having a resource share larger than the first parameter.
In the solution provided in this embodiment, by comparing the total resource shares corresponding to the first number of resource containers with the first parameter, it can be determined whether a resource container set whose total resource share is greater than or equal to the first parameter can be determined currently according to the comparison result, and a situation that the resource container set whose total resource share is greater than or equal to the first parameter cannot be obtained after the obtained resource containers are combined can be avoided.
As another embodiment of the present invention, fig. 3 is a schematic diagram illustrating an implementation flow of determining M first resource container sets in an information recommendation method according to another embodiment of the present invention. Referring to fig. 3, the determining M first resource container sets based on the set threshold, the first parameter, and the resource share corresponding to each resource container in the at least one resource container includes:
s301: in the case that M is 1, a first resource container with a resource share equal to the first parameter is searched in the at least one resource container.
Here, in the case where M is 1, the electronic device only needs to output the first container set with the smallest total share of resources among the N resource container sets.
The electronic device searches a first resource container with the resource share equal to the first parameter from all the acquired resource containers under the condition that M is 1, and executes S302 when the first resource container is found; when the first resource container is not found, S303 is performed.
S302: and under the condition that the first resource container is found, determining the first resource container as a first resource container set.
Here, the electronic device may directly output recommendation information regarding a first resource container having a resource share equal to the first parameter.
S303: and under the condition that the first resource container is not found, determining a first resource container set with the minimum total resource share based on a set threshold, the first parameter and the resource share corresponding to each resource container in the at least one resource container.
Here, the electronic device determines N resource container sets based on the set threshold, the first parameter, and the resource share corresponding to each resource container in the at least one resource container, and please refer to the related description in the foregoing embodiment for a specific implementation manner, which is not described herein again. And under the condition that the N resource container sets are determined, determining one resource container set with the minimum total resource share in the N resource container sets as a first resource container set.
In the solution provided in this embodiment, when M is equal to the obtained value, when the electronic device finds a resource container whose resource share is equal to the first parameter, the electronic device may quickly determine the first resource container.
As another embodiment of the present invention, fig. 4 is a schematic diagram illustrating an implementation flow of determining M first resource container sets in an information recommendation method according to yet another embodiment of the present invention. Referring to fig. 4, the determining M first resource container sets based on the set threshold, the first parameter, and the resource share corresponding to each resource container in the at least one resource container includes:
s401: combining the at least one resource container based on the set threshold and the first parameter to obtain the N resource container sets; wherein the total number of resource containers in each resource container set is less than or equal to the set threshold.
Here, the electronic device may combine all the obtained first resource containers based on the set threshold and the first parameter, to obtain a resource container set in which the total share of the N resources is greater than or equal to the first parameter. Here, the total share of the resources corresponding to the set of resource containers corresponding to each combination result is greater than or equal to the first parameter, and the total number of the resource containers in each set of resource containers is less than or equal to the set threshold.
The electronic device may also combine all the obtained first resource containers based on the first parameter to obtain a resource container set with a total resource share greater than or equal to the first parameter, and determine a resource container set with a total number of N resource containers less than or equal to a set threshold from the resource container sets with the total resource share greater than or equal to the first parameter.
The electronic equipment can also combine all the acquired first resource containers to obtain at least one combined result; calculating the total share of the resources corresponding to each combination result based on the share of the resources of each first resource container; and determining a combination result of which the total share of the resources is greater than or equal to the first parameter from all the combination results based on the first parameter and the total share of the resources corresponding to each combination result, and determining N resource container sets of which the total number of the resource containers is less than or equal to a set threshold from the combination results of which the total share of the resources is greater than or equal to the first parameter.
S402: and determining M first resource container sets from the N resource container sets according to the sequence of the total resource share from small to large.
Here, the electronic device determines, in order from the N resource container sets according to the ascending order of the total resource shares, a first resource container with the smallest total resource share in the N resource container sets based on the total resource share corresponding to each resource container set in the N resource container sets, and obtains M first resource container sets.
The electronic device may sort the N resource container sets, and select M first resource containers from the sorted N resource container sets in an order from a smaller total share to a larger total share.
In the scheme provided by this embodiment, the M first resource container sets are determined from the N resource container sets in the order from small to large of the total resource share, so that the efficiency of determining the M first resource container sets can be improved.
As another embodiment of the present invention, fig. 5 is a schematic diagram illustrating an implementation flow of determining N resource container sets in an information recommendation method provided in an embodiment of the present invention. Referring to fig. 5, the combining the at least one resource container based on the set threshold and the first parameter to obtain the N resource container sets includes:
s501: determining a resource container set from a second resource container with the resource share larger than or equal to the first parameter; and each determined resource container set comprises a second resource container.
The electronic equipment determines a second resource container with the resource share being greater than or equal to the first parameter from all the acquired resource containers; and under the condition that the second resource container is determined, determining the resource container set from the determined second resource container. And determining each resource container set to comprise a second resource container.
It should be noted that, when there is a second resource container in all the acquired resource containers and there is no third resource container whose resource share is smaller than the first parameter, the electronic device executes S501 and then ends the processing flow. And when the second resource container does not exist in all the acquired resource containers and a third resource container with the resource share smaller than the first parameter exists, executing S502. When the second resource container exists in all the acquired resource containers and the third resource container exists, S501 and S502 are executed.
In an embodiment, the determining a set of resource containers from second resource containers whose resource shares are greater than or equal to the first parameter includes:
and under the condition that M is 1, determining a second resource container with the minimum resource share from second resource containers with the resource shares larger than or equal to the first parameter to obtain a resource container set.
Here, when a second resource container having a resource share equal to the first parameter is included in all the resource containers acquired by the electronic device, the second resource container having the resource share equal to the first parameter is determined as the first resource container set. When the second resource container with the resource share equal to the first parameter is not included in all the resource containers acquired by the electronic device, determining the second resource container with the minimum resource share as the first resource container set.
S502: and combining the third resource containers with the resource shares smaller than the first parameter based on the set threshold and the first parameter to obtain a resource container set with the total resource share larger than or equal to the first parameter.
Here, the implementation manner of determining the resource container set with the total resource share greater than or equal to the first parameter in S502 is similar to that in the foregoing embodiment, where the resource containers are combined based on the set threshold and the first parameter to obtain N resource container sets, and please refer to the related description of the foregoing embodiment, which is not repeated here.
In the scheme provided by this embodiment, the electronic device does not combine the second resource containers whose resource shares are greater than or equal to the first parameter any more, so that the data processing amount of the electronic device can be reduced, and the data processing efficiency can be improved.
As another embodiment of the present invention, fig. 6 is a schematic diagram illustrating an implementation flow of determining N resource container sets in an information recommendation method according to another embodiment of the present invention. Referring to fig. 6, when the third resource container with the resource share smaller than the first parameter is combined based on the set threshold and the first parameter to obtain the resource container set with the total resource share greater than or equal to the first parameter, the method includes:
s601: determining a first element of a resource container set; the first element is the third resource container with the largest resource share.
Here, the electronic device determines, based on the first parameter, all third resource containers with resource shares smaller than the first parameter from all the acquired resource containers, determines, from all the determined third resource containers, a third resource container with a largest resource share, and determines the third resource container with the largest resource share as the first element of the resource container set.
S602: combining third resource containers except the first element based on the set threshold and the first difference to obtain a second element of the resource container set; wherein,
the first difference value represents a difference value between the first parameter and a resource share corresponding to the first element;
the second element comprises at least one third resource container; the total number of third resource containers in the second element is less than or equal to a difference between a first set threshold and 1.
Here, since one of the resource containers in the resource container set is determined in S601, the total number of resource containers included in the second element of the resource container set is less than or equal to K-1, and K represents the set threshold.
Here, in S602, the electronic device calculates a difference between the first parameter and a resource share corresponding to the first element, to obtain a first difference; deleting the determined first elements from all third resource containers with the resource share smaller than the first parameter, combining the third resource containers with the resource share smaller than the first parameter based on the first difference, determining the resource container combination with the total resource share larger than or equal to the first difference, and determining the resource container combination with the total number of the resource containers smaller than or equal to K-1 from the determined resource container combination to obtain the second elements of the resource container set.
When the number of the third resource containers with the largest resource share is at least two, all the third resource containers with the largest resource share can be deleted to reduce the calculation amount of the electronic device when the third resource containers with the resource shares smaller than the first parameter are combined based on the first difference.
It should be noted that each resource container set in the N resource container sets is composed of a first element and a second element.
And determining K-1 resource containers to obtain a second element of the resource container set, wherein the total share of the resources corresponding to the K-1 resource containers is greater than or equal to the first difference.
In the scheme provided by this embodiment, when a resource container set is determined that the total share of resources is greater than or equal to the first parameter from among resource containers whose resource shares are less than the first parameter, the electronic device determines a third resource container whose resource share is the largest as the first element of the resource container set, and combines the third resource containers except the first element based on a difference between the first parameter and the first element and a set threshold to obtain the second element of the resource container set, so that time required for determining the resource container set can be reduced, and the rate for determining the N resource container sets can be increased.
Fig. 7 is a schematic diagram illustrating an implementation flow of an information recommendation method according to an application embodiment of the present invention. Referring to fig. 7, the information recommendation method includes:
s701: determining a first parameter corresponding to a first resource based on a resource share of the first resource acquired by a request and a set first ratio; the first parameter characterizes a minimum share of the resource that requires locking when the first resource is acquired.
Here, S701 is the same as S101 in the embodiment corresponding to fig. 1, and please refer to the related description in S101 for details, which are not repeated herein.
S702: and judging whether a resource container with the resource share larger than or equal to the first parameter exists in the acquired at least one resource container.
The electronic equipment judges whether resource containers with the resource shares larger than or equal to the first parameter exist in all the acquired resource containers or not based on the acquired resource shares of all the resource containers, and a first judgment result is obtained.
When the first judgment result represents that the resource container with the resource share equal to the first parameter exists, executing S703; when the first judgment result represents that the resource container with the resource share larger than the first parameter exists, executing S704; when the first judgment result indicates that there is no resource container with the resource share greater than or equal to the first parameter, S704 is executed.
S703: outputting recommendation information regarding a first resource container having a resource share equal to a first parameter; the recommendation information is used for determining a set of resource containers locked when the first resource is acquired.
S704: it is determined whether the set threshold is 1.
Here, the set threshold characterizes the maximum number of resource containers that are allowed to be locked. The electronic equipment judges whether the acquired set threshold is equal to 1 or not, and a second judgment result is obtained.
When the first determination result indicates that there is no resource container with a resource share greater than the first parameter, and the second determination result indicates that the set threshold is equal to 1, it indicates that there is no resource container set formed by a resource container with a resource share greater than or equal to the first parameter, and S705 is performed.
When the first determination result indicates that there is a resource container with a resource share greater than the first parameter, and the second determination result indicates that the set threshold is equal to 1, S706 is performed.
And executing S707-S709 when the first judgment result represents that the resource container with the resource share larger than the first parameter exists and the second judgment result represents that the set threshold is larger than or equal to 2.
And executing S708-S709 when the first judgment result represents that no resource container with the resource share larger than the first parameter exists and the second judgment result represents that the set threshold is larger than or equal to 2.
S705: and outputting first prompt information, wherein the first prompt information represents that a resource container for acquiring the first resource cannot be acquired.
S706: outputting recommendation information of a second resource container with the minimum resource share; wherein the second resource container characterizes a resource container having a resource share greater than the first parameter.
Here, the electronic device determines a second resource container with the smallest resource share from the second resource containers with the resource shares larger than the first parameter, and outputs recommendation information of the second resource container with the smallest resource share.
S707: and determining the second resource container with the smallest resource share as the first resource container set.
Here, the first resource container set determined in S707 includes a second resource container with the smallest resource share, that is, the first resource container set determined in S707 is the set U1Set U of the optimal solution1Is composed of all resource containers with resource share larger than the first parameter.
S708: according to the sequence of the resource shares from large to small, determining a first number of resource containers from third resource containers with the resource shares smaller than the first parameter; the first number is equal to the set threshold.
Here, the implementation method of S708 is the same as S201 in the embodiment corresponding to fig. 2, please refer to the related description in S201, which is not repeated herein.
S709: and judging whether the total share of the resources corresponding to the first number of the resource containers is greater than or equal to the first parameter.
Here, the electronic device calculates the total resource share corresponding to the first number of resource containers based on the resource share of each resource container, determines whether the total resource share corresponding to the first number of resource containers is greater than or equal to the first parameter, and obtains a third determination result.
When the third determination result indicates that the total resource share corresponding to the first number of resource containers is greater than or equal to the first parameter, the indication may determine a first resource container set from the resource containers whose resource shares are less than the first parameter, and then S710 is performed.
When the third determination result indicates that the total resource share corresponding to the first number of resource containers is greater than or equal to the first parameter, the indication cannot determine the first resource container set from the resource containers whose resource shares are less than the first parameter, and S706 is performed.
S710: and determining a first resource container set from the third resource containers with the resource share smaller than the first parameter.
Here, the method for determining the first resource container set from the third resource containers with the resource shares smaller than the first parameter is as follows:
the electronic equipment determines a third resource container A with the largest resource share from the third resource containers with the resource shares smaller than the first parameteri(ii) a Dividing resource containers with resource share smaller than first parameter into sets U2And set U3. The electronic equipment respectively determines a set U2And set U3To obtain a first resource container set. Wherein,
set U2={Ai}∪{A1,A2,A3,……,Ai-2,Ai-1}
Set U3={A1,A2,A3,……,Ai-2,Ai-1}
The first set of resource containers comprises a set U2Of the optimal solution and set U3The optimal solution of (1). Set U2Is the set U2And the total resource share is greater than or equal to the first parameter, and the total resource share is the smallest resource container set. Set U3Is the set U3And the total resource share is greater than or equal to the first parameter, and the total resource share is the smallest resource container set.
Wherein the electronic device determines the set U2The optimal solution method comprises the following steps: will be set U2Third resource container A with maximum middle resource shareiDetermining a first element in a first set of resource containers; based on set U2In (A)1,A2,A3,……,Ai-2,Ai-1Determining a second element with the total resource share larger than or equal to a first difference value, wherein the first difference value represents the difference value between the first parameter and the resource share corresponding to the first element. Here, the method for determining the second element with the total resource share greater than or equal to the first difference is similar to the method for determining the second element of the resource container set in S602, please refer to the related description of S602, and details are not repeated here. And under the condition that the second element with the total resource share larger than or equal to the first difference value is determined, the electronic equipment determines the second element with the minimum total resource share as the second element in the first resource container set.
Wherein the electronic device determines the set U3The optimal solution method comprises the following steps:
the electronic equipment is from the set U according to the order of the resource share from large to small3A second number of resource containers is determined, wherein the second number is equal to the set threshold. And calculating the total share of the resources corresponding to the second number of resource containers based on the share of the resources of each resource container.
When the total share of the resources corresponding to the second number of resource containers is smaller than the first parameter, the characterization set U3Without solution, i.e. cannot be extracted from the set U3A first set of resource containers is determined. Here, the total number of resource containers included in the first resource container set is less than or equal to a set threshold, and the total share of the resources corresponding to the first resource container set is greater than or equal to a first parameter.
When the total share of the resources corresponding to the second number of resource containers is greater than or equal to the first parameter, characterizing the set U3With the optimal solution, the electronic device computes a set U3The optimal solution of (1). Wherein,
electronic device computing set U3The method of the optimal solution of (2) may be: based on the first parameter and the set threshold, the set U is processed3The third resource containers in the group are combined, a first resource container set with the total resource share larger than or equal to a first parameter is determined, and the first resource container set with the minimum total resource share in the determined first resource container set is determined as U3The optimal solution of (1).
Electronic device computing set U3The method of the optimal solution of (2) may also be: will be set U3Is divided into a set of U'1And aggregate U'2And U's'3Separately compute aggregate U'1And aggregate U'2And U's'3The optimal solution of (1). Wherein,
aggregate U'1={}
Aggregate U'2={Ai-1}∪{A1,A2,A3,……,Ai-2}
Aggregate U'3={A1,A2,A3,……,Ai-2}
Electronic device calculates set U'2And the above calculation set U2Similar to the optimal solution method, please refer to the above calculation set U2The description of the optimal solution is omitted here for brevity.
The electronic device is calculating a set U'3From set U 'in descending order of resource shares'3A third number of resource containers is determined, wherein the third number is equal to the set threshold. And calculating the total share of the resources corresponding to the third number of resource containers based on the share of the resources of each resource container. When the total share of the resources corresponding to the third number of resource containers is less than the first parameter, characterizing the set U'3No solution, i.e. it cannot be U 'from the set'3A first set of resource containers is determined. When the total share of the resources corresponding to the second number of resource containers is greater than or equal to the first parameter, characterizing the set U'3There is an optimal solution. Electronic device calculates set U'3And a calculation set U3Similar to the optimal solution method, please refer to the above calculation set U3The description of the optimal solution is omitted here for brevity.
S711: based on the determined first set of resource containers, recommendation information is output regarding the first set of resource containers.
Here, the electronic device may also output recommendation information about the first set of resource containers with the smallest total share of the resource based on the determined first set of resource containers.
The electronic equipment compares the determined total resource shares corresponding to all the first resource container sets, determines a first resource container set with the minimum total resource share from all the first resource container sets, and outputs recommendation information of the first resource container set with the minimum total resource share.
When the first judgment result indicates that there is no resource container with the resource share larger than the first parameter, and the second judgment result indicates that the set threshold is larger than or equal to 2, the determined first resource container set includes all the first resource container sets determined by performing S707 and S710.
When the first judgment result indicates that there is no resource container whose resource share is greater than the first parameter, and the second judgment result indicates that the set threshold is greater than or equal to 2, the determined first resource container set is the first resource container set determined in S710.
When the recommendation information on the first resource container set with the minimum total resource share is output, and when the number of the first resource container sets with the minimum total resource share is at least two, the total resource shares corresponding to the first resource container sets in the output recommendation information are all the same and are all the minimum.
The information recommendation method of fig. 7 will be described below by taking an example of locking a periodic deposit slip in exchange for a loan in a pledge scenario.
The loan corresponds to the first resource, the periodic deposit list corresponds to the resource container, and the pledge rate when the loan is exchanged by locking the periodic deposit list corresponds to the set first ratio.
For example, in the case where the user has seven regular deposit slips, the user needs 8000 yuan of loan, and one loan allows at most two regular deposit slips for a pledge, the threshold value is set to 2, and the amounts of the seven regular deposit slips are: 50000 yuan, 20000 yuan, 9000 yuan, 6000 yuan, 5000 yuan, 800 yuan and 600 yuan, and the electronic equipment carries out information recommendation according to the following modes:
here, the electronic device performs S701 to calculate a quotient between 8000 and 0.8, resulting in a first parameter, i.e., a minimum pledge amount. Wherein, the first parameter P is 8000/0.8 10000 yuan.
The electronic equipment sorts seven deposit slips of the user according to the sequence of money from small to small, and a deposit slip set DEP is obtained, wherein DEP is {600, 800, 5000, 6000, 9000, 20000, 50000 }.
The electronic device executes S702 to determine whether a first deposit with an amount greater than or equal to 10000 exists in the deposit collection DEP, and obtains a first determination result.
Since the deposit list set DEP includes deposit lists with the money amounts of 20000 and 50000 and does not include deposit lists with the money amount of 10000, the first determination result represents that there is no deposit list with the money amount equal to the first parameter and there is a deposit list with the money amount greater than the first parameter, and the electronic device performs S704 to determine whether the set threshold is 1, and obtains the second determination result. Since a single loan allows at most two regular deposit slips of a pledge, the threshold is set to 2, the second judgment result represents that the threshold is set to 2, the first judgment result represents that there is a deposit slip with a money amount larger than the first parameter, and the second judgment result represents that the threshold is set to 2, so that the electronic device executes steps S707 to S709.
The electronic equipment determines a set U based on the deposit list set DEP1Set U2And set U3Separately calculating the sets U1Set U2And set U3And determining the optimal solution with the minimum total amount from the calculated optimal solutions, and outputting recommendation information about the optimal solution with the minimum total amount. Wherein,
set U1={20000,50000}
Set U2={9000}∪{600,800,5000,6000}
Set U3={600,800,5000,6000}。
Here, the set U1Is characterized by a set U of optimal solutions1Deposit list with the smallest amount of gold. Set U1The expression of the optimal solution of (a) is: f ({20000, 50000}, 10000, 2). The electronic device will sum up to 20000Deposit list is determined as set U1The optimal solution of (1). Set U1The optimal solution of (c) is {20000 }.
Set U2Is characterized by a set U of optimal solutions2The sum of the deposit orders is larger than or equal to the deposit order combination with the minimum sum of the deposit order combinations of the first parameter. Set U2The expression of the optimal solution of (a) is: f (({9000 }. sup. U {600, 800, 5000, 6000}), 1000, 1). Set U2Consists of a first deposit with a value of 9000 and a second deposit with a minimum value, which characterizes a deposit with a value greater than or equal to 1000. Here, since the electronic device will be from the set U2The second deposit list whose amount is greater than or equal to 1000 determined in {600, 800, 5000, 6000} includes deposit list whose amount is 5000 and deposit list whose amount is 6000, and 5000 is less than 6000, so that the electronic device determines deposit list whose amount is 5000 as the second deposit list, and the electronic device calculates the set U2The optimal solution of (c) is 9000, 5000.
Set U3Is characterized by a set U of optimal solutions3Middle set U2The sum of the deposit orders is larger than or equal to the deposit order combination with the minimum sum of the deposit order combinations of the first parameter. Set U3The expression of the optimal solution of (a) is: f ({600, 800, 5000, 6000}, 10000, 2). Here, the electronic device aggregates U in descending order of money amount3The 2 deposit orders are determined, the 2 deposit orders are respectively deposit order with the sum of 6000 and deposit order with the sum of 5000, the total sum of the two deposit orders is 11000, and the total sum is more than 10000, therefore, the set U is formed3There is an optimal solution. The electronic device calculates the set U in the following manner3The optimal solution of (2):
will be set U3Is divided into a set of U'1And aggregate U'2And U's of set'3
Aggregate U'1={}
Aggregate U'2={6000}∪{600,800,5000}
Aggregate U'3={600,800,5000}
Due to aggregate U'1There is no deposit with an amount greater than 10000, and therefore, the collectionU′1Is an empty set.
Aggregate U'2The expression of the optimal solution of (a) is: f (({6000 }. U {600, 800, 5000}), 4000, 1), the deposit bill with the characteristic amount of 6000 is determined as the set U'2First element in the optimal solution, set U'2The second element in the optimal solution is the deposit list with the minimum sum in the deposit lists with the sum more than or equal to 4000. Here, the electronic device determines the set U'2The second element in the optimal solution is a deposit statement with a monetary amount of 5000. Thus, U 'is aggregated'2The optimal solution is 6000, 5000.
Aggregate U'3The expression of the optimal solution of (a) is: f ({600, 800, 5000}, 10000, 2), U 'is set because the total sum of the two inventory with the largest gold amount in {600, 800, 5000} is less than 10000'3No solution, i.e. aggregate U'3Is given as the optimal solution of (c) { }.
In the case where all of the optimal solutions are determined, the electronic device may output recommendation information regarding M optimal solutions, M being less than or equal to the total number N of the determined optimal solutions.
In the case that all the optimal solutions are determined, the electronic device may also determine, from all the optimal solutions, a deposit slip set corresponding to the optimal solution with the smallest total amount, and output recommendation information about the deposit slip set corresponding to the optimal solution with the smallest total amount.
Here, the electronic device determines the optimal solution including: {20000}, {9000, 5000}, and {6000, 5000}, since the total amount of the optimal solution {6000, 5000} is minimum, recommended information on the deposit list set {6000, 5000} is output.
In the scheme provided by this embodiment, the electronic device may divide the resource containers into a plurality of sets, solve the optimal solution of each set, and output recommendation information about the M first resource container sets based on the first resource container set corresponding to the determined optimal solution.
In order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides an information recommendation apparatus, which is disposed on an electronic device, and as shown in fig. 8, the information recommendation apparatus includes:
a determining unit 81, configured to determine, based on a resource share of a first resource requested to be obtained and a set first ratio, a first parameter corresponding to the first resource; the first parameter represents a minimum resource share which requires locking when the first resource is obtained;
a recommending unit 82, configured to output recommendation information regarding the M first resource container sets based on the first parameter and a resource share corresponding to each resource container in the at least one resource container; the recommendation information is used for determining a resource container set locked when the first resource is acquired; wherein,
the M first resource container sets are the first M resource container sets with the minimum total resource share in the N resource container sets; the N resource container sets are obtained by combining the at least one resource container; the total share of the resources corresponding to each of the N resource container sets is greater than or equal to the first parameter; the M and the N are both positive integers and the N is greater than the M.
In one embodiment, the recommending unit 82 is configured to:
determining M first resource container sets based on a set threshold, the first parameter and a resource share corresponding to each resource container in the at least one resource container; wherein,
the set threshold characterizes a maximum number of resource containers allowed to be locked; and determining that the total number of the resource containers in each first resource container set is less than or equal to the set threshold.
In one embodiment, the recommending unit 82 is configured to:
under the condition that the set threshold is 1, determining N resource container sets from resource containers with resource shares larger than or equal to the first parameter; wherein each determined resource container set comprises one resource container.
In one embodiment, the recommending unit 82 is configured to:
under the condition that the set threshold is greater than or equal to 2, determining a first number of resource containers from the resource containers with the resource shares smaller than the first parameter according to the sequence of the resource shares from large to small; wherein the first number is equal to the set threshold;
determining M first resource container sets based on the set threshold, the first parameter and the resource share corresponding to each resource container in the at least one resource container when the total resource share corresponding to the first number of resource containers is greater than or equal to the first parameter;
outputting prompt information under the condition that the total resource share corresponding to the first number of resource containers is smaller than the first parameter and the resource containers with the resource shares larger than or equal to the first parameter are not found; the prompt information represents that the first resource container set does not exist;
and when the total resource share corresponding to the first number of resource containers is smaller than the first parameter and the resource containers with the resource shares larger than or equal to the first parameter are found, determining M first resource container sets based on the resource containers with the resource shares larger than or equal to the first parameter, wherein each determined first resource container set comprises one resource container.
In one embodiment, the recommending unit 82 is configured to:
in the case that M is 1, searching a first resource container with a resource share equal to the first parameter in the at least one resource container;
under the condition that the first resource container is found, determining the first resource container as a first resource container set;
and under the condition that the first resource container is not found, determining a first resource container set with the minimum total resource share based on a set threshold, the first parameter and the resource share corresponding to each resource container in the at least one resource container.
In one embodiment, the recommending unit 82 is configured to:
combining the at least one resource container based on the set threshold and the first parameter to obtain the N resource container sets; wherein the total number of resource containers in each resource container set is less than or equal to the set threshold;
and determining M first resource container sets from the N resource container sets according to the sequence of the total resource share from small to large.
In one embodiment, the recommending unit 82 is configured to:
determining a resource container set from a second resource container with the resource share larger than or equal to the first parameter; determining that each resource container set comprises a second resource container;
and combining the third resource containers with the resource shares smaller than the first parameter based on the set threshold and the first parameter to obtain a resource container set with the total resource share larger than or equal to the first parameter.
In one embodiment, the recommending unit 82 is configured to: and under the condition that M is 1, determining a second resource container with the minimum resource share from second resource containers with the resource shares larger than or equal to the first parameter to obtain a resource container set.
In one embodiment, the recommending unit 82 is configured to:
determining a first element of a resource container set; the first element is one of the third resource containers with the largest resource share;
combining third resource containers except the first element based on the set threshold and the first difference to obtain a second element of the resource container set; wherein,
the first difference value represents a difference value between the first parameter and a resource share corresponding to the first element;
the second element comprises at least one third resource container; the total number of third resource containers in the second element is less than or equal to a difference between a first set threshold and 1.
In practice, the determining unit and the recommending unit may be implemented by a processor in the information recommending apparatus. Of course, the processor needs to run the program stored in the memory to realize the functions of the above-described program modules.
It should be noted that: in the information recommendation device provided in the above embodiment, when the face image is collected, only the division of the program modules is exemplified, and in practical applications, the processing may be distributed to different program modules according to needs, that is, the internal structure of the information recommendation device is divided into different program modules to complete all or part of the processing described above. In addition, the information recommendation device and the information recommendation method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Based on the hardware implementation of the program module, in order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides an electronic device. Fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, and as shown in fig. 9, the electronic device includes:
a communication interface 1 capable of information interaction with other devices such as a server, a terminal and the like;
and the processor 2 is connected with the communication interface 1 to realize information interaction with other equipment, and is used for executing the information recommendation method provided by one or more technical schemes when running a computer program. And the computer program is stored on the memory 3.
In practice, of course, the various components in the electronic device are coupled together by the bus system 4. It will be appreciated that the bus system 4 is used to enable connection communication between these components. The bus system 4 comprises, in addition to a data bus, a power bus, a control bus and a status signal bus. For the sake of clarity, however, the various buses are labeled as bus system 4 in fig. 9.
The memory 3 in the embodiment of the present invention is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device.
It will be appreciated that the memory 3 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced Synchronous Dynamic Random Access Memory), Synchronous linked Dynamic Random Access Memory (DRAM, Synchronous Link Dynamic Random Access Memory), Direct Memory (DRmb Random Access Memory). The memory 3 described in the embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed by the above embodiment of the present invention can be applied to the processor 2, or implemented by the processor 2. The processor 2 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 2. The processor 2 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 2 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 3, and the processor 2 reads the program in the memory 3 and in combination with its hardware performs the steps of the aforementioned method.
When the processor 2 executes the program, the process corresponding to the multi-core processor in each method according to the embodiment of the present invention is realized, and for brevity, no further description is given here.
In an exemplary embodiment, the embodiment of the present invention further provides a storage medium, specifically a computer-readable storage medium, for example, including a memory 3 storing a computer program, which can be executed by a processor 2 to complete the steps in the foregoing embodiments corresponding to fig. 1 to 7. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The technical means described in the embodiments of the present invention may be arbitrarily combined without conflict.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (12)

1. An information recommendation method, comprising:
determining a first parameter corresponding to a first resource based on a resource share of the first resource acquired by a request and a set first ratio; the first parameter represents a minimum resource share which requires locking when the first resource is obtained;
outputting recommendation information about the M first resource container sets based on the first parameter and the resource share corresponding to each resource container in the at least one resource container; the recommendation information is used for determining a resource container set locked when the first resource is acquired; wherein,
the M first resource container sets are the first M resource container sets with the minimum total resource share in the N resource container sets; the N resource container sets are obtained by combining the at least one resource container; the total share of the resources corresponding to each of the N resource container sets is greater than or equal to the first parameter; the M and the N are both positive integers and the N is greater than the M.
2. The method according to claim 1, wherein when outputting recommendation information regarding the M first resource container sets based on the first parameter and the resource share corresponding to each of the at least one resource container, the method comprises:
determining M first resource container sets based on a set threshold, the first parameter and a resource share corresponding to each resource container in the at least one resource container; wherein,
the set threshold characterizes a maximum number of resource containers allowed to be locked; and determining that the total number of the resource containers in each first resource container set is less than or equal to the set threshold.
3. The method according to claim 2, wherein when determining the M first resource container sets based on the set threshold, the first parameter, and the resource share corresponding to each of the at least one resource container, the method comprises:
under the condition that the set threshold is 1, determining N resource container sets from resource containers with resource shares larger than or equal to the first parameter; wherein each determined resource container set comprises one resource container.
4. The method according to claim 2, wherein when determining the M first resource container sets based on the set threshold, the first parameter, and the resource share corresponding to each of the at least one resource container, the method comprises:
under the condition that the set threshold is greater than or equal to 2, determining a first number of resource containers from the resource containers with the resource shares smaller than the first parameter according to the sequence of the resource shares from large to small; wherein the first number is equal to the set threshold;
determining M first resource container sets based on the set threshold, the first parameter and the resource share corresponding to each resource container in the at least one resource container when the total resource share corresponding to the first number of resource containers is greater than or equal to the first parameter;
outputting prompt information under the condition that the total resource share corresponding to the first number of resource containers is smaller than the first parameter and the resource containers with the resource shares larger than or equal to the first parameter are not found; the prompt information represents that the first resource container set does not exist;
and when the total resource share corresponding to the first number of resource containers is smaller than the first parameter and the resource containers with the resource shares larger than or equal to the first parameter are found, determining M first resource container sets based on the resource containers with the resource shares larger than or equal to the first parameter, wherein each determined first resource container set comprises one resource container.
5. The method according to any one of claims 2 to 4, wherein the determining M first resource container sets based on the set threshold, the first parameter, and the resource share corresponding to each of the at least one resource container comprises:
in the case that M is 1, searching a first resource container with a resource share equal to the first parameter in the at least one resource container;
under the condition that the first resource container is found, determining the first resource container as a first resource container set;
and under the condition that the first resource container is not found, determining a first resource container set with the minimum total resource share based on a set threshold, the first parameter and the resource share corresponding to each resource container in the at least one resource container.
6. The method according to claim 2 or 4, wherein the determining M first resource container sets based on the set threshold, the first parameter, and the resource share corresponding to each resource container of the at least one resource container comprises:
combining the at least one resource container based on the set threshold and the first parameter to obtain the N resource container sets; wherein the total number of resource containers in each resource container set is less than or equal to the set threshold;
and determining M first resource container sets from the N resource container sets according to the sequence of the total resource share from small to large.
7. The method according to claim 6, wherein said combining the at least one resource container based on the set threshold and the first parameter to obtain the N resource container sets comprises:
determining a resource container set from a second resource container with the resource share larger than or equal to the first parameter; determining that each resource container set comprises a second resource container;
and combining the third resource containers with the resource shares smaller than the first parameter based on the set threshold and the first parameter to obtain a resource container set with the total resource share larger than or equal to the first parameter.
8. The method of claim 7, wherein determining the set of resource containers from a second resource container having a resource share greater than or equal to the first parameter comprises:
and under the condition that M is 1, determining a second resource container with the minimum resource share from second resource containers with the resource shares larger than or equal to the first parameter to obtain a resource container set.
9. The method according to claim 7, wherein when the third resource container with the resource share smaller than the first parameter is combined based on the set threshold and the first parameter to obtain the resource container set with the total resource share greater than or equal to the first parameter, the method comprises:
determining a first element of a resource container set; the first element is one of the third resource containers with the largest resource share;
combining third resource containers except the first element based on the set threshold and the first difference to obtain a second element of the resource container set; wherein,
the first difference value represents a difference value between the first parameter and a resource share corresponding to the first element;
the second element comprises at least one third resource container; the total number of third resource containers in the second element is less than or equal to a difference between a first set threshold and 1.
10. A resource recommendation device, comprising:
the determining unit is used for determining a first parameter corresponding to a first resource based on a resource share of the first resource acquired by a request and a set first ratio; the first parameter represents a minimum resource share which requires locking when the first resource is obtained;
a recommending unit, configured to output recommendation information regarding the M first resource container sets based on the first parameter and a resource share corresponding to each resource container in the at least one resource container; the recommendation information is used for determining a resource container set locked when the first resource is acquired; wherein,
the M first resource container sets are the first M resource container sets with the minimum total resource share in the N resource container sets; the N resource container sets are obtained by combining the at least one resource container; the total share of the resources corresponding to each of the N resource container sets is greater than or equal to the first parameter; the M and the N are both positive integers and the N is greater than the M.
11. An electronic device, comprising: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method of any of claims 1 to 9 when the computer program is executed.
12. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, realizing the steps of the method of any one of claims 1 to 9.
CN202011310453.6A 2020-11-20 2020-11-20 Information recommendation method and device and electronic equipment Pending CN112308707A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011310453.6A CN112308707A (en) 2020-11-20 2020-11-20 Information recommendation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011310453.6A CN112308707A (en) 2020-11-20 2020-11-20 Information recommendation method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112308707A true CN112308707A (en) 2021-02-02

Family

ID=74335129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011310453.6A Pending CN112308707A (en) 2020-11-20 2020-11-20 Information recommendation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112308707A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110106690A1 (en) * 2009-04-16 2011-05-05 Jason Fisher Preterm loan system and method of using the same
CN109005214A (en) * 2018-07-03 2018-12-14 阿里巴巴集团控股有限公司 A kind of resource regulating method and device
CN109389488A (en) * 2018-09-14 2019-02-26 阿里巴巴集团控股有限公司 Based on resource transfers method, system and the electronic equipment dynamically pledged
CN109670850A (en) * 2018-09-25 2019-04-23 深圳平安财富宝投资咨询有限公司 Products Show method, apparatus, equipment and computer readable storage medium
CN111507828A (en) * 2020-04-21 2020-08-07 北京易点淘网络技术有限公司 Pledge financing method and device for rental assets, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110106690A1 (en) * 2009-04-16 2011-05-05 Jason Fisher Preterm loan system and method of using the same
CN109005214A (en) * 2018-07-03 2018-12-14 阿里巴巴集团控股有限公司 A kind of resource regulating method and device
CN109389488A (en) * 2018-09-14 2019-02-26 阿里巴巴集团控股有限公司 Based on resource transfers method, system and the electronic equipment dynamically pledged
CN109670850A (en) * 2018-09-25 2019-04-23 深圳平安财富宝投资咨询有限公司 Products Show method, apparatus, equipment and computer readable storage medium
CN111507828A (en) * 2020-04-21 2020-08-07 北京易点淘网络技术有限公司 Pledge financing method and device for rental assets, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US11847488B2 (en) Graph data processing method, method and device for publishing graph data computational tasks, storage medium, and computer apparatus
CN112153085B (en) Data processing method, node and block chain system
CN115526363A (en) Business data processing method and device, computer equipment and storage medium
CN109983456B (en) Method and system for searching key range in memory
WO2022142001A1 (en) Target object evaluation method based on multi-score card fusion, and related device therefor
CN103095824B (en) Files passe control method and system
CN111788791A (en) Computer-implemented voting process and system
CN111752944B (en) Data allocation method, device, computer equipment and storage medium
CN112632077A (en) Data storage method, device, equipment and storage medium based on redis
CN111161071A (en) Data processing method, device, equipment and storage medium based on block chain
CN111611249A (en) Data management method, device, equipment and storage medium
WO2021217933A1 (en) Community division method and apparatus for homogeneous network, and computer device and storage medium
CN114070847B (en) Method, device, equipment and storage medium for limiting current of server
CN114374392A (en) Data compression storage method and device, terminal equipment and readable storage medium
CN112308707A (en) Information recommendation method and device and electronic equipment
CN116842012A (en) Method, device, equipment and storage medium for storing Redis cluster in fragments
CN116860470A (en) Data transmission method, device, computer equipment and storage medium
CN113392138B (en) Statistical analysis method, device, server and storage medium for private data
CN113778346B (en) Data reading method, device, equipment and storage medium
CN111652741B (en) User preference analysis method, device and readable storage medium
CN114492647A (en) Distributed graph embedding-based federal graph clustering method and device and readable storage medium
CN110443560B (en) Protocol data management method, device, computer equipment and storage medium
CN115686597A (en) Data processing method and device, electronic equipment and storage medium
CN117950600B (en) Data storage method and related device
CN113868545B (en) Project recommendation method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination