Comparative analysis of text similarity algorithms and practical applications in computer science