1.3.2 Databases Flashcards
What is a Graph?
An abstract data structure used to show relationships between items.
What is a Node?
An item , or a peice of data
What is an Edge (or arc)?
A relationship between nodes
What is a weighted graph?
Each edge has a value, or a cost to traverse.
What is an unweighted graph?
Edges have no values or costs.
What is a directed graph?
Edges can only be traversed in one direction.
What is a depth-first traversal?
Read a graph by going as far down each route as you can before backtracking.
What is breadth-first traversal?
Read a graph by checking all the available routes from a node before progressing
What is a binary search tree?
A rooted tree where each node has a maximum of 2 children. Makes data easy to search.