What is a permuted index?

后端 未结 3 1110
青春惊慌失措
青春惊慌失措 2021-02-18 14:01

I am reading Accelerated C++. I don\'t understand Exercise 5-1:

Design and implement a program to produce a permuted index from the following input. A per

3条回答
  •  再見小時候
    2021-02-18 14:53

    You can find a 'live' example of a permuted index in the 7th Edition UNIX™ Programmer's Reference Manual, Vol 1 (dating back to 1979). A fragment of it (from the PDF files) is:

    Extract from start of Permuted Index for 7th Edition Unix Programmer's Reference Manual Vol 1

    If you look for 'account', you can find a number of related entries together. You probably wouldn't think to look for sa(1) as well as ac(1), not to mention acct(2) or acct(5) unless they were grouped together. This is the benefit of a permuted index; you can look up the key word and see it in a bigger context.

    You could also look at the man page entry for the ptx(1) command in the same 7th Edition manual.

提交回复
热议问题