Optimal prefix-free codes that end in a specified pattern and similar problems: the uniform probability case | IEEE Conference Publication | IEEE Xplore