<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tgkenned</id>
	<title>Expertiza_Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tgkenned"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Tgkenned"/>
	<updated>2026-09-12T04:10:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Sorting&amp;diff=27640</id>
		<title>CSC 216 F09/Sorting</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Sorting&amp;diff=27640"/>
		<updated>2009-11-17T21:29:58Z</updated>

		<summary type="html">&lt;p&gt;Tgkenned: /* The script */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Sorting===&lt;br /&gt;
[http://pg-server.csc.ncsu.edu/mediawiki/index.php/CSC_216_F09/Sorting]&lt;br /&gt;
&lt;br /&gt;
==Background==&lt;br /&gt;
&lt;br /&gt;
Give the title of your exercise, which may include the name of the topic you are covering, or some other catchy title.&lt;br /&gt;
&lt;br /&gt;
===Discovering A Sorting Procedure===&lt;br /&gt;
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..&lt;br /&gt;
&lt;br /&gt;
===Props===&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
===Procedure===&lt;br /&gt;
&lt;br /&gt;
  Have the students fill the ARRAY block with the five card and have them sort them with these rules:&lt;br /&gt;
&lt;br /&gt;
1)	You can move a card from any position to any empty slot.  &lt;br /&gt;
2)	You can only use one hand to move the cards.&lt;br /&gt;
&lt;br /&gt;
As they explore different sorting approaches, they soon learn that swapping cards involves three steps: moving a card to a temporary slot, moving the other card, and moving the card from the temporary slot to the first slot.   They also discover that they could compare two adjacent locations in an orderly manner from to back and swap them if necessary.&lt;br /&gt;
&lt;br /&gt;
Whatever procedure they come up with, hopefully they will discover that either the smallest ends up in the front or the largest ends up in the back.   Once this is established,  hopefully, they will figure out that if they repeat the whole procedure 4 or 5 times that the ARRAY block will become sorted.&lt;br /&gt;
&lt;br /&gt;
After they can sort five cards, have them write down the procedure that they used.   Then shuffle the cards and test the procedure.  A procedure might look like this:&lt;br /&gt;
1)	Compare slot 0 and slot 1.  If out of order, move what is in slot 0 to HOLD,     move what is in slot 1 to slot 0, and move what is in HOLD to slot 1.&lt;br /&gt;
2)	Compare slot 1 and slot 2.  If out of order, do the same.&lt;br /&gt;
3)	Do same for slots 2 and 3 and then slots 3 and 4.&lt;br /&gt;
4)	Repeat all the steps 4 more times.&lt;br /&gt;
5)	The result is a sorted deck.&lt;br /&gt;
&lt;br /&gt;
This physical manipulation of cards in slots is easier to visualize than using tables or trying to write a program.  Once they finalize the process and have it documented, then have them write the program to implement their procedure.  Ignore inefficiencies. The desired outcome here is that they develop the method and that it really works.   Since it is their method, they will feel better about debugging their own procedure.&lt;/div&gt;</summary>
		<author><name>Tgkenned</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Sorting&amp;diff=27636</id>
		<title>CSC 216 F09/Sorting</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Sorting&amp;diff=27636"/>
		<updated>2009-11-17T21:28:11Z</updated>

		<summary type="html">&lt;p&gt;Tgkenned: /* Participants and props */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Sorting===&lt;br /&gt;
[http://pg-server.csc.ncsu.edu/mediawiki/index.php/CSC_216_F09/Sorting]&lt;br /&gt;
&lt;br /&gt;
==Background==&lt;br /&gt;
&lt;br /&gt;
Give the title of your exercise, which may include the name of the topic you are covering, or some other catchy title.&lt;br /&gt;
&lt;br /&gt;
===Discovering A Sorting Procedure===&lt;br /&gt;
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..&lt;br /&gt;
&lt;br /&gt;
===Props===&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
Describe how to do your exercise.&lt;/div&gt;</summary>
		<author><name>Tgkenned</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Sorting&amp;diff=27627</id>
		<title>CSC 216 F09/Sorting</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Sorting&amp;diff=27627"/>
		<updated>2009-11-17T21:25:42Z</updated>

		<summary type="html">&lt;p&gt;Tgkenned: /* Place Title of Exercise Here */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Sorting===&lt;br /&gt;
[http://pg-server.csc.ncsu.edu/mediawiki/index.php/CSC_216_F09/Sorting]&lt;br /&gt;
&lt;br /&gt;
==Background==&lt;br /&gt;
&lt;br /&gt;
Give the title of your exercise, which may include the name of the topic you are covering, or some other catchy title.&lt;br /&gt;
&lt;br /&gt;
===Discovering A Sorting Procedure===&lt;br /&gt;
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..&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
How many students will participate?  What else do you need (e.g., old tennis ball, Powerpoint slides, software).&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
Describe how to do your exercise.&lt;/div&gt;</summary>
		<author><name>Tgkenned</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/template&amp;diff=27626</id>
		<title>CSC 216 F09/template</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/template&amp;diff=27626"/>
		<updated>2009-11-17T21:25:01Z</updated>

		<summary type="html">&lt;p&gt;Tgkenned: CSC 216 F09/template moved to CSC 216 F09/Sorting: Adding my Learning Exercise&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[CSC 216 F09/Sorting]]&lt;/div&gt;</summary>
		<author><name>Tgkenned</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Sorting&amp;diff=27625</id>
		<title>CSC 216 F09/Sorting</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Sorting&amp;diff=27625"/>
		<updated>2009-11-17T21:25:01Z</updated>

		<summary type="html">&lt;p&gt;Tgkenned: CSC 216 F09/template moved to CSC 216 F09/Sorting: Adding my Learning Exercise&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Sorting===&lt;br /&gt;
[http://pg-server.csc.ncsu.edu/mediawiki/index.php/CSC_216_F09/Sorting]&lt;br /&gt;
&lt;br /&gt;
==Place Title of Exercise Here==&lt;br /&gt;
&lt;br /&gt;
Give the title of your exercise, which may include the name of the topic you are covering, or some other catchy title.&lt;br /&gt;
&lt;br /&gt;
===Discovering A Sorting Procedure===&lt;br /&gt;
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..&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
How many students will participate?  What else do you need (e.g., old tennis ball, Powerpoint slides, software).&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
Describe how to do your exercise.&lt;/div&gt;</summary>
		<author><name>Tgkenned</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Sorting&amp;diff=27623</id>
		<title>CSC 216 F09/Sorting</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Sorting&amp;diff=27623"/>
		<updated>2009-11-17T21:21:23Z</updated>

		<summary type="html">&lt;p&gt;Tgkenned: /* Too Often */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Sorting===&lt;br /&gt;
[http://pg-server.csc.ncsu.edu/mediawiki/index.php/CSC_216_F09/Sorting]&lt;br /&gt;
&lt;br /&gt;
==Place Title of Exercise Here==&lt;br /&gt;
&lt;br /&gt;
Give the title of your exercise, which may include the name of the topic you are covering, or some other catchy title.&lt;br /&gt;
&lt;br /&gt;
===Discovering A Sorting Procedure===&lt;br /&gt;
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..&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
How many students will participate?  What else do you need (e.g., old tennis ball, Powerpoint slides, software).&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
Describe how to do your exercise.&lt;/div&gt;</summary>
		<author><name>Tgkenned</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Sorting&amp;diff=27620</id>
		<title>CSC 216 F09/Sorting</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Sorting&amp;diff=27620"/>
		<updated>2009-11-17T21:19:58Z</updated>

		<summary type="html">&lt;p&gt;Tgkenned: /* Place Title of Exercise Here */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Sorting===&lt;br /&gt;
[http://pg-server.csc.ncsu.edu/mediawiki/index.php/CSC_216_F09/Sorting]&lt;br /&gt;
&lt;br /&gt;
==Place Title of Exercise Here==&lt;br /&gt;
&lt;br /&gt;
Give the title of your exercise, which may include the name of the topic you are covering, or some other catchy title.&lt;br /&gt;
&lt;br /&gt;
===Too Often===&lt;br /&gt;
&lt;br /&gt;
Describe what you are attempting to teach students by this exercise.&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
How many students will participate?  What else do you need (e.g., old tennis ball, Powerpoint slides, software).&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
Describe how to do your exercise.&lt;/div&gt;</summary>
		<author><name>Tgkenned</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Sorting&amp;diff=27618</id>
		<title>CSC 216 F09/Sorting</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC_216_F09/Sorting&amp;diff=27618"/>
		<updated>2009-11-17T21:16:16Z</updated>

		<summary type="html">&lt;p&gt;Tgkenned: /* Formatting Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Sorting===&lt;br /&gt;
[http://pg-server.csc.ncsu.edu/mediawiki/index.php/CSC_216_F09/Sorting]&lt;br /&gt;
&lt;br /&gt;
==Place Title of Exercise Here==&lt;br /&gt;
&lt;br /&gt;
Give the title of your exercise, which may include the name of the topic you are covering, or some other catchy title.&lt;br /&gt;
&lt;br /&gt;
===The problem===&lt;br /&gt;
&lt;br /&gt;
Describe what you are attempting to teach students by this exercise.&lt;br /&gt;
&lt;br /&gt;
===Participants and props===&lt;br /&gt;
&lt;br /&gt;
How many students will participate?  What else do you need (e.g., old tennis ball, Powerpoint slides, software).&lt;br /&gt;
&lt;br /&gt;
===The script===&lt;br /&gt;
&lt;br /&gt;
Describe how to do your exercise.&lt;/div&gt;</summary>
		<author><name>Tgkenned</name></author>
	</entry>
</feed>