/opt/alt/python27/lib64/python2.7/lib-dynload
NameSizeModeActions
arraymodule.so484960755editdlrm
audioop.so336000755editdlrm
binascii.so263760755editdlrm
bz2.so443440755editdlrm
cmathmodule.so397200755editdlrm
cPickle.so850080755editdlrm
cStringIO.so244880755editdlrm
datetime.so915680755editdlrm
dbm.so169680755editdlrm
dlmodule.so120160755editdlrm
fcntlmodule.so199360755editdlrm
future_builtins.so93600755editdlrm
gdbmmodule.so204160755editdlrm
grpmodule.so130080755editdlrm
imageop.so208480755editdlrm
itertoolsmodule.so622960755editdlrm
linuxaudiodev.so172000755editdlrm
math.so381040755editdlrm
mmapmodule.so269200755editdlrm
nismodule.so171520755editdlrm
operator.so478080755editdlrm
ossaudiodev.so306080755editdlrm
parsermodule.so553680755editdlrm
pyexpat.so2877520755editdlrm
Python-2.7.16-py2.7.egg-info15250644editdlrm
readline.so287760755editdlrm
resource.so168560755editdlrm
selectmodule.so296160755editdlrm
spwdmodule.so135200755editdlrm
stropmodule.so292400755editdlrm
syslog.so122720755editdlrm
termios.so262400755editdlrm
timemodule.so254640755editdlrm
timingmodule.so80800755editdlrm
unicodedata.so6988240755editdlrm
xxsubtype.so136960755editdlrm
zlibmodule.so288640755editdlrm
_bisectmodule.so141840755editdlrm
_bsddb.so1780000755editdlrm
_codecs_cn.so1514160755editdlrm
_codecs_hk.so1595360755editdlrm
_codecs_iso2022.so246960755editdlrm
_codecs_jp.so2661280755editdlrm
_codecs_kr.so1390880755editdlrm
_codecs_tw.so1103840755editdlrm
_collectionsmodule.so376640755editdlrm
_cryptmodule.so82640755editdlrm
_csv.so360000755editdlrm
_ctypes.so1362960755editdlrm
_curses.so884080755editdlrm
_curses_panel.so172320755editdlrm
_elementtree.so523440755editdlrm
_functoolsmodule.so176240755editdlrm
_hashlib.so268160755editdlrm
_heapq.so235520755editdlrm
_hotshot.so326160755editdlrm
_io.so1636960755editdlrm
_json.so435440755editdlrm
_localemodule.so217840755editdlrm
_lsprof.so233600755editdlrm
_md5module.so191600755editdlrm
_multibytecodecmodule.so368560755editdlrm
_multiprocessing.so358240755editdlrm
_randommodule.so169440755editdlrm
_sha256module.so220960755editdlrm
_sha512module.so261840755editdlrm
_shamodule.so174720755editdlrm
_socketmodule.so883440755editdlrm
_sqlite3.so922560755editdlrm
_ssl.so1031120755editdlrm
_struct.so433920755editdlrm
Edit: /opt/alt/python27/lib64/python2.7/lib-dynload/_heapq.so (23552B)
ELF>@T@8@h$h$ ,, ,  -- - $$H$H$H$ Ptd   ||QtdRtd,, , GNUGBq^Pv:"$O@ BE |qX \'Lf :l {U, F"L  RL L __gmon_start___ITM_deregisterTMCloneTable_ITM_registerTMCloneTable__cxa_finalizePyObject_HasAttrPyObject_RichCompareBoolPyString_FromStringPyExc_IndexErrorPyErr_SetStringPyArg_ParseTuplePyObject_GetIterPyList_NewPyList_AppendPyIter_NextPyErr_OccurredPyList_Sort__stack_chk_failPyExc_RuntimeErrorPyArg_UnpackTuplePyExc_TypeErrorPyList_SetSlicePyList_Reverse_Py_NoneStructinit_heapqPy_InitModule4_64PyModule_AddObjectlibpython2.7.so.1.0libpthread.so.0libc.so.6_edata__bss_start_endGLIBC_2.2.5GLIBC_2.4/opt/alt/python27/lib64ui ii  , , `- - K K 0K K L L 0L H L (L 8L  K @L HL XL `I `L hL xL @H L L L G L uL PL G / / /  /  / / / / 0/ 8/ @/ H/ P/ X/ `/  h/  p/  x/ / / / / / / / / HHI# HtH5z" %{" hhhhhhhhqhah Qh Ah 1h !h hhhh%U! D%M! D%E! D%=! D%5! D%-! D%%! D%! D%! D% ! D%! D% D% D% D% D% D% D% DH== H= H9tH Ht H== H5= H)HHH?HHtH HtfD=u= u+UH= Ht H=~ YdM= ]wUHSHHH5%= Ht8Hu\HHLt2H)[]H=QDHH< HuH[]fHHH1[]f.AWAVAUATUSH(HGHt$H$H9HT$HGIHL,HD$HH$HH?HHH9IJ@HID$N4JHHu3ID$H8HH/uHGP01LID$H(LEHHHH0uH+uHCHP0LLoImSHH5kH dH%(HD$1LL$LD$HD$HPHxHt$~zH@H8taHD$HxH@1HHD$HHD$HT$H@HH|$u(H+uHCHP01 @HH\$HL$dH3 %(Hu^H [fDHD$HH\$Hy H5-1H8fDHq H51H8USHHFtaHFHHH?HHHy-DHHtHHu1H[]DH HH[]fDH H5uH81@f.H(HdH%(HD$1LL$LD$H5ZtwH|$HGtOHt$tVH|$1HGHPt=H0 HHL$dH3 %(u&H(H H5H8:1!S1AH|# H5, H=Ht$H= H%HH5[Hf[HH__lt__index out of rangenO:nsmallestheapreplaceheap argument must be a listnO:nlargestheappushpopheappush_heapq__about__heappopheapifylist changed size during iteration;|88hTxzRx $0FJ w?:*3$"D <\ADG v CAJ _ FAJ DIABBB B(A0A8D` 8F0A(B BBBJ c 8C0A(B BBBA _ 8A0A(B BBBA R 8A0A(B BBBA 84NFLA A(DP (A ABBB xpBBB B(A0A8D@| 8A0A(B BBBD D 8C0A(B BBBH Z 8F0A(B BBBA tBBB B(A0A8DP 8G0A(B BBBE _ 8A0A(B BBBJ Z8F0A(B BBB dEX0 AE LFBA A(D0b (D ABBG ] (D ABBJ 8\_FLA A(DP (A ABBG _EX0 AG 48EAD N AAF O AAG p$H0 H REA J AGNU`-  D, , o(0` . /   oooo^o-  0 @ P ` p Heap queues [explanation by Franois Pinard] Heaps are arrays for which a[k] <= a[2*k+1] and a[k] <= a[2*k+2] for all k, counting elements from 0. For the sake of comparison, non-existing elements are considered to be infinite. The interesting property of a heap is that a[0] is always its smallest element. The strange invariant above is meant to be an efficient memory representation for a tournament. The numbers below are `k', not a[k]: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 In the tree above, each cell `k' is topping `2*k+1' and `2*k+2'. In a usual binary tournament we see in sports, each cell is the winner over the two cells it tops, and we can trace the winner down the tree to see all opponents s/he had. However, in many computer applications of such tournaments, we do not need to trace the history of a winner. To be more memory efficient, when a winner is promoted, we try to replace it by something else at a lower level, and the rule becomes that a cell and the two cells it tops contain three different items, but the top cell "wins" over the two topped cells. If this heap invariant is protected at all time, index 0 is clearly the overall winner. The simplest algorithmic way to remove it and find the "next" winner is to move some loser (let's say cell 30 in the diagram above) into the 0 position, and then percolate this new 0 down the tree, exchanging values, until the invariant is re-established. This is clearly logarithmic on the total number of items in the tree. By iterating over all items, you get an O(n ln n) sort. A nice feature of this sort is that you can efficiently insert new items while the sort is going on, provided that the inserted items are not "better" than the last 0'th element you extracted. This is especially useful in simulation contexts, where the tree holds all incoming events, and the "win" condition means the smallest scheduled time. When an event schedule other events for execution, they are scheduled into the future, so they can easily go into the heap. So, a heap is a good structure for implementing schedulers (this is what I used for my MIDI sequencer :-). Various structures for implementing schedulers have been extensively studied, and heaps are good for this, as they are reasonably speedy, the speed is almost constant, and the worst case is not much different than the average case. However, there are other representations which are more efficient overall, yet the worst cases might be terrible. Heaps are also very useful in big disk sorts. You most probably all know that a big sort implies producing "runs" (which are pre-sorted sequences, which size is usually related to the amount of CPU memory), followed by a merging passes for these runs, which merging is often very cleverly organised[1]. It is very important that the initial sort produces the longest runs possible. Tournaments are a good way to that. If, using all the memory available to hold a tournament, you replace and percolate items that happen to fit the current run, you'll produce runs which are twice the size of the memory for random input, and much better for input fuzzily ordered. Moreover, if you output the 0'th item on disk and get an input which may not fit in the current tournament (because the value "wins" over the last output value), it cannot fit in the heap, so the size of the heap decreases. The freed memory could be cleverly reused immediately for progressively building a second heap, which grows at exactly the same rate the first heap is melting. When the first heap completely vanishes, you switch heaps and start a new run. Clever and quite effective! In a word, heaps are useful memory structures to know. I use them in a few applications, and I think it is good to keep a `heap' module around. :-) -------------------- [1] The disk balancing algorithms which are current, nowadays, are more annoying than clever, and this is a consequence of the seeking capabilities of the disks. On devices which cannot seek, like big tape drives, the story was quite different, and one had to be very clever to ensure (far in advance) that each tape movement will be the most effective possible (that is, will best participate at "progressing" the merge). Some tapes were even able to read backwards, and this was also used to avoid the rewinding time. Believe me, real good tape sorts were quite spectacular to watch! From all times, sorting has always been a Great Art! :-) Heap queue algorithm (a.k.a. priority queue). Heaps are arrays for which a[k] <= a[2*k+1] and a[k] <= a[2*k+2] for all k, counting elements from 0. For the sake of comparison, non-existing elements are considered to be infinite. The interesting property of a heap is that a[0] is always its smallest element. Usage: heap = [] # creates an empty heap heappush(heap, item) # pushes a new item on the heap item = heappop(heap) # pops the smallest item from the heap item = heap[0] # smallest item on the heap without popping it heapify(x) # transforms list into a heap, in-place, in linear time item = heapreplace(heap, item) # pops and returns smallest item, and adds # new item; the heap size is unchanged Our API differs from textbook heap algorithms as follows: - We use 0-based indexing. This makes the relationship between the index for a node and the indexes for its children slightly less obvious, but is more suitable since Python uses 0-based indexing. - Our heappop() method returns the smallest item, not the largest. These two make it possible to view the heap as a regular Python list without surprises: heap[0] is the smallest item, and heap.sort() maintains the heap invariant! Find the n smallest elements in a dataset. Equivalent to: sorted(iterable)[:n] Find the n largest elements in a dataset. Equivalent to: sorted(iterable, reverse=True)[:n] Transform list into a heap, in-place, in O(len(heap)) time.heappushpop(heap, item) -> value. Push item on the heap, then pop and return the smallest item from the heap. The combined action runs more efficiently than heappush() followed by a separate call to heappop().heapreplace(heap, item) -> value. Pop and return the current smallest value, and add the new item. This is more efficient than heappop() followed by heappush(), and can be more appropriate when using a fixed-size heap. Note that the value returned may be larger than item! That constrains reasonable uses of this routine unless written as part of a conditional replacement: if item > heap[0]: item = heapreplace(heap, item) Pop the smallest item off the heap, maintaining the heap invariant.heappush(heap, item) -> None. Push item onto heap, maintaining the heap invariant.0K 0H  K `I @H G uPG GA$3a1GA$3a1 GA$3a1DLGA$3a1 GA$3p864BGA$gcc 8.2.1 20180905 GA*GOW*EGA*GA+stack_clashGA*cf_protectionGA+GLIBCXX_ASSERTIONS GA*FORTIFYGA*GA! GA* GA!stack_realign GA$3h864 GA$3h864GA$3a1BBGA$3a1BBGA$3a1 GA$3a1LQ_heapq.so-2.7.16-2.el8.x86_64.debugf7zXZִF!t/G]?Eh=ڊ2N )4b̺x \yR+yJ-*]ͬl-ybzʷg*?O/] z(Xpڑ5 9EPW9^\X-UI+mơ k`pEKҠ&3Yh{xY/6U1QL!4 Rϛ7OL }NR6v7}^쓟lw6`֬AassnXʼG 5M@V?t?5"4RX]@}Q!"VtT[qmߎ-%ѵ: J\o7<<@n] lzMCGAu&:>ѻ; 翍== <4y|[;xߍLZx*|7H ?T߁. eDŽd)SjuN ,è(Vvxf9)UAj`u60(G~CY{c{̟>p!.-8b#/=TV~Bׇ$pigJ[k?.Fb}֥M|)}2Z )~=KE]nu=izU. \8Dd@FcddΝDM>,ѱ#+Bbl_Pq:1g%4e#@F!T toL)իT0TP!W ZS6x.%]~(%{!gYZ.shstrtab.note.gnu.build-id.gnu.hash.dynsym.dynstr.gnu.version.gnu.version_r.rela.dyn.rela.plt.init.plt.sec.text.fini.rodata.eh_frame_hdr.eh_frame.note.gnu.property.init_array.fini_array.data.rel.ro.dynamic.got.data.bss.gnu.build.attributes.gnu_debuglink.gnu_debugdata $o((4( ``000.8o^^<Eo0T^B h c 0n wR}DD 2XX  | H$H$ , ,, ,- -- -/ /0 0 L LL`L O(OS(