Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related toDuring attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodimentDescribed in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appendedThe example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is according to a kind of flow chart of object ranking method shown in an exemplary embodiment, the object ranking methodApplied in server, as shown in Figure 1, the object ranking method includes the following steps.
In a step 101, the number of votes obtained and issuing time of each object are obtained respectively.
In a step 102, the issuing time of each object is subtracted into fiducial time, obtains the time difference of each object,The fiducial time is earlier than issuing time.
In step 103, determine that the ranking of each object obtains according to the time difference of each object and corresponding number of votes obtainedPoint, the Rank scores and time difference correlation, the Rank scores and number of votes obtained correlation.
At step 104, ranking is carried out to each object according to the Rank scores of each object.
In conclusion the object ranking method that the disclosure provides, by the time difference according to each object and correspondingNumber of votes obtained determines the Rank scores of each object, and the Rank scores and time difference correlation, the Rank scores are with obtainingPoll correlation;Ranking is carried out to each object according to the Rank scores of each object, according to number of votes obtained and time differenceValue is to each object ranking, and number of votes obtained and the higher object of time difference are more easy to get higher Rank scores, solveThe problem of object for causing issuing time later according to number of votes obtained ranking is difficult the front-seat position for appearing in ranking has reached increaseThe effect of the recommended intensity of the object later to issuing time.
Fig. 2A is the flow chart of a kind of object ranking method shown according to another exemplary embodiment, the object ranking sideMethod is applied in server, and as shown in Figure 2 A, which includes the following steps.
In step 201, the number of votes obtained and issuing time of each object are obtained respectively.
Object refers to the article with voting function and ranking function.Wherein, object can be the works that website provides, thanSuch as, photo, article, video etc., user can select " to recommend " or " not recommending " to vote for works.Alternatively, object can alsoIt is the information of website orientation, for example, to the answer of problem, user can select " accurate " or " mistake " come to answer for answerBallot.Optionally, user can also can otherwise be got by scanning for getting object to web site contentsObject, the present embodiment do not limit the acquisition modes to object.
When obtaining number of votes obtained, the webpage information of each object can be sent to terminal by server, and terminal believes webpageThe polling option of each object is shown in webpage in breath, after user votes to object according to polling option, serverBallot situation is counted, obtains the number of votes obtained of each object.In addition, server can also when object publishing is in website,The issuing time of simultaneously storage object is recorded, so as to obtain the issuing time of each object.
Optionally, terminal can also include the number of votes obtained of each object and issuing time in webpage, in order to userUnderstand object.Such as Fig. 2 B, Fig. 2 B are according to a kind of display interface schematic diagram of object shown in an exemplary embodiment, in Fig. 2 BIn, terminal respectively illustrates the number of votes obtained and issuing time of picture A, photo B and photo C in webpage.
In step 202, the issuing time of each object is subtracted into fiducial time, obtains the time difference of each object,The fiducial time is earlier than issuing time.
Fiducial time can be preset time, and the fiducial time is earlier than issuing time of the object in website.The present embodimentIn, fiducial time can be the issuing time of website or, webmaster's preset time.
Since the fiducial time that the issuing time of each object is subtracted is identical, it is calculated according to fiducial timeTime difference can be used for representing the newness degree of object.For example, fiducial time can be set as the hair of website by server11 days 22 November of 2014 cloth moment:00, when the issuing time of object A is 12 days 22 November in 2014:When 00, server obtainsObject A time difference be 24 hours;When the issuing time of object B is 21 days 22 November in 2014:When 00, server obtainsObject B time difference for 240 hours, since 240 are more than 24, then object A is newly in object B.
Optionally, the time difference of each object can also be sent to terminal by server, terminal by each object whenBetween difference be shown in webpage, the newness degree of each object is visually known convenient for user.
Server can calculate the Rank scores of the object according to the number of votes obtained or time difference of object, wherein, it is calculatingDuring the Rank scores of each object, need to perform step 203-205.
In step 203, according to the ballot score of the number of votes obtained computing object of object.
Ballot score is used to determine the Rank scores of object.The ballot score of object is higher, illustrates user to the objectRecommended intensity is bigger.Therefore, the Rank scores correlation of the ballot score of object and object.That is, object is votedPoint higher, the Rank scores of object are also higher, and the ranking position of object is also more forward.
Due to issuing time, object relative to the later object of issuing time, has had accumulated a certain number of obtain earlierPoll, if using number of votes obtained as the ballot score of object, branch's far behind hair of voting to obtain of the later object of issuing timeThe ballot score of cloth time object earlier, so that the later object of issuing time can come issuing time object earlierLater, cause inaccurate to the ranking of object.
For example, the issuing time of object A is on January 1st, 2013, the issuing time of object B is on May 1st, 2014, rightWhen being issued as B, object A has obtained 9999 number of votes obtained.Number of votes obtained of the server in the object A that on May 4th, 2014 obtains beThe number of votes obtained of 10000, object B be 100, if at this point, server using the number of votes obtained of object as the ballot score of object, althoughThe number of votes obtained growth rate of object B is more than the number of votes obtained growth rate of object A, but object B is lagged far behind with 100 ballot scoreIn the 10000 ballot score of object A, the ranking of object B is after object A.
Therefore, in order to reduce influence of the issuing time to score of voting, it can be calculated and thrown according to the growth trend of votesTicket score, to reduce the gap of ballot score of the issuing time earlier between object and the later object of issuing time.This realityIt applies example to illustrate for by growth trend of the logarithm to calculate votes, then the method shown in Fig. 2 C may be used and calculateThe step of ballot score of object, this method, is as follows:
203a:If number of votes obtained includes agreeing with poll, to be more than 1 positive integer as the truth of a matter, counted using the first poll as antilogThe first logarithm is calculated, which is the higher value agreed in poll and 1.
203b:First logarithm is determined as score of voting.
If the number of votes obtained of object include agree with poll, server relatively agrees with poll and 1 size, will agree with poll andHigher value in 1 is determined as the first poll, using first poll as antilog, is determined as the truth of a matter with preset 1 positive integer of being more thanThe first logarithm is calculated, which is determined as score of voting.
Due to requiring antilog in logarithm operation as positive integer, server makees the higher value agreed in poll and 1For antilog, the problem of antilog is 0 when can be 0 to avoid affirmative vote number.In addition, in logarithm, when the truth of a matter is more than 1, calculatePreset 1 positive integer of being more than is determined as the truth of a matter by the logarithm that arrives and antilog correlation, therefore, server, can be withThe ballot score of the low object of number of votes obtained can be higher than by ensuring the ballot score of the high object of number of votes obtained.
For example, the issuing time of object A is 11 days 22 November in 2014:The poll of agreeing with of 00, object A are 100, serverIt compares 100 and is more than 1, be then determined as the first poll by 100, server is determined as the truth of a matter by 10, and the first poll 100 is determined asAntilog, it is 2 that the first logarithm, which is calculated, then the ballot score of object A is then 2;The issuing time of object B is in June, 201411 days 22:The affirmative vote of 00, object B are 1000, and server compares 1000 and is more than 1, then is determined as the first poll by 1000, takesBusiness device is determined as the truth of a matter by 10, and the first poll is determined as antilog, the first logarithm is calculated as 3, then object B votesDivide is then 3.At this point, although the number of votes obtained of object B is compared as more than A 900, the ballot score comparison of object B is as the ballot of AScore is high by 1, therefore, ballot score is calculated according to the growth trend of votes, can reduce issuing time object and hair earlierThe gap of ballot score between cloth time later object.
Optionally, if the number of votes obtained of object includes agreeing with poll and opposes poll, server is shown using Fig. 2 D at this timeMethod computing object ballot score:
203c:If number of votes obtained includes agreeing with poll and opposes poll, poll will be agreed with to subtract opposition poll, obtain pollDifference;
203d:The positive integer that will be greater than 1 is determined as the truth of a matter, calculates the second logarithm by antilog of the second poll, this secondPoll is the higher value in the absolute value and 1 of poll difference;
203e:Second logarithm is determined as score of voting.
Server will agree with poll to subtract opposition poll first, obtain poll difference.Since poll being agreed with to be likely lower than insteadTo poll, the poll difference being calculated at this time is negative, and antilog is required therefore, can first to be counted for positive integer in logarithm operationThe absolute value of poll difference is calculated, then compares the absolute value and 1 of poll difference, by the higher value in the absolute value of poll difference and 1Be determined as the second poll, using second poll as antilog, with it is preset be more than 1 positive integer be determined as the truth of a matter calculate the second logarithmSecond logarithm is finally determined as score of voting by value.
For example, it is 200 to agree with poll, it is 100 to oppose poll, then it is 100 that poll difference, which is calculated, in server.Due to ticketFor higher value between number differences 100 and 1 for 100, then server is determined as the second poll by 100, is determined as the truth of a matter by 10, by theIt is 2 that two polls 100, which are determined as antilog the second logarithm is calculated, then the ballot score of the object is then 2.
In step 204, according to the time score of the time difference computing object of object.
Server can also be according to the time score of the time difference computing object of object, the time score and time differenceCorrelation.
In the present embodiment, server can will obtain the time difference of each object divided by a preset positive integerTime score of the quotient as corresponding object.For example, the time difference of object A is 36000 minutes, the time difference of object BBe 60 minutes, preset positive integer be 6000, then the time of object A be scored at 36000/6000=6, the time score of object BFor 60/6000=0.01.
If the number of votes obtained of object includes agreeing with poll and opposes poll, when opposing poll more than poll is agreed with, gained voteNumber can not embody recommended intensity of the user to the object, and therefore, server can avoid number of votes obtained by the method shown in Fig. 2 EUser's happening to the recommended intensity of object can not be embodied:
204a:Obtain the symbol of poll difference;
204b:Using the symbol of the poll difference as the symbol of time score.
Server can obtain the symbol of poll difference, when the symbol of poll difference is just, that is, agree with poll higher than oppositionDuring poll, determine the symbol of time score for just;When the symbol of poll difference is negative, that is, when agreeing with poll less than poll is opposed,The symbol for determining time score is negative.
For example, the poll of agreeing with when object is 100, it is 50 to oppose poll, and when the time is scored at 4, server is calculatedPoll difference for 50, determine that the time is scored at 4 at this time;When the poll of agreeing with of object is 50, it is 100 to oppose poll, and the time obtainsWhen being divided into 4, the symbol of poll difference that server is calculated is negative, determines that the time is scored at -4 at this time.
In step 205, ballot score with time score is added, obtains Rank scores.
After the ballot score and time score for obtaining each object, server can be by the Rank scores of each objectIt is determined as corresponding ballot the sum of score and time score.For example, when the ballot of object A that server determines is scored at 5, the time- 2 are scored at, then the Rank scores of object A are determined as 3 by server.
In step 206, ranking is carried out to each object according to the Rank scores of each object.
After the Rank scores for obtaining each object, server can be according to the Rank scores of each object to each rightAs carrying out ranking.
Wherein, each object can be carried out ranking by server according to the sequence of Rank scores from high to low.Due to publicationThe time score of time later object is higher than the time score of issuing time object earlier, and is calculated by the way of logarithmThe ballot score of each object can reduce the ballot score of the later object of issuing time and issuing time object earlierGap between score of voting, therefore, the later object of issuing time is easier to appear in the front-seat position of ranking, so as to obtainRecommend.
In order to make it easy to understand, the present embodiment is by taking the ranking procedure to object A, object B, object C, object D and object E as an exampleIt illustrates.In this embodiment, the issuing time of object A is 11 days 22 January in 2014:00, it is 10000 to agree with poll;Object BIssuing time be 11 days 22 January in 2014:00, it is 100 to agree with poll;The issuing time of object C is on January 11st, 201422:00, it is 10000 to agree with poll, and it is 9000 to oppose poll;The issuing time of object D is 31 days 22 January in 2014:00, it agrees withPoll is 10000, and it is 9000 to oppose poll;The issuing time of object E is 31 days 22 January in 2014:00, agree with the poll to be9000, it is 10000 to oppose poll.
Assuming that fiducial time is 1 day 22 January in 2014:00, truth of a matter when calculating the logarithm of each object is 10, then takesThe time difference that object A is calculated in business device as unit of minute is 24*10*60=14400, and the ballot of object A is scored at log(10000,10)=4, time are scored at 14400/144000=0.1, then the Rank scores of object A are 4+0.1=4.1;ServiceThe time difference that object B is calculated in device as unit of minute is 24*10*60=14400, and the ballot of object B is scored at log(100,10)=2, time are scored at 14400/144000=0.1, then the Rank scores of object B are 2+0.1=2.1;ServerThe time difference that object C is calculated as unit of minute is 24*10*60=14400, and poll difference is 1000, the throwing of object CTicket is scored at log (1000,10)=3, and the time is scored at 14400/144000=0.1, then the Rank scores of object C are 3+0.1=3.1;The time difference that object D is calculated in server as unit of minute is 24*30*60=43200, the ballot of object DLog (1000,10)=3 is scored at, the time is scored at 43200/144000=0.3, and poll difference is 1000, then the row of object DName is scored at 3+0.3=3.3;The time difference that object E is calculated in server as unit of minute is 24*30*60=43200, poll difference is -1000, and the ballot of object E is scored at log (1000,10)=3, and the time is scored at 43200/144000=0.3, then the Rank scores of object E are 3-0.3=2.7.
The Rank scores that server calculates object A are 4.1, the Rank scores of object B are 2.1, the Rank scores of object CRank scores for 3.1, object D are 3.3, the Rank scores of object E are 2.7, then server by Rank scores from high to lowSequence carries out ranking to above-mentioned object, and obtained rank order is object A, object D, object C, object E, object B.
In conclusion the object ranking method that the disclosure provides, by the time difference according to each object and correspondingNumber of votes obtained determines the Rank scores of each object, and the Rank scores and time difference correlation, the Rank scores are with obtainingPoll correlation;Ranking is carried out to each object according to the Rank scores of each object, according to number of votes obtained and time differenceValue is to each object ranking, and number of votes obtained and the higher object of time difference are more easy to get higher Rank scores, solveThe problem of object for causing issuing time later according to number of votes obtained ranking is difficult the front-seat position for appearing in ranking has reached increaseThe effect of the recommended intensity of the object later to issuing time.
In addition, the symbol of poll difference is obtained, it, can be by ticket using the symbol of the poll difference as the symbol of time scoreInfluences of symbol of number differences is added in the ranking to object, if the symbol of poll difference for just, time score be also just,Server object can be come ranking by front position;If the symbol of poll difference is negative, time score is also negative, serviceObject can be come the position rearward of ranking by device so that server to the ranking of object can real embodiment user to objectRecommended intensity.
Fig. 3 is according to a kind of block diagram of object ranking device shown in an exemplary embodiment, which shouldFor in server, as shown in figure 3, the object ranking device includes:First acquisition module 310, obtains second acquisition module 320Divide determining module 330 and ranking generation module 340.
First acquisition module 310 is configured to obtain the number of votes obtained and issuing time of each object;
Second acquisition module 320 is configured as the issuing time of each object for obtaining first acquisition module 310Fiducial time is subtracted, obtains the time difference of each object, the fiducial time is earlier than issuing time;
The score determining module 330 is configured as the time difference of each object obtained according to second acquisition module 320The corresponding number of votes obtained that value and first acquisition module 310 obtain determines the Rank scores of each object, the Rank scores and whenBetween difference correlation, the Rank scores and number of votes obtained correlation;
The ranking generation module 340, the ranking for being configured as each object determined according to the score determining module 330 obtainDivide and ranking is carried out to each object.
In conclusion the object ranking method that the disclosure provides, by the time difference according to each object and correspondingNumber of votes obtained determines the Rank scores of each object, and the Rank scores and time difference correlation, the Rank scores are with obtainingPoll correlation;Ranking is carried out to each object according to the Rank scores of each object, according to number of votes obtained and time differenceValue is to each object ranking, and number of votes obtained and the higher object of time difference are more easy to get higher Rank scores, solveThe problem of object for causing issuing time later according to number of votes obtained ranking is difficult the front-seat position for appearing in ranking has reached increaseThe effect of the recommended intensity of the object later to issuing time.
Fig. 4 is according to a kind of block diagram of object ranking device shown in an exemplary embodiment, which shouldFor in server, as shown in figure 4, the object ranking device includes:First acquisition module 310, obtains second acquisition module 320Divide determining module 330 and ranking generation module 340.
First acquisition module 310 is configured to obtain the number of votes obtained and issuing time of each object;
Second acquisition module 320 is configured as the issuing time of each object for obtaining first acquisition module 310Fiducial time is subtracted, obtains the time difference of each object, the fiducial time is earlier than issuing time;
The score determining module 330 is configured as the time difference of each object obtained according to second acquisition module 320The corresponding number of votes obtained that value and first acquisition module 330 obtain determines the Rank scores of each object, Rank scores and timeDifference correlation, Rank scores and number of votes obtained correlation;
The ranking generation module 340, the ranking for being configured as each object determined according to the score determining module 330 obtainDivide and ranking is carried out to each object.
Optionally, the score determining module 330, including:Score of voting computational submodule 331, time score calculate submoduleBlock 332 and Rank scores acquisition submodule 333.
Score of voting computational submodule 331, is configured as each object, according to the number of votes obtained computing object of objectBallot score;
Time score computational submodule 332 is configured as the time score of the time difference computing object according to object;
Rank scores acquisition submodule 333 is configured as the ballot score for calculating the ballot score computational submodule 331The time score calculated with the time score computational submodule 332 is added, and obtains Rank scores.
Optionally, the ballot score computational submodule 331, including:First computational submodule 331a and the first determining submoduleBlock 331b.
First computational submodule 331a is configured as number of votes obtained and includes when agreeing with poll, using be more than 1 positive integer asThe truth of a matter calculates the first logarithm by antilog of the first poll, which is the higher value agreed in poll and 1;
It is true to be configured as the first logarithm for calculating first computational submodule 331a by first determination sub-module 331bIt is set to ballot score.
Optionally, the ballot score computational submodule 331, including:
Difference acquisition submodule 331c, when being configured as number of votes obtained including agreeing with poll and opposing poll, by affirmative voteNumber subtracts opposition poll, obtains poll difference;
Second computational submodule 331d, the positive integer for being configured as will be greater than 1 are determined as the truth of a matter, using the second poll as antilogThe second logarithm is calculated, in absolute value and 1 of second poll for the difference acquisition submodule 331c poll differences obtainedHigher value;
Second determination sub-module 331e is configured as determining the second logarithm that second computational submodule 331d is calculatedFor score of voting.
Optionally, the score determining module 330, further includes:Symbol acquisition submodule 334 and symbol determination sub-module 335.
Symbol acquisition submodule 334 is configured as obtaining the symbol of poll difference;
Symbol determination sub-module 335, the symbol for being configured as the poll difference for obtaining the symbol acquisition submodule 334 are madeSymbol for time score.
In conclusion the object ranking method that the disclosure provides, by the time difference according to each object and correspondingNumber of votes obtained determines the Rank scores of each object, and the Rank scores and time difference correlation, the Rank scores are with obtainingPoll correlation;Ranking is carried out to each object according to the Rank scores of each object, according to number of votes obtained and time differenceValue is to each object ranking, and number of votes obtained and the higher object of time difference are more easy to get higher Rank scores, solveThe problem of object for causing issuing time later according to number of votes obtained ranking is difficult the front-seat position for appearing in ranking has reached increaseThe effect of the recommended intensity of the object later to issuing time.
In addition, the symbol of poll difference is obtained, it, can be by ticket using the symbol of the poll difference as the symbol of time scoreInfluences of symbol of number differences is added in the ranking to object, if the symbol of poll difference for just, time score be also just,Server object can be come ranking by front position;If the symbol of poll difference is negative, time score is also negative, serviceObject can be come the position rearward of ranking by device so that server to the ranking of object can real embodiment user to objectRecommended intensity.
About the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this methodEmbodiment in be described in detail, explanation will be not set forth in detail herein.
One exemplary embodiment of the disclosure provides a kind of object ranking device, can realize the object row that the disclosure providesName method, the object ranking device, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, which is configured as:
The issuing time of each object is subtracted into fiducial time, obtains the time difference of each object, the fiducial time is earlyIn issuing time;
The Rank scores of each object, the Rank scores are determined according to the time difference of each object and corresponding number of votes obtainedWith time difference correlation, the Rank scores and number of votes obtained correlation;
Ranking is carried out to each object according to the Rank scores of each object.
Fig. 5 is the block diagram according to a kind of device 500 for object ranking shown in an exemplary embodiment.For example, dressIt puts 500 and may be provided as a server.With reference to Fig. 5, device 500 includes processing component 522, further comprises one or moreA processor and as the memory resource representated by memory 532, can be by the finger of the execution of processing component 522 for storingIt enables, such as application program.The application program stored in memory 532 can include it is one or more each correspond toThe module of one group of instruction.In addition, processing component 522 is configured as execute instruction, to perform above-mentioned object ranking method.
Device 500 can also include the power management that a power supply module 526 is configured as executive device 500, and one hasLine or radio network interface 550 are configured as device 500 being connected to network and input and output (I/O) interface 558.DressPutting 500 can operate based on the operating system for being stored in memory 532, such as Windows ServerTM, Mac OS XTM,UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art will readily occur to the other of the disclosure after considering specification and putting into practice disclosure hereinEmbodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes orAdaptive change follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure orConventional techniques.Description and embodiments are considered only as illustratively, and the true scope and spirit of the disclosure are by following powerProfit requirement is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, andAnd various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claim.