Please enable JavaScript.
Coggle requires JavaScript to display documents.
Data Structures - Coggle Diagram
Data Structures
Red- Black Trees
-
Theorem 1: A red-black tree with n internal nodes has height at most 2 log2(n + 1),
-
-
-
-
Heaps
For every node x in the tree, x.key< x.parent.key
-
-
-
-
Hashing
Chained Hashing
-
-
D.Insert(Key K, Data D) Append (K,D) to linked list at h(K) Θ(1) Θ(1) Θ(1)
-
-
-
-
D.Add(Key K, int x) Add x to the data associated with key K Θ(1) Θ(1 + n
-
D.Replace(Key K, Data D′) Replace data associated with K with D′Θ(1) Θ(1 + n
-
D.Delete(Key K) Remove (K,D) from the table Θ(1) Θ(1 + n
-
Open Address Hashing
-
-
-
D.Insert(Key K, Data D) Insert (K,D) into table at h(K,j) Θ(1) Θ(1) Θ(n)
-
-
D.Add(Key K, int x) Add x to the data associated with key K Θ(1) Θ(1) Θ(n)
D.Replace(Key K, Data D′) Replace data associated with K with D′Θ(1) Θ(1) Θ(n)
D.Delete(Key K) Flag (K,D) as deleted Θ(1) Θ(1) Θ(n)
n = Number of elements in the Hash Table, m = Size of the Hash Table
-
-
Minimum Spanning Tree
A Minimum Spanning Tree of a weighted graph G = (V,E) with weight function
w : E →R is a spanning tree of G with the minimum possible total edge weight.
-
-
Shortest Path Tree
Let G = (V,E) be weighted graph with weight function w : E →R+. A shortest path from v1 to vn is a path P in G starting at v1 and ending at vn with minimum possible total edge weight. The shortest path tree starting at v1 is a spanning tree of T of G such that the path distance from v1 to any other vertex u in T is the shortest path distance from v1 to u in G.
-