Matrix Data Structure

  • Last Updated : 26 Sep, 2023

Complete Guide to Arrays & Matrix
Learn more about Matrix in DSA Self Paced Course
Practice Problems on Matrix
Top Quizzes on Matrix

What is Matrix Data Structure?


A matrix represents a collection of numbers arranged in an order of rows and columns. It is necessary to enclose the elements of a matrix in parentheses or brackets.
For example:

A matrix with 9 elements is shown below.
Matrix Archives
This Matrix M has 3 rows and 3 columns. Each element of matrix M can be referred to by its row and column number. For example, M[2][3] = 6.

Topics:

Introduction:

  1. Introduction to Matrix or Grid – Data Structure and Algorithms Tutorial
  2. Row-wise vs column-wise traversal of matrix
  3. Applications of Matrices and Determinants

Basic Operations on Matrix:

  1. Traverse a given Matrix using Recursion
  2. Rotate Matrix Elements
  3. Sort the given matrix
  4. Search element in a sorted matrix
  5. Program to find transpose of a matrix
  6. Adjoint and Inverse of a Matrix
  7. Determinant of a Matrix

Standard problems on Matrix:

Quick Links:

Recomended:

If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to review-team@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.