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

Algorithms

 
QuestionAlgorithm Help Pin
Member 1282317029-Oct-16 12:20
Member 1282317029-Oct-16 12:20 
AnswerRe: Algorithm Help PinPopular
Richard MacCutchan29-Oct-16 21:59
mveRichard MacCutchan29-Oct-16 21:59 
AnswerRe: Algorithm Help Pin
Patrice T17-Nov-16 23:39
mvePatrice T17-Nov-16 23:39 
QuestionWhat is the area I would research for schedule prediction? Pin
BurkusCat26-Oct-16 1:25
professionalBurkusCat26-Oct-16 1:25 
AnswerRe: What is the area I would research for schedule prediction? Pin
Bernhard Hiller26-Oct-16 20:49
Bernhard Hiller26-Oct-16 20:49 
AnswerRe: What is the area I would research for schedule prediction? Pin
Gerry Schmitz27-Oct-16 7:19
mveGerry Schmitz27-Oct-16 7:19 
Questionfrequency sweep problem Pin
Cezar Margineanu20-Oct-16 22:40
Cezar Margineanu20-Oct-16 22:40 
AnswerRe: frequency sweep problem Pin
BeemerWT21-Nov-16 3:40
professionalBeemerWT21-Nov-16 3:40 
What I don't understand is why you do your first counter.

I guess my first question is: Why are you trying to calculate the frequencies of your CPU, but also how? You're just simply increasing an integer every time it loops?

In your first loop, your initialize, you set the nStep to one less than your frequencies? Literally all I'm seeing is that you are getting the summation of all numbers between 800 and 1600.

If all you need to do is calculate "the computation complexity... O((n-1)! * n2)" then you should do exactly that. But you're not doing that.
You're doing:
k=18000.001875/k

Instead just set n1 to nFreqEnd - nFreqStart and n2 to nFreqStop - nFreqStart.
Then plug it in.
I don't understand what O is, but plug that in too.
It would be helpful to know what you are returning exactly...
QuestionRoot Sorting Pin
Member 1279635716-Oct-16 6:02
Member 1279635716-Oct-16 6:02 
GeneralRe: Root Sorting Pin
harold aptroot16-Oct-16 10:22
harold aptroot16-Oct-16 10:22 
GeneralRe: Root Sorting Pin
Manfred Rudolf Bihy26-Oct-16 2:45
professionalManfred Rudolf Bihy26-Oct-16 2:45 
GeneralRe: Root Sorting Pin
harold aptroot26-Oct-16 8:43
harold aptroot26-Oct-16 8:43 
AnswerRe: Root Sorting Pin
Manfred Rudolf Bihy26-Oct-16 2:42
professionalManfred Rudolf Bihy26-Oct-16 2:42 
SuggestionRe: Root Sorting Pin
Ashutosh_se9-Nov-16 3:13
Ashutosh_se9-Nov-16 3:13 
GeneralRe: Root Sorting Pin
Manfred Rudolf Bihy9-Nov-16 3:25
professionalManfred Rudolf Bihy9-Nov-16 3:25 
Questionwhich algorithm dominates f(n) or (g(n)) Pin
Member 127799066-Oct-16 7:11
Member 127799066-Oct-16 7:11 
AnswerRe: which algorithm dominates f(n) or (g(n)) Pin
Afzaal Ahmad Zeeshan6-Oct-16 7:32
professionalAfzaal Ahmad Zeeshan6-Oct-16 7:32 
GeneralRe: which algorithm dominates f(n) or (g(n)) Pin
Member 127799066-Oct-16 8:50
Member 127799066-Oct-16 8:50 
Questionquestion about cycle reduction problem Pin
Member 127782295-Oct-16 10:58
Member 127782295-Oct-16 10:58 
AnswerRe: question about cycle reduction problem Pin
Chris Losinger6-Oct-16 3:59
professionalChris Losinger6-Oct-16 3:59 
Questionbooth's algorithm vs russian peasant's algorithm for multiplying two binary numbers Pin
EZCodeProject27-Sep-16 13:45
EZCodeProject27-Sep-16 13:45 
AnswerRe: booth's algorithm vs russian peasant's algorithm for multiplying two binary numbers Pin
harold aptroot28-Sep-16 3:11
harold aptroot28-Sep-16 3:11 
GeneralRe: booth's algorithm vs russian peasant's algorithm for multiplying two binary numbers Pin
EZCodeProject28-Sep-16 7:08
EZCodeProject28-Sep-16 7:08 
QuestionTrying to get additions, deletions and changes between 2 file versions Pin
Christopher Cote26-Sep-16 2:56
Christopher Cote26-Sep-16 2:56 
AnswerRe: Trying to get additions, deletions and changes between 2 file versions Pin
Peter_in_278026-Sep-16 17:41
professionalPeter_in_278026-Sep-16 17:41 

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.