1M - Module 4
1M - Module 4
2. Leaf Node (in a Binary Tree): A leaf node is a node that has no children; it is at the end of
a branch of the tree.
3. Binary Tree: A binary tree is a tree data structure in which each node has at most two
children, referred to as the left child and the right child.
4. Time Complexity of Searching in a Binary Search Tree (BST): The time complexity for
searching in a BST is , where is the height of the tree. In the average case, this is , but in
the worst case (unbalanced tree), it can be .
7. Cycle in a Graph: A cycle in a graph is a path of edges and vertices wherein a vertex is
reachable from itself.
8. Directed Graph: A directed graph, or digraph, is a graph in which the edges have a
direction. This means that each edge goes from one vertex to another specific vertex.
9. Size of Adjacency Matrix with 4 Vertices: The size of the adjacency matrix for a graph with
4 vertices is , or 16 elements.
Remove vertex
Add edge
Remove edge
Check connectivity
11. Breadth-First Search (BFS): BFS is a graph traversal algorithm that starts at a source
node and explores all neighboring nodes at the present depth before moving on to nodes at
the next depth level.
Prim's Algorithm
Kruskal's Algorithm