Post
Topic
Board Altcoin Discussion
Re: Transparent mining, or What makes Nxt a 2nd generation currency
by
jettico
on 31/01/2014, 12:13:13 UTC
I don't blame u, coz there is no a good explanation how forging works, but I'm quite tired to explain why people r wrong with their models. In ur case u r wrong coz u analyze an impossible situation when there r only 2 forging accounts in the system. Models doesn't work in extremum conditions.

At leeeast a sensible argument!

Let's see!

Code:
from random import random
from operator import itemgetter

NBLOCKS = 100000
N = 100
W = [100000] + [1000] * N
z = [0.] * len(W)
wins = [0] * len(W)

for x in xrange(NBLOCKS):
for i in xrange(len(W)):
z[i] = random()/W[i]

[position, value] = min(enumerate(z), key=itemgetter(1))
wins[position] += 1

print float(wins[0])/sum(wins[1:]), float(wins[0])/(sum(wins[1:])/N)

1.72101439417 172.340599455

(instead of 1 and 100)

Not THAT bad, but still!