send_nodes's blog

By send_nodes, history, 11 years ago, In English

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

  • Vote: I like it
  • +14
  • Vote: I do not like it

»
11 years ago, hide # |
← Rev. 2  
Vote: I like it +46 Vote: I do not like it

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 years ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

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