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

Автор codeworrior, 18 месяцев назад, По-английски
i m doing this problem on spoj..i cant find any approach fr this..bt i feel this is to be done by sweep lines...hw to do this prob using sweep lines or by any other method??
 
 
 
 

 
18 месяцев назад, # | Ответить
  Проголосовать: нравится 0 Проголосовать: не нравится
You can first compress coordinates and then use interval trees to determine if a poster is visible going from the last poster to the first one.
 
18 месяцев назад, # | Ответить
  Проголосовать: нравится 0 Проголосовать: не нравится
can u explain a bit more abt what is coordinate compression??
 
13 месяцев назад, # | Ответить
  Проголосовать: нравится 0 Проголосовать: не нравится
I think it's also possible with sorting and sweeping.