Click here to Skip to main content
15,887,325 members
Home / Discussions / Algorithms
   

Algorithms

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder28-Jul-09 2:32
cofounderChris Maunder28-Jul-09 2:32 
PinnedHow to get an answer to your question PinPopular
Chris Maunder16-Mar-09 10:13
cofounderChris Maunder16-Mar-09 10:13 
Questionbfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
TalespinTales1-Jan-24 7:18
TalespinTales1-Jan-24 7:18 
AnswerRe: bfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
Dave Kreskowiak1-Jan-24 9:26
mveDave Kreskowiak1-Jan-24 9:26 
GeneralRe: bfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
TalespinTales1-Jan-24 9:31
TalespinTales1-Jan-24 9:31 
GeneralRe: bfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
Dave Kreskowiak1-Jan-24 10:46
mveDave Kreskowiak1-Jan-24 10:46 
GeneralRe: bfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
TalespinTales1-Jan-24 10:54
TalespinTales1-Jan-24 10:54 
GeneralRe: bfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
Dave Kreskowiak1-Jan-24 12:36
mveDave Kreskowiak1-Jan-24 12:36 
AnswerRe: bfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
Gerry Schmitz1-Jan-24 11:04
mveGerry Schmitz1-Jan-24 11:04 
AnswerRe: bfs, dfs, a* & dijkstra algorithms - find the shortest route Pin
jschell2-Jan-24 6:32
jschell2-Jan-24 6:32 
Question[SOLVED] Representing Metadata Pin
Richard Andrew x6429-Dec-23 13:52
professionalRichard Andrew x6429-Dec-23 13:52 
AnswerRe: [SOLVED] Representing Metadata Pin
Gerry Schmitz30-Dec-23 6:50
mveGerry Schmitz30-Dec-23 6:50 
GeneralRe: [SOLVED] Representing Metadata Pin
Richard Andrew x6430-Dec-23 12:52
professionalRichard Andrew x6430-Dec-23 12:52 
QuestionLocking pattern to protect a critical List<> with many worker threads Pin
Richard Andrew x6426-Dec-23 8:02
professionalRichard Andrew x6426-Dec-23 8:02 
AnswerRe: Locking pattern to protect a critical List<> with many worker threads Pin
Mircea Neacsu26-Dec-23 8:17
Mircea Neacsu26-Dec-23 8:17 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
Richard Andrew x6426-Dec-23 8:39
professionalRichard Andrew x6426-Dec-23 8:39 
AnswerRe: Locking pattern to protect a critical List<> with many worker threads Pin
jschell27-Dec-23 5:27
jschell27-Dec-23 5:27 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
Richard Andrew x6427-Dec-23 5:32
professionalRichard Andrew x6427-Dec-23 5:32 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
harold aptroot27-Dec-23 8:01
harold aptroot27-Dec-23 8:01 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
Richard Andrew x6427-Dec-23 8:32
professionalRichard Andrew x6427-Dec-23 8:32 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads [edited] Pin
harold aptroot27-Dec-23 9:23
harold aptroot27-Dec-23 9:23 
A shallow copy does the trick. jschell doesn't want to call this a shallow copy, whatever. What I meant, and what the whole thread has always been about, is assigning the list to a local variable, and never editing its contents, only replacing the whole thing. The list which a reader is iterating over does not change since it has an .. even shallower f***ing copy, whatever the f*** you want to call it. Copy of the pointer. They can update that when they're ready for it to change.

The list is never modified anyway, only replaced. At least that was the premise of this sub-thread stared by jschell

modified 29-Dec-23 11:32am.

GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
jschell28-Dec-23 5:55
jschell28-Dec-23 5:55 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
harold aptroot28-Dec-23 6:19
harold aptroot28-Dec-23 6:19 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
jschell29-Dec-23 4:46
jschell29-Dec-23 4:46 
GeneralRe: Locking pattern to protect a critical List<> with many worker threads Pin
harold aptroot29-Dec-23 5:19
harold aptroot29-Dec-23 5:19 

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.