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

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

I've seen "offline solution" a lot on codeforces. What does it mean? Is it a solution that precomputes answers?

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

»
11 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +46 Проголосовать: не нравится

If the problem involve processing queries then there are online solutions and offline solution

online means that your solution can process each query before reading the the queries that come after it

offline means that your solution reads all queries then process them , probably you sort the queries in some order so that you can process them faster

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

You may want to read this to know more about where offline algorithms can be used, and how!