A diode is an electronic component with the characteristic that
its resistance is not
constant, but depends on the magnitude of the current through
it. An ideal diode has
zero resistance to current in one direction, and infinite
resistance to current in the
reverse direction.