Code Monkey home page Code Monkey logo

bst's Introduction

BINARY SEARCH TREE:

This project is not an attempt to reinvent the wheel.
I wanted some practice with C++ and decided to write a bunch of code that
could randomly generate BSTs, copy, delete, etc, all while using the best 
practices possible.

Best practices include:
- never passing a class object by value
- using keyword 'const' to protect class data
- encapsulation using protected classes


OBJECTIVES:
[x] build a BST
[x] delete a BST
[ ] build a randomly generated BST
[ ] create a copy of a BST
[x] insert into a BST
[x] display contents of a BST
[x] count number of nodes
[x] count number of leaves
[ ] calculate height
[ ] implement a balancing algorithm
[ ] add operator overloading
[ ] create a more robust node structure and import data from an API
[ ] create visualization of the BST


RUNNING IT:

There are multiple source files, a header file and a makefile file for 
this program. 

From the command line, simply type "make" and then "./play".

To recompile after making changes, type "make" again.
To delete all executables, type "make clean".

That's it!
Hope you enjoy my silly program.
-Amanda

bst's People

Contributors

adnammit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.