In a memory device having first and second electrodes and active and
passive layers between the electrodes, or a memory device having first
and second electrodes and an insulating layer between and in contact with
electrodes, the device may be programmed in the ionic mode by applying
electrical potential across the electrodes in one direction, and may be
programmed in the electronic charge carrier mode by applying electrical
potential across electrodes in the opposite direction.