A
A
Alexander Pankov2017-07-21 19:35:52
Algorithms
Alexander Pankov, 2017-07-21 19:35:52

Where can I find the algorithm for processing the "weights (parameters)" of the tree to implement the bonus system like MMM?

Hello.
It is necessary to develop a system of motivation to attract customers to the site in order to increase the turnover of money.
So it was decided to use referral links, those a certain person (person K) has a link, he gives it to friends / acquaintances (person N), they enter this referral link (person K) when placing an order on the site and receive their similar referral link , which can already be given to other people..
When a person (person N) pays and receives his order, which was placed using a referral link, then (person K) receives a certain percentage of this order ...
And so on down the tree: if (person K) brings his people (person X) and when they place an order, the bonuses go up the tree (K -> X)...
I need to find an algorithm (description or name) that would allow me to do this, I will implement it in PHP.
BUT, it is also necessary to calculate the expediency and percentage of the bonus in general ...
For example: I am ready to spend 10,000 on bonuses (so that person X receives 10,000), and so, I want to know what percentage for each level of attracted people I need to put and how many levels can be and how many nodes, so that the root of the tree earns 10,000 bonuses, well, etc., I want to play around with the total number of bonuses, levels, nodes ... to figure out the real situation, is there perhaps some kind of online service that allows you to do this?
Thanks in advance for any help!
0c92c9f383bb4fde812904758de8deae.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Shindin, 2017-08-21
@pro_co_ru

An infinite number of mathematicians walk into a bar.
The first one orders one beer. The second - half a mug, the third - a quarter, the fourth - one eighth.
The bartender replies:
- That's stupid!
...and pours two mugs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question