Commit graph

23 commits

Author SHA1 Message Date
88d691225e
chore(avl): refactor
Fixes #2

Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-12 12:20:55 +02:00
705d5cfa17
fix: do not allow duplicit keys
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-12 12:20:24 +02:00
32ec9e9866
chore: remove debug statements
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-07 17:03:30 +02:00
0882e6575d
fix(wavl): do not recursively fixup after delete
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-07 15:43:02 +02:00
2433928d36
fix(wavl): propagate root rotation to the helper functions for delete
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-07 15:42:37 +02:00
457ab180d0
feat: add example usage of comparator
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-07 15:42:06 +02:00
e50cca7a14
tests: generate AVL vs WAVL difference by contradiction
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-07 15:40:10 +02:00
f05aa87f4b
tests: extend AVL and change parameters of WAVL
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-07 15:39:30 +02:00
f67468b637
fix(ranked_tree): transplant by double-delete
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-07 15:39:07 +02:00
d8a746268b
fix(comparator): propagate similarity
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-07 15:38:44 +02:00
6bde21f85c
fix(avl): be more explicit in is_correct
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-07 15:38:17 +02:00
93ac86366b
chore: update makefile
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-05-07 15:38:01 +02:00
db35a07738
feat: implement comparator for trees
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-02-03 11:35:12 +01:00
a4c896edbf
refactor(tree): split dot generation
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-02-03 11:08:19 +01:00
458ffdb3ff
fix(wavl): do not check for v if not needed
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-01-30 15:49:32 +01:00
f66dec1e03
chore: update tests and add avl tests
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-01-30 15:04:08 +01:00
518ee5b970
ravl: add ravl tree
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-01-30 15:03:59 +01:00
4a832e1de8
feat: add avl and split wavl
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-01-30 15:03:34 +01:00
f960a24eb6
chore: add makefile
• formatting
• linting
• type check
• test runner

Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-01-30 15:02:43 +01:00
bc981a8bb4
node: add type signatures
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-01-30 15:02:28 +01:00
cea0ac2ba2
chore: add gitignore
Signed-off-by: Matej Focko <mfocko@redhat.com>
2022-01-30 14:41:34 +01:00
70261aed50
Add python implementation and tests
Signed-off-by: Matej Focko <me@mfocko.xyz>
2021-01-04 10:46:12 +01:00
329e59ca15
Initial commit
Signed-off-by: Matej Focko <me@mfocko.xyz>
2021-01-04 10:45:40 +01:00