I' mreviewing for my test and trying to understand these practice problems
If you could please show me through how to solve these, I'd greatly appreciate it!
1. A method is O(Nlog2N). It takes .001 seconds for the method to run when N = 1,000. What is the expected time for the method to run when N = 2,000? Simplify your answer.
2. A method takes 2 seconds to run when processing 2,000 pieces of data. It takes the same method 16 seconds to run when processing 4,000 pieces of data. What is the most likely order Big (O) of the method given the timing data?
3. A method is O(N^2). It takes 5 seconds for the method to run when N = 20,000. What is the expected time for the method to run when N = 40,000.