Follow Slashdot stories on Twitter


Forgot your password?

Comment: Re:The actual code (Score 1) 223

by hcs_$reboot (#49618833) Attached to: Singapore's Prime Minister Shares His C++ Sudoku Solver Code
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) 1050

by hcs_$reboot (#49618787) Attached to: Two Gunman Killed Outside "Draw the Prophet" Event In Texas

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) 1050

by hcs_$reboot (#49609497) Attached to: Two Gunman Killed Outside "Draw the Prophet" Event In Texas

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.