Based on the following pseudocode: greatest(int A[], int n) { greatestValue =A[0]; for(i=1;i greatestVa
Posted: Fri May 20, 2022 2:44 pm
Based on the following pseudocode: greatest(int A[], int n) { greatestValue =A[0]; for(i=1;i<n; i++) if(A> greatestValue) { greatestValue =A
} Return greatest;} Write a function that represents the execution cost for the worst scenario. Asumme the following cost for each instruction type: Assignment C1 For loop c2 If then C3 Return clause C4