GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — javascript-algorithms/src/data-structures/tree at master · bakbas/javascript-algorithms

Expand file tree

/

tree

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

tree

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
__test__
__test__
 
 
avl-tree
avl-tree
 
 
binary-search-tree
binary-search-tree
 
 
fenwick-tree
fenwick-tree
 
 
red-black-tree
red-black-tree
 
 
segment-tree
segment-tree
 
 
BinaryTreeNode.js
BinaryTreeNode.js
 
 
README.md
README.md
 
 
README.zh-CN.md
README.zh-CN.md
 
 

README.md

Outline

Tree

  • Binary Search Tree
  • AVL Tree
  • Red-Black Tree
  • Segment Tree - with min/max/sum range queries examples
  • Fenwick Tree (Binary Indexed Tree)

In computer science, a tree is a widely used abstract data type (ADT) — or data structure implementing this ADT—that simulates a hierarchical tree structure, with a root value and subtrees of children with a parent node, represented as a set of linked nodes.

A tree data structure can be defined recursively (locally) as a collection of nodes (starting at a root node), where each node is a data structure consisting of a value, together with a list of references to nodes (the "children"), with the constraints that no reference is duplicated, and none points to the root.

A simple unordered tree; in this diagram, the node labeled 7 has two children, labeled 2 and 6, and one parent, labeled 2. The root node, at the top, has no parent.

Tree

References

  • Wikipedia
  • YouTube
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.