There is no doubt that people are using AI to solve problems, but recently, I have started to hear more about people using AI to set problems as well. I wanted to share some of my thoughts on this, along with some things I have learned about problemsetting in general.
AI in problemsetting
1. Never generate problems purely with AI. Obviously.
2. AI reduces creativity in a very specific manner, even if you came up with the problem on your own
A lot of the time, especially with problems on the harder end, you might come up with some interesting setup for a problem, think about it for a bit, give up, and end up just chucking it into AI.
If AI tells you that your problem is NP-hard or requires some stupid implementation, that does not mean you should abandon the idea. I argue that a lot of the creativity in problemsetting comes from trying to solve your own problems. In doing so, you develop an understanding of the structure of the problem and how modifying certain properties affects it. Maybe introducing some restriction gives rise to an interesting invariant, or maybe some observation you make along the way can be used to set an entirely different problem. If you immediately resort to AI, you miss out on a lot of this.
3. If neither you nor someone you know can independently solve the problem you thought of, you probably should not be setting it
This relates to point 2. If you cannot really grasp the structure of your problem but accept whatever solution AI gives you, how are you supposed to judge the quality of the problem? You should probably keep in mind that AI telling you that your 3000 rated problem can be "efficiently done with [insert implementation slop advanced data structure]" is not a particularly good indicator of quality.
The only way to set problems really high above your rating is to take advantage of the one thing that you have over all competitors: time! Keep churning on the problem you made and try to progress as much as possible, or just have super strong friends who can insta solve your problem.
4. AI for problem preparation is fine
I do not see much of an issue with using AI to code solutions, generators, validators, etc. in Polygon. Just keep test generation in mind and understand what your generators are doing. Think about incorrect approaches that participants might come up with and whether there are certain structures or extreme cases that your generators are unlikely to produce.
Some good and bad methods of problemsetting
1. Setting problems on concepts you have very recently learned
Try not to do this. I vividly remember setting some extremely standard 2-SAT and XOR basis problems immediately after learning those concepts. The problems, in retrospect, make me laugh. I think it is difficult to distinguish whether you have found a genuinely interesting application of a concept or whether you just find the concept itself interesting because you recently learned it.
2. Combining multiple concepts
Combining 2+ concepts into one problem (e.g. combining MEX and subsets) has a chance of producing good problems, but often you just end up with standard subproblems. If you do this, try to make the operation or structure of the problem a little weird. Ideally, some interesting observation should arise specifically from the interaction between the two concepts.
3. Data structure problems
Problems that just require the usage of a data structure with no russianness are, in my opinion, bad problems for Codeforces. Of course, there are plenty of nice problems involving data structures. But I think figuring out what to maintain in a data structure is often a much more interesting problem than figuring out how to maintain it.
4. Reverse engineering
Working backwards from a solution can sometimes work, but it heavily depends on how obvious it is that the problem was reverse engineered. I would recommend reverse engineering from somewhere in the middle of the solution, rather than working backwards from the very end. For example, suppose you have some interesting problem on an array $$$A$$$. Maybe reverse engineer some array $$$B$$$ and a set of operations such that, under some nontrivial observation, the problem on $$$B$$$ reduces to the problem on $$$A$$$.
When I was setting Falling Concrete, I initially thought of elements losing 1 when moving left and gaining 1 when moving right, and came up with the invariant pretty quickly. I then kind of reverse engineered the array operation from there. I got somewhat lucky that asking for the maximum length of a flat segment was interesting but also not implementation slop.
5. Inspiration from the real world
I think this is pretty promising. When you sit down with the intention of setting a certain category of problems (e.g. only focusing on graphs, combo, etc.), you are probably going to think of a bunch of structures related to that respective category that you have already seen before.
6. Random thoughts (and dreams)
Some of the best problems I have come up with have come to me in dreams or just randomly throughout the day, with seemingly no prior thought process. I assume this is my subconscious combining a bunch of unrelated observations from problems I have solved before. This is probably also why solving a wide variety of problems helps with problemsetting.
Anyways, I just noticed that I have basically just listed a bunch of methods that either somewhat work or do not work at all. So I ask the more experienced authors reading this: how do you guys set so many creative problems?
Some things to keep in mind while problemsetting
1. Try not to force creativity
I feel like the productivity of a problemsetting session is somewhat of an increasing, then decreasing function. Your subconscious is constantly accumulating ideas. Dedicate some time to trying to put them together, but not too much. Eventually, you will find yourself making completely arbitrary modifications to the same problem for an hour and getting nowhere.
Also, keep track of unfinished problem ideas. You might randomly make an observation months later that turns the setup into a nice problem.
2. Self-difficulty deflation
I do not know if there is an actual term for this, but I think there is this phenomenon of "self-difficulty deflation" in problemsetting. The more and more you think about your problem, the easier and more approachable it starts to seem to you. Eventually, an observation that initially took you a while to make starts to seem pretty trivial. Keep in mind that you already know which direction to think in, and probably even introduced certain restrictions specifically because of the intended solution. A participant seeing the problem for the first time has none of this intuition.
This is why we have testers! Apart from getting difficulty estimates, I think trying to understand the thought process of the testers themselves is very very valuable.
3. A nice contest is usually better than a hard contest
Bonus points if it is both, but a lot of the time, I have noticed it is one or the other. I think authors (myself included) sometimes get too caught up in trying to increase the difficulty of a problem. If you already have a nice problem, there is not much of a reason to artificially increase its difficulty just to fill a harder slot in the contest.
4. Do not toss out a problem because it is GPT-able
I have seen some authors take otherwise nice problems out of their proposed round because AI was able to solve them very quickly, which I find a little weird. A lot of the things that make a problem difficult for AI are not necessarily things that make it interesting for a human to solve. We are setting problems for people to enjoy, not trying to marginally decrease the probability of someone AKing in 10 minutes with AI.
Anyways, lmk what you think!










