Menu

(Solved) : Consider Following Fragment Positional Inverted Index Bold 1 1 7 30 39 3 5 28 40 4 15 53 7 Q29723514 . . .

Consider the following fragment of a positional inverted index: bold: 1: [1, 7, 30, 39]; 3: [5, 28, 40]; 4: [15, 53, 78]: 5: [45] favors: 1: [9, 28]; 4: [28, 52]; 5: [2, 8, 43, 57]; 6: [25, 143] fortune: 1: [3, 8]; 2: [8, 22]; 4: [20]; 5: [13, 37,42]; This index is interpreted to in the format word: doc1: [position1, position2, ...] doc2: [position1, ...]; For example, the positional index tells us that the word fortune occurs in positions 3 and 8 of document 1 Answer the following questions: For which document(s) if any of the index is it possible that they contain the phrase fortune favors the bold? Which document(s) if any would match the query fortune /3 bold? Here the /k operator as in word1 /k word2 finds documents that contain word1 and within k words around it also word2 (on either side), where k is a positive integer argument. Thus k 1. 2. 1 would demand that word1 would have to be directly adjacent to word2.

Consider the following fragment of a positional inverted index: bold: 1: [1, 7, 30, 39]; 3: [5, 28, 40]; 4: [15, 53, 78]: 5: [45] favors: 1: [9, 28]; 4: [28, 52]; 5: [2, 8, 43, 57]; 6: [25, 143] fortune: 1: [3, 8]; 2: [8, 22]; 4: [20]; 5: [13, 37,42]; This index is interpreted to in the format word: doc1: [position1, position2, …] doc2: [position1, …]; For example, the positional index tells us that the word “fortune” occurs in positions 3 and 8 of document 1 Answer the following questions: For which document(s) if any of the index is it possible that they contain the phrase “fortune favors the bold”? Which document(s) if any would match the query “fortune /3 bold”? Here the /k operator as in “word1 /k word2” finds documents that contain word1 and within k words around it also word2 (on either side), where k is a positive integer argument. Thus k 1. 2. 1 would demand that word1 would have to be directly adjacent to word2. Show transcribed image text

Expert Answer


Answer to Consider Following Fragment Positional Inverted Index Bold 1 1 7 30 39 3 5 28 40 4 15 53 7 Q29723514 . . .

OR