in reply to Re^6: Locating a specified number of contiguous 0 bits within a large bitstring efficiently.
in thread Locating a specified number of contiguous 0 bits within a large bitstring efficiently.
More explicitly, neither my nor grimey's versions handles the cases where the run of zeroes occurs entirely inside one byte,
which in this example happens for $N in 1..4,
so you'd only expect to see correct answers from 5 on down.
Secondly, I'm getting the correct numbers for 14..17 when I run it so I'm guessing there's something else going on with either your testbed or mine
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Locating a specified number of contiguous 0 bits within a large bitstring efficiently.
by BrowserUk (Patriarch) on Jun 08, 2013 at 06:20 UTC | |
by wrog (Friar) on Jun 08, 2013 at 11:37 UTC |