$30
In this assignment you will write a MIPS assembly program and test it using MARS instruction set simulator.
Definition: This program takes one input from an input file, this is an integer array. This program finds a sequence according to increasing order, this program can find more than one sequence but has to return only one sequence that has a maximum length. The outputs of the program are the sequence and the length of the array, the outputs should be written the file.
Example: Array_inp: [3, 10, 7, 9, 4, 11], Array_outp: [3, 7, 9, 11] size = 4 Let’s examine program inner results:
• candidate sequence : [10,11] , size = 2
• candidate sequence : [3,7,9,11] , size = 4
• candidate sequence : [3,10,11] , size = 3
• candidate sequence : [7,9,11] , size = 3
• candidate sequence : [4,11] , size = 2
The inps/outps of the program have to read/write a text file. Showing inner results in console will bring extra points.
You need to write and explain your pseudocode in report file, you have to add time and space complexity. If you add some optimization parts/tricks, please explain in the report file.