Diodes are the simplest semiconductor devices and are two-terminal components that allow current to flow easily in one direction but restrict it in the other. They exhibit nearly zero voltage drop when conducting and behave as an open circuit when not conducting. The electrical characteristics of silicon and germanium can be improved through doping with materials that introduce free electrons or holes, creating n-type or p-type semiconductors. When a p-type and n-type material are joined, a p-n junction forms with distinct conduction and non-conduction regions that enable the diode's rectifying behavior.