CN104951523A - Information recommendation method and device and server - Google Patents

Information recommendation method and device and server Download PDF

Info

Publication number
CN104951523A
CN104951523A CN201510317062.XA CN201510317062A CN104951523A CN 104951523 A CN104951523 A CN 104951523A CN 201510317062 A CN201510317062 A CN 201510317062A CN 104951523 A CN104951523 A CN 104951523A
Authority
CN
China
Prior art keywords
destination item
destination
item
amount
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.)
Granted
Application number
CN201510317062.XA
Other languages
Chinese (zh)
Other versions
CN104951523B (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
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software 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

Abstract

The embodiment of the invention discloses an information recommendation method, which comprises the following steps: receiving a recommendation request sent by a terminal, wherein the recommendation request carries a distribution identifier corresponding to a distribution mode selected by a user, a target amount and attribute information comprising at least two target items, and the attribute information is used for identifying a unit weighted value corresponding to each of the at least two target items; distributing the target amount according to the distribution mode corresponding to the distribution identification and the unit weighted value corresponding to the attribute information of each target item; according to the distribution result, determining recommendation information, wherein the recommendation information is used for identifying the quota distributed to each target item by the target quota; and returning the recommendation information to the terminal. The embodiment of the invention also discloses an information recommendation device and a server. By adopting the embodiment of the invention, the accuracy of the 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, particularly relate to a kind of information recommendation method, device and server.
Background technology
Along with the development of Internet technology, user can obtain by terminal the recommendation information that server sends over, and usually, server is pre-set these recommendation informations, for different user, the recommendation information that server returns to terminal is identical.After terminal receives recommendation information, user still needs therefrom to obtain useful information.Therefore, in existing information recommendation method, server is low to the accuracy of terminal recommendation information.
Because the demand of user is different, and user expects that the recommendation information got from server is the useful information that oneself needs.Therefore, in order to meet the needs of social groups, be necessary very much to provide a kind of reasonably information recommendation method.
Summary of the invention
The embodiment of the present invention provides a kind of information recommendation method, device and server, can improve the accuracy of recommendation information.
First aspect, the embodiment of the present invention provides a kind of information recommendation method, comprising:
The recommendation request that receiving terminal sends, described recommendation request carries allocation identification corresponding to user-selected allocation scheme, target amount and comprises the attribute information of at least two destination items, and described attribute information is for unit weighted value corresponding to each destination item at least two destination items described in identifying;
The unit weighted value that the attribute information of the allocation scheme corresponding according to described allocation identification and each destination item is corresponding, distributes described target amount;
According to allocation result, determine recommendation information, described recommendation information is for identifying described target Quota distribution to the amount of described each destination item;
Described recommendation information is returned to described terminal.
In the first possible implementation of first aspect, the unit weighted value that the attribute information of the allocation scheme corresponding according to described allocation identification and each destination item is corresponding, before distributing described target amount, described method also comprises:
The unit weighted value corresponding according to the attribute information of each destination item, determine the minimum number when total weight value of described each destination item is not less than described target amount, wherein, the total weight value of described each destination item is the product of unit weighted value that this destination item is corresponding and quantity;
If the minimum number sum that described each destination item is corresponding is less than destination number corresponding to described target amount, perform the described step that described target amount is distributed.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, the attribute information of described each destination item comprises each element in this destination item, each elements correlation weighted value, the described unit weighted value corresponding according to the attribute information of each destination item, before determining the minimum number when total weight value of described each destination item is not less than described target amount, described method also comprises:
Described attribute information is resolved, obtains each element that each destination item is corresponding;
According to the weighted value of each element corresponding to described each destination item, determine the unit weighted value that described each destination item is corresponding.
In conjunction with the first possible implementation of first aspect, in the third possible implementation of first aspect, the unit weighted value that the attribute information of the described allocation scheme corresponding according to described allocation identification and each destination item is corresponding, described target amount is distributed, comprising:
The recommended amount pre-setting each destination item is the minimum number of its correspondence;
If the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item is greater than zero, the recommended amount of destination item minimum for total weight value is increased 1, and described difference subtracts 1;
If the difference after certainly subtracting is greater than zero, perform described by the recommended amount of destination item minimum for total weight value increasing 1, described difference subtracts the step of 1, until the difference obtained equals zero.
In conjunction with the first possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, the unit weighted value that the attribute information of the described allocation scheme corresponding according to described allocation identification and each destination item is corresponding, described target amount is distributed, comprising:
Determine the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item;
The recommended amount of the destination item that setting unit weighted value is minimum is minimum number and this difference sum that this destination item is corresponding;
For other destination item, the recommended amount arranging arbitrary destination item is the minimum number that described arbitrary destination item is corresponding.
In conjunction with the first possible implementation of first aspect, in the 5th kind of possible implementation of first aspect, the unit weighted value that the attribute information of the described allocation scheme corresponding according to described allocation identification and each destination item is corresponding, described target amount is distributed, comprising:
Determine the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item;
The recommended amount of the destination item that setting unit weighted value is maximum is minimum number and this difference sum that this destination item is corresponding;
For other destination item, the recommended amount arranging arbitrary destination item is the minimum number that described arbitrary destination item is corresponding.
In conjunction with the first possible implementation of first aspect, in the 6th kind of possible implementation of first aspect, the unit weighted value that the attribute information of the described allocation scheme corresponding according to described allocation identification and each destination item is corresponding, described target amount is distributed, comprising:
The recommended amount arranging the destination item that user selects is the minimum number that this destination item is corresponding;
For other destination item, the recommended amount pre-setting arbitrary destination item is the minimum number of its correspondence;
If the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item is greater than zero, the recommended amount of destination item minimum for total weight value in other destination item described is increased 1, and described difference subtracts 1;
If the difference after certainly subtracting is greater than zero, perform and described the recommended amount of destination item minimum for total weight value in other destination item described is increased 1, described difference subtracts the step of 1, until the difference obtained equals zero.
In conjunction with the third of first aspect to any one the possible implementation in the 6th kind, in the 7th kind of possible implementation of first aspect, described recommendation information comprises recommended amount corresponding to each destination item and total weight value.
Second aspect, the embodiment of the present invention provides a kind of information recommending apparatus, comprising:
Receiver module, for the recommendation request that receiving terminal sends, described recommendation request carries allocation identification corresponding to user-selected allocation scheme, target amount and comprises the attribute information of at least two destination items, and described attribute information is for unit weighted value corresponding to each destination item at least two destination items described in identifying;
Distribution module, for the unit weighted value corresponding according to the attribute information of allocation scheme corresponding to described allocation identification and each destination item, distributes described target amount;
First determination module, for according to allocation result, determines recommendation information, and described recommendation information is for identifying described target Quota distribution to the amount of described each destination item;
Sending module, for returning described recommendation information to described terminal.
In the first possible implementation of second aspect, described device also comprises the second determination module, for:
The unit weighted value corresponding according to the attribute information of each destination item, determine the minimum number when total weight value of described each destination item is not less than described target amount, wherein, the total weight value of described each destination item is the product of unit weighted value that this destination item is corresponding and quantity;
Described distribution module, if be less than destination number corresponding to described target amount for the minimum number sum that described each destination item is corresponding, distributes described target amount.
In conjunction with the first possible implementation of second aspect, in the implementation that the second of second aspect is possible, the attribute information of described each destination item comprises each element in this destination item, each elements correlation weighted value, described device also comprises the 3rd determination module, for:
Described attribute information is resolved, obtains each element that each destination item is corresponding;
According to the weighted value of each element corresponding to described each destination item, determine the unit weighted value that described each destination item is corresponding.
In conjunction with the first possible implementation of second aspect, in the third possible implementation of second aspect, described distribution module specifically for:
The recommended amount pre-setting each destination item is the minimum number of its correspondence;
If the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item is greater than zero, the recommended amount of destination item minimum for total weight value is increased 1, and described difference subtracts 1;
If the difference after certainly subtracting is greater than zero, perform described by the recommended amount of destination item minimum for total weight value increasing 1, described difference subtracts the step of 1, until the difference obtained equals zero.
In conjunction with the first possible implementation of second aspect, in the 4th kind of possible implementation of second aspect, described distribution module specifically for:
Determine the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item;
The recommended amount of the destination item that setting unit weighted value is minimum is minimum number and this difference sum that this destination item is corresponding;
For other destination item, the recommended amount arranging arbitrary destination item is the minimum number that described arbitrary destination item is corresponding.
In conjunction with the first possible implementation of second aspect, in the 5th kind of possible implementation of second aspect, described distribution module specifically for:
Determine the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item;
The recommended amount of the destination item that setting unit weighted value is maximum is minimum number and this difference sum that this destination item is corresponding;
For other destination item, the recommended amount arranging arbitrary destination item is the minimum number that described arbitrary destination item is corresponding.
In conjunction with the first possible implementation of second aspect, in the 6th kind of possible implementation of second aspect, described distribution module specifically for:
The recommended amount arranging the destination item that user selects is the minimum number that this destination item is corresponding;
For other destination item, the recommended amount pre-setting arbitrary destination item is the minimum number of its correspondence;
If the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item is greater than zero, the recommended amount of destination item minimum for total weight value in other destination item described is increased 1, and described difference subtracts 1;
If the difference after certainly subtracting is greater than zero, perform and described the recommended amount of destination item minimum for total weight value in other destination item described is increased 1, described difference subtracts the step of 1, until the difference obtained equals zero.
In conjunction with the third of second aspect to any one the possible implementation in the 6th kind, in the 7th kind of possible implementation of second aspect, described recommendation information comprises recommended amount corresponding to each destination item and total weight value.
The third aspect, the embodiment of the present invention provides a kind of server, comprises any one information recommending apparatus as above.
Implement the embodiment of the present invention, the recommendation request that server receiving terminal sends, described recommendation request carries allocation identification, target amount and comprises the attribute information of at least two destination items; Allocation scheme corresponding to described allocation identification is adopted to distribute described target amount, by target Quota distribution on destination item corresponding to attribute information; According to allocation result, the recommendation information of each destination item at least two destination items described in acquisition; Described recommendation information is returned to described terminal.Adopt the embodiment of the present invention, recommend relevant information by the actual demand of terminal to terminal, the accuracy of recommendation information can be improved.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of information recommendation method that the embodiment of the present invention provides;
Fig. 2 is another schematic flow sheet of a kind of information recommendation method that the embodiment of the present invention provides;
Fig. 2 a is the schematic flow sheet of a kind of distribution method that Fig. 2 provides;
Fig. 2 b is another schematic flow sheet of a kind of distribution method that Fig. 2 provides;
Fig. 2 c is the another schematic flow sheet of a kind of distribution method that Fig. 2 provides;
Fig. 2 d is a schematic flow sheet again of a kind of distribution method that Fig. 2 provides;
Fig. 3 is the example schematic of a kind of information recommendation method that the embodiment of the present invention provides;
Fig. 3 a is the another kind display schematic diagram that Fig. 3 provides;
Fig. 3 b is the another kind display schematic diagram that Fig. 3 provides;
Fig. 3 c is the another kind display schematic diagram that Fig. 3 provides;
Fig. 4 is the structural representation of a kind of information recommending apparatus that the embodiment of the present invention provides;
Fig. 5 is another structural representation of a kind of information recommending apparatus that the embodiment of the present invention provides;
Fig. 6 is the structural representation of a kind of server that the embodiment of the present invention provides;
Fig. 7 is the another structural representation of a kind of information recommending apparatus that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of information recommendation method, device and server, the recommendation request that server receiving terminal sends, wherein, carry allocation identification, target amount in recommendation request and comprise the attribute information of at least two destination items; The unit weighted value corresponding according to attribute information and allocation scheme corresponding to allocation identification, distribute target amount; Can know that target Quota distribution is to the amount of each destination item according to allocation result, thus determine recommendation information; Recommendation information is returned to terminal.Adopt the embodiment of the present invention, by the actual demand of terminal to its recommendation information, therefore, the accuracy of recommendation information can be improved.A kind of information recommendation method, device and the server that there is provided below in conjunction with accompanying drawing 1-accompanying drawing 7 pairs of embodiment of the present invention describe in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of information recommendation method that the embodiment of the present invention provides, and in embodiments of the present invention, the method can comprise the following steps.
S101: the recommendation request that receiving terminal sends, described recommendation request carries allocation identification corresponding to user-selected allocation scheme, target amount and comprises the attribute information of at least two destination items, and described attribute information is for unit weighted value corresponding to each destination item at least two destination items described in identifying.
In the embodiment of the present invention, server can provide plurality of distribution mode to obtain recommendation information, if terminal expectation obtains the recommendation information for destination item to server, recommendation request is sent to server, simultaneously, also be carried at needing the parameter information transmitted in recommendation request, described parameter information comprises allocation identification corresponding to user-selected allocation scheme, target amount and comprises the attribute information of at least two destination items, and described attribute information is for unit weighted value corresponding to each destination item at least two destination items described in identifying.
The recommendation request that server receiving terminal sends, described recommendation request carries allocation identification, target amount and comprises the attribute information of at least two destination items.Usually, the allocation scheme that different allocation identification is corresponding different, target amount can be the numerical information for representing size.
S102: the unit weighted value that the attribute information of the allocation scheme corresponding according to described allocation identification and each destination item is corresponding, distributes described target amount.
After server receives the recommendation request of terminal transmission, resolve the parameter information carried in recommendation request, thus get allocation identification, target amount and attribute information, attribute information, for identifying different destination items and some related informations relevant to this destination item, can determine by the attribute information of each destination item the unit weighted value that this destination item is corresponding.In the embodiment of the present invention, the unit weighted value corresponding according to the attribute information of each destination item, adopts allocation scheme corresponding to allocation identification to distribute described target amount, the destination item specifying target Quota distribution to described attribute information.
S103: according to allocation result, determines recommendation information, and described recommendation information is for identifying described target Quota distribution to the amount of described each destination item.
According to the allocation result of step S102, can know that target Quota distribution is to the amount of each destination item, in the embodiment of the present invention, according to the distribution amount of each destination item, the recommendation information of each destination item at least two destination items described in acquisition.Wherein, recommendation information can be the amount information specified by allocation result, also can be the out of Memory pushed over out according to allocation result.Concrete, the embodiment of the present invention is not restricted.
S104: return described recommendation information to described terminal.
Server returns accessed recommendation information to this terminal after getting corresponding recommendation information for the recommendation request of terminal, to make terminal by the display of this recommendation information to terminal desktop, for user provides reference proposition.The allocation scheme that the method can directly be expected according to user is distributed target amount, and returns recommendation information according to allocation result.Thus user can get the recommendation information of expectation according to actual needs, the accuracy of the method not only recommendation information is high, and user is without the need to the concrete distribution of hand computation to target amount, reduces labour.
In the information recommendation method that the embodiment of the present invention describes, the recommendation request that server receiving terminal sends, described recommendation request carries allocation identification, target amount and comprises the attribute information of at least two destination items; The unit weighted value corresponding according to the attribute information of each destination item, adopts allocation scheme corresponding to described allocation identification to distribute described target amount, by target Quota distribution on destination item corresponding to attribute information; According to allocation result, the recommendation information of each destination item at least two destination items described in acquisition; Described recommendation information is returned to described terminal.Adopt the embodiment of the present invention, recommend relevant information by the actual demand of terminal to terminal, the accuracy of recommendation information can be improved.
Refer to Fig. 2, Fig. 2 is another schematic flow sheet of a kind of information recommendation method that the embodiment of the present invention provides, and in embodiments of the present invention, the method can comprise the following steps.
S201: the recommendation request that receiving terminal sends, described recommendation request carries allocation identification corresponding to user-selected allocation scheme, target amount and comprises the attribute information of at least two destination items.
In the embodiment of the present invention, destination item is made up of multiple element, each elements correlation weighted value, and accordingly, the corresponding unit weighted value of each destination item, this unit weighted value can be determined according to the weighted value of element each in destination item.Concrete defining method can set according to actual needs, and the embodiment of the present invention is not restricted, and as being the weighted value sum of each element, also can be amassing of the weighted value of each element.For convenience of description, unit weighted value the amassing for the weighted value of element each in this destination item that in the embodiment of the present invention, destination item is corresponding.
In the embodiment of the present invention, described attribute information is for unit weighted value corresponding to each destination item at least two destination items described in identifying.Understandable, attribute information can be directly the unit weighted value of each destination item, also can be the element information of each element in each destination item or the weighted value information etc. of each elements correlation, the unit weighted value of destination item directly can be determined according to this attribute information, concrete, the embodiment of the present invention is not restricted.If the former, then, after server receives recommendation request, perform step S203; If the latter, then after server receives recommendation request, perform step S202, the unit weighted value corresponding according to attribute information determination destination item.
S202: according to described attribute information, determines the unit weighted value that each destination item is corresponding.
In the embodiment of the present invention, the attribute information of described each destination item comprises each element in this destination item, and each elements correlation weighted value, determines according to attribute information the unit weighted value that each destination item is corresponding.Concrete, described attribute information is resolved, obtains each element that each destination item is corresponding, wherein, each elements correlation weighted value; According to the weighted value of each element corresponding to described each destination item, determine the unit weighted value that described each destination item is corresponding.
For convenience of description, embodiment of the present invention hypothetical target project is 4, represents respectively with A, B, C, D, each destination item comprises 2 elements, uses { A1, A2}, { B1 respectively, B2}, { C1, C2}, { D1, D2} represent, wherein, elements A 1 ~ D2 associates a weighted value respectively, represent with value (A1) ~ value (D2) respectively, 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 hypothesis, this hypothesis is only for describing object, and every destination item can implementing the inventive method all belongs to the scope of protection of the invention.
As a kind of feasible embodiment, unit weighted value value (A)=value (A1) * value (A2) of destination item A can be determined; Unit weighted value value (B)=value (B1) * value (B2) of destination item B; Unit weighted value value (C)=value (C1) * value (C2) of destination item C; Unit weighted value value (D)=value (D1) * value (D2) of destination item D.
S203: the unit weighted value corresponding according to the attribute information of each destination item, determine the minimum number when total weight value of described each destination item is not less than described target amount, wherein, the total weight value of described each destination item is the product of unit weighted value that this destination item is corresponding and quantity.
For convenience of description, hypothetical target amount Total represents, according to the unit weighted value of each destination item, determine the minimum number when total weight value of each destination item is not less than this target amount, wherein, the total weight value of each destination item is the product of unit weighted value that this destination item is corresponding and quantity.
Such as: the minimum number that hypothetical target project A is corresponding represents with Num_min (A), then total weight value total (A)=value (A) * Num_min (A) of destination item A, wherein, Num_min (A) for Total and value (A) carry out division arithmetic after the smallest positive integral that rounds 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 minimum number sum corresponding to described each destination item is less than destination number corresponding to described target amount, the unit weighted value that the attribute information of the allocation scheme corresponding according to described allocation identification and each destination item is corresponding, distributes described target amount.
After step S203 determines minimum number corresponding to each project, judge whether the minimum number sum that each destination item is corresponding is less than destination number corresponding to target amount, if be less than, explanation can the allocation scheme corresponding according to allocation identification distribute target amount, by target Quota distribution to each destination item.Concrete allocation scheme can as shown in Fig. 2 a ~ Fig. 2 d.
S205: according to allocation result, determines recommendation information, and described recommendation information is for identifying described target Quota distribution to the amount of described each destination item.
After target Quota distribution, the recommended amount and total weight value that set for each destination item can be known according to allocation result, by the corresponding relation between target amount and destination number, known: the recommended amount corresponding according to each destination item, can determine that target Quota distribution is to the amount of described each destination item, or the total weight value corresponding according to each destination item, also can determine that target Quota distribution is to the amount of described each destination item.Therefore, recommendation information can be defined as the recommended amount that arranges for each destination item and/or total weight value, described recommendation information is for identifying described target Quota distribution to the amount of described each destination item.
S206: return described recommendation information to described terminal.
After getting the recommendation information arranged for each destination item, return described recommendation information to terminal, to make terminal show this recommendation information on display interface, facilitate user to consult, thus user is without the need to the distribution of manual calculations target amount.
In the information recommendation method that the embodiment of the present invention describes, the recommendation request that server receiving terminal sends, described recommendation request carries allocation identification, target amount and comprises the attribute information of at least two destination items; Allocation scheme corresponding to described allocation identification is adopted to distribute described target amount, by target Quota distribution on destination item corresponding to attribute information; According to allocation result, the recommendation information of each destination item at least two destination items described in acquisition; Described recommendation information is returned to described terminal.Adopt the embodiment of the present invention, recommend relevant information by the actual demand of terminal to terminal, the accuracy of recommendation information can be improved.
What deserves to be explained is, in the above-described embodiments, if the minimum number sum that described each destination item is corresponding is less than destination number corresponding to described target amount, then corresponding according to the attribute information of allocation scheme corresponding to described allocation identification and each destination item unit weighted value, distributes described target amount.Consider that concrete allocation scheme has multiple, therefore, uniquely determine the allocation scheme corresponding with this allocation identification by allocation identification.Such as: if allocation identification is the first default allocation identification, then step S204 can as shown in Figure 2 a to the method that described target amount is distributed, and Fig. 2 a is the schematic flow sheet of a kind of distribution method that Fig. 2 provides, and the method can comprise the following steps.
S204a1: the recommended amount pre-setting each destination item is the minimum number of its correspondence.
For convenience of description, destination item A, B, C, the minimum number that D is corresponding uses Num_min (A) respectively, Num_min (B), Num_min (C), Num_min (D) represents, corresponding recommended amount uses Num_rec (A) respectively, Num_rec (B), Num_rec (C), Num_rec (D) represents, then pre-set 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, guarantee that the total weight value that each destination item is corresponding is all greater than target amount, the total weight value of destination item is the product of unit weighted value corresponding to this project quantity allotted corresponding with this project.
S204b1: judge whether the difference of the minimum number sum that destination number corresponding to target amount is corresponding with each destination item is greater than zero.
If be greater than zero, perform step S204c1; If equal zero, be then assigned.
S204c1: the recommended amount of destination item minimum for total weight value is increased 1, and described difference subtracts 1.
Concrete, if the difference of destination number corresponding to the target amount minimum number sum corresponding with each destination item is greater than zero, by the recommended amount of destination item minimum for total weight value increasing 1, described difference subtracts 1; If this difference equals zero, be then assigned, determine that the quantity allotted of each destination item is the recommended amount of its correspondence.For convenience of description, the destination number that target amount Total is corresponding represents with Num, difference Dif represents, then the initial value setting Dif is: Dif=Num-Num_min (A)-Num_min (B)-Num_min (C)-Num_min (D).
Such as: total weight value total (A)=value (A) * Num_rec (A) of destination item A, total weight value total (B)=value (B) * Num_rec (B) of destination item B, total weight value total (C)=value (C) * Num_rec (C) of destination item C, total weight value total (D)=value (D) * Num_rec (D) of destination item D, if difference Dif is greater than zero, according to the total weight value during recommended amount that destination item is corresponding current, determine the destination item that in all destination items, total weight value is minimum, upgrade recommended amount corresponding to the minimum destination item of total weight value and difference.Such as: the recommended amount of this destination item is increased 1, and difference subtracts 1.
For convenience of description, suppose min{total (A), total (B), total (C), total (D) } be total (A), the current the recommended amount then recommended amount of destination item A being updated to this destination item A corresponding adds 1, and difference is updated to current value and subtracts 1.Such as: suppose that the current recommended amount arranged for destination item A is 3, difference is 7, then the recommended amount of destination item A is updated to 4, difference is updated to 6.
S204d1: judge whether the difference after subtracting is greater than zero.
If the difference after certainly subtracting is greater than zero, then performs step S204c1 and continue to distribute target amount, until the difference obtained equals zero; If the difference obtained after subtracting equals zero, then be assigned, the current recommended amount that each destination item is corresponding is server to the recommended amount of this destination item setting or quantity allotted, and the destination number that namely target amount is corresponding distributes to the quantity of this destination item.According to the corresponding relation of target amount and destination number, known, recommended amount directly can reflect that target Quota distribution is to the amount of destination item; Accordingly, the unit weighted value corresponding according to destination item, total weight value also directly can reflect that target Quota distribution is to the amount of destination item.Therefore, can using recommended amount and/or total weight value as recommendation information.
Thus, target amount can be uniformly distributed on each destination item by this distribution method, meanwhile, each destination item to should recommended amount time total weight value be all not less than target amount, from the distribution realized on the one hand target amount, the concrete evaluation work of user can be reduced.
What deserves to be explained is, in the above-described embodiments, if the minimum number sum that described each destination item is corresponding is less than destination number corresponding to described target amount, and described allocation identification is the second default mark, then step S204 can be as shown in Figure 2 b to the method that described target amount is distributed, Fig. 2 b is another schematic flow sheet of a kind of distribution method that Fig. 2 provides, and the method can comprise the following steps.
S204a2: the difference determining the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item.
Concrete, difference Dif=Num-Num_min (A)-Num_min (B)-Num_min (C)-Num_min (D).
S204b2: the recommended amount of the destination item that setting unit weighted value is minimum is minimum number and this difference sum that this destination item is corresponding.
The unit weighted value corresponding respectively according to each destination item, determines the destination item that in all destination items, unit weighted value is minimum, the recommended amount of this destination item is set to minimum number and the difference Dif sum of its correspondence.
Such as: suppose min{value (A), value (B), value (C), value (D) } be value (B), then recommended amount Num_rec (B)=Num_min (the B)+Dif of Offered target project B.
S204c2: for other destination item, the recommended amount arranging arbitrary destination item is the minimum number that described arbitrary destination item is corresponding.
Such as: for destination item A, C, D, recommended amount Num_rec (the A)=Num_min (A) of Offered target project A, recommended amount Num_rec (the D)=Num_min (D) of the recommended amount Num_rec (C) of destination item C=Num_min (C), destination item D.
Thus, can by target Quota distribution on destination item by this distribution method, concrete, the minimum destination item of unit weighted value takies larger share, the total weight value of this destination item is realized maximizing, meanwhile, other destination item to should recommended amount time total weight value be all not less than target amount, the distribution to target amount can be realized from another point of view, reduce the concrete evaluation work of user.
What deserves to be explained is, in the above-described embodiments, if the minimum number sum that described each destination item is corresponding is less than destination number corresponding to described target amount, and described allocation identification is the 3rd default mark, then step S204 can be as shown in Figure 2 c to the method that described target amount is distributed, Fig. 2 c is the another schematic flow sheet of a kind of distribution method that Fig. 2 provides, and the method can comprise the following steps.
S204a3: the difference determining the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item.
S204b3: the recommended amount of the destination item that setting unit weighted value is maximum is minimum number and this difference sum that this destination item is corresponding.
The unit weighted value corresponding respectively according to each destination item, determines the destination item that in all destination items, unit weighted value is maximum, the recommended amount of this destination item is set to minimum number and the difference Dif sum of its correspondence.
Such as: suppose min{value (A), value (B), value (C), value (D) } be value (C), then recommended amount Num_rec (C)=Num_min (the C)+Dif of Offered target project C.
S204c3: for other destination item, the recommended amount arranging arbitrary destination item is the minimum number that described arbitrary destination item is corresponding.
Such as: for destination item A, B, D, recommended amount Num_rec (the A)=Num_min (A) of Offered target project A, recommended amount Num_rec (the D)=Num_min (D) of the recommended amount Num_rec (B) of destination item B=Num_min (B), destination item D.
Thus, can by target Quota distribution on destination item by this distribution method, concrete, the maximum destination item of unit weighted value takies larger share, the total weight value of this destination item is realized maximizing, meanwhile, other destination item to should recommended amount time total weight value be all not less than target amount, the distribution to target amount can be realized from another point of view, reduce the concrete evaluation work of user.
What deserves to be explained is, in the above-described embodiments, if the minimum number sum that described each destination item is corresponding is less than destination number corresponding to described target amount, and described allocation identification is the 4th default mark, then step S204 can be as shown in Figure 2 d to the method that described target amount is distributed, Fig. 2 d is a schematic flow sheet again of a kind of distribution method that Fig. 2 provides, and the method can comprise the following steps.
S204a4: the recommended amount arranging the destination item that user selects is the minimum number that this destination item is corresponding.
In this distribution method, user's selection portion partial objectives for project, when terminal sends recommendation request, identifies this partial target project in attribute information.The recommended amount of the destination item that user selects by server is set to minimum number corresponding to this destination item.
Such as: suppose that the partial target project that user selects is A, B, then recommended amount Num_rec (the B)=Num_min (B) of the recommended amount Num_rec (A)=Num_min (A), destination item B of Offered target project A.
S204b4: for other destination item, the recommended amount pre-setting arbitrary destination item is the minimum number of its correspondence.
Such as: other destination item is C, D, recommended amount Num_rec (the D)=Num_min (D) of the recommended amount Num_rec (C) of destination item C=Num_min (C), destination item D is pre-set.
S204c4: judge whether the difference of the minimum number sum that destination number corresponding to target amount is corresponding with each destination item is greater than zero.
If be greater than zero, perform step S204d4; If equal zero, be then assigned, server gives the minimum number that the recommended amount of each destination item setting is namely corresponding.
S204d4: the recommended amount of destination item minimum for total weight value in other destination item described is increased 1, and described difference subtracts 1.
If the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item is greater than zero, the recommended amount of destination item minimum for total weight value in other destination item described is increased 1, and described difference subtracts 1; If this difference equals zero, be then assigned.Wherein, the initial value of difference Dif is: Dif=Num-Num_min (A)-Num_min (B)-Num_min (C)-Num_min (D).
For convenience of description, suppose min{total (C), total (D) } be total (C), then the current recommended amount recommended amount of destination item C being updated to this destination item C corresponding adds 1, and difference is updated to current value and subtracts 1.Such as: suppose that the current recommended amount arranged for destination item C is 5, difference is 3, then the recommended amount of destination item C is updated to 6, difference is updated to 2.
S204e4: judge whether the difference after subtracting is greater than zero.
If the difference after certainly subtracting is greater than zero, then performs step S204c4 and continue to distribute target amount, until the difference obtained equals zero; If the difference after certainly subtracting equals zero, be then assigned.The current recommended amount that each destination item is corresponding is the recommended amount that server is arranged to this destination item.
Thus, can by target Quota distribution to each destination item by this distribution method, concrete, the recommended amount of destination item user selected is set to the minimum number of its correspondence, amount remaining in target amount is uniformly distributed in other destination item.In this distribution method, each destination item to should recommended amount time total weight value be all not less than target amount, the distribution to target amount can be realized from another point of view, reduce the concrete evaluation work of user.
After being assigned, according to the corresponding relation between target amount and destination number, recommended amount that each destination item is corresponding, can determine that target Quota distribution is to the amount of described each destination item; Or according to unit weighted value corresponding to each destination item and total weight value, also can determine that target Quota distribution is to the amount of described each destination item.Therefore, recommendation information can be defined as the recommended amount that arranges for each destination item and/or total weight value, described recommendation information is for identifying described target Quota distribution to the amount of described each destination item.
After distribution method described by Fig. 2 a ~ Fig. 2 d is distributed target amount, the recommendation information of each destination item at least two destination items described in determining.Concrete, according to recommended amount or the weighted value of each destination item, obtain the recommendation information of described each destination item, wherein, described recommendation information can be the recommended amount set for this destination item, also can be this destination item to should recommended amount time total weight value, or both combinations, certainly, can also be directly that target Quota distribution is to the amount of each destination item.
Understand the embodiment of the present invention for convenience, below to bet the scene of retrial scheme in soccer lottery, information recommendation method described in the invention is illustrated.But what deserves to be explained is, the present invention is not limited to the scene that lifted specific examples describes, and every use scenes can implementing the inventive method all belongs to the scope of protection of the invention.
Refer to Fig. 3, Fig. 3 is the example schematic of a kind of information recommendation method that the embodiment of the present invention provides, and in this figure, content related to the present invention is only shown.
User, when selecting retrial scheme to bet, can distribute the note number of the combination selected according to demand.The present invention can be applied to the similar scene etc. of this scene or this scene, is recommended the note number of each combination by server to user, and the theoretical bonus to this combination when should note number, reduces the amount of calculation of user.
For convenience of understanding, the planned purchases amount of money " 100 " inputted by user in Fig. 3 can be understood as the target amount described in above-described embodiment; In Fig. 3, concrete 4 listed combinations can be understood as the destination item described in above-described embodiment; " 1 is negative ", " 2 is negative " can be understood as the element forming destination item A, " 1 is negative ", " 2 is flat " can be understood as the element forming destination item B, " 1 victory ", " 2 is negative " can be understood as the element forming destination item C, and " 1 victory ", " 2 is flat " can be understood as the element forming destination item D; " on average optimize ", " popular optimize ", " unexpected winner optimization ", " break even optimization " can be understood as the allocation identification in above-described embodiment, allocation identification is different, the method that server distributes target amount is different, concrete, according to user-selected allocation scheme determination allocation identification.Such as: " on average optimize " can the first allocation identification described in corresponding diagram 2a, " popular optimization " second allocation identification described in corresponding diagram 2b, the 3rd allocation identification described in " unexpected winner optimization " corresponding diagram 2c, " break even optimization " the 4th allocation identification described in corresponding diagram 2d; The concrete numerical value that note number, theoretical bonus item are enumerated is the recommendation information that server returns, and wherein, " note number " can recommended amount in corresponding above-described embodiment, and " theoretical bonus " can total weight value in corresponding above-described embodiment.
The unit weighted value of hypothetical target project A, B, C, D difference correspondence as shown in Figure 3, when user clicks " on average optimizing " button on the surface, terminal obtains the parameter information on this interface, as target amount " 100 ", allocation identification " average optimize corresponding the 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 sends recommendation request to server after getting these parameter informations, wherein, carries this parameter information in recommendation request.After server receives the recommendation request of terminal transmission, the unit weighted value corresponding according to the attribute information of the allocation identification of carrying in this recommendation request and each destination item, (concrete assigning process refers to Fig. 2 a to adopt the allocation scheme corresponding with this allocation identification to distribute target amount, repeat no more) herein, the recommended amount arranged for each destination item can be got after being assigned, namely the note number " 18 " shown in Fig. 3, " 16 ", " 9 ", " 7 ", further, total weight value can also be calculated according to accessed recommended amount and unit weighted value corresponding to destination item, namely the theoretical bonus " 167.31 " shown in Fig. 3, " 175.76 ", " 188.10 ", " 172.90 ", return recommendation information to terminal, recommendation information can be recommended amount, also can recommended amount and to should recommended amount time total weight value.After terminal receives the recommendation information that server returns, show, concrete display result can be as shown in Figure 3.As can be seen from Figure 3, the theoretical bonus of every combination reaches unanimity, then no matter be which combination hit in these 4 combinations, the bonus that user obtains is similar.Therefore, if user expects this result, then can select " on average optimizing ".
Further, for convenience of understanding, suppose user clicks " popular optimization ", other condition is the same with foregoing description process, then allocation identification is the second allocation identification, and server adopts the distribution method shown in Fig. 2 b to distribute target amount, after terminal receives the recommendation information that server returns, display result can as shown in Figure 3 a, and Fig. 3 a is the another kind display schematic diagram that Fig. 3 provides.As can be seen from Fig. 3 a, the theoretical bonus of that combination of unit weighted value minimum (maximum probability of hit) maximizes, and the theoretical bonus of other combination is all tending towards target amount but is greater than target amount.No matter be then which combination hit in these 4 combinations, the bonus that user obtains all is not less than target amount, and meanwhile, the bonus of that note combination that hit probability is maximum maximizes.
Further, for convenience of understanding, suppose user clicks " unexpected winner optimization ", other condition is the same with foregoing description process, then allocation identification is the 3rd allocation identification, and server adopts the distribution method shown in Fig. 2 c to distribute target amount, after terminal receives the recommendation information that server returns, display result can as shown in Figure 3 b, and Fig. 3 b is the another kind display schematic diagram that Fig. 3 provides.As can be seen from Fig. 3 b, the theoretical bonus of that combination of unit weighted value maximum (probability of hit is minimum) maximizes, and the theoretical bonus of other combination is all tending towards target amount but is greater than target amount.No matter be then which combination hit in these 4 combinations, the bonus that user obtains all is not less than target amount, and meanwhile, the bonus returning that the highest combination maximizes.
Further, for convenience of understanding, suppose user clicks " break even optimization ", user have selected this combination that sequence number is 1, and other condition is the same with foregoing description process, then allocation identification is the 4th allocation identification, server adopts the distribution method shown in Fig. 2 d to distribute target amount, after terminal receives the recommendation information that server returns, display result can as shown in Figure 3 c, and Fig. 3 c is the another kind display schematic diagram that Fig. 3 provides.As can be seen from Fig. 3 c, the theoretical bonus of Section 1 combination is tending towards target amount but is greater than this target amount, and the theoretical bonus of other combination reaches unanimity.No matter be then which combination hit in these 4 combinations, the bonus that user obtains all is not less than target amount, and meanwhile, the objective cross for user's selection realizes bonus and minimizes, but prerequisite to be greater than target amount, the residue amount in target amount is uniformly distributed in other group item.Therefore, if user is less to a certain assurance, then this can be set to the project of breaking even.Thus, in above-mentioned suggested design, if the destination item that user selects has a hit, then no matter be which hit, all can ensure not lose money.
In actual process, the target amount in above-described embodiment can be the numerical information that integration, ideal money etc. have size, and theoretical bonus can be the prize, article etc. corresponding according to this concrete number, and concrete, the embodiment of the present invention is not restricted.
Be apparatus of the present invention embodiment below, apparatus of the present invention embodiment and the inventive method embodiment belong to same design, for performing the method described in the inventive method embodiment.For convenience of explanation, apparatus of the present invention embodiment only illustrates the part relevant to apparatus of the present invention embodiment, and concrete ins and outs do not disclose, and please refer to the description of the inventive method embodiment, repeats no longer one by one herein.
Refer to Fig. 4, Fig. 4 is the structural representation of a kind of information recommending apparatus that the embodiment of the present invention provides, and in embodiments of the present invention, this device can comprise: receiver module 101, distribution module 102, first determination module 103 and sending module 104.
Receiver module 101, for the recommendation request that receiving terminal sends, described recommendation request carries allocation identification corresponding to user-selected allocation scheme, target amount and comprises the attribute information of at least two destination items, and described attribute information is for unit weighted value corresponding to each destination item at least two destination items described in identifying.
Distribution module 102, for the unit weighted value corresponding according to the attribute information of allocation scheme corresponding to described allocation identification and each destination item, distributes described target amount.
First determination module 103, for according to allocation result, determines recommendation information, and described recommendation information is for identifying described target Quota distribution to the amount of described each destination item.
Sending module 104, for returning described recommendation information to described terminal.
In the information recommending apparatus that the embodiment of the present invention describes, the recommendation request that server receiving terminal sends, described recommendation request carries allocation identification, target amount and comprises the attribute information of at least two destination items; The unit weighted value corresponding according to the attribute information of each destination item, adopts allocation scheme corresponding to described allocation identification to distribute described target amount, by target Quota distribution on destination item corresponding to attribute information; According to allocation result, the recommendation information of each destination item at least two destination items described in acquisition; Described recommendation information is returned to described terminal.Adopt the embodiment of the present invention, recommend relevant information by the actual demand of terminal to terminal, the accuracy of recommendation information can be improved.
Refer to Fig. 5, Fig. 5 is another structural representation of a kind of information recommending apparatus that the embodiment of the present invention provides, in embodiments of the present invention, this device can comprise: receiver module 201, distribution module 202, first determination module 203, sending module 204, second determination module 205 and the 3rd determination module 206.
Receiver module 201, for the recommendation request that receiving terminal sends, described recommendation request carries allocation identification corresponding to user-selected allocation scheme, target amount and comprises the attribute information of at least two destination items, and described attribute information is for unit weighted value corresponding to each destination item at least two destination items described in identifying.
Distribution module 202, for the unit weighted value corresponding according to the attribute information of allocation scheme corresponding to described allocation identification and each destination item, distributes described target amount.
First determination module 203, for according to allocation result, determines recommendation information, and described recommendation information is for identifying described target Quota distribution to the amount of described each destination item.
Sending module 204, for returning described recommendation information to described terminal.
Second determination module 205, for the unit weighted value corresponding according to the attribute information of each destination item, determine the minimum number when total weight value of described each destination item is not less than described target amount, wherein, the total weight value of described each destination item is the product of unit weighted value that this destination item is corresponding and quantity.
Distribution module 202, if be also less than destination number corresponding to described target amount for the minimum number sum that described each destination item is corresponding, distributes described target amount.
In one embodiment, the attribute information of described each destination item comprises each element in this destination item, each elements correlation weighted value, the second determination module 206 for:
Described attribute information is resolved, obtains each element that each destination item is corresponding;
According to the weighted value of each element corresponding to described each destination item, determine the unit weighted value that described each destination item is corresponding.
As a kind of possible embodiment, distribution module 202 specifically for:
The recommended amount pre-setting each destination item is the minimum number of its correspondence;
If the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item is greater than zero, the recommended amount of destination item minimum for total weight value is increased 1, and described difference subtracts 1;
If the difference after certainly subtracting is greater than zero, perform described by the recommended amount of destination item minimum for total weight value increasing 1, described difference subtracts the step of 1, until the difference obtained equals zero.
As the embodiment that another kind is possible, distribution module 202 specifically for:
Determine the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item;
The recommended amount of the destination item that setting unit weighted value is minimum is minimum number and this difference sum that this destination item is corresponding;
For other destination item, the recommended amount arranging arbitrary destination item is the minimum number that described arbitrary destination item is corresponding.
As the embodiment that another kind is possible, distribution module 202 specifically for:
Determine the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item;
The recommended amount of the destination item that setting unit weighted value is maximum is minimum number and this difference sum that this destination item is corresponding;
For other destination item, the recommended amount arranging arbitrary destination item is the minimum number that described arbitrary destination item is corresponding.
As the embodiment that another kind is possible, distribution module 202 specifically for:
The recommended amount arranging the destination item that user selects is the minimum number that this destination item is corresponding;
For other destination item, the recommended amount pre-setting arbitrary destination item is the minimum number of its correspondence;
If the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item is greater than zero, the recommended amount of destination item minimum for total weight value in other destination item described is increased 1, and described difference subtracts 1;
If the difference after certainly subtracting is greater than zero, perform and described the recommended amount of destination item minimum for total weight value in other destination item described is increased 1, described difference subtracts the step of 1, until the difference obtained equals zero.
Preferably, described recommendation information comprises recommended amount corresponding to each destination item and total weight value.
In the information recommending apparatus that the embodiment of the present invention describes, the recommendation request that server receiving terminal sends, described recommendation request carries allocation identification, target amount and comprises the attribute information of at least two destination items; The unit weighted value corresponding according to the attribute information of each destination item, adopts allocation scheme corresponding to described allocation identification to distribute described target amount, by target Quota distribution on destination item corresponding to attribute information; According to allocation result, the recommendation information of each destination item at least two destination items described in acquisition; Described recommendation information is returned to described terminal.Adopt the embodiment of the present invention, recommend relevant information by the actual demand of terminal to terminal, the accuracy of recommendation information can be improved.
Refer to Fig. 6, Fig. 6 is the structural representation of a kind of server that the embodiment of the present invention provides, in embodiments of the present invention, server 10 comprises any one information recommending apparatus as above, concrete, refer to the detailed description of said method embodiment and device embodiment, repeat no more herein.
Refer to Fig. 7, Fig. 7 is the another structural representation of a kind of information recommending apparatus that the embodiment of the present invention provides, for performing information recommendation method disclosed in the embodiment of the present invention, this device can comprise: at least one processor 301, such as CPU, at least one network interface 304 or other user interfaces 303, storer 305, at least one communication bus 302.Communication bus 302 is for realizing the connection communication between these assemblies.Wherein, user interface 303 optionally can comprise USB interface and other standards interface, wireline interface.Network interface 304 optionally can comprise Wi-Fi interface and other wave points.Storer 305 may comprise high-speed RAM storer, still may comprise non-labile storer (non-volatile memory), such as at least one magnetic disk memory.Storer 305 optionally can comprise at least one and be positioned at memory storage away from aforementioned processor 301.As shown in Figure 7, operating system 3051 and application program 3052 can be comprised as in a kind of storer 305 of computer-readable storage medium.
In some embodiments, storer 305 stores following element, executable module or data structure, or their subset, or their superset:
Operating system 3051, comprises various system program, for realizing various basic business and processing hardware based task;
Application program 3052, comprise the various application program such as the comparison program of data block and the delete program of target data block in the setting program of the deblocking parameter of objective network data, the partition program of target data block, target data block and database, for realizing various applied business.
Particularly, processor 301, for calling the program stored in storer 305, performs following operation:
The recommendation request that receiving terminal sends, described recommendation request carries allocation identification corresponding to user-selected allocation scheme, target amount and comprises the attribute information of at least two destination items, and described attribute information is for unit weighted value corresponding to each destination item at least two destination items described in identifying;
The unit weighted value that the attribute information of the allocation scheme corresponding according to described allocation identification and each destination item is corresponding, distributes described target amount;
According to allocation result, determine recommendation information, described recommendation information is for identifying described target Quota distribution to the amount of described each destination item;
Described recommendation information is returned to described terminal.
In another kind of embodiment, before processor 301 performs the described operation distributed described target amount, also comprise and perform following operation:
The unit weighted value corresponding according to the attribute information of each destination item, determine the minimum number when total weight value of described each destination item is not less than described target amount, wherein, the total weight value of described each destination item is the product of unit weighted value that this destination item is corresponding and quantity;
If the minimum number sum that described each destination item is corresponding is less than destination number corresponding to described target amount, perform the described operation that described target amount is distributed.
In another kind of embodiment, the attribute information of described each destination item comprises each element in this destination item, each elements correlation weighted value, processor 301 performs the described unit weighted value corresponding according to the attribute information of each destination item, before determining the operation of the minimum number when total weight value of described each destination item is not less than described target amount, also comprise and perform following operation:
Described attribute information is resolved, obtains each element that each destination item is corresponding;
According to the weighted value of each element corresponding to described each destination item, determine the unit weighted value that described each destination item is corresponding.
In another kind of embodiment, processor 301 performs unit weighted value corresponding to the attribute information of the described allocation scheme corresponding according to described allocation identification and each destination item, distributes described target amount, comprises and performs following operation:
The recommended amount pre-setting each destination item is the minimum number of its correspondence;
If the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item is greater than zero, the recommended amount of destination item minimum for total weight value is increased 1, and described difference subtracts 1;
If the difference after certainly subtracting is greater than zero, perform described by the recommended amount of destination item minimum for total weight value increasing 1, described difference subtracts the step of 1, until the difference obtained equals zero.
In another kind of embodiment, processor 301 performs unit weighted value corresponding to the attribute information of the described allocation scheme corresponding according to described allocation identification and each destination item, distributes described target amount, specifically comprises and performs following operation:
Determine the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item;
The recommended amount of the destination item that setting unit weighted value is minimum is minimum number and this difference sum that this destination item is corresponding;
For other destination item, the recommended amount arranging arbitrary destination item is the minimum number that described arbitrary destination item is corresponding.
In another kind of embodiment, processor 301 performs unit weighted value corresponding to the attribute information of the described allocation scheme corresponding according to described allocation identification and each destination item, distributes described target amount, specifically comprises and performs following operation:
Determine the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item;
The recommended amount of the destination item that setting unit weighted value is maximum is minimum number and this difference sum that this destination item is corresponding;
For other destination item, the recommended amount arranging arbitrary destination item is the minimum number that described arbitrary destination item is corresponding.
In another kind of embodiment, processor 301 performs unit weighted value corresponding to the attribute information of the described allocation scheme corresponding according to described allocation identification and each destination item, distributes described target amount, specifically comprises and performs following operation:
The recommended amount arranging the destination item that user selects is the minimum number that this destination item is corresponding;
For other destination item, the recommended amount pre-setting arbitrary destination item is the minimum number of its correspondence;
If the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item is greater than zero, the recommended amount of destination item minimum for total weight value in other destination item described is increased 1, and described difference subtracts 1;
If the difference after certainly subtracting is greater than zero, perform and described the recommended amount of destination item minimum for total weight value in other destination item described is increased 1, described difference subtracts the step of 1, until the difference obtained equals zero.
In another kind of embodiment, described recommendation information comprises recommended amount corresponding to each destination item and total weight value.
In the technical scheme that the embodiment of the present invention describes, the recommendation request that server receiving terminal sends, described recommendation request carries allocation identification, target amount and comprises the attribute information of at least two destination items; The unit weighted value corresponding according to the attribute information of each destination item, adopts allocation scheme corresponding to described allocation identification to distribute described target amount, by target Quota distribution on destination item corresponding to attribute information; According to allocation result, the recommendation information of each destination item at least two destination items described in acquisition; Described recommendation information is returned to described terminal.Adopt the embodiment of the present invention, recommend relevant information by the actual demand of terminal to terminal, the accuracy of recommendation information can be improved.
In the description of this instructions, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, not necessarily must for identical embodiment or example to the schematic representation of above-mentioned term.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this instructions or example and different embodiment or example can carry out combining and combining by those skilled in the art.
The feature of the different embodiment described in this instructions and different embodiment can carry out combining and combining by those skilled in the art.Module in all embodiments of the present invention or unit, universal integrated circuit can be passed through, such as CPU (Central Processing Unit, central processing unit), or realized by ASIC (Application Specific Integrated Circuit, special IC).
Step in all embodiment methods of the present invention can be carried out order according to actual needs and be adjusted, merges and delete; Module in all embodiment device of the present invention or unit can carry out merging, divide and deleting according to actual needs.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.
Above disclosedly be only preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (17)

1. an information recommendation method, is characterized in that, comprising:
The recommendation request that receiving terminal sends, described recommendation request carries allocation identification corresponding to user-selected allocation scheme, target amount and comprises the attribute information of at least two destination items, and described attribute information is for unit weighted value corresponding to each destination item at least two destination items described in identifying;
The unit weighted value that the attribute information of the allocation scheme corresponding according to described allocation identification and each destination item is corresponding, distributes described target amount;
According to allocation result, determine recommendation information, described recommendation information is for identifying described target Quota distribution to the amount of described each destination item;
Described recommendation information is returned to described terminal.
2. the method for claim 1, is characterized in that, the unit weighted value that the attribute information of the described allocation scheme corresponding according to described allocation identification and each destination item is corresponding, and before distributing described target amount, described method also comprises:
The unit weighted value corresponding according to the attribute information of each destination item, determine the minimum number when total weight value of described each destination item is not less than described target amount, wherein, the total weight value of described each destination item is the product of unit weighted value that this destination item is corresponding and quantity;
If the minimum number sum that described each destination item is corresponding is less than destination number corresponding to described target amount, perform the described step that described target amount is distributed.
3. method as claimed in claim 2, it is characterized in that, the attribute information of described each destination item comprises each element in this destination item, each elements correlation weighted value, the described unit weighted value corresponding according to the attribute information of each destination item, before determining the minimum number when total weight value of described each destination item is not less than described target amount, described method also comprises:
Described attribute information is resolved, obtains each element that each destination item is corresponding;
According to the weighted value of each element corresponding to described each destination item, determine the unit weighted value that described each destination item is corresponding.
4. method as claimed in claim 2, is characterized in that, the unit weighted value that the attribute information of the described allocation scheme corresponding according to described allocation identification and each destination item is corresponding, distributes, comprising described target amount:
The recommended amount pre-setting each destination item is the minimum number of its correspondence;
If the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item is greater than zero, the recommended amount of destination item minimum for total weight value is increased 1, and described difference subtracts 1;
If the difference after certainly subtracting is greater than zero, perform described by the recommended amount of destination item minimum for total weight value increasing 1, described difference subtracts the step of 1, until the difference obtained equals zero.
5. method as claimed in claim 2, is characterized in that, the unit weighted value that the attribute information of the described allocation scheme corresponding according to described allocation identification and each destination item is corresponding, distributes, comprising described target amount:
Determine the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item;
The recommended amount of the destination item that setting unit weighted value is minimum is minimum number and this difference sum that this destination item is corresponding;
For other destination item, the recommended amount arranging arbitrary destination item is the minimum number that described arbitrary destination item is corresponding.
6. as the method that claim 2 is stated, it is characterized in that the unit weighted value that the attribute information of the described allocation scheme corresponding according to described allocation identification and each destination item is corresponding is distributed described target amount, being comprised:
Determine the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item;
The recommended amount of the destination item that setting unit weighted value is maximum is minimum number and this difference sum that this destination item is corresponding;
For other destination item, the recommended amount arranging arbitrary destination item is the minimum number that described arbitrary destination item is corresponding.
7. method as claimed in claim 2, is characterized in that, the unit weighted value that the attribute information of the described allocation scheme corresponding according to described allocation identification and each destination item is corresponding, distributes, comprising described target amount:
The recommended amount arranging the destination item that user selects is the minimum number that this destination item is corresponding;
For other destination item, the recommended amount pre-setting arbitrary destination item is the minimum number of its correspondence;
If the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item is greater than zero, the recommended amount of destination item minimum for total weight value in other destination item described is increased 1, and described difference subtracts 1;
If the difference after certainly subtracting is greater than zero, perform and described the recommended amount of destination item minimum for total weight value in other destination item described is increased 1, described difference subtracts the step of 1, until the difference obtained equals zero.
8. the method as described in any one of claim 4-7, is characterized in that, described recommendation information comprises recommended amount corresponding to each destination item and total weight value.
9. an information recommending apparatus, is characterized in that, comprising:
Receiver module, for the recommendation request that receiving terminal sends, described recommendation request carries allocation identification corresponding to user-selected allocation scheme, target amount and comprises the attribute information of at least two destination items, and described attribute information is for unit weighted value corresponding to each destination item at least two destination items described in identifying;
Distribution module, for the unit weighted value corresponding according to the attribute information of allocation scheme corresponding to described allocation identification and each destination item, distributes described target amount;
First determination module, for according to allocation result, determines recommendation information, and described recommendation information is for identifying described target Quota distribution to the amount of described each destination item;
Sending module, for returning described recommendation information to described terminal.
10. device as claimed in claim 9, it is characterized in that, described device also comprises the second determination module, for:
The unit weighted value corresponding according to the attribute information of each destination item, determine the minimum number when total weight value of described each destination item is not less than described target amount, wherein, the total weight value of described each destination item is the product of unit weighted value that this destination item is corresponding and quantity;
Described distribution module, if be less than destination number corresponding to described target amount for the minimum number sum that described each destination item is corresponding, distributes described target amount.
11. devices as claimed in claim 10, is characterized in that, the attribute information of described each destination item comprises each element in this destination item, each elements correlation weighted value, and described device also comprises the 3rd determination module, for:
Described attribute information is resolved, obtains each element that each destination item is corresponding;
According to the weighted value of each element corresponding to described each destination item, determine the unit weighted value that described each destination item is corresponding.
12. devices as claimed in claim 10, is characterized in that, described distribution module specifically for:
The recommended amount pre-setting each destination item is the minimum number of its correspondence;
If the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item is greater than zero, the recommended amount of destination item minimum for total weight value is increased 1, and described difference subtracts 1;
If the difference after certainly subtracting is greater than zero, perform described by the recommended amount of destination item minimum for total weight value increasing 1, described difference subtracts the step of 1, until the difference obtained equals zero.
13. devices as claimed in claim 10, is characterized in that, described distribution module specifically for:
Determine the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item;
The recommended amount of the destination item that setting unit weighted value is minimum is minimum number and this difference sum that this destination item is corresponding;
For other destination item, the recommended amount arranging arbitrary destination item is the minimum number that described arbitrary destination item is corresponding.
14. devices as claimed in claim 10, is characterized in that, described distribution module specifically for:
Determine the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item;
The recommended amount of the destination item that setting unit weighted value is maximum is minimum number and this difference sum that this destination item is corresponding;
For other destination item, the recommended amount arranging arbitrary destination item is the minimum number that described arbitrary destination item is corresponding.
15. devices as claimed in claim 10, is characterized in that, described distribution module specifically for:
The recommended amount arranging the destination item that user selects is the minimum number that this destination item is corresponding;
For other destination item, the recommended amount pre-setting arbitrary destination item is the minimum number of its correspondence;
If the difference of the minimum number sum that destination number corresponding to described target amount is corresponding with described each destination item is greater than zero, the recommended amount of destination item minimum for total weight value in other destination item described is increased 1, and described difference subtracts 1;
If the difference after certainly subtracting is greater than zero, perform and described the recommended amount of destination item minimum for total weight value in other destination item described is increased 1, described difference subtracts the step of 1, until the difference obtained equals zero.
16. devices as described in any one of claim 12-15, it is characterized in that, described recommendation information comprises recommended amount corresponding to each destination item and total weight value.
17. 1 kinds of servers, is characterized in that, comprise the information recommending apparatus as described in any one of claim 9-16.
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 true CN104951523A (en) 2015-09-30
CN104951523B 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)

Cited By (1)

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

Citations (4)

* 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
US20030182295A1 (en) * 2002-03-20 2003-09-25 Fujitsu Limited Location information recommending apparatus, method, and storage medium
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

Patent Citations (4)

* 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
US20030182295A1 (en) * 2002-03-20 2003-09-25 Fujitsu Limited Location information recommending apparatus, method, and storage medium
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

Cited By (1)

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

Also Published As

Publication number Publication date
CN104951523B (en) 2019-03-26

Similar Documents

Publication Publication Date Title
CN112005523A (en) Method and node for enabling intelligent contracts to be executed in blockchain networks
CN110830234B (en) User traffic distribution method and device
CN105095263B (en) method and device for generating card number
CN110231987A (en) A kind of data processing method and relevant apparatus
CN105469294A (en) Purchase request processing method and purchase request processing device
CN110852559A (en) Resource allocation method and device, storage medium and electronic device
CN113315672A (en) Flow distribution method and device, electronic equipment and computer readable storage medium
US20170104683A1 (en) Dynamically segmenting traffic for a/b testing in a distributed computing environment
CN115222338B (en) Material purchasing system, purchasing list generation method and component
CN109529325A (en) Reward distribution method, device, game management servers and readable storage medium storing program for executing
CN109087061A (en) A kind of data task distribution method, device, equipment and medium
CN106161389A (en) Cheating identification method and device and terminal
CN104951523A (en) Information recommendation method and device and server
CN110544159B (en) Map information processing method and device, readable storage medium and electronic equipment
CN110837421B (en) Task allocation method and device
CN111027024A (en) Lottery drawing method, device, equipment, storage medium and program product
CN105511959A (en) Method and device for distributing virtual resource
CN113434770B (en) Business portrait analysis method and system combining electronic commerce and big data
CN113194107B (en) Internet-based regional characteristic addressing method and device
CN115408034A (en) Vehicle-mounted controller upgrading method and device, electronic equipment and storage medium
CN115185434A (en) Vehicle application scene processing method, device, equipment and storage medium
CN108197196A (en) Determining method, apparatus, equipment and the storage medium of chip identification code
CN108305191A (en) A kind of methodology of program of real estate enterprise cost
CN104240016A (en) Management method and device for users in virtual place
CN107872687A (en) Authority distributing method and system in monitoring system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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