The first step in algorithm design is to clearly understand what input you have and what output you want. This helps in planning the solution effectively.
Start -> Set max to first element -> For each element in list: If element > max, set max = element -> End
The algorithm compares each number to the current max and updates it if the number is larger. The largest number in the list is 9.
Divide and conquer algorithms like merge sort break the problem into smaller parts and combine results, making them efficient for large datasets.
Decision or conditional statements allow the algorithm to choose the next step based on a condition, guiding the flow.
Since the collection is unsorted, scanning each book one by one is the straightforward approach. Sorting first would take extra time and is not part of the problem.
