aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-01-21 09:51:35 +0100
committerMattias Andrée <maandree@operamail.com>2014-01-21 09:51:35 +0100
commit8b611d8d569cba9da2ab27d3de069c66e1cff882 (patch)
treee6e86e0c24a6ff9d5a3c5fdda3b906d9c2670bd2 /src
parentm + add hybrid interpolation search (diff)
downloadalgorithms-and-data-structures-8b611d8d569cba9da2ab27d3de069c66e1cff882.tar.gz
algorithms-and-data-structures-8b611d8d569cba9da2ab27d3de069c66e1cff882.tar.bz2
algorithms-and-data-structures-8b611d8d569cba9da2ab27d3de069c66e1cff882.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/algorithms/searching/HybridBinarySearch.java2
-rw-r--r--src/algorithms/searching/HybridInterpolationSearch.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/algorithms/searching/HybridBinarySearch.java b/src/algorithms/searching/HybridBinarySearch.java
index 6590313..2063ca9 100644
--- a/src/algorithms/searching/HybridBinarySearch.java
+++ b/src/algorithms/searching/HybridBinarySearch.java
@@ -169,7 +169,7 @@ public class HybridBinarySearch
if (i == n)
break;
- if (£(equal array[i] item))
+ if (£(equal "array[i]" item))
return i;
i++;
diff --git a/src/algorithms/searching/HybridInterpolationSearch.java b/src/algorithms/searching/HybridInterpolationSearch.java
index 888c028..b6669f0 100644
--- a/src/algorithms/searching/HybridInterpolationSearch.java
+++ b/src/algorithms/searching/HybridInterpolationSearch.java
@@ -128,7 +128,7 @@ public class HybridInterpolationSearch
if (i == n)
break;
- if (£(equal array[i] item))
+ if (£(equal "array[i]" item))
return i;
i++;