Click here to Skip to main content
15,889,872 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
Richard Andrew x6429-Dec-23 13:25
professionalRichard Andrew x6429-Dec-23 13:25 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
jschell1-Jan-24 1:57
jschell1-Jan-24 1:57 
AnswerRe: Locking pattern to protect a critical List<> with many worker threads Pin
Gerry Schmitz27-Dec-23 8:23
mveGerry Schmitz27-Dec-23 8:23 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
Richard Andrew x6427-Dec-23 8:29
professionalRichard Andrew x6427-Dec-23 8:29 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
Gerry Schmitz28-Dec-23 6:37
mveGerry Schmitz28-Dec-23 6:37 
QuestionGuides on solving this recurrence relation equation? Pin
oslon1-Dec-23 21:54
oslon1-Dec-23 21:54 
AnswerRe: Guides on solving this recurrence relation equation? Pin
Andre Oosthuizen1-Dec-23 22:12
mveAndre Oosthuizen1-Dec-23 22:12 
AnswerRe: Guides on solving this recurrence relation equation? Pin
jeron12-Dec-23 7:13
jeron12-Dec-23 7:13 
Start writing things out more fully then look for the pattern in terms of n .

T(1) = c

T(2) = 2T(1) + d
T(2) = 2c + d   -------- take this
			           |
T(3) = 2T(2) + d	   |
			           |
           ____________| and put it here
           |
        /------\
T(3) = 2(2c + d) + d
T(3) = 4c + 2d + d
T(3) = 4c + 3d

T(4) = 2T(3) + d
T(4) = 2(4c + 3d) + d
T(4) = 8c + 6d + d
T(4) = 8c + 7d

T(5) = 2T(4) + d
T(5) = 2(8c + 7d) + d
T(5) = 16c + 14d + d
T(5) = 16c + 15d

"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle

AnswerRe: Guides on solving this recurrence relation equation? Pin
jschell4-Dec-23 3:25
jschell4-Dec-23 3:25 
QuestionScheduling with constraints Pin
jedraw3-Nov-23 5:23
jedraw3-Nov-23 5:23 
AnswerRe: Scheduling with constraints Pin
Gerry Schmitz3-Nov-23 6:08
mveGerry Schmitz3-Nov-23 6:08 
AnswerRe: Scheduling with constraints Pin
Richard MacCutchan3-Nov-23 6:40
mveRichard MacCutchan3-Nov-23 6:40 
GeneralRe: Scheduling with constraints Pin
jedraw3-Nov-23 6:55
jedraw3-Nov-23 6:55 
GeneralRe: Scheduling with constraints Pin
Richard MacCutchan3-Nov-23 7:06
mveRichard MacCutchan3-Nov-23 7:06 
QuestionRound-robin tournament scheduling, with teams that may share their home field Pin
Mad Bat30-Oct-23 7:00
Mad Bat30-Oct-23 7:00 
AnswerRe: Round-robin tournament scheduling, with teams that may share their home field Pin
Gerry Schmitz30-Oct-23 7:25
mveGerry Schmitz30-Oct-23 7:25 
QuestionAlgorithm Sequence Programming Competition Pin
Member 1612077221-Oct-23 3:38
Member 1612077221-Oct-23 3:38 
AnswerRe: Algorithm Sequence Programming Competition Pin
Gerry Schmitz21-Oct-23 7:42
mveGerry Schmitz21-Oct-23 7:42 
AnswerRe: Algorithm Sequence Programming Competition Pin
Mircea Neacsu21-Oct-23 12:26
Mircea Neacsu21-Oct-23 12:26 
GeneralRe: Algorithm Sequence Programming Competition Pin
Member 1612077221-Oct-23 16:58
Member 1612077221-Oct-23 16:58 
AnswerRe: Algorithm Sequence Programming Competition Pin
Mircea Neacsu21-Oct-23 19:48
Mircea Neacsu21-Oct-23 19:48 
GeneralRe: Algorithm Sequence Programming Competition Pin
Gerry Schmitz22-Oct-23 9:05
mveGerry Schmitz22-Oct-23 9:05 
QuestionCollision Response in a RTS game, still trying to figure it out. Pin
Calin Negru23-Sep-23 7:32
Calin Negru23-Sep-23 7:32 
AnswerRe: Collision Response in a RTS game, still trying to figure it out. Pin
Gerry Schmitz23-Sep-23 7:48
mveGerry Schmitz23-Sep-23 7:48 
GeneralRe: Collision Response in a RTS game, still trying to figure it out. Pin
Calin Negru23-Sep-23 22:21
Calin Negru23-Sep-23 22:21 

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.