2.1.3 The use of, and need for, data structures Flashcards
1
Q
Define:
Data Structures
A
“Collection of data objects which facilitate the storing and managing of data in a program”
2
Q
State:
2 advantages of using data structures
A
- Optimise memory usage within a system
- Can be reused and compiled into libraries
3
Q
State:
“A collection of data items, can be of different data types and items are accessed using each data items index value”
A
List
4
Q
State:
“Contains a group of elements of the same data type”
A
Array
5
Q
Define:
Dictionary
A
“A set of values, each with associated keys. Items are unordered and when accessed by the key, will return the associated value”
6
Q
Define:
Index
A
“A numerical representation of an item’s position in a sequence”