Fundamentals of Data Structure and Algorithms Flashcards
Preliminary (1 of 3 handouts)
special format for storing and organizing data
data structure
2 types of data structure:
linear and non-linear
a type of data structure where elements are accessed in sequential order
linear
a type of data structure where elements are accessed in non-sequential order
non-linear
logical description of how data is viewed as well as the operations that are allowed without regard to how they will be implemented.
abstract data type (ADT)
benefits of using ADT:
code is easier to understand, implementations can be changed without requiring changed to the program that uses ADT, and this can be used in future programs
2 parts of abstract data type:
public or external and private or internal
data and the operations
public or external ADT
representations and implementations
private or internal ADT
9 abstract data types:
linked list
stack
queue
tree
priority queue
heap
set
map
graph
storing elements where each is a separate object
linked list
last element added is the first element retrieved or removed
stack
first element added is the first element retrieved or removed
queue
hierarchical nature of a structure in a graphical form
tree
elements are processed based on their order
priority queue