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

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

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
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 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.

»
6 лет назад, скрыть # |
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).

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

Pupils should be solving array problems, not kdtree problems.