A mapping from a group of strings with a particular format to suffixes that unambiguously identify the original.
If we needed to abbreviate the set of file paths:
- /tmp/foo/bar.txt
- /tmp/baz.txt
- /tmp/boo/bar.txt
This class would come up with the mapping
- /tmp/foo/bar.txt → foo/bar.txt
- /tmp/baz.txt → baz.txt
- /tmp/boo/bar.txt → boo/bar.txt
by choosing the shortest suffixes that start after the
/
separator for each item that are not suffixes of any other element in the set.
@author mikesamuel@gmail.com