Using Flowcharts For Algorithmic Processes
Using Flowcharts For Algorithmic Processes
This work is supported by the National Science Foundation under NSF grant CNS-1138461. However, any opinions, findings,
conclusions, and/or recommendations are those of the investigators and do not necessarily reflect the views of the Foundation.
Copyright 2012 Northwestern University CT-STEM
"!
This work is supported by the National Science Foundation under NSF grant CNS-1138461. However, any opinions, findings,
conclusions, and/or recommendations are those of the investigators and do not necessarily reflect the views of the Foundation.
Copyright 2012 Northwestern University CT-STEM
7. Optional activity to use before students work on their own flowcharts: Have students
follow a completed flowchart using either the Craps flowchart or the Divisors
flowchart.
a. Note: the Craps flowchart can be played with Monopoly money or candy.
The purpose is to engage students in following a complicated flowchart
properly.
b. Note: when using the Divisors flowchart, it is suggested that the teacher
not reveal what the flowchart is supposed to accomplish (namely,
determine all the divisors of the input number). Instead, ask students to
follow the algorithm and try to figure out the connection between the
inputs and the outputs.
8. Students make their own flowcharts for any specific topic.
a. These can be done by hand or using open source software such as
OpenOffice Draw or free accounts from a flowchart tool like Luicdchart
(www.lucidchart.com)
b. Note: The students flowcharts should be tested for completeness. For
example, if students are to create a flowchart to factor a trinomial with
lead coefficient of 1, the flowchart the students create should test for that
condition.
c. Students could be placed in groups of 3 to test each others flowcharts for
validity/reliability.
d. Additionally, encourage students to think critically about unusual
situations such as a negative number under a square root when using the
quadratic formula.
e. Flowcharts can then be shared with the class and discussed.
Pre-class Preparation
Teachers should be familiar with the given flowcharts to anticipate questions.
Materials and Tools
Enough playing cards for each group to have 10 to 15 cards
Assessment
How will the teacher evaluate if the objectives have been met?
Additional Information
Suggested topics for student-created flowcharts:
process for factoring trinomials
multiplying binomials
quadratic formula
finding the slope between any two points (consider zero slope and undefined slope)
Determining special quadrilaterals
#!
This work is supported by the National Science Foundation under NSF grant CNS-1138461. However, any opinions, findings,
conclusions, and/or recommendations are those of the investigators and do not necessarily reflect the views of the Foundation.
Copyright 2012 Northwestern University CT-STEM
$!
This work is supported by the National Science Foundation under NSF grant CNS-1138461. However, any opinions, findings,
conclusions, and/or recommendations are those of the investigators and do not necessarily reflect the views of the Foundation.
Copyright 2012 Northwestern University CT-STEM
Selection Sort:
1.
Shuffle the pack of cards.
2.
Place them face down on the table in a row.
3.
Starting with the card furthest on the left turn one card over
at a time to find the minimum card in your set. After looking
at the card, turn it face down. Keep track of which card is the
minimum.
4.
Swap that minimum card with the card in the first position.
5.
The first card is now in the correct position, repeat this
procedure again, starting from the second card.
6.
Repeat this until no more swaps are performed.
Bubble sort:
1.
2.
3.
4.
5.
6.
7.
8.
QuickSort:
1.
Shuffle the pack of cards.
2.
Keep the pack of cards face down in your hand.
3.
Turn over the top card and place it face up on the table. This
is called your pivot card.
4.
5.
6.
7.
!
Turn over the next card and place it face down to the left or
right of your pivot card depending upon whether it is less
than or greater than the pivot card.
Continue this process through the entire pack.
Pick up one of the face down packets of cards and repeat the
process starting at #3 using a new pivot card from your face
down packet.
Repeat this process the remaining face down packets until all
cards are face up.
Pick a positive
whole number M
SET D = 2
SET N = 0
Divide M by D
Add 1 to D
Set M equal to
this new value
Multiply M by D
Is M whole?
YES
Add 1 to N
NO
Is M = 1?
YES
OUTPUT = N
NO