binary search operation in descending order array
Answers
Answered by
1
Answer:
BINARY SEARCH ON REVERSE SORTED ARRAY: Let's suppose that we have an array sorted in descending order and we want to find index of an element e within this array. Binary search in every step picks the middle element (m) of the array and compares it to e. If these elements are equal, than it returns the index of m.
Explanation:
HOPE IT HELPS....
Similar questions
Math,
1 month ago
Science,
1 month ago
English,
1 month ago
Accountancy,
3 months ago
Art,
3 months ago
Psychology,
8 months ago
Computer Science,
8 months ago
Computer Science,
8 months ago