Re:The Racket Blog: Dynamic Programming versus Memoization
by Evbn on Sunday August 26, 2012 @02:50PM
(#4435853)
Trees are commonly directed. Single in edge per node is the important distinction.
Re:The Racket Blog: Dynamic Programming versus Memoization
by pilgrim689 on Sunday August 26, 2012 @03:25PM
(#4435957)
Right, but then we'd be talking about the difference between a "directed tree" and a DAG...or a "rooted tree" and a DAG. But yea, I'm sure grand-parent gets the point by now
Re:The Racket Blog: Dynamic Programming versus Memoization
by lukev on Sunday August 26, 2012 @05:40PM
(#4436321)
Yep, thanks. I realize that in graph theory trees aren't directed, but in programming, saying "tree" almost always implies a parent-child relationship (i.e, directedness).
I was missing that nodes in a DAG can have two "parents", that makes sense.
Here's an example of a DAG that can't be a tree because of the edge directions:
http://en.wikipedia.org/wiki/File:Directed_acyclic_graph_3.s...