The array of data in which to search for the target.
The target element to search for within the data array.
Configuration for the hybrid search algorithm, which includes:
linearSearchThreshold: Length threshold for linear search (default: 100).binarySearchThreshold: Length threshold for binary search (default: 10000).isSorted: Whether the data array is already sorted (default: false).compareFn: Comparison function defining the element order.true if found, false if not.
Hybrid search that adapts to the data length and configuration for optimal performance.
linearSearchThreshold), linear search is used.linearSearchThresholdandbinarySearchThreshold), binary search is applied.binarySearchThreshold), a Red-Black Tree is constructed, and the search is performed within the tree.