A dynamic programming technique is provided for matching two sequences of phonemes both of which may be generated from text or speech. A filter media is carried on and substantially surrounding the elongated member. Furthermore, a photoelectric conversion layer of a photodiode according to the present invention is made of an amorphous silicon film and an N-type semiconductor layer and a P-type semiconductor layer are made of a polycrystalline silicon film.