Extracting from a file all the words which started with certain prefixes(using a radix tree data structure)