Computer Science GCES AQA
-
Representing Algorithms Aqa4 主题
-
Efficiency Of Algorithms Aqa1 主题
-
Searching Algorithms Aqa3 主题
-
Sorting Algorithms Aqa3 主题
-
Data Types Aqa1 主题
-
Programming Concepts Aqa5 主题
-
Arithmetic Relational And Boolean Operations Aqa1 主题
-
Data Structures Aqa3 主题
-
String Manipulation Aqa1 主题
-
Random Number Generation Aqa1 主题
-
Structured Programming Aqa2 主题
-
Robust And Secure Programming Aqa4 主题
-
Number Bases Aqa2 主题
-
Converting Between Number Bases Aqa3 主题
-
Units Of Information Aqa9 主题
-
Hardware And Software Aqa4 主题
-
Boolean Logic Aqa3 主题
-
Programming Languages And Translators Aqa2 主题
-
Cpu Architecture Performance And Embedded Systems Aqa4 主题
-
Memory Aqa2 主题
-
Secondary Storage Aqa3 主题
-
Fundamentals Of Computer Networks Aqa8 主题
-
Fundamentals Of Cyber Security Aqa1 主题
-
Methods Of Preventing Cyber Security Threats Aqa1 主题
-
Relational Databases Aqa2 主题
-
Ethical Legal And Environmental Impacts Aqa2 主题
Algorithm Efficiency Aqa
Exam code:8525
Algorithm Efficiency
What is algorithm efficiency?
-
Algorithm efficiency is how much time it takes to complete an algorithm
-
In programming, there is often more than one algorithm which can solve a problem
-
An example of this is a linear search and binary search as both find a value in a list, however, depending on the circumstances, one may be much faster than the other
Efficiency in action
-
If we took the numbers 1-20 jumbled up in a list
-
How efficient an algorithm is would be determined by how quickly it could sort the numbers into ascending order
|
Sort 1 (Bubble sort) |
Sort 2 (Insertion sort) |
|---|---|
|
|
|
-
In the algorithms above, the worst case of a bubble sort is that it would take 361 comparisons to sort 20 items of data
-
The worst case of an insertion sort with 20 items is that it would perform 190 comparisons
-
This means that in this instance, although both algorithms perform the same job and achieve the same result, an insertion sort would be significantly faster because it is much more efficient in how it uses the computer’s processing power and memory
Responses