Search code examples
algorithmnaming-conventionsterminology

What is the difference between an edge case and a corner case?


I've seen the two terms use interchangeably. Definitions found online seem to vary as well.

From my understanding, a corner case is the extreme values of inputs. And edge cases are the extreme cases to handle when designing an algorithm. Is this correct?

Is there a standard definition?


Solution

  • According to Wikipedia:

    Where an edge case involves pushing one variable to a minimum or maximum, putting users at the "edge" of the configuration space, a corner case involves doing so with multiple variables, which would put users at a "corner" of a multidimensional configuration space.