By the definition of a Tree(ADT), is it “wrong” for a node to add a sibling?
The title pretty much says it all. I’m just having a little computer science exercise and am building a Tree. I want a node to be able to add a sibling which requires one to first get a reference to the parent, obviously. I was wondering what is the “correct” way, by definition of what a Tree is, to do such a thing?
By the definition of a Tree(ADT), is it “wrong” for a node to add a sibling?
The title pretty much says it all. I’m just having a little computer science exercise and am building a Tree. I want a node to be able to add a sibling which requires one to first get a reference to the parent, obviously. I was wondering what is the “correct” way, by definition of what a Tree is, to do such a thing?
By the definition of a Tree(ADT), is it “wrong” for a node to add a sibling?
The title pretty much says it all. I’m just having a little computer science exercise and am building a Tree. I want a node to be able to add a sibling which requires one to first get a reference to the parent, obviously. I was wondering what is the “correct” way, by definition of what a Tree is, to do such a thing?
I’m trying to represent a Tree-like data structure, but running into OutOfMemoryError. Improvements? [closed]
Closed 23 days ago.
I’m trying to represent a Tree-like data structure, but running into OutOfMemoryError. Improvements? [closed]
Closed 23 days ago.
Tree position terminology/naming [closed]
Closed 9 years ago.
Is a tree with nodes that have reference to parent still a tree?
If we make reference to the parent for each node in a tree, do we still have a tree (by definition) anymore?
Is a tree with nodes that have reference to parent still a tree?
If we make reference to the parent for each node in a tree, do we still have a tree (by definition) anymore?
Is a tree with nodes that have reference to parent still a tree?
If we make reference to the parent for each node in a tree, do we still have a tree (by definition) anymore?
Is a tree with nodes that have reference to parent still a tree?
If we make reference to the parent for each node in a tree, do we still have a tree (by definition) anymore?