Giter VIP home page Giter VIP logo

binary-search-tree-lesson's Introduction

Binary Search Tree ๐ŸŒด

We are going to be implementing a Binary Tree together! ๐ŸŽ‰

Since Trees are a data structure that relies on nodes, I like to think of a Binary Tree as a pre-sorted type of linked list. There is a little alorithmic logic to how a BST stores the data.

To get started head over to BinaryTree.py and check out the classes there. There are method stubs that we are going to fill out together!

Data structures that rely on nodes

...and a good order to study them in.

  1. Linked lists -- introduction to node based datas structures
  2. Binary Search Trees -- more complex algorithm for sorting in node based data structure
  3. Tries -- tree-like datastructure where one node can be related to an arbitrary amount of nodes
  4. Graphs -- any node can be linked to any other node in this data strucutre

Links

gitbook:

https://gawdiseattle.gitbook.io/wdi/08-cs/cs-trees-data-structures

imbalanced binary tree:

https://appliedgo.net/balancedtree/

miro board:

https://miro.com/app/board/o9J_lWxUo_o=/

visualgo:

https://visualgo.net/en/bst

code along built from theses resources:

https://www.tutorialspoint.com/python_data_structure/python_binary_tree.html

https://www.geeksforgeeks.org/binary-tree-set-1-introduction/

Here is a visual representaion of a Binary Search Tree

BST

Here is a visual representation of a Trie

Trie

tags: lessons

binary-search-tree-lesson's People

Contributors

weston-bailey 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.