Efficient algorithms that are used for information retrieval