CSC 216 F09/Sorting

From Expertiza_Wiki
Jump to navigation Jump to search

Sorting

[1]

Background

Give the title of your exercise, which may include the name of the topic you are covering, or some other catchy title.

Discovering A Sorting Procedure

Too often, we teach beginning programming students how to sort. It is better if they discover how to sort on their own. We should encourage them to try sorting methods with cards and blocks and then have them develop written procedures..

Props

This can be accomplished by two blocks cut out with slots: the “ARRAY” block has five slots numbered 0 to 4, and the “HOLD” block has one slot. They also need five cards with numbers on them. Refer to the Figure 1.

The script

Describe how to do your exercise.