Assume that for a given program 70% of the executed instructionare arithmetic, 10% are load/store, and 20% are branch.
i. Given the instruction mix and the assumption that an arithmeticinstruction requires 2 cycles, a load/store instruction takes 6cycles, and a branch instruction takes 3 cycles, ?nd the averageCPI.
ii. For a 25% improvement in performance, how many cycles, onaverage, may an arithmetic instruction take if load/store andbranch instructions are not improved at all.