Chapter 1: Problem 14
There are two algorithms called Algl and Alg2 for a problem of size n. Algl runs in \(n^{2}\) microseconds and Alg2 runs in 100 n log \(n\) microseconds. Algl can be implemented using 4 hours of programmer time and needs 2 minutes of CPU time. On the other hand, Alg2 require 15 hours of programmer time and 6 minutes of CPU time. If programmers are paid 20 dollars per hour and CPU time costs 50 dollars per minute, how many times must a problem instance of size 500 be solved using Alg2 in order to justify its development cost?
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.