Coder Social home page Coder Social logo

cppnd-capstone-bst's Introduction

CPPND: Capstone Generic Binary Search tree Implementation Repo

This is a repo for the Capstone project in the Udacity C++ Nanodegree Program.

Project description

* This projects Implements a generic Binary search tree data structure and by generic I mean that the user can create a node of any data type this concept is possible by using C++ class templates which is knows as "Generic programming".
  • The Project Implement the BST data structure then allow the user to play with the BST through an Interface as follows

    • Press 's' to show the BST Visulaization.
    • Press 'i' to insert a new node to the BST.
    • press 'f' to find a node in the BST.'
    • press 't' to travese BST in Inorder, Preorder and Post order
    • Press 'q' to quit the program.
  • The BST is implemented inside (BST.h) which consists of a Node and BST class templates both classes encapsulates the full implementation of the BST.

  • The BST supports the following opeartions

    • Insert
    • Search
    • Find
    • Traverse

Covered Rubric Points

Covered Points Where It is covered
The project demonstrates an understanding of C++ functions and control structures. BST.h file
The project accepts user input and processes the input. "main.cpp" line 30
The project uses Object Oriented Programming techniques. BST.h
Classes use appropriate access specifiers for class members. "BST.h" BST and Node classes
Class constructors utilize member initialization lists. "BST.h" BST and Node classes
Templates generalize functions in the project. "BST.h" BST and Node classes
The project uses destructors appropriately. "BST.h" BST class destroy function

Dependencies for Running Locally

Basic Build Instructions

  1. Clone this repo.
  2. Make a build directory in the top level directory: mkdir build && cd build
  3. Compile: cmake .. && make
  4. Run it: ./HelloWorld.

cppnd-capstone-bst's People

Contributors

omarehab2411 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.