I wonder which form(s) are correct amongst the following:
- the challenge to do X
- the challenge of doing X
Example:
The models in the literature tend to employ different strategies to encode the input, leading to the challenge to determine the best input encoding scheme for this problem.
Best Answer
Both are grammatically fine. "the challenge to do X" emphasizes X as unit, a thing to be accomplished. "the challenge of doing X" emphasizes X as a process, perhaps with challenging aspects or steps. But in many contexts the meanings of the two forms will be essentially identical.
The example sentence:
could be rewritten as
with no significant change in meaning.