What are the Big-Oh and Omega orders of the following code fragment? What is Tilde approximation?
The fragment is prameterized on the variable n. Assume that you are measuring the number of swap calls.
for(int j=0;j<n-1;j++){
int z = j;
for (int i=j+1; i<n; i++){
if(a[i] < a[z]){
z=i;}
}
if(z!= j){
swap(a[j], a[z]); //count these
}
}
Which of the following is not an acceptable method of determining the required annual payment of federal income tax for corporations? A) 100 percent of the prior year's tax liability (with a few exceptions) B) 100 percent of the current year's tax liability C) 100 percent of the estimated current year tax liability using the annualized income method D) All of the choices are acceptable methods of determining the required annual payment of federal income tax for corporations. Explain. Explain.
Comments
Post a Comment