Farhan Muhamed has Published 58 Articles

C++ Program to Represent Graph Using Adjacency List

Farhan Muhamed

Farhan Muhamed

Updated on 15-Apr-2025 18:23:30

4K+ Views

What is Adjacency List? An adjacency list is a collection of unordered lists that are used to represent a finite graph. Each list in the collection represents one of the vertex of the graph and it will store the adjacent vertices of that vertex. Let's see an example: ... Read More

C++ Program to Represent Graph Using Incidence Matrix

Farhan Muhamed

Farhan Muhamed

Updated on 15-Apr-2025 18:20:09

1K+ Views

What is incidence matrix? An incidence matrix is a mathematical representation of a graph that shows the relationship between vertices and edges. In other words, it is a matrix M of size v x e, where v = number of vertices and e = number of edges. For example, if ... Read More

C++ Program to Represent Graph Using Adjacency Matrix

Farhan Muhamed

Farhan Muhamed

Updated on 15-Apr-2025 18:18:25

4K+ Views

What is Adjacency Matrix? Adjacency matrix is a square matrix that represent a finite graph data structure using a 2D array. The each elements in the matrix represent the edges of the graph. For example, if the graph has some edges from i to j vertices, then in the adjacency ... Read More

C++ Program to Check the Connectivity of Directed Graph Using BFS

Farhan Muhamed

Farhan Muhamed

Updated on 15-Apr-2025 18:14:46

730 Views

The Breadth-First Search (BFS) algorithm is a graph traversal algorithm that starts at the tree root and explores all nodes at the present depth before moving to the nodes at the next level. In this article, we will discuss how to check the connectivity of a directed graph using BFS ... Read More

How to clear complete cache data in ReactJS?

Farhan Muhamed

Farhan Muhamed

Updated on 29-Nov-2024 12:11:40

474 Views

Caching is a technique used to store reusable resources in the user's browser. Caches are of different types, for example, Local Storage Cache, Session Storage Cache, and Service Worker Cache, each of these has a different approach to clearing completely from browser. In this article, we will explain how to ... Read More

What is prop drilling and how to avoid it?

Farhan Muhamed

Farhan Muhamed

Updated on 29-Nov-2024 12:07:47

148 Views

Prop Drilling is a common mistake beginners make while building React apps. It can cause reduced code readability and even performance issues for the app. In this article, I will explain what are props, prop drilling, and how to avoid prop drilling using context APIs. Table of Content ... Read More

How to parse JSON Data into React Table Component?

Farhan Muhamed

Farhan Muhamed

Updated on 27-Nov-2024 13:05:04

278 Views

JSON files are used in APIs to transfer data from server to client in the form array. This transferred data needs to be displayed in the user interface, such as in tables or any other components. In this article, we will demonstrate how to display JSON data using a React ... Read More

How to create an unique id in ReactJS?

Farhan Muhamed

Farhan Muhamed

Updated on 27-Nov-2024 13:01:51

359 Views

Unique IDs are used to differentiate multiple elements from each other, maintain the internal state of components, or create a key for user data. In this article, we will explain all the approaches to creating unique IDs for a set of elements in React JS. Approaches to Create ... Read More

Advertisements