You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
10,000,000 and 1 Average were omitted due to the time it takes to run those tests on the inefficient queue system (one most taught by js professionals sadly) (I let it run for 2 hours on 10,000,000 dequeues and it never completed...);
Copy file name to clipboardExpand all lines: readme.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,17 +14,23 @@ So I am starting fresh and am going to work to tackle different types of data st
14
14
15
15
I want to walk the walk before I talk the talk. Using this repository.
16
16
17
+
## Benchmarks
18
+
19
+
If you would like to see some benchmarks on these data structures then [click here...](/benchmark/README.md);
20
+
17
21
## Theories & Structures
18
22
19
23
As theories and structures are built, I'll list them under this heading.
20
24
21
-
> You won't see a todo list or a target list this time around. I'll take suggestions as issues on the repository, but I'm going to focus on building commong structures and items one at a time. One thing I have learned as a developer is never get ahead of yourself, you can get paralyzed with planning and expectations.
25
+
> You won't see a todo list or a target list this time around. I'll take suggestions as issues on the repository, but I'm going to focus on building common structures and items one at a time. One thing I have learned as a developer is never get ahead of yourself, you can get paralyzed with planning and expectations.
22
26
23
-
-`LinkedStack`: based on a linked list (slow)
27
+
-`LinkedStack`: based on a linked list (slower)
24
28
-`UArrayStack`: based on JS unbounded array (fast)
25
29
-`BArrayStack`: based on JS bounded array (fastest)
26
-
-`Queue`: based on a linked list (fast)
27
-
-`ArrayQueue`: based on JS array (slow)
30
+
-`LinkedQueue`: based on a linked list (fast)
31
+
-`UArrayQueue`: based on JS array unbound (very slow) **Sadly this is the one most professionals teach and it is so wrong**
32
+
-`BFixArrayQueue`: based on JS array bounded but with fixed front at 0 index (slowest) **only shown for educational purposes**
33
+
-`BFltArrayQueue`: based on JS array bounded but with floating front index (fastest)
0 commit comments