Can anyone on AZB write an algorithm

ceebee

AzB Silver Member
Silver Member
I need an algorithm developed, can anyone on AZB do that for payment..?
 
Um, you need to be more specific.

I can, I'm sure lots of guys can. I'm sure my contractors can.

What is your goal?
 
It is a simple algorithm to go along with a 1000 person tournament payout.

If the 1000 grows, so does the payout.

Redoing the payouts, as the tournament grows gets old, an algorithm will make that part easy.
 
Excuse me ceebee, but is an algorithm, a song that Al Gore has written. I've always been confused on that. :smile:

"I love the trees, the trees love me.
When ever I see one I give it a hug.
I go around the world in my jet airplane.
My carbon footprint is swept under the rug."
 
Excuse me ceebee, but is an algorithm, a song that Al Gore has written. I've always been confused on that. :smile:

"I love the trees, the trees love me.
When ever I see one I give it a hug.
I go around the world in my jet airplane.
My carbon footprint is swept under the rug."

You're too slow, pt109 beat you to this bad joke already, ha!


Ceebee, pm me
 
You're too slow, pt109 beat you to this bad joke already, ha!
Ceebee, pm me

You know I was just now noticing that very thing. We were writing at the same time and he finished first. I guess the internet doesn't operate at light speed, does it? :smile:
 
You know I was just now noticing that very thing. We were writing at the same time and he finished first. I guess the internet doesn't operate at light speed, does it? :smile:

He was an hour ahead, must be that Canadian time dilation
 
You know I was just now noticing that very thing. We were writing at the same time and he finished first. I guess the internet doesn't operate at light speed, does it? :smile:

:lol: your posts were closer to a time zone apart than a light speed issue :lol: Nice try though :wink:

Dave <--- knows the difference between a 10" piece of wire and a nanosecond
 
Give me a couple of hours...I just bought a book..'What the hell are algorithms?"
 
It is a simple algorithm to go along with a 1000 person tournament payout.

If the 1000 grows, so does the payout.

Redoing the payouts, as the tournament grows gets old, an algorithm will make that part easy.

Where would you hold a 1000+ person tournament? On the internet? :)

You should define your input and output and give a small scale example for say 10 person tournament scaled to 15 people.

Also, if it need to be a stand alone program or integrated into an existing program.
What are the acceptable languages?
Or are you just wanting a math formula?
 
Last edited:
It sounds like you just need a little math, or maybe a spreadsheet at the most. I bet if you give the specifics here people could give you some guidance.

I'm just amazed that you're running a 1000+ person tournament. :eek:
 
You're too slow, pt109 beat you to this bad joke already, ha!


Ceebee, pm me

Bad jokes, huh?
That's it, I'm going to do a serious study of humor....

pt....puts on a Dangerfield tape...will ship it to the Tramp when I'm done
 
Here's an algorithm:

Decide on the number of players per level of payout. Double elim would be 1-1-1-1-2-2-4-4-8-8... while single is 1-1-2-4-8-16...
Define the minimum fraction of players to be paid (F=1/6)
Define the ratio between payouts for adjacent levels (R=1.5)
Note the number of players (N) and the prize fund (P).
Take as many levels as required to pay enough players. For example with 1000 players and single elimination you would pay 1+1+2+4+...+128 = 256 players to pay at least 1/6th of them.
Starting with the lowest level, set their "share" to 1 each, and calculate the total number of shares to be paid (number of players at each level times R to the appropriate power, starting at 1 for the lowest level)
Divide the total prize by the number of shares to get the dollars per share.
Multiply the number of shares at each level (R to the Lth power) by the dollars per share to find the prize at each level.

The above will give non-round numbers. For round numbers, do the calculation, and then round down the amount for the first level (lowest level paid), and subtract their total prize from the prize fund. Remove them from consideration and do the calculation again with a reduced fund and number of players. Round down the lowest level again and repeat.

It is more or less trivial to program the above, and anyone familiar with Excel should be able to do it.

If you want to get fancy, you could have non-uniform ratios of payout between levels and put them into a table.
 
Last edited:
Here's an algorithm:
Decide on the number of players per level of payout. Double elim would be 1-1-2-2-4-4-8-8... while single is 1-1-2-4-8-16...
Define the minimum fraction of players to be paid (F=1/6)
Define the ratio between payouts for adjacent levels (R=1.5)
Note the number of players (N) and the prize fund (P).
Take as many levels as required to pay enough players. For example with 1000 players and single elimination you would pay 1+1+2+4+...+128 = 256 players to pay at least 1/6th of them.
Starting with the lowest level, set their "share" to 1 each, and calculate the total number of shares to be paid (number of players at each level times R to the appropriate power, starting at 1 for the lowest level)
Divide the total prize by the number of shares to get the dollars per share.
Multiply the number of shares at each level (R to the Nth power) by the dollars per share to find the prize at each level.
The above will give non-round numbers. For round numbers, do the calculation, and then round down the amount for the first level (lowest level paid), and subtract their total prize from the prize fund. Remove them from consideration and do the calculation again with a reduced fund and number of players. Round down the lowest level again and repeat.
It is more or less trivial to program the above, and anyone familiar with Excel should be able to do it.
If you want to get fancy, you could have non-uniform ratios of payout between levels and put them into a table.

Bob, this is not an Al Gore rhythm because it doesn't rhyme. Now, try it again. :smile:
 
Back
Top