Someswar Pal has Published 53 Articles

Check if a graph constructed from an array based on given conditions consists of a cycle or not

Someswar Pal

Someswar Pal

Updated on 28-Jul-2023 11:34:05

203 Views

Introduction In graph theory, it is a very important task to figure out if a graph built from an array and meeting certain conditions has a cycle or not. A graph is an imaginary way to show how things are linked together. It is used in a lot of places, ... Read More

Successor Graphs

Someswar Pal

Someswar Pal

Updated on 28-Jul-2023 11:32:13

904 Views

Introduction A Successor Graph is a model of a directed graph in which each node stores a list of the nodes that come after it. Successor graphs are better than an adjacency matrix or list because they speed up access to outgoing edges. This makes them perfect for algorithms that ... Read More

Print matrix elements using DFS traversal

Someswar Pal

Someswar Pal

Updated on 28-Jul-2023 11:26:51

893 Views

Introduction Depth-First Search (DFS) is a graph traversal method that looks at vertices and edges by starting at a certain node and going as far as possible down each branch before going back.It looks at the "depth" of the graph, starting with the node that is the deepest and then ... Read More

Advertisements