Describe arrays.
* Always zero-indexed unless stated otherwise
What are 1D arrays considered to be?
Linear arrays
2D ARRAYS
How can they be visualized?
How do you search across them?
* When searching through them, go down the rows then across the columns to find a given position.
3D ARRAYS
How can they be visualized?
How do you search across them?
Describe records.
How are they used?
How can its attributes be identified?
Describe lists.
In what way are the elements accessed?
How are the values stored?
What kind of elements can lists contain?
Describe tuples.
What is different about tuples?
What brackets are used to initialize them?
In what way are the elements accessed?
Describe static and dynamic data structures
Static
• Structure size cannot change at runtime
Dynamic
• Structure size can change at runtime
Describe mutable and immutable
Immutable
• Structure/data cannot be changed at runtime
Mutable
• Structure/data can be changed at runtime
Describe stacks.
Describe queues.
* Items are added to the end and removed from the front
Describe LINEAR queues.
How are items added and removed?
What is an issue with linear queues?
• As the queue removes items, there are addresses in the array which cannot be used again, making linear queues an ineffective implementation of a queue.
Describe CIRCULAR queues.