Menu

CHeap updates

Two significant updates: Feature addition and bug fix.

CHeap now natively supports dynamic resizing. Calls to AddNode will now grow the internal array by 20% if the new element would overrun the current bounds. The new Resize method will also allow developers to change the size manually. Setting the size to something smaller than the current size will simply discard the extras on the last level.

A major bug fix has been released that addresses heap resorting when
removing nodes. The nodes were not being sunk properly before.

Posted by Jean-Francois Kamath 2010-08-24

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.