From 2e77539f6ae542414fb73f4f514cda9ab70440da Mon Sep 17 00:00:00 2001 From: Benjamin Leppard Date: Wed, 20 Sep 2017 23:38:18 -0400 Subject: [PATCH] Added Trie (Prefix Tree) Per https://github.com/josem/bigoref/issues/6 Added Trie using data from http://en.wikipedia.org/wiki/Trie and http://www.cs.cmu.edu/~fp/courses/15122-f10/lectures/18-tries.pdf --- index.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/index.html b/index.html index 145a266..4a1f8bd 100644 --- a/index.html +++ b/index.html @@ -361,6 +361,18 @@

Common Data Structur O(n) O(n) + + Trie (Prefix Tree) + O(M) + O(M) + O(M) + O(M) + + O(M) + O(M) + O(M) + O(M) + Binary Search Tree O(log(n)) @@ -449,6 +461,7 @@

Common Data Structur

Note * All have space complexity of O(n) except for Skip that has O(n log(n))

+

Where M is the length of a key.