TODO ListΒΆ
No Category
source: ListADT
Todo
tag: | Exercise |
---|
This exercise ought to get expanded to a much richer set of variations on the question.
source: ExchangeSort
Todo
tag: | Revision |
---|
Rewrite along these lines: Here are two measures of "out of order": inversions and min-swaps. Selection sort (especially w/ optimization) meets min-swaps, but that's not a useful measure in general. Insertion sort tracks inversions, it is I + n. Now, if we had an exchange sort, what would cost be? Go on to the proof.
source: SortOpt
Todo
tag: | Revision |
---|
Rewrite along these lines: A classic form of code tuning is "test to save work". For each of our three sorting algorithms, we have a potential "test to save work" "optimization". The question is: When is the cost of test worth the work saved? Let's look at each of the three.
AV
source: AnalIntro
Todo
type: | AV |
---|
To make students more engaged in the GrowthRates exercise, we may need a tool that allows students to input two growth rate functions. Then the tool should plot the graph of both functions and mark their crossing point. The student also should be allowed to play with the constant values for both functions and see that this only changes the crossing point but doesn't change which function grows faster than the other.
Exercise
source: ListDouble
Todo
type: | Exercise |
---|
Need exercises for inserting to and deleting from doubly linked lists.
source: HuffProof
Todo
type: | Exercise |
---|
Battery of MCQs for content.
source: Quicksort
Todo
type: | Exercise |
---|
Consider the Quicksort implementation for this module, where the pivot is selected as the middle value of the partition. Give a permutation for the values 0 through 7 that will cause Quicksort to have its worst-case behavior.
There are a number of possible correct answers. To assess the answer, will need to run Quicksort over student's partition, and verify that at each step it will generate new partitions of size 6, 5, 4, 3, 2, then 1.
Figure
source: SelectionSort
Todo
type: | Figure |
---|
Replace with with a JSAV version of the figure
Slideshow
source: AnalProgram
Todo
type: | Slideshow |
---|
We need to think about a technique for visualizing the running time of some loop constructs. This can be very similar to how we visualize reaching the closed form solution of summations.
source: SortNotation
Todo
type: | Slideshow |
---|
The preceding paragraph could be turned into a slideshow.