CN104951523B - A kind of information recommendation method, device and server - Google Patents

A kind of information recommendation method, device and server Download PDF

Info

Publication number
CN104951523B
CN104951523B CN201510317062.XA CN201510317062A CN104951523B CN 104951523 B CN104951523 B CN 104951523B CN 201510317062 A CN201510317062 A CN 201510317062A CN 104951523 B CN104951523 B CN 104951523B
Authority
CN
China
Prior art keywords
destination item
destination
amount
item
difference
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.)
Active
Application number
CN201510317062.XA
Other languages
Chinese (zh)
Other versions
CN104951523A (en
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.)
Suzhou Jiangduoduo Technology Co ltd
Original Assignee
SUZHOU JIANGDUODUO TECHNOLOGY 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 SUZHOU JIANGDUODUO TECHNOLOGY Co Ltd filed Critical SUZHOU JIANGDUODUO TECHNOLOGY Co Ltd
Priority to CN201510317062.XA priority Critical patent/CN104951523B/en
Publication of CN104951523A publication Critical patent/CN104951523A/en
Application granted granted Critical
Publication of CN104951523B publication Critical patent/CN104951523B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a kind of information recommendation methods, it include: the recommendation request for receiving terminal and sending, the recommendation request carries the corresponding allocation identification of the selected method of salary distribution of user, target amount and the attribute information including at least two destination items, and the attribute information is used to identify the corresponding unit weighted value of each destination item at least two destination item;According to the corresponding unit weighted value of the attribute information of the corresponding method of salary distribution of the allocation identification and each destination item, the target amount is allocated;According to allocation result, determine that recommendation information, the recommendation information are used to identify the target Quota distribution to the amount of each destination item;The recommendation information is returned to the terminal.The embodiment of the invention also discloses a kind of information recommending apparatus and servers.Using the embodiment of the present invention, the accuracy of recommendation information can be improved.

Description

A kind of information recommendation method, device and server
Technical field
The present invention relates to field of computer technology more particularly to a kind of information recommendation methods, device and server.
Background technique
With the development of internet technology, the recommendation information that user is sended over by the available server of terminal leads to Often, these pre-set recommendation informations of server, for different user, server returns to the recommendation manner of breathing of terminal Together.After terminal receives recommendation information, user still needs to therefrom obtain useful information.Therefore, in existing information recommendation method, The accuracy of server to terminal recommendation information is low.
Since the demand of user is different, and the recommendation information that user's expectation is got from server is the useful of oneself needs Information.Therefore, it in order to meet the needs of social groups, is highly desirable to provide a kind of reasonable information recommendation method.
Summary of the invention
The embodiment of the present invention provides a kind of information recommendation method, device and server, and the accurate of recommendation information can be improved Degree.
In a first aspect, the embodiment of the present invention provides a kind of information recommendation method, comprising:
The recommendation request that terminal is sent is received, the recommendation request carries corresponding point of the selected method of salary distribution of user With mark, target amount and attribute information including at least two destination items, the attribute information for identify it is described at least The corresponding unit weighted value of each destination item in two destination items;
According to the corresponding unit weighting of the attribute information of the corresponding method of salary distribution of the allocation identification and each destination item Value, is allocated the target amount;
According to allocation result, recommendation information is determined, the recommendation information is for identifying the target Quota distribution to described The amount of each destination item;
The recommendation information is returned to the terminal.
In the first possible implementation of the first aspect, according to the corresponding method of salary distribution of the allocation identification and often The corresponding unit weighted value of the attribute information of a destination item, before being allocated to the target amount, the method is also wrapped It includes:
According to the corresponding unit weighted value of the attribute information of each destination item, total power of each destination item is determined Minimum number when value is not less than the target amount, wherein the total weight value of each destination item is the destination item pair The product of the unit weighted value and quantity answered;
If the sum of corresponding minimum number of each destination item is less than the corresponding destination number of the target amount, hold It goes the described the step of target amount is allocated.
The possible implementation of with reference to first aspect the first, in second of possible implementation of first aspect In, the attribute information of each destination item includes each element in the destination item, one weighted value of each elements correlation, The corresponding unit weighted value of the attribute information according to each destination item, determines the total weight value of each destination item not Before minimum number when less than the target amount, the method also includes:
The attribute information is parsed, the corresponding each element of each destination item is obtained;
According to the weighted value of the corresponding each element of each destination item, the corresponding list of each destination item is determined Position weighted value.
The possible implementation of with reference to first aspect the first, in the third possible implementation of first aspect In, the corresponding unit weighting of the attribute information according to the corresponding method of salary distribution of the allocation identification and each destination item Value, is allocated the target amount, comprising:
The recommended amount for presetting each destination item is its corresponding minimum number;
If the difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Value is greater than zero, the recommended amount of the smallest destination item of total weight value is increased 1, the difference subtracts 1;
If the difference after subtracting certainly is greater than zero, the recommended amount increasing 1 by the smallest destination item of total weight value is executed, it is described The step of difference subtracts 1, until difference obtained is equal to zero.
The possible implementation of with reference to first aspect the first, in the 4th kind of possible implementation of first aspect In, the corresponding unit weighting of the attribute information according to the corresponding method of salary distribution of the allocation identification and each destination item Value, is allocated the target amount, comprising:
Determine the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Difference;
The recommended amount of the smallest destination item of setting unit weighted value is the corresponding minimum number of the destination item and should The sum of difference;
For other destination items, the recommended amount that either objective project is arranged is that the either objective project is corresponding Minimum number.
The possible implementation of with reference to first aspect the first, in the 5th kind of possible implementation of first aspect In, the corresponding unit weighting of the attribute information according to the corresponding method of salary distribution of the allocation identification and each destination item Value, is allocated the target amount, comprising:
Determine the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Difference;
The recommended amount of the maximum destination item of setting unit weighted value is the corresponding minimum number of the destination item and should The sum of difference;
For other destination items, the recommended amount that either objective project is arranged is that the either objective project is corresponding Minimum number.
The possible implementation of with reference to first aspect the first, in the 6th kind of possible implementation of first aspect In, the corresponding unit weighting of the attribute information according to the corresponding method of salary distribution of the allocation identification and each destination item Value, is allocated the target amount, comprising:
The recommended amount for the destination item that user selects is set for the corresponding minimum number of the destination item;
For other destination items, the recommended amount for presetting either objective project is its corresponding minimum number;
If the difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Value is greater than zero, the recommended amount of the smallest destination item of total weight value in other destination items is increased 1, the difference subtracts 1;
If the difference after subtracting certainly is greater than zero, execute described by the smallest target item of total weight value in other destination items The step of purpose recommended amount increases 1, and the difference subtracts 1, until difference obtained is equal to zero.
With reference to first aspect the third is to any one possible implementation in the 6th kind, the of first aspect In seven kinds of possible implementations, the recommendation information includes the corresponding recommended amount of each destination item and total weight value.
Second aspect, the embodiment of the present invention provide a kind of information recommending apparatus, comprising:
Receiving module, for receiving the recommendation request of terminal transmission, the recommendation request carries selected point of user With the corresponding allocation identification of mode, target amount and attribute information including at least two destination items, the attribute information is used The corresponding unit weighted value of each destination item in mark at least two destination item;
Distribution module, for the attribute information pair according to the allocation identification corresponding method of salary distribution and each destination item The unit weighted value answered is allocated the target amount;
First determining module, for determining recommendation information, the recommendation information is for identifying the mesh according to allocation result Quota distribution is marked to the amount of each destination item;
Sending module, for returning to the recommendation information to the terminal.
In the first possible implementation of the second aspect, described device further includes the second determining module, is used for:
According to the corresponding unit weighted value of the attribute information of each destination item, total power of each destination item is determined Minimum number when value is not less than the target amount, wherein the total weight value of each destination item is the destination item pair The product of the unit weighted value and quantity answered;
The distribution module, if being used for the sum of corresponding minimum number of each destination item is less than the target amount Corresponding destination number is allocated the target amount.
In conjunction with the first possible implementation of second aspect, in second of possible implementation of second aspect In, the attribute information of each destination item includes each element in the destination item, one weighted value of each elements correlation, Described device further includes third determining module, is used for:
The attribute information is parsed, the corresponding each element of each destination item is obtained;
According to the weighted value of the corresponding each element of each destination item, the corresponding list of each destination item is determined Position weighted value.
In conjunction with the first possible implementation of second aspect, in the third possible implementation of second aspect In, the distribution module is specifically used for:
The recommended amount for presetting each destination item is its corresponding minimum number;
If the difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Value is greater than zero, the recommended amount of the smallest destination item of total weight value is increased 1, the difference subtracts 1;
If the difference after subtracting certainly is greater than zero, the recommended amount increasing 1 by the smallest destination item of total weight value is executed, it is described The step of difference subtracts 1, until difference obtained is equal to zero.
In conjunction with the first possible implementation of second aspect, in the 4th kind of possible implementation of second aspect In, the distribution module is specifically used for:
Determine the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Difference;
The recommended amount of the smallest destination item of setting unit weighted value is the corresponding minimum number of the destination item and should The sum of difference;
For other destination items, the recommended amount that either objective project is arranged is that the either objective project is corresponding Minimum number.
In conjunction with the first possible implementation of second aspect, in the 5th kind of possible implementation of second aspect In, the distribution module is specifically used for:
Determine the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Difference;
The recommended amount of the maximum destination item of setting unit weighted value is the corresponding minimum number of the destination item and should The sum of difference;
For other destination items, the recommended amount that either objective project is arranged is that the either objective project is corresponding Minimum number.
In conjunction with the first possible implementation of second aspect, in the 6th kind of possible implementation of second aspect In, the distribution module is specifically used for:
The recommended amount for the destination item that user selects is set for the corresponding minimum number of the destination item;
For other destination items, the recommended amount for presetting either objective project is its corresponding minimum number;
If the difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Value is greater than zero, the recommended amount of the smallest destination item of total weight value in other destination items is increased 1, the difference subtracts 1;
If the difference after subtracting certainly is greater than zero, execute described by the smallest target item of total weight value in other destination items The step of purpose recommended amount increases 1, and the difference subtracts 1, until difference obtained is equal to zero.
In conjunction with second aspect the third to any one possible implementation in the 6th kind, the of second aspect In seven kinds of possible implementations, the recommendation information includes the corresponding recommended amount of each destination item and total weight value.
The third aspect, the embodiment of the present invention provide a kind of server, including any one information recommendation dress as described above It sets.
Implement the embodiment of the present invention, the recommendation request that server receiving terminal is sent, the recommendation request carries distribution Mark, target amount and the attribute information including at least two destination items;Using the corresponding method of salary distribution of the allocation identification The target amount is allocated, it will be on target Quota distribution to the corresponding destination item of attribute information;According to allocation result, Obtain the recommendation information of each destination item at least two destination item;The recommendation information is returned to the terminal. Using the embodiment of the present invention, relevant information is recommended to terminal by the actual demand of terminal, the accurate of recommendation information can be improved Degree.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow diagram of information recommendation method provided in an embodiment of the present invention;
Fig. 2 is a kind of another flow diagram of information recommendation method provided in an embodiment of the present invention;
Fig. 2 a is a kind of flow diagram for distribution method that Fig. 2 is provided;
Fig. 2 b is a kind of another flow diagram for distribution method that Fig. 2 is provided;
Fig. 2 c is a kind of another flow diagram for distribution method that Fig. 2 is provided;
Fig. 2 d is a kind of another flow diagram for distribution method that Fig. 2 is provided;
Fig. 3 is a kind of example schematic of information recommendation method provided in an embodiment of the present invention;
Fig. 3 a is another display schematic diagram that Fig. 3 is provided;
Fig. 3 b is another display schematic diagram that Fig. 3 is provided;
Fig. 3 c is another display schematic diagram that Fig. 3 is provided;
Fig. 4 is a kind of structural schematic diagram of information recommending apparatus provided in an embodiment of the present invention;
Fig. 5 is a kind of another structural schematic diagram of information recommending apparatus provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of server provided in an embodiment of the present invention;
Fig. 7 is a kind of another structural schematic diagram of information recommending apparatus provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that the described embodiments are merely a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
It is sent the embodiment of the invention provides a kind of information recommendation method, device and server, server receiving terminal Recommendation request, wherein allocation identification, target amount and the attribute letter including at least two destination items are carried in recommendation request Breath;According to the corresponding unit weighted value of attribute information and the corresponding method of salary distribution of allocation identification, target amount is allocated;Root Target Quota distribution can be known to the amount of each destination item, so that it is determined that recommendation information out according to allocation result;To terminal Return to recommendation information.Using the embodiment of the present invention, by the actual demand of terminal to its recommendation information, it is thus possible to improve pushing away Recommend the accuracy of information.Below in conjunction with attached drawing 1- attached drawing 7 to a kind of information recommendation method provided in an embodiment of the present invention, device And server describes in detail respectively.
Referring to Figure 1, Fig. 1 is a kind of flow diagram of information recommendation method provided in an embodiment of the present invention, in this hair In bright embodiment, this method be may comprise steps of.
S101: receiving the recommendation request that terminal is sent, and the recommendation request carries the selected method of salary distribution pair of user Allocation identification, target amount and the attribute information including at least two destination items answered, the attribute information is for identifying institute State the corresponding unit weighted value of each destination item at least two destination items.
In the embodiment of the present invention, server can provide a variety of methods of salary distribution to obtain recommendation information, if terminal it is expected to Server obtains the recommendation information for being directed to destination item, sends recommendation request to server, meanwhile, the parameter for needing to transmit is believed Breath also carries in recommendation request, and the parameter information includes the corresponding allocation identification of the selected method of salary distribution of user, target Amount and attribute information including at least two destination items, the attribute information is for identifying at least two destination item In the corresponding unit weighted value of each destination item.
The recommendation request that server receiving terminal is sent, the recommendation request carry allocation identification, target amount and packet Include the attribute information of at least two destination items.In general, different allocation identifications corresponds to the different methods of salary distribution, target amount can To be intended to indicate that the numerical information of size.
S102: according to the corresponding unit of attribute information of the corresponding method of salary distribution of the allocation identification and each destination item Weighted value is allocated the target amount.
After server receives the recommendation request of terminal transmission, the parameter information carried in recommendation request is parsed, to obtain Get allocation identification, target amount and attribute information, attribute information be used to identify different destination item and with the destination item Relevant some related informations can determine that the corresponding unit of the destination item weights by the attribute information of each destination item Value.It is corresponding using allocation identification according to the corresponding unit weighted value of the attribute information of each destination item in the embodiment of the present invention The method of salary distribution target amount is allocated, by target Quota distribution give the attribute information specify destination item.
S103: according to allocation result, determining recommendation information, the recommendation information for identify the target Quota distribution to The amount of each destination item.
According to the allocation result of step S102, target Quota distribution can be known to the amount of each destination item, this hair In bright embodiment, according to the distribution amount of each destination item, each destination item at least two destination item is obtained Recommendation information.Wherein, recommendation information can be amount information specified by allocation result, be also possible to be pushed away according to allocation result The other information poured out.Specifically, the embodiment of the present invention is with no restriction.
S104: Xiang Suoshu terminal returns to the recommendation information.
After server gets corresponding recommendation information for the recommendation request of terminal, accessed to terminal return Recommendation information provides reference proposition so that terminal shows the recommendation information to terminal desktop for user.This method can be direct Target amount is allocated according to user's desired method of salary distribution, and recommendation information is returned to according to allocation result.To user Can get desired recommendation information according to actual needs, the accuracy of this method not only recommendation information is high, but also user without The specific distribution to target amount need to be manually computed, labour is reduced.
In the information recommendation method of description of the embodiment of the present invention, the recommendation request that server receiving terminal is sent is described Recommendation request carries allocation identification, target amount and the attribute information including at least two destination items;According to each target The corresponding unit weighted value of the attribute information of project, using the corresponding method of salary distribution of the allocation identification to the target amount into Row distribution, will be on target Quota distribution to the corresponding destination item of attribute information;According to allocation result, described at least two are obtained The recommendation information of each destination item in destination item;The recommendation information is returned to the terminal.Using the embodiment of the present invention, Recommend relevant information to terminal by the actual demand of terminal, the accuracy of recommendation information can be improved.
Fig. 2 is referred to, Fig. 2 is a kind of another flow diagram of information recommendation method provided in an embodiment of the present invention, In the embodiment of the present invention, this method be may comprise steps of.
S201: receiving the recommendation request that terminal is sent, and the recommendation request carries the selected method of salary distribution pair of user Allocation identification, target amount and the attribute information including at least two destination items answered.
In the embodiment of the present invention, destination item is made of multiple elements, one weighted value of each elements correlation, correspondingly, The corresponding unit weighted value of each destination item, which can be true according to the weighted value of each element in destination item It is fixed.Specific to determine that method be set according to actual needs, the embodiment of the present invention with no restriction, such as can be each element The sum of weighted value, be also possible to the product etc. of the weighted value of each element.For convenience of description, destination item pair in the embodiment of the present invention The unit weighted value answered is by taking the product of the weighted value of each element in the destination item as an example.
In the embodiment of the present invention, the attribute information is used to identify each target item at least two destination item The corresponding unit weighted value of mesh.It, can also be with it should be understood that attribute information can directly be the unit weighted value of each destination item It is the element information of each element or the associated weight value information of each element etc. in each destination item, it can be straight according to the attribute information The unit weighted value for determining destination item is connect, specifically, the embodiment of the present invention is with no restriction.If the former, then server connects After receiving recommendation request, step S203 is executed;If the latter, then after server receives recommendation request, step S202, root are executed The corresponding unit weighted value of destination item is determined according to attribute information.
S202: according to the attribute information, the corresponding unit weighted value of each destination item is determined.
In the embodiment of the present invention, the attribute information of each destination item includes each element in the destination item, often One weighted value of a elements correlation determines the corresponding unit weighted value of each destination item according to attribute information.Specifically, to institute It states attribute information to be parsed, obtains the corresponding each element of each destination item, wherein one weighted value of each elements correlation; According to the weighted value of the corresponding each element of each destination item, the corresponding unit weighting of each destination item is determined Value.
For convenience of description, the embodiment of the present invention assumes that destination item is 4, is indicated respectively with A, B, C, D, each target item Mesh includes 2 elements, is indicated respectively with { A1, A2 }, { B1, B2 }, { C1, C2 }, { D1, D2 }, wherein 1~D2 of elements A is closed respectively Join a weighted value, respectively with value (A1)~value (D2) indicate, then attribute information can be expressed as A:(A1, A2);B: (B1,B2);C:(C1,C2);D:(D1,D2)}.But the embodiment of the present invention is not limited to this it is assumed that the hypothesis is only used for description mesh , all destination items that the method for the present invention can be implemented belong to the scope of protection of the invention.
As a kind of feasible embodiment, unit weighted value value (A)=value of destination item A can be determined (A1)*value(A2);The unit weighted value value (B) of destination item B=value (B1) * value (B2);Destination item C's Unit weighted value value (C)=value (C1) * value (C2);Unit weighted value value (D)=value of destination item D (D1)*value(D2)。
S203: according to the corresponding unit weighted value of the attribute information of each destination item, each destination item is determined Total weight value be not less than the target amount when minimum number, wherein the total weight value of each destination item be the target The product of project corresponding unit weighted value and quantity.
For convenience of description, it is assumed that target amount is indicated with Total, according to the unit weighted value of each destination item, is determined every The total weight value of a destination item is not less than the minimum number when target amount, wherein the total weight value of each destination item is should The product of destination item corresponding unit weighted value and quantity.
Such as: assuming that the corresponding minimum number of destination item A is indicated with Num_min (A), then the total weight value of destination item A Total (A)=value (A) * Num_min (A), wherein after Num_min (A) is Total and value (A) progress division arithmetic The smallest positive integral to round up.Such as: if Total=20, value (A)=4, then Num_min (A)=5;If Total=20, Value (A)=4.2, then Num_min (A)=5;If Total=20, value (A)=3.2, then Num_min (A)=7.
S204: if the sum of corresponding minimum number of each destination item is less than the corresponding number of targets of the target amount Amount is right according to the corresponding unit weighted value of the attribute information of the corresponding method of salary distribution of the allocation identification and each destination item The target amount is allocated.
After step S203 determines the corresponding minimum number of each project, judge the corresponding minimum number of each destination item it Whether the corresponding destination number of target amount is less than, if being less than, explanation can be according to the corresponding method of salary distribution pair of allocation identification Target amount is allocated, will be on target Quota distribution to each destination item.The specific method of salary distribution can be such as Fig. 2 a~Fig. 2 d It is shown.
S205: according to allocation result, determining recommendation information, the recommendation information for identify the target Quota distribution to The amount of each destination item.
After to target Quota distribution, the recommendation number for the setting of each destination item can be known according to allocation result Amount and total weight value, by the corresponding relationship between target amount and destination number, it is known that: according to the corresponding recommendation of each destination item Quantity can determine target Quota distribution to the amount of each destination item, or according to each destination item pair The total weight value answered can also determine target Quota distribution to the amount of each destination item.It therefore, can be by recommendation Breath is determined as recommended amount and/or total weight value for the setting of each destination item, and the recommendation information is for identifying the mesh Quota distribution is marked to the amount of each destination item.
S206: Xiang Suoshu terminal returns to the recommendation information.
After getting the recommendation information for the setting of each destination item, the recommendation information is returned to terminal, so that eventually End shows the recommendation information in the display interface, and user is facilitated to consult, thus, point of the user without manual calculations target amount Match.
In the information recommendation method of description of the embodiment of the present invention, the recommendation request that server receiving terminal is sent is described Recommendation request carries allocation identification, target amount and the attribute information including at least two destination items;Using the distribution It identifies the corresponding method of salary distribution to be allocated the target amount, by target Quota distribution to the corresponding target item of attribute information On mesh;According to allocation result, the recommendation information of each destination item at least two destination item is obtained;To the terminal Return to the recommendation information.Using the embodiment of the present invention, relevant information, Ke Yiti are recommended to terminal by the actual demand of terminal The accuracy of high recommendation information.
It is worth noting that in the above-described embodiments, if the sum of corresponding minimum number of each destination item is less than The corresponding destination number of the target amount, then according to the category of the allocation identification corresponding method of salary distribution and each destination item The property corresponding unit weighted value of information, is allocated the target amount.In view of there are many specific methods of salary distribution, because This, the method for salary distribution corresponding with the allocation identification is uniquely determined by allocation identification.Such as: if allocation identification is preset the One allocation identification, then the method that step S204 is allocated the target amount can be as shown in Figure 2 a, and Fig. 2 a is Fig. 2 offer A kind of distribution method flow diagram, this method may comprise steps of.
S204a1: the recommended amount for presetting each destination item is its corresponding minimum number.
For convenience of description, the corresponding minimum number of destination item A, B, C, D use respectively Num_min (A), Num_min (B), Num_min (C), Num_min (D) indicate that corresponding recommended amount uses Num_rec (A), Num_rec (B), Num_rec respectively (C), Num_rec (D) indicate, then preset Num_rec (A)=Num_min (A), Num_rec (B)=Num_min (B), Num_rec (C)=Num_min (C), Num_rec (D)=Num_min (D), thus, it is ensured that the corresponding total power of each destination item Value is all larger than target amount, and the total weight value of destination item is the corresponding unit weighted value of project distribution number corresponding with the project The product of amount.
S204b1: judge the difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Whether value is greater than zero.
If more than zero, step S204c1 is executed;If being equal to zero, it is assigned.
S204c1: the recommended amount of the smallest destination item of total weight value is increased 1, the difference subtracts 1.
Specifically, if the difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Greater than zero, the recommended amount of the smallest destination item of total weight value is increased 1, the difference subtracts 1;If the difference is equal to zero, distribute It finishes, determines that the quantity allotted of each destination item is its corresponding recommended amount.For convenience of description, Total pairs of target amount The destination number answered indicates that difference is indicated with Dif with Num, then sets the initial value of Dif are as follows: Dif=Num-Num_min (A)- Num_min(B)-Num_min(C)-Num_min(D)。
Such as: the total weight value total (A) of destination item A=value (A) * Num_rec (A), the total weight value of destination item B The total weight value total (C) of total (B)=value (B) * Num_rec (B), destination item C=value (C) * Num_rec (C), The total weight value total (D) of destination item D=value (D) * Num_rec (D), if difference Dif is greater than zero, according to destination item pair Should before recommended amount when total weight value, determine the smallest destination item of total weight value in all destination items, update total power It is worth the corresponding recommended amount of the smallest destination item and difference.Such as: the recommended amount of the destination item is increased 1, difference subtracts 1.
For convenience of description, it is assumed that min { total (A), total (B), total (C), total (D) } is total (A), then The recommended amount of destination item A is updated to the corresponding current recommended amount of destination item A and adds 1, difference is updated to currently Numerical value subtracts 1.Such as: assuming that the current recommended amount for destination item A setting is 3, difference 7, then by destination item A's Recommended amount is updated to 4, and difference is updated to 6.
S204d1: whether difference of the judgement from after subtracting is greater than zero.
If the difference after subtracting certainly is greater than zero, thens follow the steps S204c1 and continue to be allocated target amount, until being obtained The difference obtained is equal to zero;If difference after subtracting is equal to zero, it is assigned, the corresponding current recommendation of each destination item Quantity is recommended amount or quantity allotted of the server to destination item setting, i.e. the corresponding destination number point of target amount The quantity of the dispensing destination item.According to the corresponding relationship of target amount and destination number, it is known that, recommended amount can be directly anti- Target Quota distribution is mirrored to the amount of destination item;Correspondingly, according to the corresponding unit weighted value of destination item, total weight value It can directly reflect target Quota distribution to the amount of destination item.Therefore, can using recommended amount and/or total weight value as Recommendation information.
To, target amount can be uniformly distributed on each destination item by the distribution method, meanwhile, each target Total weight value when project corresponds to the recommended amount is not less than target amount, can realize from one side and divide target amount Match, reduces the specific calculating work of user.
It is worth noting that in the above-described embodiments, if the sum of corresponding minimum number of each destination item is less than The corresponding destination number of the target amount, and the allocation identification is preset second identifier, then step S204 is to the mesh The method that mark amount is allocated can be as shown in Figure 2 b, and Fig. 2 b is a kind of another process signal for distribution method that Fig. 2 is provided Figure, this method may comprise steps of.
S204a2: the corresponding destination number of target amount minimum number corresponding with each destination item is determined The sum of difference.
Specifically, difference Dif=Num-Num_min (A)-Num_min (B)-Num_min (C)-Num_min (D).
S204b2: the recommended amount of the smallest destination item of setting unit weighted value is the corresponding minimum number of the destination item The sum of amount and the difference.
According to the corresponding unit weighted value of each destination item, determine that unit weighted value is minimum in all destination items Destination item, set the sum of its corresponding minimum number and difference Dif for the recommended amount of the destination item.
Such as: assuming that min { value (A), value (B), value (C), value (D) } is value (B), then mesh is set The recommended amount Num_rec (B) of mark project B=Num_min (B)+Dif.
S204c2: for other destination items, the recommended amount of setting either objective project is the either objective item The corresponding minimum number of mesh.
Such as: it is directed to destination item A, C, D, recommended amount Num_rec (A)=Num_min (A) of destination item A is set, Recommended amount Num_rec (D)=Num_ of the recommended amount Num_rec (C) of destination item C=Num_min (C), destination item D min(D)。
To can be by target Quota distribution to destination item, specifically, unit weighted value is most by the distribution method Small destination item occupies biggish share, and the total weight value of the destination item is realized and is maximized, meanwhile, other destination items Total weight value when the corresponding recommended amount is not less than target amount, can realize the distribution to target amount from another point of view, Reduce the specific calculating work of user.
It is worth noting that in the above-described embodiments, if the sum of corresponding minimum number of each destination item is less than The corresponding destination number of the target amount, and the allocation identification is preset third mark, then step S204 is to the mesh The method that mark amount is allocated can be as shown in Figure 2 c, and Fig. 2 c is a kind of another process signal for distribution method that Fig. 2 is provided Figure, this method may comprise steps of.
S204a3: the corresponding destination number of target amount minimum number corresponding with each destination item is determined The sum of difference.
S204b3: the recommended amount of the maximum destination item of setting unit weighted value is the corresponding minimum number of the destination item The sum of amount and the difference.
According to the corresponding unit weighted value of each destination item, determine that unit weighted value is maximum in all destination items Destination item, set the sum of its corresponding minimum number and difference Dif for the recommended amount of the destination item.
Such as: assuming that min { value (A), value (B), value (C), value (D) } is value (C), then mesh is set The recommended amount Num_rec (C) of mark project C=Num_min (C)+Dif.
S204c3: for other destination items, the recommended amount of setting either objective project is the either objective item The corresponding minimum number of mesh.
Such as: it is directed to destination item A, B, D, recommended amount Num_rec (A)=Num_min (A) of destination item A is set, Recommended amount Num_rec (D)=Num_ of the recommended amount Num_rec (B) of destination item B=Num_min (B), destination item D min(D)。
To can be by target Quota distribution to destination item, specifically, unit weighted value is most by the distribution method Big destination item occupies biggish share, and the total weight value of the destination item is realized and is maximized, meanwhile, other destination items Total weight value when the corresponding recommended amount is not less than target amount, can realize the distribution to target amount from another point of view, Reduce the specific calculating work of user.
It is worth noting that in the above-described embodiments, if the sum of corresponding minimum number of each destination item is less than The corresponding destination number of the target amount, and the allocation identification is preset 4th mark, then step S204 is to the mesh The method that mark amount is allocated can be as shown in Figure 2 d, and Fig. 2 d is a kind of another process signal for distribution method that Fig. 2 is provided Figure, this method may comprise steps of.
S204a4: the recommended amount for the destination item that setting user selects is the corresponding minimum number of the destination item.
In this distribution method, user's selected section destination item when terminal sends recommendation request, identifies in attribute information The partial target project.The recommended amount for the destination item that user selects is set the corresponding minimum of the destination item by server Quantity.
Such as: assuming that the partial target project that user selects is A, B, then the recommended amount Num_rec of destination item A is set (A) the recommended amount Num_rec (B) of=Num_min (A), destination item B=Num_min (B).
S204b4: for other destination items, the recommended amount for presetting either objective project is that its is corresponding most Smallest number.
Such as: other destination items are C, D, preset recommended amount Num_rec (C)=Num_ of destination item C The recommended amount Num_rec (D) of min (C), destination item D=Num_min (D).
S204c4: judge the difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Whether value is greater than zero.
If more than zero, step S204d4 is executed;If being equal to zero, it is assigned, server is set to each destination item Recommended amount, that is, corresponding minimum number.
S204d4: the recommended amount of the smallest destination item of total weight value in other destination items is increased 1, the difference Value subtracts 1.
If the difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Value is greater than zero, the recommended amount of the smallest destination item of total weight value in other destination items is increased 1, the difference subtracts 1; If the difference is equal to zero, it is assigned.Wherein, the initial value of difference Dif are as follows: Dif=Num-Num_min (A)-Num_min (B)-Num_min(C)-Num_min(D)。
For convenience of description, it is assumed that min { total (C), total (D) } is total (C), then by the recommendation number of destination item C Amount is updated to the corresponding current recommended amount of destination item C and adds 1, and difference is updated to current value and subtracts 1.Such as: assuming that needle Current recommended amount to destination item C setting is 5, and the recommended amount of destination item C is then updated to 6 by difference 3, poor Value is updated to 2.
S204e4: whether difference of the judgement from after subtracting is greater than zero.
If the difference after subtracting certainly is greater than zero, thens follow the steps S204c4 and continue to be allocated target amount, until being obtained The difference obtained is equal to zero;If the difference after subtracting certainly is equal to zero, it is assigned.The corresponding current recommended amount of each destination item As recommended amount of the server to destination item setting.
To can be by target Quota distribution to each destination item, specifically, user is selected by the distribution method The recommended amount of destination item be set as its corresponding minimum number, amount remaining in target amount is uniformly distributed to In other destination items.In the distribution method, total weight value when each destination item corresponds to the recommended amount is not less than mesh Amount is marked, the distribution to target amount can be realized from another point of view, reduce the specific calculating work of user.
After being assigned, according between target amount and destination number corresponding relationship, each destination item is corresponding pushes away Quantity is recommended, target Quota distribution can be determined to the amount of each destination item;Either according to each destination item Corresponding unit weighted value and total weight value can also determine target Quota distribution to the amount of each destination item.Cause Recommendation information, can be determined as recommended amount and/or total weight value for the setting of each destination item, the recommendation information by this For identifying the target Quota distribution to the amount of each destination item.
After distribution method described in a~Fig. 2 d is allocated target amount according to fig. 2, at least two mesh is determined The recommendation information of each destination item in mark project.Specifically, being obtained according to the recommended amount or weighted value of each destination item The recommendation information of each destination item, wherein the recommendation information can be the recommendation number for destination item setting Amount is also possible to the combination of the total weight value or the two when the destination item corresponds to the recommended amount, it is, of course, also possible to directly Connect the amount for being target Quota distribution to each destination item.
For convenience of the embodiment of the present invention is understood, below for betting the scene of retrial scheme in soccer lottery, to this hair Bright described information recommendation method is illustrated.But it is worth noting that the particular case that the present invention is not limited to be lifted The scene of son description, all usage scenarios that the method for the present invention can be implemented belong to the scope of protection of the invention.
Refer to Fig. 3, Fig. 3 is a kind of example schematic of information recommendation method provided in an embodiment of the present invention, in the figure Content related to the present invention is only shown.
User can according to demand be allocated the combined note number of selection when selecting retrial scheme to bet. Present invention could apply to the scenes or the similar scene of the scene etc., recommend each combined note to user by server The theoretical bonus of the combination, reduces the amount of calculation of user when counting, and corresponding to the note number.
For convenience of understanding, the planned purchases amount of money " 100 " input by user can be understood as institute in above-described embodiment in Fig. 3 The target amount of description;Specific 4 listed combinations can be understood as destination item described in above-described embodiment in Fig. 3; " 1 is negative ", " 2 is negative " can be understood as constituting the element of destination item A, and " 1 is negative ", " 2 is flat " can be understood as constituting destination item B's Element, " 1 victory ", " 2 is negative " can be understood as constituting the element of destination item C, and " 1 victory ", " 2 is flat " can be understood as constituting target item The element of mesh D;" average optimization ", " hot topic optimization ", " unexpected winner optimization ", " break even optimization " can be understood as in above-described embodiment Allocation identification, allocation identification is different, and the method that server is allocated target amount is different, specifically, according to selected by user The method of salary distribution selected determines allocation identification.Such as: " average optimization " can with the first allocation identification described in corresponding diagram 2a, Second allocation identification described in " hot topic optimization " corresponding diagram 2b, third described in " unexpected winner optimization " corresponding diagram 2c are distributed It identifies, the 4th allocation identification described in " break even optimization " corresponding diagram 2d;Infuse number, the specific value that theoretical bonus item is enumerated is The recommendation information that server returns, wherein " note number " can correspond to the recommended amount in above-described embodiment, and " theoretical bonus " can be with Total weight value in corresponding above-described embodiment.
Assuming that the corresponding unit weighted value of destination item A, B, C, D is as shown in Figure 3, when user's point on the surface When hitting " average optimization " button, terminal obtains the parameter information on the interface, as target amount " 100 ", allocation identification are " average excellent Change corresponding first allocation identification ", attribute information " { destination item A:9.3;Destination item B:10.98;Destination item C:20.9; Destination item A:24.7 } ", terminal gets and sends recommendation request to server after these parameter informations, wherein in recommendation request Carry the parameter information.After server receives the recommendation request of terminal transmission, according to the distribution mark carried in the recommendation request Unit weighted value corresponding with the attribute information of each destination item is known, using the method for salary distribution corresponding with the allocation identification to mesh Mark amount is allocated (specific assigning process refers to Fig. 2 a, and details are not described herein again), can get and be directed to after being assigned The recommended amount of each destination item setting, i.e. note number " 18 ", " 16 ", " 9 ", " 7 " shown in Fig. 3 further can be with Total weight value is calculated according to the accessed corresponding unit weighted value of recommended amount and destination item, is i.e. is managed shown in Fig. 3 By bonus " 167.31 ", " 175.76 ", " 188.10 ", " 172.90 ";Recommendation information is returned to terminal, recommendation information, which can be, to be pushed away Quantity is recommended, total weight value when can also be with recommended amount and the corresponding recommended amount.Terminal receives the recommendation of server return After breath, shown, it is specific to show that result be as shown in Figure 3.From figure 3, it can be seen that the theory of each combination Bonus reaches unanimity, then either which combination hit, the bonus that user obtains are similar in this 4 combinations.Therefore, if user It is expected that this as a result, then can choose " average optimization ".
Further, for convenience of understanding, it is assumed that user clicks " hot topic optimization ", one during other conditions and foregoing description Sample, then allocation identification is the second allocation identification, and server is allocated target amount using distribution method shown in Fig. 2 b, eventually After termination receives the recommendation information of server return, display result can be as shown in Figure 3a, and Fig. 3 a is that the another kind that Fig. 3 is provided is aobvious Show schematic diagram.As can be seen that the theoretical bonus of that combination of unit weighted value minimum (maximum probability of hit) from Fig. 3 a It maximizes, the theoretical bonus of other combinations tends to target amount but is greater than target amount.Then this 4 combination in either which Combination hit, the bonus that user obtains are not less than target amount, meanwhile, maximum that of hit probability infuses combined bonus most Bigization.
Further, for convenience of understanding, it is assumed that user clicks " unexpected winner optimization ", one during other conditions and foregoing description Sample, then allocation identification is third allocation identification, and server is allocated target amount using distribution method shown in Fig. 2 c, eventually After termination receives the recommendation information of server return, display result can be as shown in Figure 3b, and Fig. 3 b is that the another kind that Fig. 3 is provided is aobvious Show schematic diagram.As can be seen that the theoretical bonus for that combination that unit weighted value is maximum (probability of hit is minimum) from Fig. 3 b It maximizes, the theoretical bonus of other combinations tends to target amount but is greater than target amount.Then this 4 combination in either which Combination hit, the bonus that user obtains are not less than target amount, meanwhile, the bonus for returning that highest combination is maximum Change.
Further, for convenience of understanding, it is assumed that user clicks " break even optimization ", and user has selected this group of serial number 1 During conjunction, other conditions and foregoing description, then allocation identification is the 4th allocation identification, and server is using shown in Fig. 2 d Distribution method is allocated target amount, and after terminal receives the recommendation information of server return, display result can be such as figure Shown in 3c, Fig. 3 c is another display schematic diagram that Fig. 3 is provided.As can be seen that the theoretical bonus of first item combination from Fig. 3 c Tend to target amount but be greater than the target amount, the theoretical bonus of others combination reaches unanimity.Then in this 4 combinations either Which combination hit, the bonus that user obtains are not less than target amount, meanwhile, the objective cross of user's selection is realized Bonus minimizes, but on condition that having to be larger than target amount, the remaining amount in target amount is uniformly distributed to other combinations Xiang Shang.Therefore, if user is smaller to a certain assurance, the project of breaking even can be set by this.To in above-mentioned recommendation side In case, if the destination item of user's selection has a hit, either which hit, it can guarantee not lose money.
In actual process, the target amount in above-described embodiment can be integral, ideal money etc. with size Numerical information, theoretical bonus can be according to the corresponding prize of the specific number, article etc., specifically, the embodiment of the present invention With no restriction.
The following is an embodiment of the apparatus of the present invention, and apparatus of the present invention embodiment and embodiment of the present invention method belong to same structure Think, for executing method described in embodiment of the present invention method.For ease of description, apparatus of the present invention embodiment only show with The relevant part of apparatus of the present invention embodiment, it is disclosed by specific technical details, the description of embodiment of the present invention method is please referred to, It no longer repeats one by one herein.
Fig. 4 is referred to, Fig. 4 is a kind of structural schematic diagram of information recommending apparatus provided in an embodiment of the present invention, in this hair In bright embodiment, the apparatus may include: receiving module 101, distribution module 102, the first determining module 103 and sending module 104。
Receiving module 101, for receiving the recommendation request of terminal transmission, it is selected that the recommendation request carries user The corresponding allocation identification of the method for salary distribution, target amount and the attribute information including at least two destination items, the attribute information For identifying the corresponding unit weighted value of each destination item at least two destination item.
Distribution module 102, for being believed according to the attribute of the corresponding method of salary distribution of the allocation identification and each destination item Corresponding unit weighted value is ceased, the target amount is allocated.
First determining module 103, for determining recommendation information, the recommendation information is for identifying institute according to allocation result Target Quota distribution is stated to the amount of each destination item.
Sending module 104, for returning to the recommendation information to the terminal.
In the information recommending apparatus of description of the embodiment of the present invention, the recommendation request that server receiving terminal is sent is described Recommendation request carries allocation identification, target amount and the attribute information including at least two destination items;According to each target The corresponding unit weighted value of the attribute information of project, using the corresponding method of salary distribution of the allocation identification to the target amount into Row distribution, will be on target Quota distribution to the corresponding destination item of attribute information;According to allocation result, described at least two are obtained The recommendation information of each destination item in destination item;The recommendation information is returned to the terminal.Using the embodiment of the present invention, Recommend relevant information to terminal by the actual demand of terminal, the accuracy of recommendation information can be improved.
Fig. 5 is referred to, Fig. 5 is a kind of another structural schematic diagram of information recommending apparatus provided in an embodiment of the present invention, In the embodiment of the present invention, the apparatus may include: receiving module 201, the first determining module 203, sends mould at distribution module 202 Block 204, the second determining module 205 and third determining module 206.
Receiving module 201, for receiving the recommendation request of terminal transmission, it is selected that the recommendation request carries user The corresponding allocation identification of the method for salary distribution, target amount and the attribute information including at least two destination items, the attribute information For identifying the corresponding unit weighted value of each destination item at least two destination item.
Distribution module 202, for being believed according to the attribute of the corresponding method of salary distribution of the allocation identification and each destination item Corresponding unit weighted value is ceased, the target amount is allocated.
First determining module 203, for determining recommendation information, the recommendation information is for identifying institute according to allocation result Target Quota distribution is stated to the amount of each destination item.
Sending module 204, for returning to the recommendation information to the terminal.
Second determining module 205 determines institute for the corresponding unit weighted value of attribute information according to each destination item State minimum number of the total weight value of each destination item not less than the target amount when, wherein each destination item Total weight value is the product of the destination item corresponding unit weighted value and quantity.
Distribution module 202, if being also used to the sum of corresponding minimum number of each destination item less than the target volume Corresponding destination number is spent, the target amount is allocated.
In one embodiment, the attribute information of each destination item includes each element in the destination item, often One weighted value of a elements correlation, the second determining module 206 are used for:
The attribute information is parsed, the corresponding each element of each destination item is obtained;
According to the weighted value of the corresponding each element of each destination item, the corresponding list of each destination item is determined Position weighted value.
As a kind of possible embodiment, distribution module 202 is specifically used for:
The recommended amount for presetting each destination item is its corresponding minimum number;
If the difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Value is greater than zero, the recommended amount of the smallest destination item of total weight value is increased 1, the difference subtracts 1;
If the difference after subtracting certainly is greater than zero, the recommended amount increasing 1 by the smallest destination item of total weight value is executed, it is described The step of difference subtracts 1, until difference obtained is equal to zero.
As alternatively possible embodiment, distribution module 202 is specifically used for:
Determine the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Difference;
The recommended amount of the smallest destination item of setting unit weighted value is the corresponding minimum number of the destination item and should The sum of difference;
For other destination items, the recommended amount that either objective project is arranged is that the either objective project is corresponding Minimum number.
As alternatively possible embodiment, distribution module 202 is specifically used for:
Determine the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Difference;
The recommended amount of the maximum destination item of setting unit weighted value is the corresponding minimum number of the destination item and should The sum of difference;
For other destination items, the recommended amount that either objective project is arranged is that the either objective project is corresponding Minimum number.
As alternatively possible embodiment, distribution module 202 is specifically used for:
The recommended amount for the destination item that user selects is set for the corresponding minimum number of the destination item;
For other destination items, the recommended amount for presetting either objective project is its corresponding minimum number;
If the difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Value is greater than zero, the recommended amount of the smallest destination item of total weight value in other destination items is increased 1, the difference subtracts 1;
If the difference after subtracting certainly is greater than zero, execute described by the smallest target item of total weight value in other destination items The step of purpose recommended amount increases 1, and the difference subtracts 1, until difference obtained is equal to zero.
Preferably, the recommendation information includes the corresponding recommended amount of each destination item and total weight value.
In the information recommending apparatus of description of the embodiment of the present invention, the recommendation request that server receiving terminal is sent is described Recommendation request carries allocation identification, target amount and the attribute information including at least two destination items;According to each target The corresponding unit weighted value of the attribute information of project, using the corresponding method of salary distribution of the allocation identification to the target amount into Row distribution, will be on target Quota distribution to the corresponding destination item of attribute information;According to allocation result, described at least two are obtained The recommendation information of each destination item in destination item;The recommendation information is returned to the terminal.Using the embodiment of the present invention, Recommend relevant information to terminal by the actual demand of terminal, the accuracy of recommendation information can be improved.
Fig. 6 is referred to, Fig. 6 is a kind of structural schematic diagram of server provided in an embodiment of the present invention, is implemented in the present invention In example, server 10 includes any one as described above information recommending apparatus, specifically, refer to above method embodiment and The detailed description of Installation practice, details are not described herein again.
Fig. 7 is referred to, Fig. 7 is a kind of another structural schematic diagram of information recommending apparatus provided in an embodiment of the present invention, is used In executing information recommendation method disclosed by the embodiments of the present invention, the apparatus may include: at least one processor 301, such as CPU, at least one network interface 304 or other users interface 303, memory 305, at least one communication bus 302.Communication Bus 302 is for realizing the connection communication between these components.Wherein, user interface 303 optionally may include USB interface with And other standard interfaces, wireline interface.Network interface 304 optionally may include Wi-Fi interface and other wireless interfaces.It deposits Reservoir 305 may include high speed RAM memory, it is also possible to further include non-labile memory (non-volatile Memory), a for example, at least magnetic disk storage.Memory 305 optionally may include at least one and be located remotely from aforementioned place Manage the storage device of device 301.As shown in fig. 7, as may include operation system in a kind of memory 305 of computer storage medium System 3051 and application program 3052.
In some embodiments, memory 305 stores following element, executable modules or data structures, or Their subset of person or their superset:
Operating system 3051 includes various system programs, hardware based for realizing various basic businesses and processing Task;
Application program 3052, the setting program of the deblocking parameter comprising target network data, target data block are drawn The comparison program of data block in branch, target data block and database and the deletion program of target data block etc. are various to answer With program, for realizing various applied business.
Specifically, processor 301 is for calling the program stored in memory 305, the following operation of execution:
The recommendation request that terminal is sent is received, the recommendation request carries corresponding point of the selected method of salary distribution of user With mark, target amount and attribute information including at least two destination items, the attribute information for identify it is described at least The corresponding unit weighted value of each destination item in two destination items;
According to the corresponding unit weighting of the attribute information of the corresponding method of salary distribution of the allocation identification and each destination item Value, is allocated the target amount;
According to allocation result, recommendation information is determined, the recommendation information is for identifying the target Quota distribution to described The amount of each destination item;
The recommendation information is returned to the terminal.
In another embodiment, before processor 301 executes the operation being allocated to the target amount, also Including executing following operation:
According to the corresponding unit weighted value of the attribute information of each destination item, total power of each destination item is determined Minimum number when value is not less than the target amount, wherein the total weight value of each destination item is the destination item pair The product of the unit weighted value and quantity answered;
If the sum of corresponding minimum number of each destination item is less than the corresponding destination number of the target amount, hold The row operation that the target amount is allocated.
In another embodiment, the attribute information of each destination item includes each element in the destination item, One weighted value of each elements correlation, it is corresponding that processor 301 executes the attribute information according to each destination item Unit weighted value, determine the minimum number of the total weight value of each destination item not less than the target amount when operation it Before, further include executing following operation:
The attribute information is parsed, the corresponding each element of each destination item is obtained;
According to the weighted value of the corresponding each element of each destination item, the corresponding list of each destination item is determined Position weighted value.
In another embodiment, processor 301 executes described according to the corresponding method of salary distribution of the allocation identification and every The corresponding unit weighted value of the attribute information of a destination item, is allocated the target amount, including executes following operation:
The recommended amount for presetting each destination item is its corresponding minimum number;
If the difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Value is greater than zero, the recommended amount of the smallest destination item of total weight value is increased 1, the difference subtracts 1;
If the difference after subtracting certainly is greater than zero, the recommended amount increasing 1 by the smallest destination item of total weight value is executed, it is described The step of difference subtracts 1, until difference obtained is equal to zero.
In another embodiment, processor 301 executes described according to the corresponding method of salary distribution of the allocation identification and every The corresponding unit weighted value of the attribute information of a destination item, is allocated the target amount, and it is following to specifically include execution Operation:
Determine the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Difference;
The recommended amount of the smallest destination item of setting unit weighted value is the corresponding minimum number of the destination item and should The sum of difference;
For other destination items, the recommended amount that either objective project is arranged is that the either objective project is corresponding Minimum number.
In another embodiment, processor 301 executes described according to the corresponding method of salary distribution of the allocation identification and every The corresponding unit weighted value of the attribute information of a destination item, is allocated the target amount, and it is following to specifically include execution Operation:
Determine the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Difference;
The recommended amount of the maximum destination item of setting unit weighted value is the corresponding minimum number of the destination item and should The sum of difference;
For other destination items, the recommended amount that either objective project is arranged is that the either objective project is corresponding Minimum number.
In another embodiment, processor 301 executes described according to the corresponding method of salary distribution of the allocation identification and every The corresponding unit weighted value of the attribute information of a destination item, is allocated the target amount, and it is following to specifically include execution Operation:
The recommended amount for the destination item that user selects is set for the corresponding minimum number of the destination item;
For other destination items, the recommended amount for presetting either objective project is its corresponding minimum number;
If the difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item Value is greater than zero, the recommended amount of the smallest destination item of total weight value in other destination items is increased 1, the difference subtracts 1;
If the difference after subtracting certainly is greater than zero, execute described by the smallest target item of total weight value in other destination items The step of purpose recommended amount increases 1, and the difference subtracts 1, until difference obtained is equal to zero.
In another embodiment, the recommendation information includes the corresponding recommended amount of each destination item and total weight value.
In the technical solution of description of the embodiment of the present invention, the recommendation request that server receiving terminal is sent, the recommendation Request carries allocation identification, target amount and the attribute information including at least two destination items;According to each destination item The corresponding unit weighted value of attribute information, the target amount is divided using the allocation identification corresponding method of salary distribution Match, it will be on target Quota distribution to the corresponding destination item of attribute information;According to allocation result, at least two target is obtained The recommendation information of each destination item in project;The recommendation information is returned to the terminal.Using the embodiment of the present invention, pass through The actual demand of terminal recommends relevant information to terminal, and the accuracy of recommendation information can be improved.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Must must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be It can be combined in any suitable manner in any one or more embodiment or examples.In addition, without conflicting with each other, this field Technical staff can carry out the feature of different embodiments or examples described in this specification and different embodiments or examples Combination and combination.
Those skilled in the art can be by different embodiments described in this specification and the feature of different embodiments It is combined.Module or unit in all embodiments of the invention can pass through universal integrated circuit, such as CPU (Central Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, specific integrated circuit) Lai Shixian.
Step in all embodiments of the invention method can be sequentially adjusted, merged and deleted according to actual needs; Module or unit in all embodiments of the invention device can be combined, divided and deleted according to actual needs.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.
Above disclosed is only presently preferred embodiments of the present invention, cannot limit the right of the present invention with this certainly Range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and according to right of the present invention Equivalent variations made by it is required that, still belongs to the scope covered by the invention.

Claims (9)

1. a kind of information recommendation method characterized by comprising
The recommendation request that terminal is sent is received, the recommendation request carries the corresponding distribution mark of the selected method of salary distribution of user Know, target amount and the attribute information including at least two destination items, the attribute information are used to identify described at least two The corresponding unit weighted value of each destination item in destination item;
It is right according to the corresponding unit weighted value of the attribute information of the corresponding method of salary distribution of the allocation identification and each destination item The target amount is allocated, comprising: and the recommended amount for presetting each destination item is its corresponding minimum number, if The difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item is greater than zero, will The recommended amount of the smallest destination item of total weight value increases 1, and the difference subtracts 1, if the difference after subtracting certainly is greater than zero, execution is described will The step of recommended amount of the smallest destination item of total weight value increases 1, and the difference subtracts 1, until difference obtained is equal to zero;Or Determine the difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item;Setting The recommended amount of the smallest destination item of unit weighted value is the sum of the corresponding minimum number of the destination item and the difference;For Other destination items, the recommended amount of setting either objective project are the corresponding minimum number of the either objective project;Or Determine the difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item;Setting The recommended amount of the maximum destination item of unit weighted value is the sum of the corresponding minimum number of the destination item and the difference;For Other destination items, the recommended amount of setting either objective project are the corresponding minimum number of the either objective project;Or The recommended amount for the destination item that user selects is set for the corresponding minimum number of the destination item;For other target items Mesh, the recommended amount for presetting either objective project is its corresponding minimum number;If the corresponding target of the target amount The difference of the sum of quantity minimum number corresponding with each destination item is greater than zero, will be total in other destination items The recommended amount of the smallest destination item of weight increases 1, and the difference subtracts 1;If the difference after subtracting certainly is greater than zero, execute described by institute The step of recommended amount for stating the smallest destination item of total weight value in other destination items increases 1, and the difference subtracts 1, until institute The difference of acquisition is equal to zero;
According to allocation result, recommendation information is determined, the recommendation information is for identifying the target Quota distribution to described each The amount of destination item;
The recommendation information is returned to the terminal.
2. the method as described in claim 1, which is characterized in that described according to the corresponding method of salary distribution of the allocation identification and every The corresponding unit weighted value of the attribute information of a destination item, before being allocated to the target amount, the method is also wrapped It includes:
According to the corresponding unit weighted value of the attribute information of each destination item, the total weight value of each destination item is determined not Minimum number when less than the target amount, wherein the total weight value of each destination item is that the destination item is corresponding The product of unit weighted value and quantity;
If the sum of corresponding minimum number of each destination item is less than the corresponding destination number of the target amount, institute is executed State the step of being allocated to the target amount.
3. method according to claim 2, which is characterized in that the attribute information of each destination item includes the target item Each element in mesh, one weighted value of each elements correlation, the corresponding unit of the attribute information according to each destination item Weighted value, before determining minimum number of the total weight value of each destination item not less than the target amount when, the side Method further include:
The attribute information is parsed, the corresponding each element of each destination item is obtained;
According to the weighted value of the corresponding each element of each destination item, determine that the corresponding unit of each destination item adds Weight.
4. the method as described in claim 1, which is characterized in that the recommendation information includes the corresponding recommendation of each destination item Quantity and total weight value.
5. a kind of information recommending apparatus characterized by comprising
Receiving module, for receiving the recommendation request of terminal transmission, the recommendation request carries the selected distribution side of user The corresponding allocation identification of formula, target amount and the attribute information including at least two destination items, the attribute information is for marking Know the corresponding unit weighted value of each destination item at least two destination item;
Distribution module, it is corresponding for the attribute information according to the corresponding method of salary distribution of the allocation identification and each destination item Unit weighted value is allocated the target amount, in the following ways: presetting the recommended amount of each destination item For its corresponding minimum number, if the corresponding destination number of target amount minimum number corresponding with each destination item The difference of the sum of amount is greater than zero, the recommended amount of the smallest destination item of total weight value is increased 1, the difference subtracts 1, if after subtracting certainly The step of difference is greater than zero, executes the recommended amount by the smallest destination item of total weight value and increases 1, and the difference subtracts 1, until Difference obtained is equal to zero;Or determine that the corresponding destination number of target amount and each destination item are corresponding most The difference of the sum of smallest number;The recommended amount of the smallest destination item of setting unit weighted value is the corresponding minimum of the destination item The sum of quantity and the difference;For other destination items, the recommended amount that either objective project is arranged is the either objective The corresponding minimum number of project;Or determine that the corresponding destination number of target amount and each destination item are corresponding most The difference of the sum of smallest number;The recommended amount of the maximum destination item of setting unit weighted value is the corresponding minimum of the destination item The sum of quantity and the difference;For other destination items, the recommended amount that either objective project is arranged is the either objective The corresponding minimum number of project;Or it is the corresponding minimum number of the destination item that the recommended amount for the destination item that user selects, which is arranged, Amount;For other destination items, the recommended amount for presetting either objective project is its corresponding minimum number;If described The difference of the sum of the corresponding destination number of target amount minimum number corresponding with each destination item is greater than zero, will be described The recommended amount of the smallest destination item of total weight value increases 1 in other destination items, and the difference subtracts 1;If the difference after subtracting certainly Greater than zero, executes the recommended amount by the smallest destination item of total weight value in other destination items and increase 1, the difference The step of value subtracts 1, until difference obtained is equal to zero;
First determining module, for determining recommendation information, the recommendation information is for identifying the target volume according to allocation result Degree distributes to the amount of each destination item;
Sending module, for returning to the recommendation information to the terminal.
6. device as claimed in claim 5, which is characterized in that described device further includes the second determining module, is used for:
According to the corresponding unit weighted value of the attribute information of each destination item, the total weight value of each destination item is determined not Minimum number when less than the target amount, wherein the total weight value of each destination item is that the destination item is corresponding The product of unit weighted value and quantity;
The distribution module corresponds to if being used for the sum of corresponding minimum number of each destination item and being less than the target amount Destination number, the target amount is allocated.
7. device as claimed in claim 6, which is characterized in that the attribute information of each destination item includes the target item Each element in mesh, one weighted value of each elements correlation, described device further includes third determining module, is used for:
The attribute information is parsed, the corresponding each element of each destination item is obtained;
According to the weighted value of the corresponding each element of each destination item, determine that the corresponding unit of each destination item adds Weight.
8. device as claimed in claim 5, which is characterized in that the recommendation information includes the corresponding recommendation of each destination item Quantity and total weight value.
9. a kind of server, which is characterized in that including such as described in any item information recommending apparatus of claim 5-8.
CN201510317062.XA 2015-06-10 2015-06-10 A kind of information recommendation method, device and server Active CN104951523B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510317062.XA CN104951523B (en) 2015-06-10 2015-06-10 A kind of information recommendation method, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510317062.XA CN104951523B (en) 2015-06-10 2015-06-10 A kind of information recommendation method, device and server

Publications (2)

Publication Number Publication Date
CN104951523A CN104951523A (en) 2015-09-30
CN104951523B true CN104951523B (en) 2019-03-26

Family

ID=54166181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510317062.XA Active CN104951523B (en) 2015-06-10 2015-06-10 A kind of information recommendation method, device and server

Country Status (1)

Country Link
CN (1) CN104951523B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109949138B (en) * 2019-03-28 2022-05-06 北京小米移动软件有限公司 Information display method, device, terminal, server and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239523A (en) * 2014-09-17 2014-12-24 北京金山安全软件有限公司 Recommendation method and device for application program and mobile terminal
CN104239519A (en) * 2014-09-17 2014-12-24 广州华多网络科技有限公司 Information recommendation method and related equipment and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001092832A (en) * 1999-09-21 2001-04-06 Matsushita Electric Ind Co Ltd Information recommending method
JP4118580B2 (en) * 2002-03-20 2008-07-16 富士通株式会社 Arrangement information recommendation device, method and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239523A (en) * 2014-09-17 2014-12-24 北京金山安全软件有限公司 Recommendation method and device for application program and mobile terminal
CN104239519A (en) * 2014-09-17 2014-12-24 广州华多网络科技有限公司 Information recommendation method and related equipment and system

Also Published As

Publication number Publication date
CN104951523A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
CN108416615B (en) Resource allocation method based on tree
CN105528377B (en) The processing method of search result, apparatus and system
CN106997546A (en) A kind of order processing method and device
CN110830234B (en) User traffic distribution method and device
CN109460884A (en) Orphan's list distribution method, electronic device and readable storage medium storing program for executing
CN110175871A (en) A kind of ad content monitoring method and device based on map interactive interface
CN109729155A (en) A kind of distribution method and relevant apparatus of service request
CN111768174A (en) Activity management method, apparatus, device and medium
CN105654326B (en) A kind of information processing system and method
CN108897886B (en) Page display method calculates equipment and computer storage medium
CN108595599A (en) Using label generating method, device, storage medium and computer equipment
CN104951523B (en) A kind of information recommendation method, device and server
CN113222720B (en) Privacy protection incentive mechanism method and device based on reputation and storage medium
CN109214634A (en) A kind of information processing method, device and information processing readable medium
CN106991581A (en) Information popularization method and device, server and electronic equipment
CN109829648A (en) Performance management method and apparatus
CN110267086A (en) Main broadcaster's label method for building up and device, Living Network interface engine interface and medium
CN109242401A (en) Dispense setting method, device, electronic equipment and the readable storage medium storing program for executing of range
CN109062683A (en) The method, apparatus and computer readable storage medium of host resource distribution
CN108632358A (en) Based on the WIFI token management methods shared and device
CN108764853A (en) Real-time commission computational methods, device, equipment and computer readable storage medium
CN110215703B (en) Game application selection method, device and system
CN105429967B (en) Permission determines method and device
CN104899247B (en) A kind of information customization method and system
CN111833183A (en) Method, device, equipment and storage medium for measuring address value of block chain account

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160825

Address after: 5 building A3, building 99, Ai Ai Road, Suzhou Industrial Park, Jiangsu, Suzhou, 215123

Applicant after: SUZHOU JIANGDUODUO TECHNOLOGY Co.,Ltd.

Address before: 100085 Beijing City, Haidian District Road 33, two floor East Xiaoying

Applicant before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

GR01 Patent grant
GR01 Patent grant