0% found this document useful (0 votes)
60 views1 page

Lab Assignment 2

This lab assignment involves writing Python programs to perform various matrix operations using a randomly generated data file with 20,000 rows and 10,000 columns as a database. The programs include assigning row elements to a matrix, grouping similar elements into a matrix, adding and subtracting matrices, creating a square matrix where sub-matrix sums of opposite corners are even, and performing row-wise element addition in a tuple matrix.

Uploaded by

Shivam Aggarwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views1 page

Lab Assignment 2

This lab assignment involves writing Python programs to perform various matrix operations using a randomly generated data file with 20,000 rows and 10,000 columns as a database. The programs include assigning row elements to a matrix, grouping similar elements into a matrix, adding and subtracting matrices, creating a square matrix where sub-matrix sums of opposite corners are even, and performing row-wise element addition in a tuple matrix.

Uploaded by

Shivam Aggarwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Lab Assignment - 2

1. Create a data file by using Python random module with different random generator
parameters. The data file must have 20000 X 10000 (rows X columns) in the data file. This
data file to be used as database for realization of math and matrix operations in cloud
computing lab assignments.
2. Write a program in Python to assign subsequent rows to matrix first row elements.
3. Write a program in Python to group similar elements into matrix.
4. Write a program in Python to add and subtract matrices in python.
5. Write a program in Python to create an n x n square matrix, where all the sub-matrix has the
sum of opposite corner elements as even.
6. Write a program in Python to perform row-wise element addition in tuple matrix.

You might also like