Data Structures Notes
Wednesday, February 11, 2009
Algorithm to print-all-pairs in the tables (X, Y)
PrintAllPairs(X[0, 1, 2, ..., n-1], Y[0, 1, 2, ..., m-1])
01 for i<-0 to n-1 do
02 for j<-0 to m-1 do
03 Print(X[i], Y[j])
04 end for
05 end for
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment