Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×

Comment Re:The actual code (Score 1) 230

The guy is probably proud of his prog, that's why he published it. Indeed, that's more a C approach than a C++, but anyway for solving a sudoku there is no need to put in place a lot of complex data structures.
What I like in this prog is that he optimizes the process by simply considering that since any 1-9 digit can only be once in each column, each row, and each of the nine 3×3 sub-grids, he uses a 10 bits int and associate 2^i with a digit (instead of an array, or worse checking all digits each time). Then 'Place()' recursively tries only possible combinations which converges quickly to a solution.
Good prog. I wish all political figures would be able to show such an artwork!

Comment Re:Don't mess with Texas (Score 1) 1097

about half of US murders are committed by African Americans, who make up about 1/8 of the population. If you adjust the rate of that population to the national average, you get a US murder rate of less than 2.7/100000

But you'd have to apply the same rule to the European rate to get something comparable, wouldn't you? However in Europe, in order to avoid crime-race dangerous and abusive aggregation, the rates published do not show associations between crime and skin color.

Comment Re:Looks like the prophet's gunmen (Score 5, Insightful) 1097

Well, when all you have to convince people that they should work for you is promises of eternal bliss after death without any kind of proof, you can't really expect nobel prize material to flock to you...

Not sure that's the only reason. Some of these people are just looking for something in which they can get deeply involved, out of the ordinary society stuff. They would actually love being enrolled in some armies to fight for a country, kill or be killed, but they just don't see themselves fighting for our western countries. So the actual reason may not really be Santa Claus / God / Mahomet / [...] and the "eternal bliss", but just the desire to fight for something in which they feel more free than within the regular organized and stricter western armies.

Comment Re:News for nerds (Score 4, Insightful) 114

This is /. so we can expect comments about 1) was Nepal ready to fight such a disaster, compared to, eg, Japan 2) what are the progresses in terms of EQ detection 3) what is the chance of such a strong EQ happening in that region 4) do we have more & more of such big disasters recently 5) is it linked to the Sun activity, linked to the human oil/gas digging 6) will China offers help to Nepal? ... All of this is rather interesting IMO, so wait and watch!

Slashdot Top Deals

He has not acquired a fortune; the fortune has acquired him. -- Bion

Working...