Data Structures 5 Flashcards

1
Q

Aggregate Data Types

A

Any type of data that can be referenced as a single entity, and yet consists of more than one piece of data, like strings, arrays, classes, and other complex structures.

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

1D Array

A

A linear collection of data items in a program, all of the same type, such as an array of integers or an array of strings, stored in contiguous memory, and easily accessed using a process called indexing.

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

Contiguous Memory

A

“Memory that is ““side-by-side”” in a computer, typical of an array structure.”

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

Data Structure

A

A way of organizing data in a computer so that it can be used efficiently, such as an array, linked list, stack, queue, or binary tree.

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

Linear Data Structure

A

A programming data structure that occupies contiguous memory, such as an array of values.

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

2D Array

A

An array of an arrays, characterized by rows and columns, arranged in a grid format, but still stored in contiguous, or side-by-side memory, accessed using two index values.

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

Peek

A

A process used in stack and queue processing where a copy of the top or front value is acquired, without removing that item.

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

Pop

A

A process used in stack and queue processing where a copy of the top or front value is acquired, and then removed from the stack or queue (Dequeue).

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

Push

A

A process used in stack and queue processing where a new value is inserted onto the top of the stack OR into the back of the queue (Enqueue).

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

Stack

A

An abstract data type that serves as a collection of elements, with two principal operations: push, which adds an element to the collection, and pop, which removes the last element that was added. LIFO - Last In First Out

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

Queue

A

A FIFO (First In First Out) data structure, where the first element added will be the first to be removed, and where a new element is added to the back, much like a waiting line.

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

Linked List

A

A linear data structure, much like an array, that consists of nodes, where each node contains data as well as a link to the next node, but that does not use contiguous memory.

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

Dynamic Memory

A

Memory that is allocated as needed, and NOT contiguous (side-by-side), specifically during the implementation of a linked list style data structure, which also includes binary trees and graphs.

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

Node

A

An object linked to other objects, representing some entity in that data structure.

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

Non-Linear Data Structure

A

A data structure that does not occupy contiguous memory, such as a linked list, graph, or tree.

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

Parent Node

A

A node, including the root, which has one or more child nodes connected to it.

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

Binary Tree

A

A data structure that consists of nodes, with one root node at the base of the tree, and two nodes (left child and right child) extending from the root, and from each child node.

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

Children

A

The term used in trees to indicate a node that extends from another node, such as left child and right child in a binary tree.

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

Complete Tree

A

A tree in which there are no missing nodes when looking at each level of the tree. The lowest level of tree may not be completely full, but may not have any missing nodes. All other levels are full.

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

Depth

A

In tree data structure, expressed as the number of steps from the root of the tree to the farthest outlying node in the tree. Height is also used to mean the same thing.

21
Q

External Node

A

A potential node in a tree, where currently either the left or right child pointer of a node is pointing to null, but potentially could reference another node.

22
Q

Binary Search Tree

A

A tree in which nodes are inserted systematically in natural order, with the final property of each left child being less than or equal to its parent, and each right child being greater than its parent. (Does not preserve the order in which nodes were added.

23
Q

Minimum Heap Tree

A

A tree in which every parent is lesser in value than both its children, which means that the root of the tree is least value in the tree.

24
Q

Maximum Heap Tree

A

A tree in which every parent is greater in value than both its children, which means that the root of the tree is greatest value in the tree.

25
Q

Full Tree

A

A tree in which every level of the tree is completely full, with no missing nodes.

26
Q

Binary Tree Traversal

A

The process of systematically visiting every node in a tree once. The three most common traversals are: pre-order, in-order, and post-order.

27
Q

Full Tree Traversal

A

A non-executable, visual approach to help determine the pre-order, in-order, or post-order traversal of a tree.

28
Q

Pre-Order Traversal

A

“The process of systematically visiting every node in a tree once, starting with the root node, proceeding to the left along the tree and accessing the node when the ““left”” side of the node is encountered.”

29
Q

In-Order Traversal

A

“The process of systematically visiting every node in a tree once, starting at the root and proceeding left down the tree, accessing the first node encountered at its ““center””, proceeding likewise along the tree, accessing each node as encountered at the ““center””.”

30
Q

Post-Order Traversal

A

“The process of systematically visiting every node in a tree once, starting at the root and proceeding left down the tree, accessing the first node encountered at its ““right”” side, proceeding likewise along the tree, accessing each node as encountered at its ““right”” side.”

31
Q

Internal Node

A

An existing node in a tree, either the root or any one of the children in the tree.

32
Q

Internal Path Length

A

In tree processing, this is the sum of all the lengths from the root to the external nodes in a tree.

33
Q

Leaf

A

A node in a tree data structure that has no children, and is at the end of a branch in a tree.

34
Q

Tree Topology

A

A tree is widely used abstract data type (ADT) or data structure implementing this ADT that simulates a hierarchical tree structure, with a root value and subtrees of children with a parent node, represented as a set of linked nodes.

35
Q

Complete Graph

A

A simple undirected graph in which every pair of distinct vertices is connected by a unique edge, in other words, every vertex is directly connected to every other vertex in the graph

36
Q

Connected Graph

A

“A graph where there exists a simple path from any vertex in the graph to any other vertex in the graph, even if it takes several ““hops”” to get there.”

37
Q

Directed Graph

A

A graph where an edge has a direction associated with it, for example, a plane flight that takes off in one location and arrives in another. The return flight would be considered a separate edge.

38
Q

Edge

A

The connection in a graph between two vertices.

39
Q

Graph

A

A data structure in programming which consists of a set of vertices (nodes) and edges (connections).

40
Q

Undirected Graph

A

A graph that contains edges between vertices with no specific direction associated with any edge.

41
Q

Array length

A

A value that represents the number of elements contained in an array. Often there is a process associated with an array that provides this value, such as list.length, or len(list).

42
Q

Array Index

A

A value that indicates the position in the array of a particular value. The last element in a zero-indexed array would be the length of the array, minus 1.

43
Q

Static Memory

A

Memory allocated to an array, which cannot grow or shrink once declared.

44
Q

Row Major

A

An array where the two index values for any element are the row first, then the column.

45
Q

Ragged Array

A

An array where the number of columns in each row may be different.

46
Q

Head

A

“A typical object variable identifier name used to reference, or point to, the first object in a linked list. The number one rule for processing linked lists is, ‘Never let go of the head of the list!””, otherwise all of the list is lost in memory. The number two rule when managing linked lists is, ‘Always connect before you disconnect!’.”

47
Q

Root

A

The base level node in a tree; the node that has no parent.

48
Q

Heapify

A

A process in Minimum Heap Trees where the new node is switched up until min heap state is achieved.

49
Q

Vertex

A

An object in a graph.