Click here to Skip to main content
15,890,579 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Counting set bits in bitmap Pin
harold aptroot24-Jun-10 7:01
harold aptroot24-Jun-10 7:01 
GeneralRe: Counting set bits in bitmap Pin
Tadeusz Westawic24-Jun-10 7:46
Tadeusz Westawic24-Jun-10 7:46 
GeneralRe: Counting set bits in bitmap Pin
Luc Pattyn24-Jun-10 8:06
sitebuilderLuc Pattyn24-Jun-10 8:06 
GeneralRe: Counting set bits in bitmap Pin
Tadeusz Westawic24-Jun-10 10:27
Tadeusz Westawic24-Jun-10 10:27 
GeneralRe: Counting set bits in bitmap [modified] Pin
Luc Pattyn24-Jun-10 11:00
sitebuilderLuc Pattyn24-Jun-10 11:00 
GeneralRe: Counting set bits in bitmap Pin
harold aptroot24-Jun-10 8:07
harold aptroot24-Jun-10 8:07 
GeneralRe: swimming adder Pin
Luc Pattyn24-Jun-10 8:32
sitebuilderLuc Pattyn24-Jun-10 8:32 
GeneralRe: Counting set bits in bitmap [modified] Pin
Tadeusz Westawic24-Jun-10 9:04
Tadeusz Westawic24-Jun-10 9:04 
No, not that way, although you should not lose your idea, it is applicable elsewhere especially using "color" bitmaps.

The room proctor wishes I explain myself so I have to go qualify for next level or some such. Patience,

****BEGIN EDIT
Consider 1-dimensional bm 16 bits wide as {0011 1011 0100 0110} nb 8 bits are set

OR low-order on high-order to get {0111 1111 dont care low-order 8 bits} nb 7 bits are set
AND low on hi to get {0000 0010} nb 1 bit is set, the one missing from the OR

The OR yields an undercount which is tallied by the AND.
****END EDIT
Tadeusz Westawic

Sum quid sum.



-- Modified Thursday, June 24, 2010 4:40 PM
GeneralRe: Counting set bits in bitmap Pin
harold aptroot24-Jun-10 11:15
harold aptroot24-Jun-10 11:15 
GeneralRe: Counting set bits in bitmap Pin
Tadeusz Westawic24-Jun-10 11:47
Tadeusz Westawic24-Jun-10 11:47 
GeneralRe: Counting set bits in bitmap Pin
Luc Pattyn24-Jun-10 12:26
sitebuilderLuc Pattyn24-Jun-10 12:26 
GeneralRe: Counting set bits in bitmap Pin
Tadeusz Westawic24-Jun-10 14:12
Tadeusz Westawic24-Jun-10 14:12 
GeneralRe: Counting set bits in bitmap Pin
Member 419459326-Jun-10 17:28
Member 419459326-Jun-10 17:28 
GeneralRe: Counting set bits in bitmap Pin
harold aptroot27-Jun-10 2:28
harold aptroot27-Jun-10 2:28 
GeneralRe: Counting set bits in bitmap Pin
Member 419459327-Jun-10 5:49
Member 419459327-Jun-10 5:49 
AnswerRe: Counting set bits in bitmap Pin
Luc Pattyn24-Jun-10 5:20
sitebuilderLuc Pattyn24-Jun-10 5:20 
Questionhex calculator Pin
Tadeusz Westawic23-Jun-10 2:50
Tadeusz Westawic23-Jun-10 2:50 
AnswerRe: hex calculator Pin
Richard MacCutchan23-Jun-10 2:58
mveRichard MacCutchan23-Jun-10 2:58 
GeneralRe: hex calculator Pin
Tadeusz Westawic23-Jun-10 16:40
Tadeusz Westawic23-Jun-10 16:40 
GeneralRe: hex calculator Pin
Richard MacCutchan23-Jun-10 21:42
mveRichard MacCutchan23-Jun-10 21:42 
GeneralRe: hex calculator Pin
wbgxx29-Jun-10 7:12
wbgxx29-Jun-10 7:12 
AnswerRe: hex calculator Pin
Luc Pattyn23-Jun-10 3:54
sitebuilderLuc Pattyn23-Jun-10 3:54 
GeneralRe: hex calculator Pin
Tadeusz Westawic23-Jun-10 9:08
Tadeusz Westawic23-Jun-10 9:08 
GeneralRe: hex calculator Pin
Luc Pattyn23-Jun-10 9:12
sitebuilderLuc Pattyn23-Jun-10 9:12 
AnswerRe: hex calculator Pin
Alan Balkany23-Jun-10 3:56
Alan Balkany23-Jun-10 3:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.