Earlier quoted context omitted.
Ad 1 has to be shown 30% of the traffic Ad 2 has to be shown 40% of the traffic Remaining has to be given to RTB generate a random number between 0:100 if the number is 0-30 the Ad 1 has to be shown if the number is 30-70 the Ad 1 has to be shown else RTB is to be called The servers can be now independent and no need to share the state, or have a lock based counter. For large number of requests, and with a good rando…
Not to be a hater, but that seems like by far the most obvious way to do that, right?
Production algorithm tricks anyone?
11–20 of 20 posts
Re: Production algorithm tricks anyone?
#12>"we had used a random number generator within a segmented number range." Could you describe your current implementation and its elegance?
Ad 1 has to be shown 30% of the traffic Ad 2 has to be shown 40% of the traffic Remaining has to be given to RTB generate a random number between 0:100 if the number is 0-30 the Ad 1 has to be shown if the number is 30-70 the Ad 1 has to be shown else RTB is to be called The servers can be now independent and no need to share the state, or have a lock based counter. For large number of requests, and with a good rando…
Re: Production algorithm tricks anyone?
#13>"we had used a random number generator within a segmented number range." Could you describe your current implementation and its elegance?
Ad 1 has to be shown 30% of the traffic Ad 2 has to be shown 40% of the traffic Remaining has to be given to RTB generate a random number between 0:100 if the number is 0-30 the Ad 1 has to be shown if the number is 30-70 the Ad 1 has to be shown else RTB is to be called The servers can be now independent and no need to share the state, or have a lock based counter. For large number of requests, and with a good rando…
What is RTB?
Re: Production algorithm tricks anyone?
#14Earlier quoted context omitted.
Ad 1 has to be shown 30% of the traffic Ad 2 has to be shown 40% of the traffic Remaining has to be given to RTB generate a random number between 0:100 if the number is 0-30 the Ad 1 has to be shown if the number is 30-70 the Ad 1 has to be shown else RTB is to be called The servers can be now independent and no need to share the state, or have a lock based counter. For large number of requests, and with a good rando…
Yeah not to be an ass but that's pretty standard. And cool too I admit.
Pretty standard in what context? Can you elaborate? Is there a name for the algorithm?
Re: Production algorithm tricks anyone?
#15Earlier quoted context omitted.
Ad 1 has to be shown 30% of the traffic Ad 2 has to be shown 40% of the traffic Remaining has to be given to RTB generate a random number between 0:100 if the number is 0-30 the Ad 1 has to be shown if the number is 30-70 the Ad 1 has to be shown else RTB is to be called The servers can be now independent and no need to share the state, or have a lock based counter. For large number of requests, and with a good rando…
>"40% of the traffic Remaining has to be given to RTB" What is RTB?
Re: Production algorithm tricks anyone?
#16Earlier quoted context omitted.
Ad 1 has to be shown 30% of the traffic Ad 2 has to be shown 40% of the traffic Remaining has to be given to RTB generate a random number between 0:100 if the number is 0-30 the Ad 1 has to be shown if the number is 30-70 the Ad 1 has to be shown else RTB is to be called The servers can be now independent and no need to share the state, or have a lock based counter. For large number of requests, and with a good rando…
Yeah not to be an ass but that's pretty standard. And cool too I admit.
Re: Production algorithm tricks anyone?
#17One that comes to mind is XOR-swap. It's cute, but it's likely slower than using a temp var.
Some of the integer population count algos (1's counting) are clever.
Also, original Doom source has some neat tricks.
Re: Production algorithm tricks anyone?
#18There's a bunch in Hacker's Delight. One that comes to mind is XOR-swap. It's cute, but it's likely slower than using a temp var. Some of the integer population count algos (1's counting) are clever. Also, original Doom source has some neat tricks.
Re: Production algorithm tricks anyone?
#19Very cool algorithm used in (among other things) redis.
Re: Production algorithm tricks anyone?
#20Earlier quoted context omitted.
>"40% of the traffic Remaining has to be given to RTB" What is RTB?
Real time bidding. It is used to trade ads with exchanges. When you dont have your own ads from your sales team.