ITEC33 Flashcards
is a pictorial representation of a set of objects where some pairs of objects are connected by links.
GRAPH
The interconnected objects are represented by points
VERTICES
- links that connect the vertices
EDGES
Each node of the graph is represented as a
VERTEX
represents a path between two vertices or a line between two vertices
EDGE
Two node or vertices are adjacent if they are connected to each other through an edge.
ADJACENCY
represents a sequence of edges between the two vertices.
PATH
Adds a vertex to the graph.
ADD VERTEX
Adds an edge between the two vertices of the graph.
ADD EDGE
Displays a vertex of the graph.
DISPLAY VERTEX
traverses a graph in a depthward motion and uses a stack to remember to get the next vertex to start a search, when a dead end occurs in any iteration
DEPTH FIRST TRAVERSAL
traverses a graph in a breadthward motion and uses a queue to remember to get the next vertex to start a search, when a dead end occurs in any iteration.
BREADTH FIRST TRAVERSAL
represents the nodes connected by edges
TREE
can be defined recursively as a collection of nodes
TREE DATA STRUCTURE
represents the descendants of a node.
SUBTREE
refers to checking the value of a node when control is on the node
VISITING