Summary of the invention
In view of this, technical problems to be solved in this application there is provided the method and system of the random carousel of a kind of information, to solve the problem that existing information carousel technical approach is single, broadcasting repetition rate is high and information is excessively browsed.
In order to solve the problems of the technologies described above, this application discloses the method for the random carousel of a kind of information, it is characterized in that, comprising:
Server obtains and need carry out the information of random carousel and sort according to priority;
The carousel number of positions that described server provides in the information being retrieved as described random carousel, and to this quantity with the number of the information of described random relay for round carries out odevity division, be divided into the odd even group of number corresponding with the number of described information;
Described information, again according to the sequencing of information described after described prioritization, is distributed to corresponding described odd even group by described server successively, and then this information is put on carousel position that this odd even group comprises respectively successively;
Described server, according to the described carousel sequence of positions before division, performs successively in conjunction with preset carousel number of times and has put into described carousel information on each described carousel position.
Preferably, server obtains and need carry out the information of random carousel and sort according to priority, is further:
Server obtains the information need carrying out random carousel, and sorts to described information according to preset priority; Wherein,
Described preset priority is the preset priority that sorts according to the keyword of user to described information.
Preferably, the carousel number of positions that described server provides in the information being retrieved as described random carousel, is further:
Described server fixes the remaining carousel number of positions outside carousel position in the removal that the information being retrieved as described random carousel provides.
Preferably, described information, again according to the sequencing of information described after described prioritization, is distributed to corresponding described odd even group by described server successively, and then this information is put into successively respectively on carousel position that this odd even group comprises, is further:
Described server again according to the sequencing of information described after described prioritization and described odd even group according to the posterior clooating sequence of odd number group before even number set, described information is distributed to successively corresponding described odd even group, and then this information is put into respectively successively on carousel position that this odd even group comprises.
Preferably, described information is video, audio frequency and/or Word message further.
In order to solve the problems of the technologies described above, disclosed herein as well is the system of the random carousel of a kind of information, coupling mutually with server, it is characterized in that, this system comprises: obtaining information module, divide position module, arrange module and broadcasting arranges module at random, wherein,
Described obtaining information module, for being obtained by described server need be carried out the information of random carousel and sort according to priority;
Described division position module, for the carousel number of positions that the information being retrieved as described random carousel by described server provides, and to this quantity with the number of the information of described random relay for round carries out odevity division, be divided into the odd even group of number corresponding with the number of described information;
Described module is set at random, the sequencing of the rear described information of sequence is exported for receiving described obtaining information module, described information is distributed to successively the described odd even group that corresponding described division position module exports, and then this information is put into respectively successively on carousel position that this odd even group comprises;
Described broadcasting arranges module, for by described server according to divide before described carousel sequence of positions, perform described setting at random in module successively in conjunction with preset carousel number of times and put into described carousel information on each described carousel position.
Preferably, described obtaining information module, is further used for:
Obtained the information need carrying out random carousel by described server, and according to preset priority, described information is sorted; Wherein,
Described preset priority is the preset priority that sorts according to the keyword of user to described information.
Preferably, described division position module, is further used for:
The remaining carousel number of positions outside carousel position is fixed in the removal that the information being retrieved as described random carousel by described server provides, and to this quantity with the number of the information of described random relay for round carries out odevity division, be divided into the odd even group of number corresponding with the number of described information.
Preferably, described module is set at random, is further used for:
Receive described obtaining information module and to export after sequence the sequencing of described information and described odd even group according to the posterior clooating sequence of odd number group before even number set, described information is distributed to successively the described odd even group that corresponding described division position module exports, and then this information is put into respectively successively on carousel position that this odd even group comprises.
Preferably, described information is video, audio frequency and/or Word message further.
Compared with prior art, the method and system of the random carousel of a kind of information described in the application, reach following effect:
1) present application addresses the problem that existing information carousel technical approach is single, broadcasting repetition rate is high and information is excessively browsed, and solve the problems referred to above in the mode of the random carousel of information.
2) the application also solves the user for seeing multiple video continuously, and the information of same information, same brand all can not produced problem continuously, can avoid the counter productive that information excessively represents, can promote Consumer's Experience again.
Certainly, the arbitrary product implementing the application must not necessarily need to reach above-described all technique effects simultaneously.
Embodiment
As employed some vocabulary to censure specific components in the middle of specification and claim.Those skilled in the art should understand, and hardware manufacturer may call same assembly with different noun.This specification and claims are not used as with the difference of title the mode distinguishing assembly, but are used as the criterion of differentiation with assembly difference functionally." comprising " as mentioned in the middle of specification and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to "." roughly " refer to that in receivable error range, those skilled in the art can solve the technical problem within the scope of certain error, reach described technique effect substantially.In addition, " couple " word and comprise directly any and indirectly electric property coupling means at this.Therefore, if describe a first device in literary composition to be coupled to one second device, then represent described first device and directly can be electrically coupled to described second device, or be indirectly electrically coupled to described second device by other devices or the means that couple.Specification subsequent descriptions is implement the better embodiment of the application, and right described description is for the purpose of the rule that the application is described, and is not used to the scope limiting the application.The protection range of the application is when being as the criterion depending on the claims person of defining.
Embodiment one
As shown in Figure 1, be the method flow of the random carousel of information described in the embodiment of the present application one, the method comprises:
Step 101, server obtains and need carry out the information of random carousel and sort according to priority;
Step 102, the carousel number of positions that described server provides in the information being retrieved as described random carousel, and to this quantity with the number of the information of described random relay for round carries out odevity division, be divided into the odd even group of number corresponding with the number of described information;
Step 103, described information, again according to the sequencing of information described after described prioritization, is distributed to corresponding described odd even group by described server successively, and then this information is put on carousel position that this odd even group comprises respectively successively;
Step 104, described server, according to the described carousel sequence of positions before division, performs successively in conjunction with preset carousel number of times and has put into described carousel information on each described carousel position.
Information described in said method is video, audio frequency and/or Word message further.
Wherein, step 101 is further: server obtains the information need carrying out random carousel, and sorts to described information according to preset priority; Wherein,
Described preset priority is the preset priority that sorts according to the keyword of user to described information.
Wherein, the carousel number of positions that server described in step 102 provides in the information being retrieved as described random carousel, is further: described server fixes the remaining carousel number of positions outside carousel position in the removal that the information being retrieved as described random carousel provides.
Step 102 it should be noted that: the rest position under stereotactic conditions finds by server, under current stereotactic conditions, find the position that current information has taken, during edit operation, because the displaying wheel number of current information is fixed, namely occupied number is fixed, if newly-increased operation, find the position that other advertisement takies, finally in the quantity calculating remaining carousel position.
And then according to the quantity of remaining carousel position with the number of the information of described random relay for round carries out odevity division, be divided into the odd even group of number corresponding with the number of described information;
Particularly, the following two kinds situation can be supposed:
1) information is for video ads, and entirely put on by classification the advertisement of " miaow cluck grand ceremony " in Tibetan Autonomous Prefecture of Deqen, this input is an advertisement only, and the random site of generation is 1,3.Namely the video under Tibetan Autonomous Prefecture of Deqen's arbitrary classification, first advertisement that user sees, the 3rd advertisement are Current ad, 10 take turns after, namely the 11st, 13 advertisements are Current ad.
2) information is for video ads, entirely puts on by classification the advertisement of " the video Collection Activities of 4G colleges and universities ", totally two advertisements: advertisement A, advertisement B in Sichuan, throws 4 and takes turns.Generating random site is 1,3,5,7.Namely the video under the arbitrary classification of Sichuan, first advertisement that user sees, the 5th advertisement are advertisement A, the 3rd, the 7th for advertisement B, 10 take turns after, namely the 11st, 15 advertisements are advertisement A, and the 13rd, 17 advertisements are advertisement B.
Described step 103 can also be further: described server again according to the sequencing of information described after described prioritization and described odd even group according to the posterior clooating sequence of odd number group before even number set, described information is distributed to successively corresponding described odd even group, and then this information is put into respectively successively on carousel position that this odd even group comprises.
Embodiment two
As shown in Figure 2, the method flow of the random carousel of the information described in the embodiment of the present application two, comprising:
Step 201, server obtains and need carry out the information of random carousel and sort according to priority;
Step 202, remaining carousel position (by the getExtraLocation() mode that described server is fixed outside carousel position in the removal that the information being retrieved as described random carousel provides obtains) quantity, and to this quantity with the number of the information of described random relay for round carries out odevity division, be divided into the odd even group of number corresponding with the number of described information;
Step 203, described server again according to the sequencing of information described after described prioritization and described odd even group according to the posterior clooating sequence of odd number group before even number set, described information is distributed to successively corresponding described odd even group, and then this information is put into respectively successively on carousel position that this odd even group comprises;
Step 204, described server, according to the described carousel sequence of positions before dividing, performs successively in conjunction with preset carousel number of times and has put into described carousel information (passing through assembleIdeaLocationMap() on each described carousel position and perform carousel).
For the step 203 of above-described embodiment two, be actually: described odd even group, according to the posterior clooating sequence of odd number group before even number set, is further: ordering rule is that even number is less than odd number permutation with positive order, and namely even number position is front, and odd number is rear.At this moment in order, get n position, n is the carousel sum of advertisement, obtains n discontinuous position like this.Mainly according to remaining carousel position, generate random carousel position.This random effect is generated by simulation random algorithm.In discontinuous position, generate the different carousel effect of different information.Here information is for advertisement: advertisements different under namely ensureing same brand, in its belonging positions list, occurs in turn.First by discontinuous position, again press natural number size permutation with positive order, traversal list of locations.In current location, do mould calculate by the sequence number of position to advertisement number m in brand, in result r and brand, r advertisement appears at current location.In addition, also need the content of operation completed to be saved in database after step 203, the description and interpretation for above-mentioned sortord are follow-up no longer launches explanation.
For user, adopt the method for above-described embodiment one and two, mainly by the advertising message in page input carousel, and total carousel number and advertisement putting time etc. are set.The quantity of carousel position is first obtained by said method, and according to wanting the quantity of advertisement of carousel, carry out division carousel position, namely which next round broadcasts this advertisement existing, according to arranging rule in method, advertisement carousel position is broken up, forms random effect, function: the position arranging advertisement carousel, namely which next round broadcasts this advertisement existing, be responsible for advertisement carousel position to break up, form random effect, this is only the present invention's kernel object the most.In addition, the present invention mainly also passes through saveSysCast() the random list taking turns advertisement of traversal, and preserve stored in database one by one.
Embodiment three
As shown in Figure 3, for the system block diagram of the random carousel of information described in the embodiment of the present application three, this system couples mutually with server, and this system comprises: obtaining information module 301, divide position module 302, arrange module 303 and broadcasting arranges module 304 at random, wherein
Described obtaining information module 301, couples mutually with the described module 303 that arranges at random, for being obtained by described server need be carried out the information of random carousel and sort according to priority;
Described division position module 302, couple mutually with the described module 303 that arranges at random, for the carousel number of positions that the information being retrieved as described random carousel by described server provides, and to this quantity with the number of the information of described random relay for round carries out odevity division, be divided into the odd even group of number corresponding with the number of described information;
Described module 303 is set at random, respectively with described obtaining information module 301, divide position module 302 and broadcasting and module 304 is set couples mutually, the sequencing of the rear described information of sequence is exported for receiving described obtaining information module 301, described information is distributed to successively the described odd even group that corresponding described division position module 302 exports, and then this information is put into respectively successively on carousel position that this odd even group comprises;
Described broadcasting arranges module 304, couple mutually with the described module 303 that arranges at random, for by described server according to divide before described carousel sequence of positions, perform described setting at random in module 303 successively in conjunction with preset carousel number of times and put into described carousel information on each described carousel position.
In addition, described obtaining information module 301, is further used for: obtained the information need carrying out random carousel by described server, and sort to described information according to preset priority; Wherein, described preset priority is the preset priority that sorts according to the keyword of user to described information.
In addition, described division position module 302, be further used for: the remaining carousel number of positions outside carousel position is fixed in the removal that the information being retrieved as described random carousel by described server provides, and to this quantity with the number of the information of described random relay for round carries out odevity division, be divided into the odd even group of number corresponding with the number of described information.
In addition, described module 303 is set at random, be further used for: receive described obtaining information module and to export after sequence the sequencing of described information and described odd even group according to the posterior clooating sequence of odd number group before even number set, described information is distributed to successively the described odd even group that corresponding described division position module exports, and then this information is put into respectively successively on carousel position that this odd even group comprises.
Information described in said system is video, audio frequency and/or Word message further.
Because method part has been described in detail the embodiment of the present application, the expansion of the method and system corresponding part related in embodiment is described omit here, repeat no more.Description for particular content in system with reference to the content of described embodiment of the method, no longer specifically can limit here.
Compared with prior art, the method and system of the random carousel of a kind of information described in the application, reach following effect:
1) present application addresses the problem that existing information carousel technical approach is single, broadcasting repetition rate is high and information is excessively browsed, and solve the problems referred to above in the mode of the random carousel of information.
2) the application also solves the user for seeing multiple video continuously, and the information of same information, same brand all can not produced problem continuously, can avoid the counter productive that information excessively represents, can promote Consumer's Experience again.
Those skilled in the art should understand, the embodiment of the application can be provided as method, device or computer program.Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the application can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
Above-mentioned explanation illustrate and describes some preferred embodiments of the application, but as previously mentioned, be to be understood that the application is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope described herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the application, then all should in the protection range of the application's claims.