The example in the following section demonstrates the two steps. Step 2 ensures that, at the end of the operation, each element is again less than its children. Step 1 sounds complicated, but in the array representation, it simply means that the new element is placed in the first free position of the array.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |