← Student tools · Problem 53 · Lecture 9 · Round 2 (30 pts)

TM running-time profiler · empirical n vs steps

Run the same TM on inputs of various lengths and plot steps vs n.

CLO-3R2·30 ptsL9
🔊 Listen

Theoretical analysis predicts O(n²) for the {0n1n} single-tape decider. Empirical: plot actual step counts. The data points should lie on or under a parabola.

What you should see

A quadratic fit cleanly through the data. Doubling n quadruples steps.

🔊 Listen
Add data points one at a time Auto-plays
🔊 Listen
🔊 Listen
🔊 Listen

Sipser: Example 7.2. Lecture notes: Module 4 slide 3. Companion problems: P17 (growth race), P18 (single-tape 0ⁿ1ⁿ), P19 (two-tape race).