Representation of graphs Adjacency matrix Adjacency list
Implement a program to create a graph of n vertices using adjacency matrix. Also write the code to read and print the information. Implement a program to create a graph of n vertices using adjacency list. Also write the code to read and print the information and delete the graph.
Detect a cycle in the directed graph. Detect a cycle in the undirected graph
Strongly Connected Components A directed graph is strongly connected if there is a path between all pairs of vertices. A strongly connected component ( SCC ) of a directed graph is a maximal strongly connected subgraph.
Square root decomposition Square root decomposition is the process of separating a structure of size O(N) into O(SQRT(N)) blocks. Square Root Decomposition Technique is one of the most common query optimization techniques used by competitive programmers. This technique helps us to reduce Time Complexity by a factor of sqrt(N) Queries of calculating sum in the range [ l,r ] Brute force->O(N) SDD->O(SQRT(N))
Asymptotic Analysis Efficiency Time complexity Space Complexity