Posts by Alok Singh

Author Biographical Info:

hamming code in C++

By Alok Singh

In this tutorial, we will learn how to find the Hamming code of binary data with a solved example and C++ program. Hamming code is error-detection and error-correction code which .... Read More

How to find Run Length Encoding in C++

By Alok Singh

In this tutorial, we will learn about the Run Length Encoding (RLE) with example and C++ program followed by the algorithm. Run Length Encoding is a very simple form of lossless da.... Read More

check if a given matrix is sparse or not in C++

By Alok Singh

Hello, In this tutorial, we will learn how to check if a matrix is sparse or not in C++, with an example, algorithm, and a C++ program. A sparse matrix is a matrix of m row and n c.... Read More

How to sort a Matrix in C++

By Alok Singh

In this tutorial, we will learn how to sort a matrix in C++ with an algorithm. we all heard about sorting an array, but what is soring a matrix? well, sorting a matrix means soring.... Read More

How to add all the diagonal elements of a matrix in C++

By Alok Singh

In this tutorial, we will learn how to add all diagonal elements of a matrix in C++ with Algorithm. In order to add all diagonal elements of a matrix, it is important to make sure .... Read More

How to find unique elements in matrix in C++

By Alok Singh

In this tutorial, we will learn how to find unique elements in a matrix in C++ with an example and algorithm. The elements which appear only one time in a matrix are unique element.... Read More

How to swap both diagonals of a matrix in C++

By Alok Singh

In this tutorial, we will learn how to swap boh the diagonals of a matrix in C++ with an example, algorithm. The square matrix has two diagonals. one, which starts from the top-lef.... Read More

How to find transpose of a matrix in C++

By Alok Singh

In this tutorial, we will learn how to find the transpose of a matrix in C++ and will understand the logic behind the program. Transpose of a matrix is a manipulation of a matrix s.... Read More