1 1 vote A logistics company manages a tracking system where each package ID is stored in a chronological list as the packages are processed. An engineer suggests that, to locate a particular package's ID, the system should check each ID sequentially from the start until the target is found or the list ends. Which statement most accurately reflects the main drawback of this approach if the company expects the number of packages to increase dramatically over time?The memory needed to store package IDs will remain constant even as the list grows.Finding a package ID will become faster as the number of packages increases.The time to search for any package ID will stay about the same, regardless of list size.Search time grows linearly with the number of packages. Others cil-2026 + – Shubham Sharma 2 37 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes Option A: Incorrect. Memory grows linearly $O(n)$ with the number of package IDs stored, not remaining constant $O(1)$.Option B: Incorrect. Search time increases, rather than becoming faster, as the list grows.Option C: Incorrect. This describes constant time $O(1)$, which is characteristic of Hash Table lookups, not linear search.Option D (CORRECT): Search time grows linearly with the number of packages.In Linear Search, the worst-case time complexity is $\mathcal{O}(n)$, where $n$ is the total number of packages.If the number of packages increases dramatically from $1,000$ to $1,000,000$, the worst-case comparison count increases directly from $1,000$ to $1,000,000$.so option. D is correct. akash_kumar 9 answered Sep 28 akash_kumar 9 comment Share Follow 0 reply Please log in or register to add a comment.