New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node_number_at_depth broken for binary trees #29134
Comments
comment:1
For compactness, the usual ascii_art plot does not display the leaves, which nevertheless are nodes.
|
comment:2
I therefore suggest to close as invalid. All the conventions are clearly explained in the documentation. |
comment:3
Replying to @fchapoton:
Indeed, that explains the output I got. It is still a bit confusing that
In my opinion, there is an inconsistency that should be fixed. The documentation is not that clear about this. If anything, I am inclined to interpret it as saying that leaves are not considered nodes in binary trees:
|
Author: Travis Scrimshaw |
Commit: |
This comment has been minimized.
This comment has been minimized.
comment:4
I think it is slightly misleading to say 1 - binary trees with There is a definite inconsistency here between
In particular, it says an empty tree has 1 node, which is wrong. This branch fixes this. New commits:
|
comment:5
Thanks for fixing this so quickly. It works exactly as I expect. Frédéric, if you agree, I think this can be set to positive. |
Reviewer: Markus Wageringel |
comment:6
do whatever you want, I have no time |
comment:7
Ok, no problem. |
Changed branch from public/combinat/fix_node_number_at_depth_empty_tree-29134 to |
This comes from the fact that the empty tree thinks it has 1 node at depth 0:
CC: @tscrim @jm58660 @darijgr
Component: combinatorics
Author: Travis Scrimshaw
Branch/Commit:
aaa0581
Reviewer: Markus Wageringel
Issue created by migration from https://trac.sagemath.org/ticket/29134
The text was updated successfully, but these errors were encountered: