|
|
6#

楼主 |
发表于 2004-3-5 21:15:44
|
只看该作者
Thank you all who were interested in working out this homework assignment. Both Willon and SAS_Dream did excellent jobs. I will skip most of the complimentary stuff and go to criticism directly, since it might be something getting more attention.
The logics of Willon’s program is perfect, it works with extended data. The problem is the efficiency. I do not want to discuss if the transpose and data array is necessary, the program has a DO loop within another DO loop. Technically, it promoted the complexity of the problem of size N to N**2. In case N is large, it can be time consuming.
I like the idea of SAS_Dream. In fact, it is very similar to the way I used to solve it, but it is not in line with conventional logic reasoning. Small comments, what did you do with that View, does the Retain statement have any function. Besides, if you add a couple of more negative value records, you will find that the program will not work, but the Willon’s program will. It is arguable from the original assignment, people know that only purchase can get refund. But, sometimes you can see some exceptions, do not consider it to be criticism.
I hope more people will try this homework, and get fun with SAS programming. |
|