def batch_list_insert(elem, sorted_elems):
""" Step 1/3 of batch insertion.
The first precomputing phase of a batch insert. Determines the list
of elements to ultimately insert into the MHT.
Arguments:
elem - the next element to insert in this phase
sorted_elems - the elements in the range to be inserted into
so far
"""
bisect.insort_left(sorted_elems, elem)
评论列表
文章目录