Reference no: EM132646842
ECE 29500 Data-Driven Problem Solving Assignment
Project 2
Task #1
You will make a bash script (called ip-mailer)that takes an optional argument"-f" meaning forced to obtain the default IP4 address.
in a forced mode, it send the address to a specific email recipient and store the address to a designated file.
in a normal mode, it cross-checks the obtained address is identical to the stored address. If they differ, it send the address to a specific email recipient and store it the designated file. If they are identical, no action is required.
You make the system to execute the ip-mailer in the forced mode while the system is booting up even before a user is able to log in to the system.
You will make the system to execute the ip-mailer periodically without user's attention.
Task #2
A sequence of matrices can be multiplied together many different ways because matrix multiplication is associative, ie. (A×B)×C=A×(B×C)for three matricesA,BandC.For example, if Ais a 10×30 matrix,Bis a 30×5 matrix, andCis a 5×60 matrix, then
computing (AB)C needs (10×30×5) + (10×5×60) = 1500 + 3000 = 4500 operations,while
computing A(BC) needs (30×5×60) + (10×30×60) = 9000 + 18000 = 27000 operations.
Write a Python program to find the most efficient way to multiply a series of matrices in terms of the number of operations.Note that the goal is not actually to perform the multiplications, but merely to decide the sequence of the matrix multiplications involved. Measure the execution time of the program for each testcase.
A set of testcases will be given in Canvas.
Attachment:- Data-Driven Problem Solving.rar