Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have a list of 1024 sorted numbers and are looking for a particular value. It takes one time unit to compare each number to

You have a list of 1024 sorted numbers and are looking for a particular value. It takes one time unit to compare each number to see if its the one you want.

a) If we searching exhaustively across the list and the number we are looking for isnt there , how long will it take to work out that the number isnt there? You may assume that any operations other than comparison take up negligible time.

b) If we used binary search, how long would it take us, a tmost, to determine that the number wasnt there. You may assume that any operations other than comparison take up negligible time

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions