CN107404445B - Self-media resource allocation method and device - Google Patents
Self-media resource allocation method and device Download PDFInfo
- Publication number
- CN107404445B CN107404445B CN201610331705.0A CN201610331705A CN107404445B CN 107404445 B CN107404445 B CN 107404445B CN 201610331705 A CN201610331705 A CN 201610331705A CN 107404445 B CN107404445 B CN 107404445B
- Authority
- CN
- China
- Prior art keywords
- self
- amount
- users
- sign
- media
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/80—Actions related to the user profile or the type of traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/535—Tracking the activity of the user
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The method for allocating self-media resources provided by this embodiment collects user records of self-media under a set condition, constructs an allocation model according to the user records, calculates an optimal allocation scheme of the self-media resources through the model, and embeds the optimal allocation scheme onto an access page of the self-media for a user to access, so as to implement the set allocation scheme and optimize the use efficiency of the self-media resources.
Description
Technical Field
The present invention relates to the field of self-media, and in particular, to a method and an apparatus for allocating self-media resources.
Background
With the internet advancing into the era of user economy and social communication, more and more e-commerce companies begin to operate their own self-media in social platforms and propagate various types of promotion activity information through user groups. However, each time a promotion advertisement is sent, there is a situation where the user cancels his attention, commonly known as "dusting". In order to reduce the user loss rate, a sign-in traffic getting function is set in the self-media, so that the user loss rate is reduced. But as the number of users increases, the cost of spending is prohibitive if all users are allowed to check-in every day. It will typically be set that the top XX users can check in each day. However, if the number of people allowed to check in is too small, the user loss rate is high. In addition, there is a similar relationship in the number of flows (amount) given each check-in. The larger the amount, the lower the user churn rate, but the higher the cost.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for allocating self-media resources, so as to solve the above problems.
According to a first aspect of the present invention, the present invention provides a self-media resource allocation method, including: collecting user data of a self-media under a preset condition; constructing a resource allocation model of the self-media according to the user data; determining an optimal allocation scheme of the self-media resources with a certain number of users according to the allocation model; and implementing the optimal allocation scheme through an access page of the self-media.
Preferably, the acquiring user data from the media under the preset condition includes: collecting the number of users under the condition of changing the sign-in name amount by fixing the sign-in amount in a plurality of time periods; and collecting the number of users under the condition that the check-in amount is changed by fixing the check-in name in a plurality of time periods.
Preferably, the method further comprises the following steps: and storing the user data into a MySQL database.
Preferably, the constructing an allocation model of self-media resources according to the user data comprises: changing user data under the condition of signing the name amount according to the fixed signing amount, and fitting an equation of the number of users and the signing name amount by a least square method; changing user data under the condition of the check-in amount according to the fixed check-in name amount, and fitting an equation of the number of users and the check-in amount by a least square method; and generating the distribution model of the self-media resources according to the equation of the number of the users and the sign-in denominations and the equation of the number of the users and the sign-in denominations.
Preferably, the implementing the optimal allocation scheme through the access page of the self-media resource includes: and embedding the script of the optimal distribution scheme in an HTML file of the access page.
Preferably, the self-media resource comprises: the reward for check-in and the number of people who check-in.
According to a second aspect of the present invention, the present invention provides an apparatus for allocating self-media resources, comprising: the acquisition unit is used for acquiring user data of the self-media under a preset condition; the construction unit is used for constructing an allocation model of the self-media resources according to the user data; the calculation unit is used for determining an optimal allocation scheme of the self-media resources with a certain number of users according to the allocation model; and the realization unit is used for realizing the optimal distribution scheme through the access page of the self-media.
Preferably, the acquisition unit includes: collecting the number of users under the condition of changing the sign-in name amount by fixing the sign-in amount in a plurality of time periods; and collecting the number of users under the condition that the check-in amount is changed by fixing the check-in name in a plurality of time periods.
Preferably, the method further comprises the following steps: and the storage unit is used for storing the user data into a MySQL database.
Preferably, the construction unit comprises: changing the number of users under the condition of signing the name according to the fixed signing amount, and fitting an equation of the number of the users and the signing name by a least square method; changing the number of users under the condition of the check-in amount according to the fixed check-in name amount, and fitting an equation of the number of users and the check-in amount by a least square method; and generating the distribution model of the self-media resources according to the equation of the number of the users and the sign-in denominations and the equation of the number of the users and the sign-in denominations.
According to a third aspect of the present invention, there is provided an apparatus for allocating self-media resources, comprising: a memory; and a processor coupled to the memory, the processor configured to perform the above-described self-media resource allocation method based on instructions stored in the memory.
According to a fourth aspect of the present invention, there is provided a computer readable storage medium storing computer instructions which, when executed by a processor, implement the above-mentioned method for allocating self-media resources
The method for allocating self-media resources provided by this embodiment collects user records of self-media under a set condition, constructs an allocation model according to the user records, calculates an optimal allocation scheme of the self-media resources through the model, and embeds the optimal allocation scheme onto an access page of the self-media for a user to access, so as to implement the set allocation scheme and optimize the use efficiency of the self-media resources.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent by describing embodiments of the present invention with reference to the following drawings, in which:
fig. 1 is a flowchart of an allocation method of self-media resources according to an embodiment of the present invention;
FIG. 2 is a flow diagram of building an allocation model from media resources according to an embodiment of the invention;
FIG. 3 is a flow chart of determining an optimal allocation scheme for a self-media resource having a fixed number of users according to an allocation model according to an embodiment of the present invention;
fig. 4 is a structural diagram of an apparatus for allocating self-media resources according to an embodiment of the present invention.
Detailed Description
The present invention will be described below based on examples, but the present invention is not limited to only these examples. In the following detailed description of the present invention, certain specific details are set forth. It will be apparent to one skilled in the art that the present invention may be practiced without these specific details. Well-known methods, procedures, and procedures have not been described in detail so as not to obscure the present invention. The figures are not necessarily drawn to scale.
Fig. 1 is a flowchart of a self-media resource allocation method according to an embodiment of the present invention, the allocation method includes steps 101 and 104.
In step 101, user data from a medium under preset conditions is collected.
The self-media are various social platforms such as WeChat, microblog, Facebook and the like. The following takes "WeChat" as an example of the social platform to describe how to collect user data through preset conditions. Note that in the wechat platform, the self-media is called wechat public number, hereinafter referred to as "public number" for short.
The sign-in denominations in different time periods of the public numbers are set to be different, the sign-in amount (or the sign-in reward) is a fixed value, the sign-in denominations in different time periods are k1, k2, … … and kn, and corresponding data groups are marked as data groups A1, data groups A2, … … and An. For a specific sign-in name, the number of initial users per day and the number of lost users per day (for the public number, the number of lost users is the number of users who cancel the attention) are recorded. Examples refer to table 1.
Table 1
Setting different check-in amounts in different time periods of the public number, and setting the check-in name to be a fixed value, then the check-in amounts in different time periods are marked as p1, p2, … … and pn, and the corresponding data groups are marked as a data group B1, a data group B2, … … and Bn. For a specific check-in amount, the initial number of users per day and the number of lost users per day (for the public number, the number of lost users is the number of users who cancel the attention) are recorded. Examples refer to table 2.
Table 2
In a preferred embodiment, the user data in table 1 and table 2 are stored in MYSQL database tables, respectively, for use in subsequent processes.
In step 102, an allocation model for the self-media resources is constructed from the user data.
And analyzing the relationship between the check-in amount, the check-in name and the user attrition rate through various fitting algorithms according to the user data in the table 1 and the table 2, and calculating a corresponding relational expression. For example, a relation between the check-in amount and the user churn number and a relation between the check-in denomination and the user churn number are fitted through a least square method, and further, a relation between the check-in amount, the check-in denomination and the user churn rate is constructed through the relations. Those skilled in the art will appreciate that the check-in amount and the check-in name are only two specific forms of self-media resources, and other forms of self-media resources, such as a signature, a traffic gift, a user ranking and other rewarding measures, can be used to replace the check-in amount in the equation without affecting the construction of the relational equation. The least squares method (also called the least squares method) involved in this step is a mathematical optimization technique that finds the best functional match of the data by minimizing the sum of squares of the errors. Data fitting may also be accomplished by other optimization techniques to obtain a relational equation.
In step 103, an optimal allocation scheme of a self-media resource with a certain number of users is determined according to an allocation model.
For public numbers, a certain number of users corresponds to the number of people paying attention to the public numbers at present, and the number of users is changed data, so that the distribution scheme can be determined according to the number of the initial users of the self-media (the number of the initial users should not be too low). In this step, the number of users of the designated self-media is substituted into the relational equation constructed in step 102, and the optimal settings of the sign-in name amount and the sign-in amount of the self-media are obtained after solving.
In step 104, the optimal allocation scheme is implemented by the access page from the medium.
The optimal settings of the self-media's sign-in amount and sign-in amount are embedded into the self-media's access page. For example, daily check-in amount and name amount are stored in the database, when a user logs in an access page of a self-media written by HTML5, whether the database can check in is inquired, if the check-in can be carried out, the corresponding check-in amount is issued to the user, and meanwhile, the check-in number is reduced by 1, so that the check-in amount and the check-in name amount in the optimal allocation scheme are realized.
In a preferred embodiment, as shown in FIG. 2, the "build an allocation model from media resources" of step 102 includes steps 1021-1025.
In step 1021, the history check-in table A is read. The history check-in table a stores the data of table 1.
In step 1022, the sign-in denomination equation is fitted by a least squares method.
In step 1023, the history check-in table B is read. The history check-in table B stores the data of table 2.
In step 1024, the check-in amount formula is fitted by least squares.
In step 1025, a relational equation is derived.
In a preferred embodiment, as shown in fig. 3, the "determining an optimal allocation scheme of self-media resources with a certain number of users according to an allocation model" of step 103 comprises steps 1031 to 1034.
In step 1031, the daily available amount is determined.
In step 1032, the number of users existing from the media is queried.
In step 1033, the function maxima are solved according to the relational equations.
In step 1034, the amount of the sign-in name and the amount of the sign-in are determined.
In fig. 3, the daily available amount and the number of existing users are substituted into the relational equation constructed in fig. 2, and the daily sign-in name amount and sign-in amount are determined.
The derivation of the relational equation and the calculation of the sign-in denomination and amount are described in detail below. Number of initial users of public number is N0The daily loss rate is ρ (a, b), where a is the daily sign-in denomination, b is the amount of money to be collected each time the sign-in is made, and thus the number of users lost each day is N0·ρ(a,b)。
a) Consider the impact of user churn rate and daily sign-in denominations.
The user churn probability is inversely proportional to the probability that a user can check in, i.e. the greater the chance that a user can successfully check in, the lower the probability that he churns. And the probability of successful sign-in of the user isLet the loss rate affected by the sign-in denomination be ρ1(a) And then:
wherein c is1,c2Are parameters. When the sign-in denomination is 0, ρ1(0)=c2When the sign-in name is maximum, i.e. all people can sign in, a is N0At this time ρ1(N0)=c1+c2
Thus, each data set in Table 1 (data set A1, data set A2, … …) can determine a set ρ1(0),ρ1(N0) And then taking the average as the final rho1(0),ρ1(N0) The value of (c). Then, the formula that the attrition rate is affected by the sign-in denomination is obtained:
b) the data in table 2 is used to calculate the user attrition rate as a function of the check-in amount.
When the daily sign-in name is fixed, the user attrition rate is inversely proportional to the sign-in amount. When the check-in amount is 0, the check-in activity is not opened, so the user churn rate ρ2(0)=ρ1(0) As the check-in amount approaches infinity, the user churn rate approaches 0, and thus, the churn rate is affected by the check-in amount as a function of:
ρ2(b)=ρ1(0)·em·b(3)
wherein m is a parameter, m <0
(3) Taking logarithm on two sides of the formula to obtain:
ln(ρ2(b))=ln(ρ1(0))+m·b (4)
(4) the equation is a linear equation and therefore the least squares method can be used to determine the optimum value of m.
The fixed sign-in name is not changed, k different sign-in amounts B are taken from the data table B1,b2,b3,…,bkK different slip rates rho can be measured2(b1),ρ2(b2),ρ2(b3),…,ρ2(bk) Thereby obtaining:
ln(ρ2(b1)),ln(ρ2(b2)),ln(ρ2(b3)),…,ln(ρ2(bk))
the objective function of the least squares method is:
it is thus possible to obtain:
c) the number of surviving users per day is a function of the amount of the check-in when the check-in fee is fixed.
From equations (2) and (7), one can obtain:
number of users staying daily
In the public account operation process, the operation cost for checking in daily is limited, and if the operation cost is R, R is a · b, so that a is R/b, and the formula (8) is substituted, and the following result is obtained:
for the convenience of derivation, we replace the constants in equation (7) with symbols. Order to
Then
d) Obtaining current user number rho from public number information table of MySQL database1(0). When the user churn rate is lowest, the user reserve rate is highest, and thereforeThereby to obtain
The equation (13) has no symbolic solution, and after the check-in amount b is solved by adopting a binary method of numerical solution, the value corresponding to the check-in name a can be calculated. Considering that the signature can only be an integer, a is rounded.
The allocation method provided by this embodiment collects user records from the media under a set condition, constructs an allocation model according to the user records, calculates an optimal resource allocation scheme for the media through the model, and embeds the resource allocation scheme into an access page of the media, so as to optimize the resource utilization rate of the media.
Fig. 4 is a structural diagram of an apparatus for allocating self-media resources according to an embodiment of the present invention. The distribution device 40 includes an acquisition unit 401, a construction unit 402, a calculation unit 403, and an implementation unit 404.
The acquisition unit 401 acquires user data from the media under a preset condition. For example, the number of users under the condition that the check-in amount is changed by fixing the check-in amount in a plurality of time periods is collected, and the number of users under the condition that the check-in amount is changed by fixing the check-in amount in a plurality of time periods is collected. Preferably, the data is stored in a MYSQL database.
The construction unit 402 constructs an allocation model from the media resources based on the user data.
The calculation unit 403 determines an optimal allocation scheme of the self-media resource with a fixed number of users according to the allocation model.
The implementation unit 404 implements the optimal allocation scheme through the access page from the medium.
In a preferred embodiment, the building unit comprises: changing the number of users under the condition of signing the name according to the fixed signing amount, and fitting an equation of the number of the users and the signing name by a least square method; changing the number of users under the condition of the check-in amount according to the fixed check-in name amount, and fitting an equation of the user loss amount and the check-in amount by a least square method; and generating the distribution model of the self-media resources according to the equation of the user churn number and the sign-in quota and the equation of the user number and the sign-in quota.
The allocation device provided by this embodiment collects user records from a media under a set condition, constructs an allocation model according to the user records, calculates an optimal resource allocation scheme for the media through the model, and embeds the resource allocation scheme into an access page of the media, so that the resource utilization rate of the media is optimal.
The flowcharts and block diagrams in the figures and block diagrams illustrate the possible architectures, functions, and operations of the systems, methods, and apparatuses according to the embodiments of the present invention, and may represent one, program segment, or code-only segment, which is executable instructions for implementing specified logical functions. It should also be noted that the executable instructions that implement the specified logical functions may be recombined to create new and program segments. The blocks of the drawings, and the order of the blocks, are thus provided to better illustrate the processes and steps of the embodiments and should not be taken as limiting the invention itself.
The various elements of the system may be implemented in hardware, firmware or software. The software includes, for example, a code program formed using various programming languages such as JAVA, C/C + +/C #, SQL, and the like. Although the steps and sequence of steps of the embodiments of the present invention are presented in method and method diagrams, the executable instructions of the steps implementing the specified logical functions may be re-combined to create new steps. The sequence of the steps should not be limited to the sequence of the steps in the method and the method illustrations, and can be modified at any time according to the functional requirements. Such as performing some of the steps in parallel or in reverse order.
Systems and methods according to the present invention may be deployed on a single server or on multiple servers. For example, the different respective deployments may be on different servers, forming a dedicated server. Alternatively, the same functional unit, or system, may be deployed in a distributed fashion across multiple servers to relieve load stress. The server includes but is not limited to a plurality of PCs, PC servers, blades, supercomputers, etc. on the same local area network and connected via the Internet.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method of allocating self-media resources, comprising:
collecting user data of a self-media under a preset condition;
constructing an allocation model of the self-media resources according to the user data;
determining an optimal allocation scheme of the self-media resources with a certain number of users according to the allocation model; and
the optimal allocation scheme is implemented by the access page from the medium,
wherein, the collecting user data of the self media under the preset condition comprises:
collecting the number of users under the condition of changing the sign-in name amount by fixing the sign-in amount in a plurality of time periods; and
the number of users is collected under the condition that the sign-in amount is changed by fixing the sign-in name in a plurality of time periods.
2. The method of allocating of claim 1, further comprising: and storing the user data into a MySQL database.
3. An allocation method according to claim 1, wherein said building an allocation model from media resources in dependence on said user data comprises:
changing user data under the condition of signing the name amount according to the fixed signing amount, and fitting an equation of the number of users and the signing name amount by a least square method;
changing user data under the condition of the check-in amount according to the fixed check-in name amount, and fitting an equation of the number of users and the check-in amount by a least square method; and
and generating the distribution model of the self-media resource according to the equation of the number of the users and the sign-in number and the equation of the number of the users and the sign-in amount.
4. The allocation method of claim 1, wherein said implementing the optimal allocation scheme through an access page of self-media comprises:
and embedding the script of the optimal distribution scheme in an HTML file of the access page.
5. The allocation method of claim 1, wherein the self-media resource comprises: the reward for check-in and the number of people who check-in.
6. An apparatus for allocating self-media resources, comprising:
the acquisition unit is used for acquiring user data of the self-media under a preset condition;
the construction unit is used for constructing an allocation model of the self-media resources according to the user data;
the calculation unit is used for determining an optimal allocation scheme of the self-media resources with a certain number of users according to the allocation model;
an implementation unit for implementing the optimal allocation scheme by an access page from the medium,
the acquisition unit includes:
collecting the number of users under the condition of changing the sign-in name amount by fixing the sign-in amount in a plurality of time periods; and
the number of users is collected under the condition that the sign-in amount is changed by fixing the sign-in name in a plurality of time periods.
7. The dispensing device of claim 6, further comprising: and the storage unit is used for storing the user data into a MySQL database.
8. The dispensing device of claim 6, wherein the building unit comprises:
changing the number of users under the condition of signing the name according to the fixed signing amount, and fitting an equation of the number of the users and the signing name by a least square method;
changing the number of users under the condition of the check-in amount according to the fixed check-in name amount, and fitting an equation of the number of users and the check-in amount by a least square method; and
and generating the distribution model of the self-media resource according to the equation of the number of the users and the sign-in number and the equation of the number of the users and the sign-in amount.
9. An apparatus for allocating self-media resources, comprising: a memory; and a processor coupled to the memory, the processor configured to perform the method of allocating self-media resources of any of claims 1-5 based on instructions stored in the memory.
10. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the method of allocating self-media resources of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610331705.0A CN107404445B (en) | 2016-05-18 | 2016-05-18 | Self-media resource allocation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610331705.0A CN107404445B (en) | 2016-05-18 | 2016-05-18 | Self-media resource allocation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107404445A CN107404445A (en) | 2017-11-28 |
CN107404445B true CN107404445B (en) | 2020-03-03 |
Family
ID=60394558
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610331705.0A Active CN107404445B (en) | 2016-05-18 | 2016-05-18 | Self-media resource allocation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107404445B (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101108734B1 (en) * | 2011-02-21 | 2012-02-24 | 임태영 | System and method for on-line advertisement using social commerce game |
EP2703957B1 (en) * | 2012-08-31 | 2018-06-06 | BlackBerry Limited | Method to select word by swiping capacitive keyboard |
CN104035987B (en) * | 2014-05-30 | 2017-06-30 | 南京邮电大学 | A kind of micro blog network user force arrangement method |
CN104598292B (en) * | 2014-12-15 | 2017-10-03 | 中山大学 | A kind of self adaptation stream adaptation and method for optimizing resources applied to cloud game system |
-
2016
- 2016-05-18 CN CN201610331705.0A patent/CN107404445B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107404445A (en) | 2017-11-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Mehrotra et al. | A model of supply‐chain decisions for resource sharing with an application to ventilator allocation to combat COVID‐19 | |
US20240267298A1 (en) | Systems and methods for conducting more reliable assessments with connectivity statistics | |
US10127618B2 (en) | Determining connectivity within a community | |
Chanta et al. | The minimum p-envy location problem: a new model for equitable distribution of emergency resources | |
US11755675B2 (en) | Method and apparatus for managing region tag | |
WO2019147851A2 (en) | Systems and methods for generating machine learning applications | |
Berman et al. | The multiple gradual cover location problem | |
US20130166601A1 (en) | Systems and methods for conducting reliable assessments with connectivity information | |
CN105556554A (en) | Multiple device correlation | |
WO2022089190A1 (en) | Product recommendation method and apparatus, and electronic device and readable storage medium | |
US9635116B2 (en) | Techniques for inferring a location | |
Hayashi et al. | Expenditure Inequality in I ndonesia, 2008–2010: A Spatial Decomposition Analysis and the Role of Education | |
Akbari et al. | A maritime search and rescue location analysis considering multiple criteria, with simulated demand | |
CN112799708B (en) | Method and system for jointly updating business model | |
CN104809132A (en) | Method and device for acquiring social relation type of network subject | |
CN107657357B (en) | Data processing method and device | |
Gilmour | Identification of hospital catchment areas using clustering: an example from the NHS | |
US20130325530A1 (en) | Method and system for determining customer conversion | |
US20170032707A1 (en) | Method for determining a fruition score in relation to a poverty alleviation program | |
US20160342899A1 (en) | Collaborative filtering in directed graph | |
US20170161839A1 (en) | User interface for latent risk assessment | |
Drago | Interval based composite indicators | |
CN107404445B (en) | Self-media resource allocation method and device | |
CN109756556B (en) | One-stop cloud service ecosystem | |
CN116629556A (en) | Recommendation task distribution method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |