A priority queue (aka, heap) is the data structure of choice when you're going to be doing a lot of inserts at various times, and you only care about the smallest (largest) element in the data...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: Lindley Search: Search took 0.08 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |