Not sure how you came up with 5 cents but I get $1.36:
4000 dollars/btc * 10^-8 btc/satoshi * 150 satoshi/byte * 226 bytes/transaction = $1.356 per transaction
If you wanted to get confirmed in the very next block you could probably use 25 satoshi/byte at this point in time. Personally, if I were sending a non critical/time-sensitive transaction right now I would use about 5 satoshi/byte.
A couple years ago I saw a 3.5x improvement migrating a lockfree skiplist from hazard pointers to epochs. The problem with hazard pointers is that they require memory barriers after every assignment, whereas epochs only require one at the start.
A study published in Science in June 2014, described as "likely the most thorough and precise study that has been done on the performance of the D-Wave machine" and "the fairest comparison yet", found that the D-Wave chip "produced no quantum speedup".
The "quarter mile stretch of wall all to your own" reward already has over 16k backers. How are they planning to deliver when the wall is only 300 miles?
Obviously they'll just have to build multiple concentric walls. This will also sap the morale of any burners who are ambitious enough to climb over the outer one.
Every seen that "Office Space" documentary, err, I mean comedy, where the poor TPS report programmer has like eight bosses all telling him what to do because he works solely for them? Well...
IPSC 2014 problem E looks like a machine learning problem, but the intended solution was to make multiple submissions and use the judge feedback to reverse-engineer the test data. The winning team needed only 6 submissions to hit 95% accuracy. It was one of my favourite problems from the contest.
What many descriptions of the problem leave out is that it is critical that Monty knowingly picks a door with a goat. If Monty chooses at random, then the winning odds do indeed increase to 50% if he happens to open a door with a goat behind it.
The randomized variant, by the way, tends to garner roughly the same degree of "you're completely wrong" responses when given to people who know just enough about the normal Monty-hall problem not to be fooled by it.
Thanks. I had also cast malloc() but didn't think to just comment out free().
So I'm seeing similar results as you. Your iterative implementation is about 3x faster than the author's, but still not as fast as the recursive version. I'm surprised!
if (one) {
if (two)
if (three)
if (soon) {
stuff
}} else {
else stuff
}
Personally, I think I won't have any trouble reading that, but I have noticed I'm somewhat more tolerant than others in this regard. Though I am more OCD than others in other ways.