So in my book, its giving me this problem..but I have no idea what its asking me to do. I cant figure out what a permuted index is doing.
Code:
5-1. Design and implement 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,
The quick brown fox
jumped over the fence
the output would be
The quick brown fox
jumped over the fence
The quick brown fox
jumped over the fence
jumped over the fence
The quick brown fox
jumped over the fence
The quick brown fox
I copied this to the best of my ability. I tried to google it but I could not find any sites that thoroughly explained it. Might be one or two spaces off, but any help would be appreciated =D