Data Types (36%) Flashcards

1
Q

A data structure for implementing a list ADT, where each node has data and a pointer to the next node. The list structure typically has pointers to the list’s first node and last node.

A

Singly linked list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A data structure for implementing a list ADT, where each node has data, a pointer to the next node, and a pointer to the previous node.

A

Doubly-linked list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A data structure that stores unordered items by mapping (or hashing) each item to a location in an array (or vector). Dictionaries and arrays.

A

Hash table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Data structure where each node has up to two children, known as a left child and a right child. “Binary” means two, referring to the two children.

A

Binary tree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A complete binary tree that maintains the simple property that a node’s key is greater than or equal to the node’s children’s keys.
(Actually, a max-heap may be any tree, but is commonly a binary tree).

A

Max-heap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Is similar to a max-heap, but a node’s key is less than or equal to its children’s keys.

A

Mini-heap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A common ADT for holding ordered data, also known as a sequence. created by using brackets []. Array and linked list.

A

List ADT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

ADT that stores a collection of data, like a list, but is immutable. Created using () with elements seperated by commas.

A

Tuple ADT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

ADT that has an unordered collection of unique elements. Empty ADT can only be created using (). Binary search tree and hash table.

A

Set ADT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

ADT Python container used to describe associative relationships. Empty created using {}. Elelements are added using key:value pairs. Hash table and binary search tree.

A

Dictionary ADT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

ADT in which items are only inserted on or removed from the top of a stack. (Last in, first out). Linked list or array.

A

Stack ADT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

ADT in which items are inserted at the end and removed from the front. Linked list or array.

A

Queue ADT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

ADT in which items can be inserted and removed at both the front and back. Linked list or array.

A

Dequeue ADT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

ADT where each item has a priority, and items with higher priority are closer to the front than the items with lower priority. Heap

A

Priority queue ADT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

An ADT for holding ordered data and allowing indexed access. Array.

A

Dynamic array ADT.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly