Skip to content

Commit add375d

Browse files
committed
Remove complexity from comments
Fixes #29
1 parent a6ae076 commit add375d

File tree

5 files changed

+0
-62
lines changed

5 files changed

+0
-62
lines changed

src/binary-heap.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
// Explanation: http://www.growingwiththeweb.com/2013/01/data-structure-binary-heap.html
2-
//
3-
// Complexity (n=input size):
4-
// buildHeap: Θ(n)
5-
// clear: Θ(1)
6-
// decreaseKey: Θ(log n)
7-
// delete: Θ(log n)
8-
// extractMinimum: Θ(log n)
9-
// findMinimum: Θ(1)
10-
// insert: Θ(log n)
11-
// isEmpty: Θ(1)
12-
// size: Θ(1)
13-
// union: Θ(n)
14-
151
(function (root, factory) {
162
'use strict';
173
if (typeof define === 'function' && define.amd) {

src/binary-search-tree.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
// Explanation: http://www.growingwiththeweb.com/2012/10/data-structures-binary-search-tree.html
2-
//
3-
// Complexity (n=input size):
4-
// add: O(n), O(log n) average
5-
// contains: O(n), O(log n) average
6-
// findMaximum: O(n), O(log n) average
7-
// findMinimum: O(n), O(log n) average
8-
// isEmpty: Θ(1)
9-
// remove: O(n), O(log n) average
10-
// traverse*: Θ(n)
11-
// size: Θ(1)
12-
131
(function (root, factory) {
142
'use strict';
153
if (typeof define === 'function' && define.amd) {

src/binomial-heap.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
// Explanation: http://www.growingwiththeweb.com/2014/01/binomial-heap.html
2-
//
3-
// Complexity (n=input size):
4-
// clear: Θ(1)
5-
// extractMinimum: Θ(log n)
6-
// findMinimum: O(log n) amortised
7-
// insert: O(log n)
8-
// isEmpty: Θ(1)
9-
// size: Θ(1)
10-
// union: Θ(log n)
11-
121
(function (root, factory) {
132
'use strict';
143
if (typeof define === 'function' && define.amd) {

src/fibonacci-heap.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
// Explanation: http://www.growingwiththeweb.com/2014/01/binomial-heap.html
2-
//
3-
// Complexity (n=input size):
4-
// clear: Θ(1) amortised
5-
// decreaseKey: Θ(1) amortised
6-
// delete: O(log n) amortised
7-
// extractMinimum: O(log n) amortised
8-
// findMinimum: Θ(1)
9-
// insert: Θ(1)
10-
// isEmpty: Θ(1)
11-
// size: Θ(n)
12-
// union: Θ(1)
13-
141
(function (root, factory) {
152
'use strict';
163
if (typeof define === 'function' && define.amd) {

src/splay-tree.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
// Explanation: http://www.growingwiththeweb.com/2013/06/data-structure-splay-tree.html
2-
//
3-
// Complexity (n=input size):
4-
// add: O(log n) amortised
5-
// contains: O(log n) amortised
6-
// findMaximum: O(n), O(log n) average
7-
// findMinimum: O(n), O(log n) average
8-
// isEmpty: Θ(1)
9-
// remove: O(log n) amortised
10-
// traverse*: Θ(n)
11-
// size: Θ(1)
12-
131
(function (root, factory) {
142
'use strict';
153
if (typeof define === 'function' && define.amd) {

0 commit comments

Comments
 (0)