ITEC33(finals) Flashcards
It is a pictorial representation of a set of objects where some of objects are connected by links.
Graph
The interconnected objects are represented by points.
Vertices
Links that connect the vertices.
Edges
Two nodes or vertices are adjacent of they are connected to each other through an edge.
Adjacency
It 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
Algorithm traverse a graph in a depthward motion and uses a stack to remember to get the next vertex to start a search.
Depth First Search (DFS)
Algorithm traverse a graph in a breadthward motion and uses a queue to remember to get the next vertex to start a search.
Bread First Search(BFS)
Represents the nodes connected by edges.
Tree
Refers to the sequence of nodes along the edges of a tree.
Path
The node at the top of the tree.
Root
Any node except the root node has one edge upward to a node.
Parent
The node below a given node connected by each edge downward.
Child
The node which does not have any child node.
Leaf