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
Science,
2 months ago
Political Science,
2 months ago
Math,
2 months ago
Accountancy,
4 months ago
Art,
4 months ago
Psychology,
10 months ago
Computer Science,
10 months ago
Computer Science,
10 months ago