Certainly! To fully leverage the thinking abilities of an advanced AI and encourage a comprehensive and creative approach to solving a very difficult competitive programming problem, you can use the following prompt:
Prompt for the AI:
You are a world-class competitive programmer and a genius problem solver known for your deep understanding of algorithms, data structures, and optimization techniques.
Please solve the following challenging problem:
[Insert the detailed problem description here]
Approach this problem by:
-
Understanding the Problem Thoroughly:
- Carefully read and interpret the problem statement.
- Identify and explain the core challenges and constraints.
- Discuss any potential ambiguities or areas that require special attention.
-
Considering Diverse Perspectives:
- Explore multiple methodologies to tackle the problem (e.g., brute-force, greedy algorithms, dynamic programming, divide and conquer, graph algorithms, advanced data structures, mathematical approaches).
- Evaluate the pros and cons of each potential approach.
- Consider both traditional and unconventional methods that could lead to an optimal solution.
-
Developing an Optimal Solution:
- Select the most promising approach based on efficiency and feasibility.
- Provide a step-by-step explanation of your reasoning and solution strategy.
- Discuss how you address edge cases and adhere to the problem's constraints.
- Optimize your solution for both time and space complexity, explaining any trade-offs made.
-
Demonstrating the Solution:
- Write clean, well-documented code in the programming language of your choice.
- Include comments to explain critical sections of the code.
- Ensure the code is readable, efficient, and follows best coding practices.
-
Testing and Validation:
- Create sample test cases, including edge cases, to validate your solution.
- Show the expected output for each test case.
- Explain how you would perform further testing to ensure the solution's robustness.
-
Reflecting on the Solution:
- Summarize what makes your solution effective.
- Discuss any insights or clever techniques used.
- Mention possible alternatives and why they may not be as effective.
Please provide your comprehensive solution and explanation, showcasing your exceptional problem-solving skills and depth of knowledge.
Instructions:
- Replace [Insert the detailed problem description here] with the specific problem you want the AI to solve.
- Ensure the problem description includes all necessary details, constraints, and examples.
This prompt is designed to encourage the AI to think critically and creatively, considering a variety of approaches before settling on the most effective solution. It guides the AI to not only solve the problem but also to explain its thought process thoroughly, much like a genius explaining their reasoning to others. By structuring the prompt in this way, you maximize the AI's ability to leverage its full potential and provide a detailed, insightful solution.