Correct option is B
Let's break down and solve the question step by step:
Problem Given:
• Algorithm A takes microseconds.
• Algorithm B takes microseconds.
• You need to find the largest size n that these algorithms can solve in one second.
Step 1: Convert time into microseconds
• We know that 1 second = microseconds.
Step 2: Solve for the maximum n for each algorithm
For Algorithm A:
• The time taken by Algorithm A is microseconds.
• We are asked to find the maximum size n such that it can be solved within 1 second, i.e., within microseconds.
• Solve for n:
• So,
For Algorithm B:
• The time taken by Algorithm B is microseconds.
• We are asked to find the maximum size n such that it can be solved within 1 second, i.e., within microseconds.
• Solve for n:
So, .
Final Answer:
The largest sizes n that each algorithm can solve in 1 second are:
• For Algorithm A:
• For Algorithm B: