Skip to content

Conversation

@CuriousCoder321
Copy link

The binary search algorithm is a very important one, and requires you to create a list of numbers between 0 and an upper limit, with every succeeding number having a difference of 2 between them.

When the user inputs a random number to be searched the program begins its search by dividing the list into two halves. First, the first half is searched for the required number and if found, the other half is rejected and vice versa. The search continues until the number is found or the subarray size becomes zero.

Signed-off-by: CuriousCoder321 66026995+CuriousCoder321@users.noreply.github.com

The binary search algorithm is a very important one, and requires you to create a list of numbers between 0 and an upper limit, with every succeeding number having a difference of 2 between them.

When the user inputs a random number to be searched the program begins its search by dividing the list into two halves. First, the first half is searched for the required number and if found, the other half is rejected and vice versa. The search continues until the number is found or the subarray size becomes zero.

Signed-off-by: CuriousCoder321 <66026995+CuriousCoder321@users.noreply.github.com>
@KrishGaur1354
Copy link
Owner

Kindly create a Folder with the Project name and add the coded file to the folder. Also, add output pictures for the code. For More info Kindly check out PR #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants