An engineer writes an algorithm for an autonomous drone to find the shortest delivery path between two depots. When the algorithm is executed, it runs to completion without any system crashes or halts, but the drone takes a highly inefficient route that is not the shortest path.
Explain what is meant by a logic error, making reference to this scenario.
159 exam-style questions on Edexcel GCSE Computer Science Algorithms, covering Constructs for solving problems, Variables, constants and data structures, Arithmetic, relational and logical operators, Tracing algorithm output with trace tables, Types of error and correcting logic errors, Standard algorithms (sorts and searches), and Evaluating algorithm fitness and efficiency. Each one has a worked solution and a mark scheme showing where the marks go.