From 4b5f0da589633ab0d3f27a6efdb765633fafcbcb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 21 Jan 2014 17:35:28 +0100 Subject: sort order support in multibinary search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/algorithms/searching/MultibinarySearch.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/algorithms') 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 -- cgit v1.2.3-70-g09d2