How does an ideal diode act as a switch?

  • with one polarity of voltage applied across an ideal diode it has zero resistance (forward)
  • with the opposite polarity of voltage applied across an ideal diode it has infinite resistance (reverse)