News for hackers. Stuff that matters.
Re:Iterating over Bit Sets Quickly by vjerancrnjak on Saturday February 24, 2024 @06:03PM (#39495951)
n-queens too, a simple example that can benefit from this bit trick. Eventually you're looking for free columns in the current row where queen can be put. Instead of going over all columns, with a few bit operations iteration can only go directly through free columns.

There are no comments on this comment yet.