Algorithms / Data Structures Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Abstract data type (ADT)

A

A model of a data structure (properties, operations, etc); from the POV of its user

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

Algorithm

A

A finite set of well-defined instructions typically used to solve a particular class of problem; must have a sequence of operations, a control flow, and a stopping condition

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

Binary tree

A

A tree whose nodes have at most two children

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

Data structure

A

The implementation of an ADT (queue => array); from the POV of its programmer

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

Graph

A

A collection of nodes and their edges

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

Internal node

A

A node that has children

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

Leaf node

A

A node that does not have children

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

Linked list

A

A linear data structure; has head (first node), tail (last node) and length properties; its data is stored non-contiguously

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

Queue

A

A first-in-first-out, linear data structure

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

Linear data structure

A

A data structure whose nodes are ordered sequentially and each have references to their adjacent nodes; easier to implement but less memory efficient than nonlinear

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

Nonlinear data structure

A

A data structure whose nodes are ordered hierarchically; harder to implement but more memory efficient than linear

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

Stack

A

A last-in-first-out, linear data structure

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

Tree

A

A graph that doesn’t contain any cycles (loops back to a previous node); ‘rooted’ if it has a single root node

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