5
$\begingroup$

After teaching Priority Queues, I want to give the students some notion of what it looks like when they are used in code.

I have two approaches and I am unsure about which would serve my goal better:

  1. Show them a number of examples where a Priority Queue is used (task management, patient treatment etc.) and for each one discuss how the priority queue impacts the performance or efficiency.
  2. Let them be creative and try to think of a use for a priority queue, and let them implement that usage on their own (a lab period).

Obviously, each option has its merits. I am wondering which one would increase understanding more. The first option shows them uses and the reasoning behind that usage, which is great for understanding the subject. On the other hand, option 2 lets them experience it first hand, which is (almost) always good.

So I am torn between these two.

$\endgroup$

2 Answers 2

2
$\begingroup$

Let them be creative and try to think of a use for a priority queue, and let them implement that usage on their own.

If you want something to stick, heed your own advice in bold: "Let them be creative ... on their own."

When students can use their own creative powers to synthesize everything they've been taught, then they've truly learned it. "Show and discuss" is not necessarily a bad approach, but it won't have nearly the same long-lasting effect as putting the onus on students. If you're the one working, you're the one learning, so if you're the own showing, you're really the one doing most of the work.

Plus, why not do both? Start with option #2 then analyze their own work with option #1. As with most things, it's not either/or. Imagine if the efficiency conversation were about their own implementations, not some you had shown them. That would be a powerful set of lessons.

One heuristic I apply to my own lesson planning is this: is this lesson giving students the option to take ownership of the material? When you challenge them to create, you are giving them that opportunity to -- and challenging them to -- take ownership of their learning.

$\endgroup$
1
$\begingroup$

I would recommend that you let them figure it out themselves, then explain how to improve upon it. That way some students are certain to have the wrong implementation or a non-optimal one, and that gives you a way to begin talking about why student X's algorithm is wrong, and from there you can move into the theory.

Also, this allows students to learn from their mistakes and learn from each others mistakes, which is almost always beneficial.

You could also give them a completed application with only the priority queue implementation removed and ask them to replace it.

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.