answersLogoWhite

0

How can one perform a binary search?

Updated: 8/20/2019
User Avatar

Wiki User

10y ago

Best Answer

One can perform a binary search easily in many different ways. One can perform a binary search by using an algorithm specifically designed to test the input key value with the value of the middle element.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can one perform a binary search?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

A binary search of an orderd set of elements in an array or a sequential search of the elements.Which one is faster?

A binary search is much faster.


What assumption about the list is made when binary search is conducted?

Binary search requires that the list be in search key order.


What are the advantages and disadvantages of searching in C programming?

If the data is sorted and every element is directly accessible, then you can perform binary search (see built-in function bsearch), otherwise you have to do linear search (which is slower).


What is the use of binary?

Binary trees are commonly used to implement binary search tree and binary heaps.


What if the elements are repeated in binary search?

You will find one of them (not necessarily the first or the last).


What is the binary number for decimal 191?

It is 10111111 in binary. Try a search for '191 to binary'.


Items that are not suitable for a binary search?

The only items suitable for a binary search are those which are in a sorted order.


Does binary tree and binary search tree same?

no they are not same


Where might one find information about a binary search tree?

One can find information about a binary search tree from a few different places. One can find information at sites such as Wikipedia and You Tube or from taking computer classes that teach about data structures.


What are the drawbacks of the binary search?

The only drawback I know of is that binary search requires that the list already be sorted. So if you have a really large unsorted list than binary search would not be the best option.


How do you perform arithmetic operations on binary numbers?

There are a few rules to perform arithmetic operations in binary numbers. According to those rules you can add or subtract binary numbers. There are only two arithmetic operations used in binary numbers, they are addition and subtraction.


How can one perform a periodical search?

One can perform a periodical search for free on Ancestry, the online periodical and database search index. The online website allows users to trace their ancestry back generations for free.