diff --git a/pom.xml b/pom.xml
index 33e39e5..6d6b78a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,8 +35,9 @@
- 1.8
- 1.8
+ 17
+ 17
+ 17
UTF-8
diff --git a/src/main/java/io/github/hextriclosan/algorithm/collections/disjointset/FullCompression.java b/src/main/java/io/github/hextriclosan/algorithm/collections/disjointset/FullCompression.java
index 636a813..c3d8d66 100644
--- a/src/main/java/io/github/hextriclosan/algorithm/collections/disjointset/FullCompression.java
+++ b/src/main/java/io/github/hextriclosan/algorithm/collections/disjointset/FullCompression.java
@@ -10,13 +10,18 @@
* @param the type of elements in the Disjoint Set
*/
public class FullCompression implements FindCompressStrategy {
+ /**
+ * Creates a new FullCompression strategy.
+ */
+ public FullCompression() {
+ }
/**
* Applies the full path compression strategy to find the root of the subset containing the specified element.
* If the element is not found in the map, an {@link IllegalArgumentException} is thrown.
*
* @param parentByElement the map representing the parent relationship of elements in the disjoint set
- * @param element the element for which to find the root
+ * @param element the element for which to find the root
* @return the root of the subset containing the specified element
* @throws IllegalArgumentException if the element is not found in the disjoint set
*/
diff --git a/src/main/java/io/github/hextriclosan/algorithm/collections/disjointset/PathHalvingCompression.java b/src/main/java/io/github/hextriclosan/algorithm/collections/disjointset/PathHalvingCompression.java
index e8c4759..9678939 100644
--- a/src/main/java/io/github/hextriclosan/algorithm/collections/disjointset/PathHalvingCompression.java
+++ b/src/main/java/io/github/hextriclosan/algorithm/collections/disjointset/PathHalvingCompression.java
@@ -9,13 +9,18 @@
* @param the type of elements in the Disjoint Set
*/
public class PathHalvingCompression implements FindCompressStrategy {
+ /**
+ * Creates a new PathHalvingCompression strategy.
+ */
+ public PathHalvingCompression() {
+ }
/**
* Applies the path halving compression strategy to find the root of the subset containing the specified element.
* If the element is not found in the map, an {@link IllegalArgumentException} is thrown.
*
* @param parentByElement the map representing the parent relationship of elements in the disjoint set
- * @param element the element for which to find the root
+ * @param element the element for which to find the root
* @return the root of the subset containing the specified element
* @throws IllegalArgumentException if the element is not found in the disjoint set
*/