Learning objective
Abstract data types/data structures: Be familiar with the concept and uses of a: • queue • stack • graph • tree • hash table • dictionary • vector. Be able to use these abstract data types and their equivalent data structures in simple contexts. Students should also be familiar with methods for representing them when a programming language does not support these structures as built-in types. Be able to distinguish between static and dynamic structures and compare their uses, as well as explaining the advantages and disadvantages of each. Describe the creation and maintenance of data within: • queues (linear, circular, priority) • stacks • hash tables.
Read the explanation, check the common trap, then practise with flashcards and questions.
At a glance
0
Flashcards
0
Questions
Topic
Data structures and abstract data types
Subtopic
Abstract data types/data structures
Study support
Understand this objective
Quick explanation
Abstract data types/data structures: Be familiar with the concept and uses of a: • queue • stack • graph • tree • hash table • dictionary • vector. Be able to use these abstract data types and their equivalent data structures in simple contexts. Students should also be familiar with methods for representing them when a programming language does not support these structures as built-in types. Be able to distinguish between static and dynamic structures and compare their uses, as well as explaining the advantages and disadvantages of each. Describe the creation and maintenance of data within: • queues (linear, circular, priority) • stacks • hash tables
- This point belongs to Data structures and abstract data types, especially Abstract data types/data structures.
- You need to be able to abstract data types/data structures: Be familiar with the concept and uses of a: • queue • stack • graph • tree • hash table • dictionary • vector. Be able to use these abstract data types and their equivalent data structures in simple contexts. Students should also be familiar with methods for representing them when a programming language does not support these structures as built-in types. Be able to distinguish between static and dynamic structures and compare their uses, as well as explaining the advantages and disadvantages of each. Describe the creation and maintenance of data within: • queues (linear, circular, priority) • stacks • hash tables.
- Use the linked flashcards and practice questions to check recall, then practise applying the idea in an exam-style answer.
Why it matters
This objective helps connect Abstract data types/data structures to exam-style questions, flashcards, and revision notes for Data structures and abstract data types.
Quick student answer
Which abstract data type follows the first-in, first-out principle?
Direct answer
A queue
Key terms
- Abstract data type: A logical description of a type of data and the operations that can be performed on it, independent of how it is implemented.
- Priority queue: A queue in which the next item removed is selected according to priority rather than simply by arrival order.
Common trap
Confusing a stack with a queue: Remember that a stack is LIFO and a queue is FIFO. Relate the rule to the end from which items are removed.
Related questions
Try this as a practice card
Question 1 of 4
Choose an answer, get feedback, then move sideways through the set.
Flashcard prompts
Flip through the key recall cards
Flashcard 1 of 4
Revision tools
Choose how to practise
Flashcards0 linked cards
Practice Questions0 linked questions
Related learning objectives
- Data structures: Be familiar with the concept of data structures. It may be helpful to set the concept of a data structure in various contexts that students may already be familiar with. It may also be helpful to suggest/demonstrate how data structures could be used in a practical setting.
Data structures
- Single- and multi-dimensional arrays (or equivalent): Use arrays (or equivalent) in the design of solutions to simple problems. A one-dimensional array is a useful way of representing a vector. A two-dimensional array is a useful way of representing a matrix. More generally, an n-dimensional array is a set of elements with the same data type that are indexed by a tuple of n integers, where a tuple is an ordered list of elements.
Single- and multi-dimensional arrays (or equivalent)
- Fields, records and files: Be able to read/write from/to a text file. Be able to read/write data from/to a binary (non- text) file.
Fields, records and files
