Advanced Information Revision Notes

From TRCCompSci - AQA Computer Science
Revision as of 10:19, 31 May 2022 by Admin (talk | contribs) (Created page with "=Recursion= =Arrays= An Array is a data structure that allows you to store several values of the '''same data type'''. You must declare the size of the array when it is crea...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Recursion

Arrays

An Array is a data structure that allows you to store several values of the same data type.

You must declare the size of the array when it is created.

Single Dimension

Each value can be accessed by the element number within the sequence.

Multi Dimension

You need to specify the dimensions when created (ie 3, 3 ).

It can still only store one data type, so it could be a 2 dimensional array of Integers

To access an element you need to give the number for each dimension.

Abstract Data Types & Dynamic vs Static

Queues

Stacks

Graphs

Trees

A tree is a specific type of graph.

  1. Must be connected
  2. Must be undirected
  3. Must have no cycles

Graph Traversal

Searching Algorithms

Sorting Algorithms

Optimisation Algorithms

Order of Complexity

Halting Problem