Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Add Meta Binary Search #5852

Open
anijit18 opened this issue Oct 15, 2024 · 2 comments
Open

[FEATURE REQUEST] Add Meta Binary Search #5852

anijit18 opened this issue Oct 15, 2024 · 2 comments

Comments

@anijit18
Copy link

What would you like to Propose?

Meta Binary Search, also known as One-Sided Binary Search, is a variation of the binary search algorithm that is used to search an ordered list or array of elements. This algorithm is designed to reduce the number of comparisons needed to search the list for a given element.

The basic idea behind Meta Binary Search is to start with an initial interval of size n that includes the entire array. The algorithm then computes a middle element, as in binary search, and compares it to the target element. If the target element is found, the search terminates. If the middle element is greater than the target element, the algorithm sets the new interval to the left half of the previous interval, and if the middle element is less than the target element, the new interval is set to the right half of the previous interval. However, unlike binary search, Meta Binary Search does not perform a comparison for each iteration of the loop.

Issue details

Meta Binary Search is an advanced Binary search where we are excluding ourself from comparing each element of the array.

Additional Information

I would like to work on this issue. Kindly assign it to me under Hacktoberfest-2024.

@Dishant-dyavarchetti
Copy link

I would like to work on this issue...Will it be okay if i contribute the whole code on the repo??

@Abhijais4896
Copy link

I would love to work on this issue, Kindly assign it to me under hacktoberfest-2024 open source program.

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

No branches or pull requests

3 participants