Commit Graph

435 Commits

Author SHA1 Message Date
Emir Pasic
b38c99bf33 - btree deletion fixes with more tests (done) 2016-07-14 08:28:11 +02:00
Emir Pasic
288c1a4ca3 - btree deletion with tests 2016-07-14 05:55:24 +02:00
Emir Pasic
eb4171fdb0 - btree Keys() and Values() implemented with tests (using iterator) 2016-07-12 03:05:00 +02:00
Emir Pasic
53898058bb - btree iterator implemented with tests 2016-07-12 02:53:48 +02:00
Emir Pasic
76711f5b71 - btree don't allow order less than 3
- btree Left(), Right(), LeftKey(), RightKey(), LeftValue(), RightValue() implementation with tests
2016-07-11 02:28:14 +02:00
Emir Pasic
4e3ff20469 - btree get and put tests 2016-07-11 01:00:52 +02:00
Emir Pasic
9663093961 - btree put fixes 2016-07-11 00:18:00 +02:00
Emir Pasic
2df9ce1ab5 - btree put fixes 2016-07-10 22:03:59 +02:00
Emir Pasic
eecaef5625 - btree Height() and String() implementations 2016-07-10 05:16:02 +02:00
Emir Pasic
ab73314ad4 - btree expose its root, nodes and entries (for extension purposes) 2016-07-09 04:13:51 +02:00
Emir Pasic
19bf8e5c15 - remove inOrder function in red-black tree and use iterator 2016-07-09 04:10:02 +02:00
Emir Pasic
28b826151a - btree insertion with tests 2016-07-09 03:57:27 +02:00
Emir Pasic
9563b15010 - btree insertion with tests 2016-07-09 03:57:18 +02:00
Emir Pasic
2be4769d2b Merge pull request #25 from emirpasic/treebidimap
TreeBidiMap
2016-07-03 04:39:14 +02:00
Emir Pasic
7c82c74b00 - TreeBidiMap documentation 2016-07-03 04:36:21 +02:00
Emir Pasic
d8c5aa20eb - TreeBidiMap example implemented
- TreeMap string output fixed to be consistent with other maps
2016-07-03 04:25:03 +02:00
Emir Pasic
b41257272c - TreeBidiMap enumerable implemented (with tests) 2016-07-03 03:47:35 +02:00
Emir Pasic
cec0ec524f - TreeBidiMap iterator implemented (with tests) 2016-07-03 03:26:14 +02:00
Emir Pasic
0d9a0e6124 - TreeBidiMap core implemented (with tests) 2016-07-03 03:18:28 +02:00
Emir Pasic
20e2a00f13 - start on treebidimap 2016-07-02 12:16:38 +02:00
Emir Pasic
16fd6c0e09 Merge pull request #23 from emirpasic/bidi_map
- bidimap implemention as dual hashmap bidirectional map
2016-07-01 07:59:53 +02:00
Emir Pasic
52d942a053 - hashbidimap documentation and example 2016-07-01 07:39:46 +02:00
Emir Pasic
a7ad28443d - bidimap implemention as dual hashmap bidirectional map
- tests
2016-07-01 06:48:01 +02:00
Emir Pasic
e86802a747 Merge pull request #21 from emirpasic/refactor
Refactor
2016-06-27 04:22:14 +02:00
Emir Pasic
213367f1ca - replace long bsd text with short in all .go files 2016-06-27 04:21:09 +02:00
Emir Pasic
20229603ab - refactor all iterators and enumerables into separate files 2016-06-27 04:02:52 +02:00
Emir Pasic
9078485d8b Merge pull request #20 from emirpasic/iterator_reset
Iterator Reset
2016-06-27 03:11:31 +02:00
Emir Pasic
e49a74aa91 - test iterator end on reverse-iterable data structures
- fix red-black tree iteration with explicit begin and end states
- examples for iterators (with index and key) (with forward and reverse iteration)
2016-06-27 03:09:20 +02:00
Emir Pasic
02f40db0cf - test iterator end on reverse-iterable data structures
- fix red-black tree
2016-06-27 02:42:05 +02:00
Emir Pasic
f052c96069 - iterator end on reverse-iterable data structures 2016-06-27 00:41:32 +02:00
Emir Pasic
57162feff5 - rename Reset() to Begin() in iterators (this will allow End() which will make reverse loops more readable) 2016-06-27 00:08:01 +02:00
Emir Pasic
cbc23a5b79 - test iterator first on all iterable data structures 2016-06-26 23:58:23 +02:00
Emir Pasic
bdfeab4912 - iterator first on all structures with reversible iterators 2016-06-26 22:50:14 +02:00
Emir Pasic
3d1014bf63 - test iterator last on all structures with reversible iterators 2016-06-26 22:40:49 +02:00
Emir Pasic
f8b0747409 - iterator last on all structures with reversible iterators 2016-06-26 22:27:08 +02:00
Emir Pasic
3a938233a0 - test iterator reset on all structures 2016-06-26 21:44:23 +02:00
Emir Pasic
b86d413e66 - iterator reset on all structures 2016-06-26 20:50:49 +02:00
Emir Pasic
d5a7c62629 Merge pull request #18 from emirpasic/reverse_iterator
Reverse iterator
2016-06-25 21:03:58 +02:00
Emir Pasic
eb4bb224e3 - add reversible iterators to tree set and tree map 2016-06-25 21:01:33 +02:00
Emir Pasic
178bc76d62 - add reversible iterators to red-black tree 2016-06-25 20:45:43 +02:00
Emir Pasic
ae143689c6 - add reversible iterators to binary heap 2016-06-25 19:26:08 +02:00
Emir Pasic
b304f5eb58 - add reversible iterators to array stack 2016-06-25 19:11:20 +02:00
Emir Pasic
d7a31571cc - add reversible iterators to lists (array list and doubly-linked list)
- documentation and tests updates
2016-06-25 18:17:48 +02:00
Emir Pasic
59bebe43ce - update all documentation to be in godoc style 2016-06-25 17:02:21 +02:00
Emir Pasic
2ccfba5f93 - replace timsort with go's sort 2016-06-25 05:51:41 +02:00
Emir Pasic
c874c09c6d Merge pull request #17 from emirpasic/timsort_replace
- replace timsort with go's sort
2016-06-25 05:37:22 +02:00
Emir Pasic
7b3992bef3 - replace timsort with go's sort 2016-06-25 05:35:13 +02:00
Emir Pasic
faeea55fc9 Update README.md 2016-06-24 21:58:18 +02:00
Emir Pasic
e271d95ae2 Merge pull request #15 from emirpasic/report_card
Report card
2016-06-24 21:54:56 +02:00
Emir Pasic
ef9baa808a - golint 2016-06-24 21:52:16 +02:00