A half-wave rectifier takes an alternating current (AC) input voltage and allows only the positive half cycles to pass through. When the input voltage is positive, the diode conducts electricity, so the output voltage equals the input voltage. When the input voltage is zero or negative, the diode blocks current, so the output voltage is zero. This creates a pulsed direct current (DC) output that has voltage only during the positive half cycles of the AC input. The execution table shows step-by-step how the diode state changes and how the output voltage follows the input voltage when positive and drops to zero when zero or negative. This simple behavior is the basis for converting AC to DC in many electronic devices.