Using binary search tree to do management job so that all buildings in a city are well organized according to their year of construction.
The program is able to:
-
Find the oldest building in the city.
-
Find the highest building in the city.
(An independent algorithm, since the core of this binary search tree is depend on the year of construction).
-
Find the highest building from a particular year.
-
Find buildings between years
For example, receive 1968 , 1988 from the user. The program is able to give all buildings construted in this domain.
-
Find the total cost to repair buildings.