invertedindx.html

来自「数据结构词典(英文)」· HTML 代码 · 共 46 行

HTML
46
字号
<!DOCTYPE HTML PUBLIC "-//IETF//DTD W3 HTML 2.0//EN">
<HTML lang="en-US">
<HEAD>
<TITLE>inverted index</TITLE>
<META name="description"
  content="Definition of inverted index,
	possibly with links to more information and implementations.">
<META name="keywords" content="inverted index">
</HEAD>
<BODY BGCOLOR="#FFFFFF">

<H1>inverted index</H1>
<P>
(data structure)

<P>
<strong>Definition:</strong>
An index into a set of <a href="text.html" tppabs="http://hissa.nist.gov/dads/HTML/text.html"><em>texts</em></a> of the words in the texts. The index is sorted alphabetically, and each index entry gives the word and a list of texts, and possibly locations  within the text, where the word occurs.
<P><em>Note:
Suppose we want to search the texts "i love you," "god is love," "love is blind," and "blind justice." (The words of the text are all lower case for simplicity.)  If we index by (text, character within the text), the index is this: <PRE> blind   (3,8);(4,0)<br> god     (2,0)<br> i       (1,0)<br> is      (2,4);(3,5)<br> justice (4,6)<br> love    (1,2);(2,7);(3,0)<br> you     (1,7) </PRE> To find, for instance, documents with both "is" and "love," find the intersection of the texts in each list.  In this case, documents 2 and 3 have both words.</em>
<P>Author: <a href="terms.html#authorPEB" tppabs="http://hissa.nist.gov/dads/terms.html#authorPEB">PEB</a>

<hr>

Go to the
<A HREF="terms.html" tppabs="http://hissa.nist.gov/dads/terms.html">Algorithms, Data Structures, and Problems</A>
home page.

<hr>

If you have suggestions, corrections, or comments, please get in touch
with
<a href="javascript:if(confirm('http://hissa.nist.gov/~black/black.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://hissa.nist.gov/~black/black.html'" tppabs="http://hissa.nist.gov/~black/black.html">Paul E. Black</a>
&nbsp;(<a href="mailto:paul.black@nist.gov">paul.black@nist.gov</a>).

<p>
Entry modified Wed Sep 22 13:33:55 1999.<BR>
HTML page formatted Wed Dec 22 09:35:36 1999.

<P>
This page's URL is
<A href="invertedindx.html" tppabs="http://hissa.nist.gov/dads/HTML/invertedindx.html">http://hissa.nist.gov/dads/HTML/invertedindx.html</A>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?