Binary search can only be performed when the input is sorted. Although, the time complexity is lesser than that of the linear search algorithm, sorted input is the major drawback of binary search algorithm. Apart from this, binary search works best for large sorted inputs.
It's your turn to try changing the algorithm such that it works for decreasing array. And don't forget to hit the like button. Do subscribe for more videos.
Reference: Fundamentals of computer algorithms by Ellis Horowitz, Sartaj Sahni and Sanguthevar Rajasekaran
Sur cette page du site, vous pouvez voir la vidéo en ligne Binary search | Divide and conquer | search algorithm durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Aishwarya M 11 juin 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 192 fois et il a aimé 10 téléspectateurs. Bon visionnage!