19.1 Algorithms (3)

Resources | Revision Questions | Computer Science

Login to see all questions

Click on a question to view the answer

1.

A data scientist is tasked with finding the shortest path between multiple cities in a network. Describe two different algorithms that could be used to solve this problem. For each algorithm, identify at least two relevant criteria for comparison and explain how these criteria might influence the choice of algorithm for a specific scenario.

2.

Describe the concept of an Abstract Data Type (ADT). Explain why using ADTs is beneficial in software design. Provide an example of a common ADT and detail its key operations.

3.

Describe the algorithms for Insertion Sort and Bubble Sort. Include pseudocode outlining the key steps involved in each algorithm. Compare and contrast the time complexity of these two sorting methods, specifying best, average, and worst-case scenarios.