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: http://fwaris.wordpress.com/2013/04/01/best-fit-bin-packing/ Update: Bug fixes and added 'worst fit' heuristic implementation

    5 people like this

    Posted: 4 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: 1 month ago by Dmitry Soshnikov