Final answer:
Calculations reveal that Vendor A's system would take 0.209 seconds, while Vendor B's system, despite having hardware 1000 times faster, would take an infeasible 10,973.839 seconds due to the different algorithms used. Thus, Vendor A's system is the superior choice for query speed.
Step-by-step explanation:
To determine which database system to choose based on the query response times for 1,048,576 customers, we need to calculate the response times for both Vendor A and Vendor B given their respective algorithms and computer speeds.
For Vendor A, the time is proportional to 10nlog2n machine operations. Plugging in the number of customers we have:
TA = 10 * 1,048,576 * log2(1,048,576) * 10-9
We know that log2(1,048,576) = 20 because 220 = 1,048,576. So:
TA = 10 * 1,048,576 * 20 * 10-9 = 209,715.2 * 10-9 = 0.209 seconds (rounded to three decimal places)
For Vendor B, whose computer is 1000 times faster, the time is proportional to 10n2 machine operations.
TB = 10 * (1,048,576)2 * 10-9 / 1000
TB = 10 * 1,097,383,936,256 * 10-9 / 1000 = 1.097x1013 * 10-9 seconds = 10,973.839 seconds, which is not feasible for the system. Hence, Vendor A's system is clearly the better choice in terms of response time.