Since I am not computer graduate (electro engineer as mater of fact) I
haven’t studied lots of computer algorithms. And since english is not my
first language I also find it difficult to search google.
What I would like to accomplish is create an algorithm for showing ads
based on priority (or number of times to display). Priority would define
no. of times ad would be displayed.
Example: We have 3 ads to display. If our web page is hit 16 times ads
should be displayed:
add1 1 time
add2 5 times
add3 10 times
… and theoretically
addn 10 times
Please direct me to a solution.