1/3
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is an algorithm?
Outlines the essence of a computational procedure.
What are the properties of an algorithm?
Inputs
Outputs
Termination
Definiteness
What is a program and data structures?
A program is an implementation of an algorithm in some programming language.
Data structures are organisation of data needed to solve the problem.
Give the inputs and outputs of a sorting problem:
Inputs → A list of n keys a1, a2, …, an (e.g. 9,7,4,6,3)
Outputs → A list with the keys a1’ ≤ a2’ ≤ .. ≤ a3’ (3,4,6,7,9)