Click here to Skip to main content
15,909,332 members
Home / Discussions / Algorithms
   

Algorithms

 
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 
in my experience, a table lookup can go a long way, using either an 8-bit or a 16-bit index, and repeating for each 8/16-bit fraction of the data.

And then, are you sure you need the count? and nothing else?
chances are counting the bits is bus bandwidth limited already, so combining it with another operation may pay off big time.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use < PRE > tags for code snippets, it preserves indentation, and improves readability.


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 
AnswerRe: hex calculator Pin
Abhinav S23-Jun-10 5:19
Abhinav S23-Jun-10 5:19 
AnswerRe: hex calculator Pin
Tadeusz Westawic23-Jun-10 16:38
Tadeusz Westawic23-Jun-10 16:38 
GeneralRe: hex calculator Pin
Bassam Abdul-Baki20-Jul-10 4:03
professionalBassam Abdul-Baki20-Jul-10 4:03 
QuestionSeeking A Solution Pin
Roger Wright21-Jun-10 16:40
professionalRoger Wright21-Jun-10 16:40 
AnswerRe: Seeking A Solution Pin
Dr.Walt Fair, PE21-Jun-10 17:12
professionalDr.Walt Fair, PE21-Jun-10 17:12 
GeneralRe: Seeking A Solution Pin
Roger Wright21-Jun-10 17:30
professionalRoger Wright21-Jun-10 17:30 
GeneralRe: Seeking A Solution Pin
Luc Pattyn21-Jun-10 19:00
sitebuilderLuc Pattyn21-Jun-10 19:00 
GeneralRe: Seeking A Solution Pin
kenfry1322-Jun-10 14:57
kenfry1322-Jun-10 14:57 

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.