Discussion:
A3Q1
(too old to reply)
Wenting Wang
2011-10-21 23:18:55 UTC
Permalink
Hi,

Can someone explain it to me what it means by succ(T,X) being
"undefined". Does it imply we need to give an error message?


Thank you!

Cheryl
cs240
2011-10-24 13:18:36 UTC
Permalink
It means that the node X does not have a right child, or there is no node
on the path from X to the root node whose key is greater than the key of
X. In this case, you algorithm should return nil or undefined.

Vivian
CS240 Tutor
Post by Wenting Wang
Hi,
Can someone explain it to me what it means by succ(T,X) being
"undefined". Does it imply we need to give an error message?
Thank you!
Cheryl
Loading...