LeetQuiz Logo
About•Privacy Policy•contact@leetquiz.com
RedditX
© 2025 LeetQuiz All rights reserved.
AWS Certified Cloud Practitioner

AWS Certified Cloud Practitioner

Get started today

Ultimate access to all questions.


A university uses an AI model to find research papers related to a student's query. The model converts the query and all papers into vectors, then finds the closest match. Which algorithm is used for this similarity search?

Real Exam
Community
RRitesh



Explanation:

Explanation

Cosine Similarity is the correct algorithm for this similarity search task because:

  • Vector Representation: The problem states that both the query and research papers are converted into vectors, which is a common approach in natural language processing and information retrieval.

  • Similarity Measurement: Cosine similarity measures the cosine of the angle between two vectors in a multi-dimensional space, making it ideal for comparing document vectors regardless of their magnitude.

  • Document Similarity: This algorithm is widely used in text analysis, recommendation systems, and information retrieval to find similar documents based on their vector representations.

Why other options are incorrect:

  • Decision Trees (A): Used for classification and regression tasks, not for vector similarity search.
  • Random Forest (C): An ensemble learning method for classification and regression, not designed for similarity matching between vectors.
  • Token Merging (D): This is not a standard algorithm for similarity search; it might refer to token processing techniques but doesn't measure similarity between vectors.

Cosine similarity is particularly effective for text similarity because it focuses on the orientation (angle) between vectors rather than their magnitude, making it robust to document length variations.

Powered ByGPT-5

Comments

Loading comments...