skip-lists

how lucene use skip list in inverted index?

和自甴很熟 提交于 2019-11-30 17:53:28
问题 In some blogs and lucene website,I know lucene use data structure "skip list" in inverted index. But I have some puzzle about it. 1:In general,skip list maybe used in memory ,but inverted index is stored in disk. So how lucene use it when search on the index? just scanning it on disk or load it to memory? 2:skip list's insert operator often use random(0,1) to decide whether insert to next level,but in luncene introdution,it seems a fixed interval in every terms,so how lucene create the "skip

Skip List vs. Binary Search Tree

狂风中的少年 提交于 2019-11-26 08:38:38
问题 I recently came across the data structure known as a skip list. It seems to have very similar behavior to a binary search tree. Why would you ever want to use a skip list over a binary search tree? 回答1: Skip lists are more amenable to concurrent access/modification. Herb Sutter wrote an article about data structure in concurrent environments. It has more indepth information. The most frequently used implementation of a binary search tree is a red-black tree. The concurrent problems come in