Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror

Comment From his Facebook post on his Sudoku solver (Score 5, Interesting) 230 230

He posted this on his Facebook.

For techies: the program does a backtrack search, choosing the next cell to guess which minimises the fanout.

Here’s a question for those reading the source code: if x is an (binary) integer, what does (x & -x) compute?

Hope you have fun playing with this. Please tell me if you find any bugs! – LHL

===========

As several of you noted, (x & –x) returns the least significant ‘1’ bit of x, i.e. the highest power of two that divides x. This assumes two’s complement notation for negative numbers, as some of you also pointed out. e.g. if x=12 (binary 1100), then (x & -x) = 4 (binary 100). I didn’t invent this; it is an old programming trick.

Nice!

Comment Human *FLESH* Search is correct! (Score 1) 109 109

No, "flesh" is NOT a racist typo! That is the direct translation of the actual Chinese phrase "ren rou sou suo".

ren rou: human flesh
sou suo: search

The idea is simply to leverage on the wide viewership of Internet communities (i.e.g forums and BBSes) to search or identify the actual "human flesh" responsible for the atrocities depicted in viral videos.

Comment Skyjack only works for WiFi drones! (Score 4, Informative) 161 161

While pro-grade multicopters like those to be deployed by Amazon operate at 2.4GHz, they do not use WiFi as their radio system! Typically, these multicopters are fitted radio systems such as Futaba, JR, Spektrum or 9X, and therefore Skyjack will not be able to take them down.

Comment Limited Android Market (Score 1) 278 278

Not only that the price is expensive after factoring in the shipping charges, this tablet is MIPS-based, so it will have a very limited Android Market. Take note!

The tablet to get is actually Ainol Novo 7 Advanced, not the Novo 7 Basic stated in the article. The 7A has a much better hardware. It is widely believed that the Novo7A will get ICS real soon as there are videos of it running ICS circulating in the chinese forums.

Children begin by loving their parents. After a time they judge them. Rarely, if ever, do they forgive them. - Oscar Wilde

Working...