| | |
What's the difference between a parent and predecessor node in binary search tree?
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jul 2009
Posts: 35
Reputation:
Solved Threads: 0
What's the difference between a parent and predecessor node in binary search tree?
0
#1 Nov 5th, 2009
Just wondering what the difference is. I don't think I need to post my code, but basically for my assignment, I have stubs for a binary search tree. There are nodes created in the constructor, and among them are:
Node parent
Node predecessor
Node sucessor
Node right
Node left
Is there a point in predecessor and sucessor? Seems to me it would work with just parent, right, and left, no?
Thanks
Node parent
Node predecessor
Node sucessor
Node right
Node left
Is there a point in predecessor and sucessor? Seems to me it would work with just parent, right, and left, no?
Thanks
![]() |
Similar Threads
- Splay- Binary search tree (Java)
- Binary Search Tree within in BT ? (C++)
- searching binary search tree (C++)
- Help implementing a binary search tree in Java (Java)
- deleting a Binary search tree (C++)
- Code Snippet: Binary Search Tree Template (C)
- searching and inserting node in a binary search tree (C)
- Binary search tree removal (C++)
- Insertion in a binary search tree (C++)
Other Threads in the Java Forum
- Previous Thread: Interestin dilemma - See if you can help :)
- Next Thread: Error on repairing program
| Thread Tools | Search this Thread |
Tag cloud for Java
affinetransform android api append apple applet application arguments array arrays automation bi binary bluetooth businessintelligence busy_handler(null) chat class classes client code component database draw eclipse encryption equation error event exception file fractal game givemetehcodez graphics gui helpwithhomework html ide image input integer intersect j2me java javaexcel javaprojects jmf jni jpanel julia linked linux list loop main map method methods mobile netbeans newbie number open-source oracle oriented panel print problem program programming project qt recursion reference replaysolutions repositories return robot scanner screen scrollbar se server set singleton size sms socket sort sql string swing test threads time tree utility windows xor






