| | |
What's the difference between a parent and predecessor node in binary search tree?
![]() |
•
•
Join Date: Jul 2009
Posts: 35
Reputation:
Solved Threads: 0
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 |
911 actionlistener addressbook android api append applet application array arrays automation binary blackberry block bluetooth character chat class client code component consumer csv database desktop developmenthelp eclipse error fractal ftp game givemetehcodez graphics gui html ide image integer j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jni jpanel julia lego linked linux list loops mac map method methods mobile netbeans newbie number objects online oriented panel printf problem program programming project projects properties recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server set singleton sms sort sql string swing test textfields threads time title tree tutorial-sample ubuntu update windows working






