aboutsummaryrefslogtreecommitdiffstats
path: root/src/algorithms
diff options
context:
space:
mode:
Diffstat (limited to 'src/algorithms')
-rw-r--r--src/algorithms/searching/MultibinarySearch.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/algorithms/searching/MultibinarySearch.java b/src/algorithms/searching/MultibinarySearch.java
index cf105b0..663de7c 100644
--- a/src/algorithms/searching/MultibinarySearch.java
+++ b/src/algorithms/searching/MultibinarySearch.java
@@ -136,7 +136,7 @@ public class MultibinarySearch
* of elements is named ‘m’ in the complexity analysis
* @param array Sorted list in which to search, the number of elements
* is named ‘n’ in the complexity analysis
- * @param order The lists' element order
+ * @param order The lists' (both) element order
* @param mode The search mode
* @param start The index of the first position to search in the array
* @param end The index after the last position to search in the array
@@ -152,8 +152,6 @@ public class MultibinarySearch
{
if (mode != SearchMode.FIND_ANY)
throw new Error("Mode not implemented"); /* TODO */
- if (order != SortOrder.ASCENDING)
- throw new Error("Order not implemented"); /* TODO */
BinarySearch.SearchMode mode_ =
mode == SearchMode.FIND_ANY ? BinarySearch.SearchMode.FIND_ANY