Блог пользователя WIL

Автор WIL, история, 9 лет назад, По-английски

I recently studied this data structure, and resolved some problems, but I would like to solve other, if anyone can give me some problems, I would be grateful.

This are some problems that i solved by kdtree:

  • Проголосовать: нравится
  • +10
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

It's look like COJ is not accepting submissions :( Could someone help me? I think I got a working solution for the City Houses problem.

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    because of the covid situation, currently, in Cuba, the universities are close, this will probably take some time before being fixed

»
4 года назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

Maybe I’m wrong, but as far as I know kd-trees can cave a complexity as bad as $$$O(N)$$$ per query for malicious inputs.

Also, what is the complexity of your solution to the third problem with KD-trees? I am pretty sure that $$$O(N^2)$$$ and even $$$O(N logN)$$$ can be achieved (it seems to me that you only have to count pairs that are neighbouring on the Voronoi diagram).

»
4 года назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

Pupils should be solving array problems, not kdtree problems.