From 8ebf0a32403ff371b3604b1ab561c0d7000a3921 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Mon, 23 Oct 2023 19:01:31 -0400 Subject: [PATCH] more on the formulas --- hws/07_search_engine/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hws/07_search_engine/README.md b/hws/07_search_engine/README.md index 16c30ba..d17eb13 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); [formula 1] +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.