Linear Search Vs Binary Search


Step1. Searching/Reading internal table mostly required in development. Though we have the key field to read, Binary search always performs better than the Linear search.

Step2. O/P of Five consecutive runs:


Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s