cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
simple question about the Binary search
simple question about the Binary search method
Mar 6, 2013 at 11:30pm UTC
ApacheOmega
(32)
in a binary search method
if my search key is not in the array will the program search the whole entire array until it realizes it does not exist?
Mar 6, 2013 at 11:36pm UTC
TheIdeasMan
(6817)
Binary search requires the data to be sorted, so no it won't.
Mar 7, 2013 at 12:53am UTC
ApacheOmega
(32)
thank you
Topic archived. No new replies allowed.