✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
A web application retrieves product data from a database and then sorts the results before displaying them. Currently, the database returns all 50,000 products (no index, full table scan), and the application sorts them using a method where doubling the input quadruples the work. Two changes are proposed:
Which change addresses the larger source of wasted energy?