decreasing
linear and binary search