In: Computer Science
Let Σ be a finite alphabet with n letters and let R be the relation on Σ* defined as follows: R = {(u, v): every letter in u occurs somewhere in v, and every letter in v occurs somewhere in u} Then R is an equivalence relation with exactly 2n equivalence classes.
T or F?
First we will prove that R is an equivalence relation. We prove the three properties required:
We have proved that R is an equivalence relation, now we will have to find the number of equivalence classes.
For each subset of Σ we have one equivalence class which
consists of all the words made only from the alphabets in that
particular subset. Since the number of subsets of Σ is ,
R is an equivalence relation with
equivalence
classes.