Computer Science - 9210 OxfordAQA

Efficiency Of Algorithms

Overview

Ask a class of thirty to add up the numbers from 1 to 100 and most of them start at the left and work along. One of them writes 5050 after a few seconds, because 1 and 100 make 101, and so do 2 and 99, and there are fifty such pairs. Both people solve the same problem. Both get the same answer. One did ninety-nine additions and the other did about three operations, and that gap is the entire content of this lesson.

You will learn why more than one algorithm can solve the same problem, what makes one of them more efficient than another, and how to compare two algorithms by counting the work they do rather than by timing them on a stopwatch. You will also learn where this specification stops: it asks only about time efficiency, and it never asks for a formal mathematical comparison. Knowing the boundary of a topic is worth marks, because it tells you what a question can and cannot be asking.

Objectives

  1. Understand that more than one algorithm can be used to solve the same problem. Compare the efficiency of algorithms explaining how some algorithms are more efficient than others in solving the same problem.

Mind map

This topic is mapped out so you can see how the ideas connect.

Open the mind map in the app

Lesson Note

A problem is a statement of what must be achieved. An algorithm is one method of achieving it. Nothing anywhere says a problem gets only one method, and in practice almost every problem worth solving has several. Finding a name in a list, sorting a set of marks, working out whether a number is prime, drawing a line on a screen: each of those has a handful of well known algorithms, and choosing between them is a real engineering decision rather than a matter of taste.

Complete Note Available on the Green Bridge App

Get the Green Bridge CBT app on your phone or computer for the complete IGCSE library: past papers, mark schemes, mind maps, flashcards and audio lessons.

Full lesson notes with diagrams
AI-powered learning assistant
Timed mock exams marked the moment you finish
Available on Android, Windows, macOS, and Linux iOS app coming soon

Lesson Evaluation

Congratulations on completing the lesson on Efficiency Of Algorithms. Now that youve explored the key concepts and ideas, its time to put your knowledge to the test. This section offers a variety of practice questions designed to reinforce your understanding and help you gauge your grasp of the material.

You will encounter a mix of question types, including multiple-choice questions, short answer questions, and essay questions. Each question is thoughtfully crafted to assess different aspects of your knowledge and critical thinking skills.

Use this evaluation section as an opportunity to reinforce your understanding of the topic and to identify any areas where you may need additional study. Don't be discouraged by any challenges you encounter; instead, view them as opportunities for growth and improvement.

  1. On this specification, exam questions about the efficiency of algorithms refer only to: A. Memory efficiency B. Network efficiency C. Storage efficiency D. Time efficiency Answer: D
  2. An algorithm takes 2 seconds on 1000 items and 8 seconds on 2000 items. Approximately how long would it take on 4000 items? A. 10 seconds B. 16 seconds C. 32 seconds D. 64 seconds Answer: C
  3. A binary search is used on a sorted list of 1000 items. What is the maximum number of comparisons it will make? A. 3 B. 10 C. 500 D. 1000 Answer: B
  4. Which statement about two algorithms that solve the same problem is correct? A. The faster algorithm is always the better choice B. Two correct algorithms must do the same amount of work C. Only one algorithm can be correct for any problem D. The faster algorithm may have a condition on the data that the slower one does not Answer: D
  5. Algorithm A adds up the numbers from 1 to N with a loop. Algorithm B calculates N * (N + 1) DIV 2. Which statement is true when N is very large? A. Algorithm A does far more work than Algorithm B B. Algorithm B does far more work than Algorithm A C. Both do the same amount of work D. Algorithm B gives a different answer Answer: A

Work through these questions in the app

Work through these questions in the app

Practice Mock Questions

Want to practice mock questions on Efficiency Of Algorithms? Download the Green Bridge CBT app to access mock questions and full practice assessments for this topic.

Download The App On Google Playstore

Everything you need to excel in your exams

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
200,000+ Exam Questions Across IGCSE, JAMB, WAEC & NECO
Over 3,900 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning