Question 12.1.3: Simplify the procedure using the following trick. Extend the......

Simplify the procedure using the following trick. Extend the array val, adding a cell with index null. Let val [null] be t.

Step-by-Step
The 'Blue Check Mark' means that this solution was answered by an expert.
Learn more on how do we answer questions.
val [null]  := t;
x := root ;
while t <> val [x] do begin

if t < val [x] then begin

x := left  [x];

end else begin
x := right  [x];
end ;

end ;
..answer is (x <> null).

Related Answered Questions

Question: 12.2.2

Verified Answer:

By induction over n, we prove that Φ_{n+2} ...
Question: 12.2.1

Verified Answer:

The maximal number of vertices is equal to ...
Question: 12.1.2

Verified Answer:

if root = null then begin ..t is not in the tree e...