Click here to Skip to main content
15,892,059 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Pair wise testing with QICT Knuth shuffle algorithm Pin
Richard MacCutchan30-Dec-09 10:52
mveRichard MacCutchan30-Dec-09 10:52 
QuestionGraph algorithms on bitgraphs Pin
harold aptroot23-Dec-09 6:21
harold aptroot23-Dec-09 6:21 
AnswerRe: Graph algorithms on bitgraphs Pin
Luc Pattyn23-Dec-09 7:00
sitebuilderLuc Pattyn23-Dec-09 7:00 
GeneralRe: Graph algorithms on bitgraphs Pin
harold aptroot23-Dec-09 7:13
harold aptroot23-Dec-09 7:13 
GeneralRe: Graph algorithms on bitgraphs Pin
Tim Craig23-Dec-09 10:02
Tim Craig23-Dec-09 10:02 
GeneralRe: Graph algorithms on bitgraphs Pin
harold aptroot24-Jan-10 6:44
harold aptroot24-Jan-10 6:44 
AnswerRe: Speed comparison of data types [modified] Pin
harold aptroot21-Dec-09 5:30
harold aptroot21-Dec-09 5:30 
GeneralRe: Speed comparison of data types Pin
harold aptroot21-Dec-09 6:40
harold aptroot21-Dec-09 6:40 
Everything - ok maybe not, but pretty much.
Dividing two doubles may take as much as 21 cycles, and as little as 6. Dividing two 32bit ints may take 18 to 42 cycles, but it's usually on the smaller end of that. Whether it is on average better to divide doubles or ints depends on what kinds of values you have.
And doing any kind of math on denormals/NaN's/infinity's can incur a penalty.

Also, for 64bit numbers idiv is lower than div (up to 30%!)
AnswerRe: Speed comparison of data types Pin
Luc Pattyn21-Dec-09 6:37
sitebuilderLuc Pattyn21-Dec-09 6:37 
GeneralRe: Speed comparison of data types Pin
harold aptroot21-Dec-09 6:43
harold aptroot21-Dec-09 6:43 
QuestionFluid Layout By Custom Polygon Shapes Pin
Som Shekhar15-Dec-09 18:36
Som Shekhar15-Dec-09 18:36 
QuestionWhat will be the height of fluid columns in a variable width cylinder Pin
Som Shekhar15-Dec-09 7:26
Som Shekhar15-Dec-09 7:26 
AnswerRe: What will be the height of fluid columns in a variable width cylinder Pin
Dr.Walt Fair, PE15-Dec-09 7:57
professionalDr.Walt Fair, PE15-Dec-09 7:57 
GeneralRe: What will be the height of fluid columns in a variable width cylinder Pin
Som Shekhar15-Dec-09 8:05
Som Shekhar15-Dec-09 8:05 
QuestionPrime Numbers List Website Pin
Tadeusz Westawic14-Dec-09 5:31
Tadeusz Westawic14-Dec-09 5:31 
AnswerRe: Prime Numbers List Website Pin
Luc Pattyn14-Dec-09 6:16
sitebuilderLuc Pattyn14-Dec-09 6:16 
GeneralRe: Prime Numbers List Website Pin
Tadeusz Westawic14-Dec-09 14:44
Tadeusz Westawic14-Dec-09 14:44 
GeneralRe: Prime Numbers List Website Pin
Tim Craig14-Dec-09 17:16
Tim Craig14-Dec-09 17:16 
QuestionSample code to encode/decode the plain text using ecc in C# Pin
udayanuk14-Dec-09 4:24
udayanuk14-Dec-09 4:24 
AnswerRe: Sample code to encode/decode the plain text using ecc in C# Pin
Luc Pattyn14-Dec-09 6:18
sitebuilderLuc Pattyn14-Dec-09 6:18 
AnswerRe: Sample code to encode/decode the plain text using ecc in C# Pin
Tim Craig14-Dec-09 14:17
Tim Craig14-Dec-09 14:17 
QuestionImaging Algorithm Pin
Member 323506112-Dec-09 20:50
Member 323506112-Dec-09 20:50 
QuestionRe: Imaging Algorithm Pin
Tim Craig13-Dec-09 17:43
Tim Craig13-Dec-09 17:43 
Questionabout K-Means algorithm for image Pin
nel7son11-Dec-09 16:13
nel7son11-Dec-09 16:13 
AnswerRe: about K-Means algorithm for image Pin
Richard MacCutchan12-Dec-09 2:43
mveRichard MacCutchan12-Dec-09 2:43 

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.