Sunday, 17 March 2024
Bot to read our local PDF and answer using Openai, Embeddings, Langchain & Streamlit
Tuesday, 12 March 2024
AskCodi.ai for Student
What is askCodi.ai?
Intelligent virtual assistant powered by AI technology. Offers personalized learning experiences. Integrates seamlessly into educational environments. Paradigm shift in coding How askCodi.ai Helps Students and Teachers:
Personalized Learning:
Understands individual learning styles. Delivers personalized recommendations and resources. 24/7 Assistance: Provides round-the-clock support for students. Alleviates burden on teachers. Interactive Learning Experiences: Engages students with quizzes, simulations, and games. Motivates active participation and deepens understanding. Efficient Communication: Streamlines communication between teachers and students. Facilitates collaboration and assessment.Use Case and Tutorial Resources:
Scenario: High school student preparing for Python Lab Exam. Features: Access to practice problems and solutions. Step-by-step explanations for challenging concepts. Interactive quizzes and simulations. Real-time assistance and collaboration. Tutorial Resources: Instructional videos, study guides, and learning materials. A typical Demo Session --------------------------- Hands on ----------------------------------------------------------------------------------- Login to app.askCodi.com using google account In Left side Apps Section, you can see Codi Chat, Codi Workbook, Translate Choose Codi Workbook Create work book by filling the asked details like Project, description etc Click create project Python Lan, Language, Python 3 to get the screen like this. UI is very user friendly as shown @ end. From the above screen type in first window : Binary search Binary Sort and then click Buttons, Generate to generate code Explain to get simple explanation in english Document to document Test for test code generation Now you can see all the sections immediately. So easy for Student as well as teacher. Wow! What a Immersive coding tech. is informative, colloborative, productive!. Please dive in to this askCodi to enjoy every bit of programming! Happy Coding ! 😂😂😂😂Monday, 11 March 2024
Prompt Engineering Demo using Gemini on 14.03.2024 @CSE, AU
Demo140324 done exclusive for CSE Students. For any clarifications contact author.
A G E N D A
- Video Release Avatar Base CSE Promotion by HOD
- Heygen Preperation Demo
- III. Simple Prompts for Coding+
- IV. PE Parameters
Sunday, 3 March 2024
Prompt For CODING Student
Hello Dear CSE friends!
My teacher asked me to write code for binary search in python using iterative and recursive methods. optimize the code, debug, test, improve the complexities. I don't have time. Please help me to prompts for the above tasks!
How i should go!. Google it ! or ChatGPT! or Co Pilot! or GEMINI! or Perplexity,ai! any AI tool?
Let me try free version of Chat GPT 3.5.
Copy the above text and paste in text box and press play button. In hus seconds it give the following response
Of course! Here are the prompts tailored to each task your teacher assigned:
1. **Writing Binary Search Code (Iterative and Recursive):**
- Prompt: "Begin by implementing the binary search algorithm in Python using both iterative and recursive methods. Write clear and concise code that effectively searches for a target element within a sorted array. Compare and contrast the iterative and recursive approaches, considering factors such as readability, performance, and ease of implementation."
2. **Optimizing the Code:**
- Prompt: "Explore optimization strategies to enhance the efficiency and performance of your binary search implementations. Consider techniques such as minimizing unnecessary comparisons, reducing memory overhead, and optimizing boundary conditions. Experiment with different optimization approaches and analyze their impact on runtime complexity and resource utilization."
3. **Debugging and Testing:**
- Prompt: "Debugging is an essential part of the development process. Use systematic debugging techniques to identify and resolve errors in your binary search code. Develop comprehensive test cases to validate the correctness and robustness of your implementations across various input scenarios. Consider edge cases, boundary conditions, and extreme inputs to ensure the reliability of your code."
4. **Improving Complexities:**
- Prompt: "Challenge yourself to improve the time and space complexities of your binary search algorithms. Explore advanced algorithms and data structures that offer superior performance characteristics, such as the binary search tree or interpolation search. Experiment with algorithmic enhancements and optimizations to achieve optimal complexity levels while maintaining correctness and reliability."
5. **Documentation and Presentation:**
- Prompt: "Document your coding journey and findings in a comprehensive report or presentation. Provide clear explanations of your binary search implementations, optimization strategies, debugging process, and complexity improvements. Include code snippets, test cases, performance metrics, and insights gained from your exploration. Share your learnings with your teacher and peers to foster collaboration and knowledge exchange."
These prompts will help guide you through each stage of the binary search assignment, ensuring that you effectively manage your time and produce high-quality results. Good luck with your coding!
Let us try all these above prompts one by one
Prompt : Write code fo binary search using iterative and recursive in python
Prompt : Can you optimize the above codes
{Use (right - left) // 2
instead of (left + right) // 2
to prevent potential integer overflow when left
and right
are large.}
Prompt : Can you optimize the above codes
Prompt : Can you give test case for the above code
Prompt : Can you explain the code in detail
Prompt : Can you document the code.
Prompt : Can you compare the performance metrics for the above codes in short and table format
Prompt: Can you prepare power point 10 slides script for explaining above two codes to 10 year old kids.
{
Slide 1: Introduction
- Title: Let's Learn Binary Search!
- Welcome, everyone!
- Today, we're going to learn about a cool way to find things quickly in a list.
Slide 2: What's Binary Search?
- Binary search is like a game of "Guess the Number."
- Imagine you have a list of numbers in order, and you need to find one specific number.
Slide 3: How Does It Work?
- We start in the middle of the list and check if our number is there.
- If it's there, we found it! If not, we decide if it's higher or lower than the number we checked.
- Then we repeat the process with the half where the number might be.
Slide 4: Iterative Binary Search
- We have a list of numbers.
- We check the middle number first.
- If it's not the number we want, we decide if our number is higher or lower and look in the right half or left half.
- We keep doing this until we find our number or run out of numbers to check.
Slide 5: Recursive Binary Search
- Recursive means we call a function within itself.
- In our game, we keep playing "Guess the Number" with smaller and smaller lists until we find our number or run out of numbers to check.
Slide 6: Pros and Cons
- Iterative: Easy to understand, uses less memory.
- Recursive: Can be harder to understand, uses more memory.
Slide 7: Let's Play a Game!
- Imagine we have a list of numbers: [1, 3, 5, 7, 9, 11, 13, 15, 17, 19].
- We want to find the number 11.
- Let's play the binary search game together!
Slide 8: Iterative Binary Search Game
- We start in the middle (9) and see it's too low.
- Next, we check 15. Still too low!
- Then we check 17. Still too low!
- Finally, we check 19. Too high!
- We go back and check 15 again. We found it!
Slide 9: Recursive Binary Search Game
- We start in the middle (9) and see it's too low.
- We call the game again with the right half.
- Now, we start in the middle again (15). Too high!
- We call the game again with the left half.
- Now, we start in the middle (11). We found it!
- Slide 10: Conclusion
- Binary search is like a smart way to find things quickly in a list. We learned how to play the binary search game using both iterative and recursive methods!
- Keep practicing, and you'll become a binary search master! Feel free to adjust the script according to your preferences and add visuals to make the presentation engaging for the kids! }
- Happy coding with ChatGPT, Friends!
Making Prompts for Profile Web Site
Prompt: Can you create prompt to craft better draft in a given topic. Response: Sure! Could you please specify the topic for which you...
-
Good Afternoon!!! Let us Begin!!!☝ AI tools for Research Methodolgy Agenda Research: Systematic investigation into and study of materials an...
-
22CEBS401 Web Links for Assignment Answers. Go through it and verify answers. Assignment II Question II Part A: https://ametodl.blogsp...
-
Solving Numerical Problems with Elaborate Explanations 1. Correlation and Regression Analysis: a) Pearson Correlation Coefficient: We'...