Binary Search Trees 1

Description

Computer Science Mind Map on Binary Search Trees 1, created by Eithne O'Sullivan on 04/03/2018.
Eithne O'Sullivan
Mind Map by Eithne O'Sullivan, updated more than 1 year ago
Eithne O'Sullivan
Created by Eithne O'Sullivan over 7 years ago
20
0
1 2 3 4 5 (0)

Resource summary

Binary Search Trees 1
  1. A tree is an ADT
    1. Stores elements hierarchically as nodes: think family tree
      1. has a ROOT node and 1 or more subtrees
        1. a sub-tree of a node consists of given node and all its descendents(nodes below it)
          1. ancestors of a node are all those above it(parent and parent's parents etc
          2. each node except ROOT has a parent
            1. a node may/may not have children
              1. a node with NO children is called a LEAF NODE
              2. is a natural organization for data (ubiquitous use)
                1. allows algorithms to be implemented much faster than linear ds
                2. features
                  1. degree of node is no. of children it has
                    1. size of tree: number of nodes in tree
                      1. depth of a tree: number of links of longest path
                        1. height of a tree: no. of levels
                          1. height of node: no of links to furthest descendent
                            1. depth of node: no of links from root
                          2. is an ordered binary tree
                            1. order of children is important
                              1. used to store data for quick retrieval
                                1. the tree structure + method if insertion reduce search space when looking for an element
                              2. binary tree
                                1. DEF- A binary tree is a finite collection of elements, one of these( if any) is called the root, and the remaining(if any) are partitioned into subtrees, that consist of left-subtree, root and right-subtree
                                  1. degree of node is 2, 1, 0
                                  2. all elements have max of 2 children
                                    1. Each node in Java contains: an element(data), a reference to left child node,a reference to right child
                                      1. maybe empty: no node
                                        1. all paths unique from root to node
                                          1. a full of proper bt: each node 0 or 2 children
                                          2. For each node N, stores an element with a key value K such that - 1. nodes in the left subtree are less than K - 2. nodes in right subtree are greater than K
                                            Show full summary Hide full summary

                                            0 comments

                                            There are no comments, be the first and leave one below:

                                            Similar

                                            SFDC App Builder 2
                                            Parker Webb-Mitchell
                                            Data Types
                                            Jacob Sedore
                                            Intake7 BIM L1
                                            Stanley Chia
                                            Software Processes
                                            Nurul Aiman Abdu
                                            Design Patterns
                                            Erica Solum
                                            CCNA Answers – CCNA Exam
                                            Abdul Demir
                                            Abstraction
                                            Shannon Anderson-Rush
                                            Spyware
                                            Sam2
                                            HTTPS explained with Carrier Pigeons
                                            Shannon Anderson-Rush
                                            Data Analytics
                                            anelvr