Talk:Same fringe: Difference between revisions

Content added Content deleted
Line 66: Line 66:


I was just wondering about the 10, 20, 30 and 1, 2, 3? --[[User:Paddy3118|Paddy3118]] 19:49, 18 August 2012 (UTC)
I was just wondering about the 10, 20, 30 and 1, 2, 3? --[[User:Paddy3118|Paddy3118]] 19:49, 18 August 2012 (UTC)
:I believe the author intends n() with 3 things to mean a node with a value and two branches, and that the value of the node is not considered when taking the fringe. Or something like that. --[[User:Spoon!|Spoon!]] 01:28, 19 August 2012 (UTC)
:Judging from the previous Haskell code (which I have replaced), I believe the author intends the first argument of n to be the value of that node, and the following to be children. And if there are no children, then it is a leaf. And that the value of a node that is not a leaf is not considered when taking the fringe. Or something like that. They may be confused because there are different concepts of trees, some with values at nodes and some without; and the problem is not very specific about that. --[[User:Spoon!|Spoon!]] 01:28, 19 August 2012 (UTC)