aboutsummaryrefslogtreecommitdiff
path: root/packages.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'packages.lisp')
-rw-r--r--packages.lisp35
1 files changed, 35 insertions, 0 deletions
diff --git a/packages.lisp b/packages.lisp
new file mode 100644
index 0000000..62443df
--- /dev/null
+++ b/packages.lisp
@@ -0,0 +1,35 @@
+;;;; This file contains lisp-algos packages definitions
+
+;;; Union-Find packages
+
+(defpackage :com.lisp-algo.union-find
+ (:use :common-lisp)
+ (:nicknames :uf)
+ ;; Quick-Find
+ (:export :qf-create-network
+ :qf-union
+ :qf-connected)
+ ;; Quick-Union
+ (:export :qu-create-network
+ :qu-union
+ :qu-connected)
+ ;; Weighted-Quick-Union
+ (:export :wqu-create-network
+ :wqu-create-network
+ :wqu-union
+ :wqu-connected)
+ ;; Weighted-Quick-Union with Path Compression
+ (:export :wqupc-create-network
+ :wqupc-create-network
+ :wqupc-union
+ :wqupc-connected))
+
+
+;;; Unit tests
+
+(defpackage :com.lisp-algo.test
+ (:use :common-lisp
+ :lisp-unit
+ :com.lisp-algo.union-find)
+ (:export :get-row))
+