Question: Data structure ( C++ ). I want to ask If my answer for this question is correct or not ? 6. Write an algorithm of

Data structure ( C++ ). I want to ask If my answer for this question is correct or not ?

6. Write an algorithm of Searching of Minimal and Maximal Keys in the Binary Search Tree;

MINIMUM(x)

{

While (left[x]!=nil)

x=left[x];

Return x;

}

MAXIMUM(x)

{

While (right[x]!=nil)

x=right[x];

Return x;

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!