Lesson 1: Overview of Data Structures Flashcards
Most used in defining algorithms which is an English-like representation of the algorithm logic
Pseudocode
Can be used to represent both data structures and code
Pseudocode
Used to describe an algorithm
Pseudocode
A set of instructions designed to perform a specific task
Algorithm
In computer programming, these are often created as functions. These functions serve as small programs that can be referenced by a larger program.
Algorithm
What are the components of an algorithm? (clue: HPRNVCA)
Algorithm HEADER
PURPOSE, Conditions and Return
Statement NUMBERS
VARIABLES
Statement CONSTRUCTS
Algorithm ANALYSIS
What are the uses of algorithm? (clue: RPM)
Real-world data storage
Programmer’s tools
Modelling
A set of instances or values
Data Objects
Examples of Data Objects (clue: LDBNIS)
Letter
Digit
Boolean
Natural Number
Integer
String
[Data Objects] A, B, C, …, Z, a, b, c, …, z
Letter
[Data Objects] 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
Digit
[Data Objects] true, false
Boolean
[Data Objects] 0, 1, 2, 3, …
Natural Number
[Data Objects] 0, ±1, ±2, ±3, …
Integer
[Data Objects] a, b, …, aa, ab, ac, …
String