Implement a simplified version of the set class

Assignment Help C/C++ Programming
Reference no: EM135194

You will implement a simplified version of the set class. You must implement all functions defined in the provided file set.h. You may add other member functions and variables as necessary.

Do NOT change the name of m_root and do NOT make it private. My testing program needs direct access. Also, you may wish to adapt the bst_node class. But, do not change the signatures or pre/post conditions of any of the existing bst_node functions, as my testing program will also use these.
You must also submit a driver program that thoroughly tests all set operations. Part of your grade will depend on the quality of your test cases. Make sure to test edge cases, small, and large inputs.

Implement automatic rebalancing. Use a threshold where if the difference in depth between any two leaf nodes becomes greater than 10, we rebalance the tree. You should not need to iterate through the entire tree on every insertion or removal to determine this. You will need to use an auxililiary data structure and/or alter the bst_node class to achieve this.

Reference no: EM135194

Questions Cloud

What local oscillator frequency would you use : For the local oscillator you selected, what transmission frequencies could cause interference to the satellite system and how could the interference be avoided? Show a diagram.
Evaluate maximum rate at which data can be read from disk : What is the maximum rate at which data can be read from disk, assuming that we can only read data from one surface at a time? What is the average rotational latency?
Find the radius of the circular path : The angular momentum of the electron as it moves around the center of the circle is 1.40 × 10-25J•s.Find the radius of the circular path.
Type of marketing research : Describe what type of marketing research your company will need to use in order to support its marketing strategy. Create a list of questions or issues that your company will need to settle using marketing research.
Implement a simplified version of the set class : You will implement a simplified version of the set class. You must implement all functions defined in the provided file set.h. You may add other member functions and variables as necessary.
Expected convenience from each restaurant : Calculate whole expected convenience from each restaurant option and also compare?
Discuss new security features in windows server : Which of the system changeover methods is the most expensive? Why? Which of the system changeover methods is the most risky? Why?
Time domain design and analysis : To design a "custom" controller to reduce the vibrations of the seat and a PID controller to reduce the vibration of the seat
Depth analysis of a global cold chain : The logistics of a global cold chain getting fresh vegetables from farms in Thailand to supermarkets in Europe

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create a base employee class

Create a base Employee class and a derived StudentEmployee class

  Write a program that converts between app and ppm values

Write a simple program that converts between APP and PPM values

  Calculate the component voltages

Calculate the component voltages for the following series resonant RLC circuit

  C++ programming uml diagrams

The goal of this lab is to better familiarize you with polymorphism and the factory design pattern, two key components in Assignment

  Design a simple game of blackjack

Prepare a simple game of blackjack using object oriented programming.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Write a program that will be used to gather statistical data

Write a program that will be used to gather statistical data about the number of movies

  Prepare a program that uses at least two functions

Prepare a program that uses at least two functions that can be called from your main.

  Develop a two dimensional interactive game

The player starts as a disk, but can "morph" (that is expand and contract) in selected directions

  Write a program that inputs a dollar amount to be printed

Write a program that inputs a dollar amount to be printed on a check and then prints the amount in check-protected format with leading asterisks if necessary

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Perform operations on arrays

Perform operations on arrays execute tests and repetitions

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd