Ask your own question, for FREE!
Computer Science 15 Online
OpenStudy (anonymous):

in binary search when assign variable mid=(last+upper)/2 it can lead to over flow why?

OpenStudy (owlfred):

Hoot! You just asked your first question! Hang tight while I find people to answer it for you. You can thank people who give you good answers by clicking the 'Good Answer' button on the right!

OpenStudy (rsmith6559):

If whatever you're searching is in a high memory location, the addition of the addresses of last and upper can equal more than an integer (especially a signed interger) can handle. It's not too likely, but possible.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!