the characteristics of an ideal diode are a close match with those of a simple switch except for the important fact that the ideal diode can conduct in either direction.