100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

Notes and Key Points on Algorithms, Time Complexity and the Limits of Computation

Rating
-
Sold
-
Pages
11
Uploaded on
20-04-2023
Written in
2022/2023

These are some of my notes for the AQA A-Level Computer Science course on algorithms, time and space complexity, the classification of algorithms, computational limits, and a few other small areas. The document includes a range of formatted equations, worked examples of Dijkstra's algorithm with a sample implementation, and more. Key points are highlighted, and the sections are split up. Please note that there may be a few formatting errors within the document. They don't affect the information shown, but if something seems out of place, that's probably why. Hopefully this is helpful!

Show more Read less
Institution
Module









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Study Level
Examinator
Subject
Unit

Document information

Uploaded on
April 20, 2023
Number of pages
11
Written in
2022/2023
Type
Other
Person
Unknown

Subjects

Content preview

Classification of Algorithms
#computer-science #algorithms #classification-of-algorithms


Algorithm Definition

A set of instructions required to complete a given task.



For any given problem, there will be multiple algorithms (for example,
Dijkstra's Shortest Path Algorithm is one shortest path algorithm).

Ideally, you want to use the most efficient algorithm -- i.e. the one which
runs quickly and uses minimal resources.


Time Complexity

How long does the algorithm take to run compared to other algorithms.



Space Complexity

How much memory is required compared with other algorithms.




The key factor is called the input size or the problem size . Typically, this
is the number of data items/nodes/etc.


Algorithm Efficiency Based on Problem Size

Some algorithms are effective for small data sets, but inefficient for
large ones.



Short Overview of Mathematical Functions

, Key Functions:

Constant functions 49
Linear functions 2x
Polynomial functions 2x 2




Exponential functions 2 x




Logarithmic functions log 10
x




Definition of a Permutation

A permutation is the number of ways a set of n items can be arranged.
In the trivial case, this is n!




Big O Notation
Describes the time complexity of an algorithm in the worse-case
scenario [1] as the input time increases.

For example, the bubble sort becomes rapidly unusable, while the
mergesort continues to work in a reasonable amount of time.

Big O calculates the maximum time for an algorithm to complete given n
data items.


Five Main Big O Notations

Constant Time O(1): The algorithm takes the same amount of time
however big the input size is
Logarithmic Time O(log n): The algorithm scales with log n
Linear Time O(n): Time is directly proportional to the size of the
data
Polynomial Time O(n 2
)


Exponential Time O(2 n
)




Disambiguation
$10.98
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
pencilcaseman

Also available in package deal

Get to know the seller

Seller avatar
pencilcaseman Hampton School
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
2 year
Number of followers
0
Documents
5
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions