The term groupoid has two different meanings in mathematics. The meanings are unrelated except for the fact that both are generalizations of the concept of a group.
1). In category theory, a groupoid is a category in which every morphism is invertible.