100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Otro

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

Puntuación
-
Vendido
-
Páginas
11
Subido en
20-04-2023
Escrito en
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!

Mostrar más Leer menos
Institución
Grado

Vista previa del contenido

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

Escuela, estudio y materia

Nivel de Estudio
Editores
Tema
Curso

Información del documento

Subido en
20 de abril de 2023
Número de páginas
11
Escrito en
2022/2023
Tipo
Otro
Personaje
Desconocido

Temas

$11.87
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor
Seller avatar
pencilcaseman

Documento también disponible en un lote

Conoce al vendedor

Seller avatar
pencilcaseman Hampton School
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
0
Miembro desde
2 año
Número de seguidores
0
Documentos
5
Última venta
-

0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes