I have an exercise to do, but i don't understand what the question is asking me:
Design and impliment a program to produce a permuted index. A permuted index is one in which each phrase is indexed by every word in the phrase. So, given the following input,
Code:
The quick brown fox
jumped over the fence
the output would be
Code:
The quick brown fox
jumpted over the fence
The quick brown fox
jumpted over the fence
jumpted over the fence
The quick brown fox
jumpted over the fence
The quick brown fox
I have no idea what the question is asking me, is a permuted index just a vector of strings, each string corresponding to a word in the phrase? If so, i fail to see how that relates to the output they want.
Thanks in advance.