Data Structures Flashcards

1
Q

Data Structure

A

Definition: A way of organizing and storing data so that it can be accessed and modified efficiently.
Examples: Arrays, Linked Lists, Stacks, Queues, Trees, Graphs, Hash Tables.

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

Node

A

Definition: A basic unit of a data structure, such as a linked list or tree, that contains data and references to other nodes.
Components: Data (value stored), Pointer(s) (reference to the next node or child nodes)

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

Pointer/Reference

A

Definition: A variable that holds the memory address of another variable, often used in dynamic data structures like linked lists and trees.
Purpose: To connect nodes or elements within a data structure.

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

Linear Data Structures

A

Definition: Data structures where elements are arranged in a sequential manner.
Examples: Arrays, Linked Lists, Stacks, Queues.

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

Non-Linear Data Structures

A

Definition: Data structures where elements are arranged in a hierarchical manner and are not in sequence.
Examples: Trees, Graphs.

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

Dynamic Data Structures

A

Definition: Data structures that can change in size during runtime, allowing for more flexible memory usage.
Examples: Linked Lists, Trees, Graphs.

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

Abstract Data Type (ADT)

A

Definition: A model for data structures that defines the data type independently of its implementation.
Examples: Stack, Queue, List, Set.

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