GithubHelp home page GithubHelp logo

mohammad1745 / avl_visualizer Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 170 KB

AVL tree insertion (rotation) visualizer (Ongoing Project)

Home Page: https://avlvisualizer.netlify.app/

HTML 1.75% JavaScript 87.89% SCSS 10.36%
avl binary-search-tree data-structures visualization scss webpack

avl_visualizer's Introduction

AVL Tree Visualizer

How AVL tree balance height itself with rotations in comparison with BST.

Live Site

Setup

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run build

# open dist/index.html on browser

The app is built with VanillaJS with the power of webpack and SCSS. For detailed explanation on how Webpack work, check out the documentation.

Applied

VanillaJS Webpack AVL Tree BST Tree Rotation SCSS

Directory Structure

.
|--- public
|     |--- images
|
|--- src
|     |--- js                        
|     |     |--- data_structure
|     |     |--- script
|     |     ...
|     |   
|     |--- scss        
|
...

Data Structures

Binary Search Tree - BST

  • Binary Search Tree is a node-based binary tree data structure which has the following properties:
    • The left subtree of a node contains only nodes with keys lesser than the node’s key.
    • The right subtree of a node contains only nodes with keys greater than the node’s key.
    • The left and right subtree each must also be a binary search tree.

Adelson-Velskii and Landis - AVL

  • AVL tree is a self-balancing Binary Search Tree (BST) where the difference between heights of left and right subtrees cannot be more than one for all nodes.

avl_visualizer's People

Contributors

mohammad1745 avatar

Stargazers

 avatar  avatar  avatar

Watchers

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