Question: 1 . Add a method in AVL _ tree.h as follows. ( 3 5 pts ) void range _ search ( const Record &r 1

1. Add a method in AVL_tree.h as follows. (35 pts)
void range_search(const Record &r1, const Record &r2, vector &results)
const;
The method takes two input parameters r1 and r2, and one output parameter results. It requires r1= r2. The method finds all the records that are between r1 and r2 in the AVL tree (including r1 and r2), and returns them in results. The output results is empty if no record is found within the range.
 1. Add a method in AVL_tree.h as follows. (35 pts) void

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!