A resistance changing element according to the present invention comprises a first electrode and a second electrode ; and an ion conducting layer that is formed between the first electrode and the second electrode and that contains at least oxygen and carbon. The cantilever oscillating frequency is far from an oscillation frequency where the cantilever is slow to damp, which enables the cantilever to quickly damp in accordance with a variation of a transient oscillation frequency after the probe comes into contact with the specimen, and allows the probe to follow the uneven surface state of the specimen. The plasma and spontaneous etching processes utilize the same etchant that is capable of chemically reacting with the sacrificial material, wherein t chemical reaction is spontaneous. The light source is arranged to shine light on the photocatalyst. Planning procedures using the network model are simplified and accelerated. The second memory region stores the erroneously-decoded data blocks with a second data resolution which is lower than the first data resolution.