(2) Consider the following fragment of a positional index with the format: word: document: ; document: < position, ...>.. Gates: 1: <3>; 2: <6>; 3: <2,17>; 4: <1>; IBM: 4: <3>; 7: <14>; Microsoft: 1: <1>; 2: <1,21>; 3: <3>; 5: <16,22,51>; The /k operator, word1 /k word2 finds occurrences of word1 within k words of word2 (on either side), where k is a positive integer argument. Thus k = 1 demands that word1 be adjacent to word2. Describe the set of documents that satisfy the query Gates /2 Microsoft. O {1, 2} ○ {1,3} ○ {2, 3} ○ {4, 5}

Principles of Information Systems (MindTap Course List)
12th Edition
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter5: Database Systems And Applications
Section: Chapter Questions
Problem 4PSE: Using a graphics program, develop an entity-relationship diagram for a database application for an...
icon
Related questions
Question
(2) Consider the following fragment of a positional index with the format:
word: document: <position, position, ...>; document: < position, ...>..
Gates: 1: <3>; 2: <6>; 3: <2,17>; 4: <1>;
IBM: 4: <3>; 7: <14>;
Microsoft: 1: <1>; 2: <1,21>; 3: <3>; 5: <16,22,51>;
The /k operator, word1 /k word2 finds occurrences of word1 within k words of word2 (on
either side), where k is a positive integer argument. Thus k = 1 demands that word1 be
adjacent to word2.
Describe the set of documents that satisfy the query Gates /2 Microsoft.
O {1, 2}
○ {1,3}
○ {2, 3}
○ {4, 5}
Transcribed Image Text:(2) Consider the following fragment of a positional index with the format: word: document: <position, position, ...>; document: < position, ...>.. Gates: 1: <3>; 2: <6>; 3: <2,17>; 4: <1>; IBM: 4: <3>; 7: <14>; Microsoft: 1: <1>; 2: <1,21>; 3: <3>; 5: <16,22,51>; The /k operator, word1 /k word2 finds occurrences of word1 within k words of word2 (on either side), where k is a positive integer argument. Thus k = 1 demands that word1 be adjacent to word2. Describe the set of documents that satisfy the query Gates /2 Microsoft. O {1, 2} ○ {1,3} ○ {2, 3} ○ {4, 5}
Expert Solution
steps

Step by step

Solved in 1 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning