In the mathematical field of topology, a homeomorphism (from Greek ὅμοιος (homoios) 'similar, same', and μορφή (morphē) 'shape, form', named by Henri Poincaré[2][3]), also called topological isomorphism, or bicontinuous function, is a bijective and continuous function between topological spaces that has a continuous inverse function. Homeomorphisms are the isomorphisms in the category of topological spaces—that is, they are the mappings that preserve all the topological properties of a given space. Two spaces with a homeomorphism between them are called homeomorphic, and from a topological viewpoint they are the same.
Very roughly speaking, a topological space is a geometric object, and the homeomorphism is a continuous deformation of the object into a new shape. Thus, a square and a circle are homeomorphic to each other, but a sphere and a torus are not. However, this description can be misleading. Some continuous deformations are not homeomorphisms, such as the deformation of a line into a point. Some homeomorphisms are not continuous deformations, such as the homeomorphism between a trefoil knot and a circle. A homeomorphism that is a continuous deformation is a homotopy.