In mathematics, the characteristic sequence of a given sequence s is a sequence of 1s and 0s which tells which elements of s are in some set.
Given two sets and a sequence s = of elements of, the characteristic sequence of is the sequence defined so that if and only if :
