Note: Due to technical limitations, thumbnails of high resolution GIF images such as this one will not be animated.
This file is from Wikimedia Commons and may be used by other projects.
The description on its file description page there is shown below.
Summary
DescriptionSequenceHeapInsert.gif
English: k=2, m=2
1. Insert Heap contains (5, 13) and is now full.
2. It is merged with the deletion buffer, the group buffer 1 and sorted resulting in (2, 5, 6, 10, 13). (2) is placed in the deletion buffer, (5, 6) in the group buffer. (10, 13) are place into the first K-Way-Merge and it overflows.
3. The old elements are merged resulting in 11,14,16,18. The new sorted sequence is added to K-Way-Merge 2.
4. Group Buffers 1 and 2 are invalidated and merged into a new sequence (5, 5, 6, 15) in K-Way-Merge 1. (5, 5) is written into Group Buffer 1.
5. Group Buffer 2 is now refilled from the sorted sequences of K-Way-Merge 2.
to share – to copy, distribute and transmit the work
to remix – to adapt the work
Under the following conditions:
attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.