Randomized Binary Search Tree

  • ABC170 E Commentary on.

    • Ordered multisets can be processed quickly by using C++ multisets, etc.

    • and therefore, what is the equivalent of multiset in C++ in Python? and the topic was raised - multiset in Python There are many cases where you can get by with heapq.
      • Python does not have equilibrium binary tree in the standard library
        • I felt like it would be a good idea to have it as my own library…
  • Implementations that make nodes as objects are generally bad.

    • Because of the high cost of generating objects.
    • Implement in arrays and make with the policy to compile in numba.
  • AC on ABC170E

--- Development


This page is auto-translated from /nishio/RBST using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.