Question: 4 . ( 1 0 pts ) Consider the following program to find the maximum or the minimum in a list of numbers based on
pts Consider the following program to find the maximum or the minimum in a list of numbers based on a setting of the flag variable: Int min A Int max A Boolean flag false If flag false for i to n if Ai min min All returnmin instruction instruction instruction instruction instructions instruction instruction instruction Else for i to n if Ali max max Ali return max instructions instruction instruction instruction a Find the total number of instructions needed to execute the program pts American University of Sharjah College of Engineering Department of Computer Science and Engineering COE Computer Architecture b Assuming clock cycle is ns find the total time to execute the program on: i CISC machine where: Each instruction is cycles; and comparison and assignment can be implemented in one instruction. ptsi RISC machine where each instruction is cycles points iii. Which architecture is more suitable to implement the program? point
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
