## Program for Markov matrix

Given a m x n 2D matrix, check if it is a Markov Matrix. Markov Matrix : The matrix in which the sum of each… Read More »

Given a m x n 2D matrix, check if it is a Markov Matrix. Markov Matrix : The matrix in which the sum of each… Read More »

Given a 2-Dimensional character array and a string, we need to find the given string in 2-dimensional character array such that individual characters can be… Read More »

Given a 2D array(m x n), check if there is any path from top left to bottom right. In the matrix, -1 is considered as… Read More »

Addition or Subtraction of matrices takes O(n^2) time without threads but using threads we doesn’t reduce the time complexity of the program we divide the… Read More »

Diagonal matrix: A square matrix is said to be diagonal matrix if the elements of matrix except main diagonal are zero. A square null matrix… Read More »

Let A be a square matrix with all real number entries. Find two symmetric matrix P and skew symmetric matrix Q such that P +… Read More »

Given a matrix of size n*n. Count the frequency of given element k in that matrix. Here base index is 1. Examples: Input : n… Read More »

Given number of rows and columns. And given number of 1’s, 2’s, 3’s ……k’s which needs to be printed. Print them in a zig-zag way.… Read More »

Prerequisite – Resource Allocation Graph (RAG), Banker’s Algorithm, Program for Banker’s Algorithm Banker’s Algorithm is a resource allocation and deadlock avoidance algorithm. This algorithm test… Read More »

Given a matrix A and a matrix B, their Kronecker product C = A tensor B, also called their matrix direct product, is an matrix.… Read More »

If most of the elements in the matrix are zero then the matrix is called a sparse matrix. It is wasteful to store the zero… Read More »

Given a n x n matrix of integers. The problem is to find the largest area rectangular sub-matrix having sum divisible by the given value… Read More »

Given a binary matrix whose elements are only 0 and 1, we need to print the rows which are duplicate of rows which are already… Read More »

We are given two square matrices of same order. Check if two given matrices are identical. Examples: Input : A = [ [1, 1, 1,… Read More »

Given an n x n matrix and integer k. Find the k’th smallest element in the given 2D array. Examples: Input : mat = [[10,… Read More »