Back to marketplace

Unit 7 Data Structures

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

What are the properties of a Tuple? (3)

Back (Answer)

• It is an ordered set of values • It may have elements of mixed types • It is immutable

#2
Front (Question)

What does Immutable mean?

Back (Answer)

Elements cannot change

#3
Front (Question)

What is a Dynamic Data Structure?

Back (Answer)

It can change size when required

#4
Front (Question)

What is a Static Data Structure?

Back (Answer)

It cannot change size

#5
Front (Question)

What are Integer, Real, Boolean and Char all examples of?

Back (Answer)

Elementary data types

#6
Front (Question)

What are String and Array both examples of?

Back (Answer)

Composite data types

#7
Front (Question)

What are List, Stack and Queue all examples of?

Back (Answer)

Abstract data types

#8
Front (Question)

What is an ADT?

Back (Answer)

Abstract Data Type A logical description of how we view the data and possible operations

#9
Front (Question)

What does the Queue Function enQueue(item) do?

Back (Answer)

Adds an item to the rear

#10
Front (Question)

What does the Queue Function deQueue do?

Back (Answer)

Removes and returns an item from the front

#11
Front (Question)

What does the Queue Function isEmpty do?

Back (Answer)

Indicates if a queue is empty

#12
Front (Question)

What does the Queue Function isFull do?

Back (Answer)

Indicates if a queue is full

#13
Front (Question)

What happens in a Priority Queue?

Back (Answer)

Some items are allowed to ‘jump’ the queue

#14
Front (Question)

What is Overflow?

Back (Answer)

Attempting to push onto a stack that is full

#15
Front (Question)

What is Underflow?

Back (Answer)

Attempting to pop from a stack that is empty

#16
Front (Question)

How does a Stack operate?

Back (Answer)

First On Last Off

#17
Front (Question)

What is a Hash Function?

Back (Answer)

Large data sets can be organised so each record is assigned a unique address. This unique address is calculated using a hashing algorithm or hash function. The algorithm uses some part of the record to map the record to a unique destination address

#18
Front (Question)

When does a Collision happen?

Back (Answer)

When an algorithm generates the same address for different primary keys A collision is sometimes referred to as a synonym

#19
Front (Question)

What is a Graph?

Back (Answer)

A set of vertices or nodes connected by edges or arcs. Edges may be weighted, indicating a cost of traversal

#20
Front (Question)

What distinguishes an Undirected Graph?

Back (Answer)

All edges are bidirectional

#21
Front (Question)

What is an advantage of a Matrix?

Back (Answer)

Convenient to work with, and adding an edge is simple

#22
Front (Question)

What is a disadvantage of a Matrix?

Back (Answer)

A sparse graph with not many connections (edges) will leave most of the cells empty, wasting a lot of memory space

#23
Front (Question)

What are advantages of an Adjacency List? (2)

Back (Answer)

• It only uses storage for the connections that exist, so it is more space-efficient • It is a good way of representing a large, sparsely connected graph

#24
Front (Question)

What are some applications of Graphs? (3)

Back (Answer)

• Computer networks, with nodes representing computers and weighted edges representing bandwidth between them • Web pages and links • Project management, with nodes as tasks, edges representing sequence and weights, time or cost