Domain: Engineering — Computer Science
Target concept: Demonstration of the Incremental Shift-and-Insert Process in Insertion Sort

Video generation prompt: Display a simple horizontal bar chart on a clean white background (e.g., [3, 4, 1, 2]). Animate the insertion sort algorithm step-by-step to sort the array in ascending order.

Evaluation guide:
(i) Target concept: Stepwise construction of sorted order via localized right-shift of larger predecessors and precise key insertion.
Minimum mechanism: Bars must be discrete, rigid, and retain identity; shifting must affect only predecessors > key; insertion must occur at vacated index; comparison must precede shift.
(ii)Storyline: Frame 0: Static [3,4,1,2] bars on white. Frame sequence 1: Bar 4 (index 1, value 4) compared with bar 3 → no shift. Frame sequence 2: Bar 1 (index 2, value 1) extracted → bars 3 and 4 shift right → bar 1 inserted at index 0. Frame sequence 3: Bar 2 (index 3, value 2) extracted → bar 3 shifts right → bars 1 and 4 remain fixed → bar 2 inserted at index 1. Final frame: [1,2,3,4]. Perspective: Fixed frontal orthographic view; all bars fully visible; no occlusion; no UI, labels, or annotations.

Manual:
Experimental Procedure
1. Display four horizontal bars on clean white background, heights encoding values [3,4,1,2] left-to-right.
2. Animate insertion sort: fix first bar; extract second bar, compare with first, insert if needed; extract third bar, shift larger bars right, insert in correct position; repeat for fourth bar.
3. End with bars in ascending-height order [1,2,3,4].
Observation of Experimental Phenomena
- Initial bar heights differ and match [3,4,1,2].
- During animation, one bar detaches while others shift right only if greater than the detached bar.
- Final bar heights are strictly increasing left-to-right.
Summary of Experimental Principles
Insertion sort builds a sorted subarray left-to-right by iteratively extracting an unsorted element (key), comparing it with elements in the sorted subarray from right to left, shifting larger elements right, and inserting the key into its correct position.

Prompt Grounding rubric:
level_1: No bar chart appears; no array elements visible; no sorting animation; background is not white or absent; no horizontal orientation evident.
level_2: A static horizontal arrangement of 4 colored bars appears on a non-white or cluttered background; no animation; no insertion sort steps shown; bar heights do not correspond to [3,4,1,2] values.
level_3: A horizontal bar chart with exactly 4 bars appears on a clean white background; bar heights visually encode values [3,4,1,2] in that left-to-right order; at least one bar moves during animation; but movement does not follow insertion sort logic (e.g., bars swap without key extraction or shifting).
level_4: All 4 bars appear on clean white background in initial [3,4,1,2] order; animation shows sequential insertion sort steps: first bar stationary; second bar compared and placed correctly relative to first; third bar extracted, shifted past larger elements, inserted at correct position; fourth bar similarly processed; all movements are directional and localized, but one insertion step skips visual indication of comparison or temporary displacement (e.g., bar jumps without intermediate shift).
level_5: All 4 bars appear on clean white background in initial left-to-right order [3,4,1,2]; animation strictly follows insertion sort: (1) bar 1 (value 3) remains fixed as sorted subarray; (2) bar 2 (value 4) compared with bar 1 → no shift → stays right of bar 1; (3) bar 3 (value 1) extracted, then bars 1 and 2 visibly shift right one position, bar 3 inserted at leftmost position; (4) bar 4 (value 2) extracted, bars 1,4,3 (now [1,3,4]) shift right where needed, bar 4 inserted between 1 and 3; every extracted bar is clearly detached before shifting; every shift is continuous and affects only bars preceding insertion point; final state is [1,2,3,4] in ascending order.

Scientific and Causal Correctness rubric:
level_1: Bars change height or color arbitrarily; no consistent mapping between bar height and numeric value; final arrangement is not ascending; no causal link between extraction and shifting visible.
level_2: Bar heights inconsistently represent values (e.g., tallest bar labeled 1); insertion steps violate ordering logic (e.g., value 4 inserted before 3); final sequence contains duplicates or missing values; shifting occurs in wrong direction (leftward when rightward shift is required).
level_3: Initial bar heights correspond to [3,4,1,2]; final sequence is [1,2,3,4]; but one insertion step misplaces a bar (e.g., value 1 inserted at index 2 instead of 0); or shifting occurs across all bars instead of only those greater than key; or comparison step is omitted (no pause/indication before insertion).
level_4: All bar height–value mappings are consistent throughout; every insertion respects ascending order; shifting affects only bars strictly greater than the key and occurs only in the sorted prefix; extracted bar is always held separately during shift; but one comparison is implied rather than visually indicated (e.g., no highlight or pause when key is compared to adjacent bar in sorted subarray).
level_5: Bar height strictly and continuously encodes numeric value (tallest = largest value); at each step, the key bar is fully detached before any shifting begins; only bars in the sorted subarray that are greater than the key shift right by exactly one bar width; shifting motion is continuous and confined to the affected subset; after shifting, key bar is inserted into the vacated position; comparison is explicitly indicated before each shift (e.g., adjacent bars highlighted simultaneously or key bar pauses adjacent to comparator bar); final arrangement is exactly [1,2,3,4] with no residual misalignment or transient ghosting.

Spatiotemporal Consistency rubric:
level_1: Bars teleport between positions; sudden appearance/disappearance of bars or background; abrupt changes in bar width, color, or orientation mid-animation; background flickers or changes color; viewpoint rotates or zooms.
level_2: Bars maintain position and color but exhibit severe distortion during motion (e.g., stretching, shearing, flipping); multiple bars overlap non-physically; background contains moving artifacts; motion is discontinuous (jumps between frames with no intermediate positions).
level_3: Bars retain consistent width, color, and orientation throughout; background remains static white; no teleportation or disappearance; but one bar exhibits non-smooth motion (e.g., stutter, frame freeze, or micro-jitter during shift); or one insertion shows overlapping bars for >1 frame without resolution.
level_4: All bars move with smooth, continuous trajectories; no overlaps, distortions, or deformations; background remains uniformly white with no lighting variation; viewpoint is fixed frontal and orthogonal; but one bar’s motion path deviates from horizontal (e.g., slight vertical wobble) or one frame shows momentary transparency inconsistency.
level_5: Every bar moves exclusively along a straight horizontal path with constant orientation and unchanging dimensions; no overlap at any frame; no deformation, scaling, rotation, or transparency fluctuation; background remains perfectly uniform white with zero luminance or chromatic variation across all frames; viewpoint is rigidly fixed: no pan, tilt, zoom, or perspective shift; inter-frame motion is fully continuous with no stutters, freezes, or interpolation artifacts.