Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /usr/lib64/python2.7/lib-dynload/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/lib-dynload/_heapq.so
ELF>0@XR@8@$$ �-�- �- �� �-�- �- �����$$P�tdp p p ttQ�tdR�td�-�- �- HHGNUҰ�5��r���:����MC;��� �@	 BE�������|�qX������� �|6G�l�
� Z�*�����a u8 R"�M �PR�M �M 	��__gmon_start___init_fini_ITM_deregisterTMCloneTable_ITM_registerTMCloneTable__cxa_finalize_Jv_RegisterClassesPyObject_HasAttrPyObject_RichCompareBoolPyString_FromStringPyExc_IndexErrorPyErr_SetStringPyArg_ParseTuplePyObject_GetIterPyList_NewPyIter_NextPyList_AppendPyErr_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�ui	 ii
,�- ��- ��- �- �L  �L ��L @L �L  �L ��L @I �L 2 �L ��L �K M �M �M  J  M : (M 8M I @M  HM `XM �H `M �hM �xM @H �/ �/ �/ 	�/ 
�/ �/ �/ �/ �/ 0  0 (0 00 80 @0 H0 
P0 X0 `0 
h0 p0 x0 �0 �0 �0 �0 �0 �0 H��H��" H��t�H����5# �%# @�%# h����%
# h�����%# h����%�" h����%�" h����%�" h����%�" h����%�" h�p����%�" h�`����%�" h	�P����%�" h
�@����%�" h�0����%�" h� ����%�" h
�����%�" h�����%�" h���%�" h����%�" h�����%�" h���H�p? H�=b? UH)�H��H��w]�H�d! H��t�]��@H�9? H�=2? UH)�H��H��H��H��?H�H�u]�H�_! H��t�]H���@�=�> u'H�=G! UH��tH�= �]����h���]��> ��@f.�H�=� t&H��  H��tUH�=� H���]�W�����K���f.��UH��SH��H��H�5u> H��tPH��������u,�H��H���������tOH���)�[��]��H��H��H��[]1�����DH�=!���H��H��H�> u�DH�������[��]�f.�AWAVAUATUH��SH��(L�oH�t$I9���H�T$H�GH��L�dL�<�H�M9�H�D$��I���G@N�<�L��H�EJ�4�N�$8I�$H�EJ��H�)tbH�EL�$0L�dM9�~xI��I�\$I9�~�H�EJ��L�yH�L$H�|J�4�������H�L$����LE�IE��fDH�EH�t$J�<�H�G�P0H�t$�H�\$�H�EJ�8H�*�NH�EH�T$J�8H9]�jH�EJ�8H�H9\$H�D$|!�f.�L9d$H�EN�4(}lL��H�EL�c�H�t$I�N�4�N�<�L���������tu����I�L�,�H�EH��H�)u�H�EH�<�H�G�P0L9d$H�EN�4(|�H�EJ�8H�*��H�EH�T$J�81�H��([]A\A]A^A_�DH�|$H�H�T$H��H��H�uӉD$H�W�R0�D$H��([]A\A]A^A_�f�H�EL�<�J�8H�*u��'�H�EJ�<8H�G�P0���@H�|$�H�EJ�<8H�G�P0�J���H�v H�5F
H�8����������9���f.�AUH��H�5.
ATUSH��8dH�%(H�D$(1�H�L$H�T$ �������H�|$����H��I����1�����H��I����1�H�|$ 
�WH��H9l$ ~LL������H��H����H��L���F������H��H�P�H��H�u�H�CH��H���P0H9l$ �I�D$H��H�D$ ��H��H��?H�H�H��H��y�H��H����H��L���������u�f.�I�m��M��tI�,$��1�H�L$(dH3%(�H��8[]A\A]�@���H��u�L���������t�I�EH�P�L��H��I�Uu�I�UL�d$L��R0H�D$�H�@H��H��H��h���H�CH��P0�Y���f�I�EL��P0�L����I�D$L��P0�K���I�D$H�8H�H�/t_1�L���%����������I�D$H�(L���|���H��H���0���H��H���U�������]�����u�H�+u�H�CH��P0��fDH�G�P0��B���f�AWI��AVI��AUATUSH��L�gH�t$I9��sH��H�$H�GL�,�I�EH;T$�DM9guzH9\$��I��I�^�L��H�H��H�$I�GH�,�H����������M9g�����t^H�EI�GJ��H�8H�(H�/u�H�G�P0M9gt��H�� H�5j
H�8�j���H�������[]A\A]A^A_�fDJ��H�$I�GH�$H�H�*tjI�GH�$L�,1�H��[]A\A]A^A_�DI�MH�Q�H��I�Uu�I�U�$L��R0�$��DI�m�]���I�EL��P0�N���fDI�GH�<H�G�P0�H�@ H�5	H�8���������s����AWAVAUI��ATUH��SH��L�gI9���H�GH�\6L�<�H��H�I9�H�$��I���P@L9euvH�EL�<�H��H�H�MJ��H�:H�H�/��L9eH�DuWI9���I��H��L�{M9�~�H�EJ�4�J�|������������ID�L9et�H�4$H�H�D$H��H��H�trH� H�5�H�8���H�������[]A\A]A^A_�f�H�G�P0�f���H��H�EJ�8H�*t7H�EH�4$H��H��J�48H��L��[]A\A]A^A_���H�FH���P0����H�EJ�<8H�G�P0�H�4$H�H�D$H��H��H��h���H�FH���P0�Y���H�x H�5HH�8����>���@SH��H�5L��H�� dH�%(H�D$1�L�L$L�D$�����}H�D$H�P���tvH�x��H�@1�H�H�D$H�H�D$H�T$H�@H�H�|$������H��tH�L$dH3%(H��u]H�� [�DH�+uH�C�P01����H�y H�5�H�8���1��fDH�q H�5AH�8���1����f�ATUSH�FH����H�nH��toH�FH�u�1�H��H��L�d�I�$�P�H��tH�C1�H��H�(L� �������I��t[]L��A\�fDH�EE1�H��H��H�Eu�H�EH��P0��H�� H�5�E1�H�8���DH�� H�5�E1�H�8���DAUH��H�5�ATUSH��8dH�%(H�D$(1�H�L$H�T$ �M���-H�|$�K�H��I���1��H�H��I����H�T$ H��~c1��fDH�T$ H��H9�~KL���B�H��H����H��L���k���H�t{H�P�H��H�u�H�CH��H���P0H�T$ H9��I�|$��L������tVL���n���tII�EH�P�L��H��I�Uu_I�UL�d$L��R0H�D$�IH�@H��H��H�uH�CH��P0f�I�mu
I�EL��P0M��tI�,$uI�D$L��P01�H�L$(dH3%(��H��8[]A\A]����H���?���I�mu��f�H��H��?H�H�H��H��y�L�H��H���t:H��L���{������u��Q����I�D$H�8H�H�/t_1�L���U�������,���I�D$H�(L����H��H���`���H��H������������u�H�+u�H�CH��P0��fDH�G�P0��r�f�SH��H�51��H�� dH�%(H�D$1�L�L$L�D$�����H�D$H�P�����H�x~H�@H�t$H�8�����tx��u)H�D$H�H�D$H�\$dH3%(��H�� [ÐH�D$H�T$1�H�@H�H�H�D$H�T$H�@H�H�|$������H�؃��u�H�H�Q�H��H�t1�떐H�SH��R01�����H�� H�5�H�8�b�1��`����F�fDUH��SH��H�F���tTH�FH��H��?H�H�H��y
�)�H��H���tH��H���{������u�1�H��[]�DH�y H�H��[]�H�W H�5kH�8���1���f�f.�H��(H��H�5zdH�%(H�D$1�L�L$L�D$�������tsH�|$H�G���tKH�t$�����tRH�|$1�H�GH�P��������t9H�� H�H�L$dH3%(u"H��(�H�� H�5�H�8��1�����f�SH��# H�5A- H�=�1�A����H��H��t%H�=> ��H��H�5�H��[�f�fD[�H��H���__lt__index out of rangenO:nsmallestheapreplaceheap argument must be a listnO:nlargestheappushpopheappush_heapq__about__heappopheapifylist changed size during iteration;t
������P�� �`��P������p ������`�������0 ���h���zRx�$��@FJw�?;*3$"<D���A�D�G q
HCHD
GALdFCd�P��B�B�B �B(�A0�D8�D`�
8A0A(B BBBFl
8A0A(B BBBJ<���nB�L�A �A(�D`A
(A ABBEd,��B�E�E �B(�A0�A8�DP�
8F0A(B BBBGp
8A0A(B BBBFd�@�B�B�B �E(�A0�D8�DP�
8F0A(B BBBCt
8D0A(B BBBE$�����A�X0�
AF,$�����B�A�A �_
AEG<T ���nB�L�A �A(�D`n
(A ABBH$�P���*A�X0�
AB4�X����A�D�D G
AAFO
AAA������D0�
DP���RA�D
KA���- ����
��- �- ���o�H0
60 ��	���o����o�o~���o�- 

&
6
F
V
f
v
�
�
�
�
�
�
�
�
&Heap queues

[explanation by Fran�ois 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
an 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. �@L  �@I 2 ��K �� J : I  `�H ��@H _heapq.so.debug�4���7zXZ�ִF!t/���_]?�E�h=��ڊ�2N����$�6ӂK>���P��GN�ܣ���5����E��o.2�O�Ih'~���M�WL3A}O�<��;���p<��F$-�ļ|M�����M��Gh�bk�M�b��H��	�`=~�m_����oFrA���и{>R�_�ՏfAm~�I]�1A>N�y��L�М�[Hz'V���IFL��q_p>�~��á,�w�=*^�fi.u�^�:`M��~����l@�E4�&4��mPK��
�����
wP��m~7�M/?Nb���o��A��̚»/.�2�H�[�ix۸m��`�(�x,��SPq>�;3�G>��	�<n��WA�=�瘱T�h0[�!uL�������Z�j[ch����P���1�@�z�#�ޝ�ca�j��E�\��6�v��U�3>[��_��J}s��%��:�������-ݟ�wE��dz��1��7����`�"
�Qv&����F�`������O�[J�Z摝���6��ӽ��[,!;R|��H�Qt��$Y-F�?(�.:�ՠ�;(���V��������/
�+6�f�I��*Zv"�U�z$C=O��a�3�:�71��:h����0�y�����7ӻc�k��G�U�NMn�;yx����s�ل=Ӵ#HȌ���I�T�8�0\�Z�W�2s"_��BP`U.~��M%C�Y��/er;bZ��=�[�t��I
-J�v��d$�/��������=$���EQy�����#���4��`��en��9ޫ%gJHҨ��$)8��d޴�E���XG��:�t'z�)�L>ѹ�]����9�����dѡ��� �6�i�ȟ���d'��Yl����p���n�a���g�YZ.shstrtab.note.gnu.build-id.gnu.hash.dynsym.dynstr.gnu.version.gnu.version_r.rela.dyn.rela.plt.init.text.fini.rodata.eh_frame_hdr.eh_frame.init_array.fini_array.jcr.data.rel.ro.dynamic.got.got.plt.data.bss.gnu_debuglink.gnu_debugdata��$���o��<(000HH68���o~~BE���o��0T��^B�h��c��@n00rt��	z2����p p t�� � 4��- �-��- �-��- �-��- �-��- �-���/ �/H�0 0���0 �0� ��M �M��M��M�TQ

ZeroDay Forums Mini