diff --git a/hws/07_search_engine/README.md b/hws/07_search_engine/README.md index df77828..ce9e34c 100644 --- a/hws/07_search_engine/README.md +++ b/hws/07_search_engine/README.md @@ -57,7 +57,7 @@ Once the search engine returns the matching documents, you should rank these doc For each page to be presented, we calculate the a page score, and then present these pages in descending order to the user, i.e., pages whose page score is higher should be presented first. As the page score consists of two factors, we will calculate the score for each of these two factors, and we name them the *keywords density score*, and the *backlink score*. Once we have these two scores, we can get the page score using this formula: -page score = (0.8 * keywords density score + 0.2 * backlinks score); +page score = (0.8 * keywords density score + 0.2 * backlinks score); [formula 1] In order to match the results used by the autograder, you should define all scores as *double*. Next we will describe how to calculate the keywords density score and the backlinks score. @@ -114,7 +114,7 @@ A backlinks score for a webpage is based on the importance of its incoming backl backlinks score = ( 1.0 / (1 + doc1->outgoingLinks * doc1->outgoingLinks) + 1.0 / (1 + doc2->outgoingLinks * doc2->outgoingLinks) + ... + 1.0 / (1 + docN->outgoingLinks * docN->outgoingLinks) ); ``` -Once you have both the keywords density score and the backlinks score, you can use [the formula we described earlier](#formula-1), to get the overall score for a page. +Once you have both the keywords density score and the backlinks score, you can then use [formula 1](#formula-1) to get the overall score for a page. ## Assignment Scope