Question: Ex1. DLL2BST (15 points) Add a constructor that constructs the binary search tree from the given DLList. BST ::BST(const DLL & list) Find the Second

Ex1. DLL2BST (15 points)
Add a constructor that constructs the binary search tree from the given DLList.
BST::BST(const DLL& list)
Find the Second Minimum ()
Write a member function called int BST::Find_Second_Minimum() const. The function retrieves the value of the node that has the second minimum value in the current BST. The second minimum is the element just greater than the minimum number. The running time of your implementation should be O(h).
. Get the Longest Path
Write a member function called DLList BST:: get_longest_path() that returns a DLL of the longest path in the tree. For example, the red nodes in the following tree are on the longest path and should be added to the list. In case there are multiple longest paths, retrieve any of them.
 Ex1. DLL2BST (15 points) Add a constructor that constructs the binary

Ex3. Get the Longest Path (25 points) Write a member function called DLList BST:: get_longest_path() that returns a DLL of the longest path in the tree. For example, the red nodes in the following tree are on the longest path and should be added to the list. In case there are multiple longest paths, retrieve any of them

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!