Snippets tagged binary tree

  • Bin Packing

    Implementation of the 'best fit' heuristic algorithm for bin packing problems. Incudes an implementation of 'binary tree with duplicates'. See this blog post for details: Update: Bug fixes and added 'worst fit' heuristic implementation

    5 people like this

    Posted: 11 years ago by Faisal Waris

  • Converting binary tree to sequence using yield

    This sample show how to use seq-yield syntax to convert a binary tree to a sequence of elements.

    3 people like this

    Posted: 6 years ago by Dmitry Soshnikov