We will do the rest of the problems together.
Group members: name and NetID for each
___________________ ___________________ ___________________ ___________________ ___________________ ___________________
What assumptions do you have to make in order to answer this problem?
closetPair below returns the two points in an
array that are closest to each other (the points are returned in a
two-element array so that two values can be returned).
What is the big-Oh complexity of this code for an N-element array? It is one of O(N), O(N2), O(log N) or O(N log N). Justify your answer briefly.
Bill says that his algorithm is good enough for Duke. He mentions something about Moore's Law and states that ``Computers are getting faster at an exponential rate. That is, every 18 months, they double in speed. Even if the program is not fast enough now, it will be soon.''
Bill is off a little bit on what Moore's law means. However, given that computers continue doubling in speed every 18 months, will the O(2n) algorithm ever be practical? Explain why or why not?