8.4 linear search index

Source: Internet
Author: User

Search for its storage location in the index table based on the keyword, and then read the record from the storage location.

Each index item contains at least the location information of the keyword and its corresponding record in the memory.

8.4.1 dense Index

Each record in the Data corresponds to an index. When the data volume is large, the index item will be large and the efficiency will be reduced.

If the index items are ordered, you can use ordered algorithms, such as half-fold, interpolation, and Fibonacci to search for them. If the index items are not ordered, you can only use sequential search algorithms.

8.4.2 multipart Index

When the data volume is large, the data can be segmented, ordered between blocks, and unordered within blocks. You can use half-fold, interpolation, and Fibonacci searches between blocks. You can only use sequential searches within a block.

8.4.3 inverted index

It is mainly used to search for words that contain all the searched content in those articles ). Similar to search engines.

The record number table stores all records with the same keywords. Because the location of the record is determined based on the attribute, and the attribute value is determined by the record, it is called an inverted index.

 

This article is from "Li Haichuan" blog, please be sure to keep this source http://lihaichuan.blog.51cto.com/498079/1282337

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.