Unit 4 2 Marks
Unit 4 2 Marks
PART A
1. Define critical path( April-May 23)
The critical path (or paths) is the longest path (in time) from Start to Finish; it indicates
the minimum time necessary to complete the entire project.
he critical path is the entire path through the diagram that will take the longest amount of
time to complete.
The essential technique for using CPM
Directed edges: In a directed graph, edges have a direction associated with them,
indicating a one-way relationship between vertices.
Indegree and Outdegree: Each vertex in a directed graph has two different degree
measures: indegree and outdegree. Indegree is the number of incoming edges to a vertex,
while outdegree is the number of outgoing edges from a vertex.
Cycles: A directed graph can contain cycles, which are paths that start and end at the same
vertex and contain at least one edge. Cycles can be important for understanding feedback
loops or other patterns in the graph.
Paths and reachability: Paths in a directed graph follow the direction of the edges, and
can be used to analyze reachability between vertices.
Output: 5 4 2 3 1 0
Explanation: The first vertex in topological sorting is always a vertex with an in-
degree of 0 (a vertex with no incoming edges). A topological sorting of the following
graph is “5 4 2 3 1 0”. There can be more than one topological sorting for a graph.
Another topological sorting of the following graph is “4 5 2 3 1 0”.
B-tree is also a self-balancing tree allowing each node multiple keys and offspring. It is
the binary search tree in a more generalized version. We have also talked about the
properties and applications of the B tree along with various operations on the B tree, such
as
Insertion operation
Search operation
Deletion operation