Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1 [10]. Write a struct 'House that has two member variables: (string) first name of the owner, (int) house number. Implement the binary search
Question 1 [10]. Write a struct 'House that has two member variables: (string) first name of the owner, (int) house number. Implement the binary search tree whose each node has data component an instance of the struct House. Comparison of the nodes must be made with respect to first name. Write the following functions to: (i) insert nodes in a tree; (ii) print the tree in post order fashion; (iii) find the minimum element of the tree; (iv) remove a node from the tree; Implement the following: (i) insert five elements to the tree: (Kabeer, 25), (John, 65) and (Paul, 43), (Kaur, 93), (Patel, 37) (you must hardcode these elements); print the tree post order fashion; remove an element from the tree (Paul, 43) (you must hardcode this elements); (iv) find the minimum element of the tree; print the tree in post order fashion; (iii)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started