Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 7 of about 7 for heap (0.021 sec.)
8.5. heapq --- ヒープキューアルゴリズム — Python 3.6.5 ドキュメント 13377
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... リ » 8. データ型 » 8.5. heapq --- ヒープキューアルゴリズム ¶ ソースコード: Lib/ ... 全ての k に対して、ゼロから要素を数えていった際に、 heap[k] <= heap[2*k+1] かつ heap[k] <= heap[2*k+2] とな ... ープの興味深い性質は、最小の要素が常にルート、つまり heap[0] になることです。 以下の API は教科書におけるヒー ... ッドは最大の要素ではなく最小の要素 (教科書では "min heap:最小ヒープ" と呼ばれています; 教科書では並べ替えを ...
https://man.plustar.jp/python/library/heapq.html - [similar]
What's New in Python 2.3 — Python 3.6.5 ドキュメント 9360
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... ます)。 たくさんのライブラリ新機能…、Boolean、 set、 heap、 日付/時刻データ型、ZIP 形式アーカイブからのモジュ ... を超えるファイルを扱えるようになっています。 The new heapq module contains an implementation of a heap queue ... algorithm. A heap is an array-like data structure that keeps items i ... tially sorted order such that, for every index k , heap[k] <= heap[2*k+1] and heap[k] <= heap[2*k+2] . Thi ...
https://man.plustar.jp/python/whatsnew/2.3.html - [similar]
メモリ管理 — Python 3.6.5 ドキュメント 8724
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... クトとデータ構造が入ったプライベートヒープ (private heap) が必須です。プライベートヒープの管理は、内部的には ... nt to understand that the management of the Python heap is performed by the interpreter itself and that th ... lates object pointers to memory blocks inside that heap. The allocation of heap space for Python objects a ...
https://man.plustar.jp/python/c-api/memory.html - [similar]
Pythonモジュール索引 — Python 3.6.5 ドキュメント 8106
ナビゲーション 索引 モジュール | Python » 3.6.5 ドキュメント » Pythonモジュール索引 _ | a | b | ... hashlib Secure hash and message digest algorithms. heapq Heap queue algorithm (a.k.a. priority queue). hma ...
https://man.plustar.jp/python/py-modindex.html - [similar]
11. 標準ライブラリミニツアー --- その 2 — Python 3.6.5 ドキュメント 8015
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... l'), (300, 'ruby'), (400, 'lua'), (500, 'python')] heapq モジュールは、通常のリストでヒープを実装するための ... クセスするようなアプリケーションで便利です: >>> from heapq import heapify , heappop , heappush >>> data = [ ... 1 , 3 , 5 , 7 , 9 , 2 , 4 , 6 , 8 , 0 ] >>> heapify ( data ) # rearrange the list into heap order > ... >> heappush ( data , - 5 ) # add a new entry >>> [ heappop ...
https://man.plustar.jp/python/tutorial/stdlib2.html - [similar]
What's New in Python 2.6 — Python 3.6.5 ドキュメント 8015
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... ファイル名を返すようになりました。 ( bpo-1001604 ) heapq モジュールの新しい関数 merge(iter1, iter2, ...) は ... こはきちんと書かれています。---)。例えば: >>> list ( heapq . merge ([ 1 , 3 , 5 , 9 ], [ 2 , 8 , 16 ])) [1, ... 2, 3, 5, 8, 9, 16] もう一つの新たな関数 heappushpop(heap, item) は、 item を heap に push した後 ... 、pop を行って heap から最初の要素を返します。この一続きの動作を heapp ...
https://man.plustar.jp/python/whatsnew/2.6.html - [similar]
はじめに — Python 3.6.5 ドキュメント 7942
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... います。ほとんど全ての Python オブジェクトはヒープ (heap) 上に置かれます: このため、 PyObject 型のオブジェク ...
https://man.plustar.jp/python/c-api/intro.html - [similar]
PREV 1 NEXT