Ways algorithms are able to determine how useful documents on the web are to users include:

A) Analyzing user engagement metrics such as click-through rates and dwell time
B) Evaluating the relevance of the document's content to the user's search query
C) Considering the authority and credibility of the website hosting the document
D) Assessing the document's popularity and frequency of sharing on social media platforms