|
|
back to boardOptimization Should the interval tree be balanced? I use simple interval tree and get TL22. Re: Optimization My program on Pascal with simple interval tree gets AC. I don't understand, what problem with C++ may you have??? Re: Optimization I think the problem is in that fact that my 'simple interval tree' is not balanced. So in worst case (N=100000,K=2) I got too long tree. Re: Optimization Oh, if you solve it with real tree - of course, it should be balanced! My solution works with interval tree - RSQ, so it is quite fast... Re: Optimization Posted by Ciprian 22 Aug 2008 11:14 I get TLE 15 with circular linked list; His trees aren't definitely good; |
|
|