Click here to Skip to main content
15,913,570 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: My sorting algorithm Pin
molesworth7-Jul-10 1:33
molesworth7-Jul-10 1:33 
GeneralRe: My sorting algorithm Pin
RugbyLeague7-Jul-10 2:37
RugbyLeague7-Jul-10 2:37 
QuestionCounting set bits in bitmap Pin
Tadeusz Westawic24-Jun-10 4:51
Tadeusz Westawic24-Jun-10 4:51 
AnswerRe: Counting set bits in bitmap [modified] Pin
harold aptroot24-Jun-10 5:14
harold aptroot24-Jun-10 5:14 
GeneralRe: Counting set bits in bitmap [modified] Pin
Tadeusz Westawic24-Jun-10 6:07
Tadeusz Westawic24-Jun-10 6:07 
GeneralRe: Counting set bits in bitmap Pin
harold aptroot24-Jun-10 6:19
harold aptroot24-Jun-10 6:19 
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 
OK. "Swim" is my term to describe the motion of the bits in the bitmap (my wheel unsticks as I write).

In my actual code for other bitmap projects tricks are IN but only generic boolean blitting, no graphics languages per se but certainly take what a device interface gives. All need know are bm dims.

"Swim" would blit the lower portion of bm against the upper in binary shrinking row count.

Take OR blit to 'swim' all the bottom half bits to upper half bitmap.
Take AND on same two bitmaps to preserve the bits that could not swim due to collision with bits already in upper half.
.
.

Too fuzzy yet.

Tadeusz Westawic

Sum quid sum.
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 
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 

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.