Click here to Skip to main content
16,004,761 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Plotting large amount of data points Pin
nico8015-Oct-07 14:32
nico8015-Oct-07 14:32 
GeneralRe: Plotting large amount of data points Pin
nico8016-Oct-07 11:25
nico8016-Oct-07 11:25 
GeneralRe: Plotting large amount of data points Pin
cp987616-Oct-07 14:52
cp987616-Oct-07 14:52 
GeneralRe: Plotting large amount of data points Pin
Ri Qen-Sin23-Oct-07 14:59
Ri Qen-Sin23-Oct-07 14:59 
GeneralA Prayer for Archimedes Pin
Bassam Abdul-Baki10-Oct-07 6:44
professionalBassam Abdul-Baki10-Oct-07 6:44 
GeneralRe: A Prayer for Archimedes Pin
IdUnknown10-Oct-07 7:16
IdUnknown10-Oct-07 7:16 
GeneralRe: A Prayer for Archimedes Pin
Bassam Abdul-Baki10-Oct-07 7:26
professionalBassam Abdul-Baki10-Oct-07 7:26 
Questionfill memory with a pattern Pin
DQNOK10-Oct-07 5:21
professionalDQNOK10-Oct-07 5:21 
Is there an efficient algorithm to fill memory with an arbitrary pattern?
void memoryfill( void* target, char* pattern, size_t patlen, size_t numRepeats )
{
   if( 1 == patlen ) memset(target, *pattern, numRepeats);
   else ???
}
I came up with something that makes 2*log(numRepeats) calls to memcpy(), but figured this must be a standard thing to do, and there is probably a good algorithm (better than mine?) already out there. I couldn't find anything on CodeProject, or on Google.

David
AnswerRe: fill memory with a pattern Pin
DQNOK11-Oct-07 7:35
professionalDQNOK11-Oct-07 7:35 
AnswerRe: fill memory with a pattern Pin
Alan Balkany24-Oct-07 4:13
Alan Balkany24-Oct-07 4:13 
GeneralRe: fill memory with a pattern Pin
DQNOK24-Oct-07 10:33
professionalDQNOK24-Oct-07 10:33 
GeneralRe: fill memory with a pattern Pin
DQNOK25-Oct-07 3:41
professionalDQNOK25-Oct-07 3:41 
QuestionAlgorithm to check how different are two files? Pin
bosfan9-Oct-07 22:01
bosfan9-Oct-07 22:01 
AnswerRe: Algorithm to check how different are two files? Pin
cp98769-Oct-07 22:56
cp98769-Oct-07 22:56 
GeneralRe: Algorithm to check how different are two files? Pin
bosfan9-Oct-07 23:18
bosfan9-Oct-07 23:18 
AnswerRe: Algorithm to check how different are two files? Pin
ScottM111-Oct-07 2:07
ScottM111-Oct-07 2:07 
GeneralRe: Algorithm to check how different are two files? Pin
ChandraRam11-Oct-07 2:25
ChandraRam11-Oct-07 2:25 
GeneralRe: Algorithm to check how different are two files? Pin
ScottM124-Oct-07 3:59
ScottM124-Oct-07 3:59 
AnswerRe: Algorithm to check how different are two files? Pin
chandu00413-Oct-07 0:30
chandu00413-Oct-07 0:30 
AnswerRe: Algorithm to check how different are two files? Pin
Gesown16-Oct-07 6:20
professionalGesown16-Oct-07 6:20 
Questiongenetic algorithms for image generation? Pin
Juraj Borza9-Oct-07 9:56
Juraj Borza9-Oct-07 9:56 
AnswerRe: genetic algorithms for image generation? Pin
Stan F. Form13-Oct-07 3:16
Stan F. Form13-Oct-07 3:16 
AnswerRe: genetic algorithms for image generation? Pin
Marshall15-Oct-07 9:26
Marshall15-Oct-07 9:26 
AnswerRe: genetic algorithms for image generation? Pin
Alan Balkany24-Oct-07 4:24
Alan Balkany24-Oct-07 4:24 
QuestionA simple question Pin
Ennis Ray Lynch, Jr.9-Oct-07 3:53
Ennis Ray Lynch, Jr.9-Oct-07 3:53 

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.