Title: P vs. NP Categorizing Grid

Author: Kate Deibel

Date: 03/10/28

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:
Topics:
Purpose:

This activity allows instructors to see students' knowledge regarding the elements within P and NP.


Activity:

This activity will give you the opportunity to decide whether an a computational problem is known to be in P (solvable in deterministic polynomial time) or NP (solvable in non-deterministic space).


P NP



Problems
  1. Finding a clique in a graph of size at least k
  2. 3-coloring a graph
  3. 4-coloring a graph
  4. Coloring a planar graph
  5. Determining if an integer is prime
  6. Determining if an integer is composite
  7. Finding a max-flow in a network graph
  8. Finding a path shorter than length k from A to B in a graph
  9. Finding a path longerer than length k from A to B in a graph
  10. Determining if a logical expression is satisfiable
  11. Sorting a pre-ordered list
  12. Determing if a graph has an Euler cycle (crossing every edge once)
  13. Determing if a graph has a Hamiltonian cycle (touching every vertex once)
  14. Determine if two graphs are isomorphic

Solution:

The following are suggestions, but several of the items in this activity are meant to encourage discussion.

  1. NP: Finding a clique in a graph of size at least k
  2. P: 3-coloring a graph
  3. NP: 4-coloring a graph
  4. P: Coloring a planar graph
  5. P: Determining if an integer is prime
  6. P: Determining if an integer is composite
  7. P: Finding a max-flow in a network graph
  8. P: Finding a path shorter than length k from A to B in a graph
  9. P: Finding a path longer than length k from A to B in a graph
  10. NP: Determining if a logical expression is satisfiable
  11. P: Sorting a pre-ordered list
  12. P: Determing if a graph has an Euler cycle (crossing every edge once)
  13. NP: Determing if a graph has a Hamiltonian cycle (touching every vertex once)
  14. NP: Determine if two graphs are isomorphic

Instructor Responses: 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:
Device-Enabled: Has Been Enabled

Related Topics: