Title: Analysis Categorizing Grid
Author: Kate Deibel
Date: November 11, 2003
Technique: Categorizing Grid
Before Class Preparation Time: LOW
Class Completion Time: LOW
In-Class Analysis Time: LOW
Out-Of-Class Analysis Time: LOW
Assessment Goals:
- Develop analytic skills
- Develop ability to draw reasonable inferences from observations
- Improve memory skills
- Develop appropriate study skills, strategies, and habits
- Learn terms and facts of this subject
- Learn concepts and theories of this subject
Topics:
- Algorithms
- Efficiency
- Complexity
- Analysis
- big-O
Purpose:
This activity allows instructors to see if students are aware of the computational complexities of several common algorithms.
Activity:
This activity will give you the opportunity to recall the computational complexities of several algorithms. Place each item in the Algorithm box under the heading that bests describes it.
|
O(1)
|
O(log n)
|
O(n)
|
O(n log n)
|
O(n2)
|
|
|
|
|
|
|
Algorithms
|
- Finding an element in an unordered array
- Finding an element in an unordered linked list
- Finding an element in an ordered array
- Finding an element in an ordered linked list
- Removing the ith item in an unordered array
- Removing the ith item in an ordered array
- Removing the ith item in a linked list
- Sorting a linked list
- Sorting an array
- Insertion sort
- Bubble sort
- Merge sort
- Quick sort
- Finding the median of a series of numbers
- Finding the mean of a series of numbers
- Finding the mode of a series of numbers
|
Solution:
- O(n): Finding an element in an unordered array
- O(n): Finding an element in an unordered linked list
- O(log n): Finding an element in an ordered array
- O(n): Finding an element in an ordered linked list
- O(1): Removing the ith item in an unordered array
- O(n): Removing the ith item in an ordered array
- O(n): Removing the ith item in a linked list
- O(n log n): Sorting a linked list
- O(n log n): Sorting an array
- O(n2): Insertion sort
- O(n2): Bubble sort
- O(n2): Merge sort
- O(n2): Quick sort
- O(n): Finding the median of a series of numbers
- O(n): Finding the mean of a series of numbers
- O(n log n): Finding the mode of a series of numbers
Instructor Responses:
- Lecture
- Next Day Summary
- Class Discussion
- Homework
Response Analysis:
Run through the grids and mark incorrect or missing entries. Identify the most common errors as well as any patterns that could explain student confusion. Reflect upon these errors and report them back to the class as you see fit.
Variant Uses of Activity:
- After deciding on the complexity class, have the students describe in their own words why they feel this is true.
- Have students work in groups to complete this activity. The instructor may want to circulate throughout the groups to ensure that each group is making progress. After the groups have completed their lists, the instructor can ask for votes on each item. It is important that the instructor explains why each data structure is appropriate for the task.
- Have students work individually on their lists and then form groups of 4-5 people to discuss their individual lists with other members of the group.
Device-Enabled: Has Been Enabled
Related Topics:
- Sorting
- Searching
- Data Structures