Question: Consider that the processing time of an algorithm of Big-O complexity O(f(n)) is directly proportional to f(n). Suppose we have two such algorithms A and
Consider that the processing time of an algorithm of Big-O complexity O(f(n)) is directly proportional to f(n). Suppose we have two such algorithms A and B with time complexity
TA(n)=O(n2)
and
TB(n)=O(nlogn)
respectively. During an experiment, each algorithm spends 10 seconds to process 100 data items. How much time will each algorithm spend to process 10, 000 items?
(Please show your wokings/steps
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
