Click here to Skip to main content
15,848,558 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionMethods for Solving different forms of Recurrence Relations Pin
Dawood Ahmad 20213-Apr-22 11:46
Dawood Ahmad 20213-Apr-22 11:46 
AnswerRe: Methods for Solving different forms of Recurrence Relations Pin
Randor 26-Apr-22 19:06
professional Randor 26-Apr-22 19:06 
QuestionHelp with allocation algorithm Pin
Cynthia Moore31-Mar-22 0:53
Cynthia Moore31-Mar-22 0:53 
AnswerRe: Help with allocation algorithm Pin
Member 146609423-May-22 5:01
Member 146609423-May-22 5:01 
AnswerRe: Help with allocation algorithm Pin
englebart12-Oct-22 17:01
professionalenglebart12-Oct-22 17:01 
QuestionVery smart pointers Pin
Andy Oct202121-Mar-22 10:24
Andy Oct202121-Mar-22 10:24 
AnswerRe: Very smart pointers Pin
Greg Utas26-Mar-22 11:14
professionalGreg Utas26-Mar-22 11:14 
AnswerRe: Very smart pointers Pin
Member 146609423-May-22 5:13
Member 146609423-May-22 5:13 
You can do a test with a circular reference.

A => B => C => A

So, if I have an initial pointer to A object, because of the construct, it is going to have a count of 2 (because of C). The need for the Garbage Collector is that if you remove the initial pointer to A (either in the Stack or Heap), A's reference count only decreases to 1, and because of C it never goes to 0. Is your code prepared to deal with that?

The problem here with reference counting is that one above; it doesn't count how many "access paths" you have to an object, just the number of references you have to it.
GeneralRe: Very smart pointers Pin
Andy Oct20213-May-22 23:21
Andy Oct20213-May-22 23:21 
QuestionMaximum Sum of Value of Positions Along a Path Pin
Jj2093884218-Mar-22 14:30
Jj2093884218-Mar-22 14:30 
AnswerRe: Maximum Sum of Value of Positions Along a Path Pin
Richard Andrew x6418-Mar-22 15:11
professionalRichard Andrew x6418-Mar-22 15:11 
GeneralRe: Maximum Sum of Value of Positions Along a Path Pin
Jj2093884218-Mar-22 15:21
Jj2093884218-Mar-22 15:21 
AnswerRe: Maximum Sum of Value of Positions Along a Path Pin
Richard Andrew x6418-Mar-22 15:25
professionalRichard Andrew x6418-Mar-22 15:25 
GeneralRe: Maximum Sum of Value of Positions Along a Path Pin
Jj2093884218-Mar-22 19:40
Jj2093884218-Mar-22 19:40 
AnswerRe: Maximum Sum of Value of Positions Along a Path Pin
Gerry Schmitz19-Mar-22 6:33
mveGerry Schmitz19-Mar-22 6:33 
GeneralRe: Maximum Sum of Value of Positions Along a Path Pin
Jj2093884219-Mar-22 6:49
Jj2093884219-Mar-22 6:49 
GeneralRe: Maximum Sum of Value of Positions Along a Path Pin
Gerry Schmitz19-Mar-22 7:12
mveGerry Schmitz19-Mar-22 7:12 
GeneralRe: Maximum Sum of Value of Positions Along a Path Pin
Jj2093884219-Mar-22 7:21
Jj2093884219-Mar-22 7:21 
GeneralRe: Maximum Sum of Value of Positions Along a Path Pin
Gerry Schmitz19-Mar-22 7:57
mveGerry Schmitz19-Mar-22 7:57 
GeneralRe: Maximum Sum of Value of Positions Along a Path Pin
Jj2093884219-Mar-22 8:41
Jj2093884219-Mar-22 8:41 
QuestionSpecial minimum spanning tree Pin
Andy Oct202116-Mar-22 11:35
Andy Oct202116-Mar-22 11:35 
AnswerRe: Special minimum spanning tree Pin
Andy Oct202116-Mar-22 16:58
Andy Oct202116-Mar-22 16:58 
AnswerRe: Special minimum spanning tree Pin
akratirawat30-Jun-22 20:38
akratirawat30-Jun-22 20:38 
QuestionTriangulation inside a contour Pin
Member 1505866510-Mar-22 2:44
Member 1505866510-Mar-22 2:44 
AnswerRe: Triangulation inside a contour Pin
Gerry Schmitz10-Mar-22 17:27
mveGerry Schmitz10-Mar-22 17:27 

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.