Repeat Exercise 11.7.4, but arrange that on the pth iteration of the outer loop, instances of s such that i — j = p are executed.
Exercise 11.7.4
In the following codethe only constraints are that the statement s that forms the body of the loop nest must execute iterations s(i — l,j) and s(i, j — 1) before executing iteration s(i,j). Verify that these are the only necessary constraints. Then rewrite the code so that the outer loop has index variable p, and on the pth iteration of the outer loop, all instances of s(i,j) such tha t i + j = p are executed.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here