Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e4efc3d9
Commit
e4efc3d9
authored
Dec 11, 2014
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue 23005: Fix typos
parent
0be4b1ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/library/heapq.rst
Doc/library/heapq.rst
+2
-2
No files found.
Doc/library/heapq.rst
View file @
e4efc3d9
...
@@ -274,11 +274,11 @@ However, there are other representations which are more efficient overall, yet
...
@@ -274,11 +274,11 @@ However, there are other representations which are more efficient overall, yet
the worst cases might be terrible.
the worst cases might be terrible.
Heaps are also very useful in big disk sorts. You most probably all know that a
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, wh
ich
size is
big sort implies producing "runs" (which are pre-sorted sequences, wh
ose
size is
usually related to the amount of CPU memory), followed by a merging passes for
usually related to the amount of CPU memory), followed by a merging passes for
these runs, which merging is often very cleverly organised [#]_. It is very
these runs, which merging is often very cleverly organised [#]_. It is very
important that the initial sort produces the longest runs possible. Tournaments
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
are a good way to
achieve
that. If, using all the memory available to hold a
tournament, you replace and percolate items that happen to fit the current run,
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
you'll produce runs which are twice the size of the memory for random input, and
much better for input fuzzily ordered.
much better for input fuzzily ordered.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment