Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Boolean and Vector Space Retrieval Assume the following fragments comprise your

ID: 3605733 • Letter: B

Question

Boolean and Vector Space Retrieval Assume the following fragments comprise your document collection Doc 1: Interest in real estate speculation Doc 2: Interest rates and rising home costs Doc 3: Kids do not have an interest in banking Doc 4: Lower interest rates, hotter real estate market Doc 5: Feds' interest in raising interest rates rising Assume the following are stopwords: an, and, do, in, not Table 2 Term bankin costs estate feds have home hotter interest kids lower market raisin rates real risin speculation Doc 1 Doc 2 Doc 3 Doc 4 Doc 5 0 0 0 0 0 0 (a) What documents would be returned in response to the following queries? Use the term-document matrix provided in Table 2 (1) interest NOT rates (2) ( interest AND rates ) NOT ( rising OR kids) (3) (kids AND home)

Explanation / Answer

Hi,
1. we use the term document matrix given in the question to retrieve documents, here an entry 1 says that the term is present in that document,
so each term gets its own vector with 5 values(for 5 docs) like below:
for interest its- 1 1 1 1 1
for rates its- 0 1 0 1 1
for kids its- 0 0 1 0 0
for rising its- 0 1 0 0 1
for raising its- 0 0 0 0 1
for home its- 0 1 0 0 0
now to retrive the docs based on query,
1. interest NOT rates i.e 11111 and not(01011)= 11111 and 10100= 10100
which means doc 1 and doc3 will be retrieved
2. (interest AND rates) NOT (raising or kids)
  (interest AND rates)= 11111 and 01011= 01011
NOT (raising or kids)= not(00001 or 00100)= not(00101)= 11010
now, 01011 or 11010= 11011
i,e all docs except doc3 will be retrieved
3.kids and home = 00100 and 01000= 00000
therefore no doc will be returned

Thumbs up if this was helpful, otherwise let me know in comments

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote