Statistician Question:

Download Job Interview Questions and Answers PDF

Explain about binary search?

Applied Statistics Interview Question
Applied Statistics Interview Question

Answer:

For binary search, the array should be arranged in ascending or descending order. In each step, the algorithm compares the search key value with the key value of the middle element of the array. If the keys match, then a matching element has been found and its index, or position, is returned. Otherwise, if the search key is less than the middle element's key, then the algorithm repeats its action on the sub-array to the left of the middle element or, if the search key is greater, on the sub-array to the right.

Download Applied Statistics Interview Questions And Answers PDF

Previous QuestionNext Question
Explain binomial probability formula?What is hash table?