Algorithmic Thinking with Python | Module - 1 Part - 1 | B.Tech. KTU 2024 Scheme | Semester - 1 |

TechTalkz
1 Sept 202412:30

Summary

TLDRIn this Tech Talks episode, a new series is introduced focusing on 'Algorithm Thinking with Python,' a common subject in the 2024 KTU curriculum. The session covers problem-solving strategies, fundamental Python programming, and computational approaches. The instructor walks through various problem-solving strategies like trial and error, heuristics, and backtracking, using practical examples to explain each. The aim is to teach students how to design and develop algorithms, with a focus on identifying solutions and refining strategies based on feedback. The session concludes by explaining how to solve problems using step-by-step processes.

Takeaways

  • 😀 The video introduces a new series on Algorithm Thinking with Python as per KTU's 2024 scheme.
  • 💻 The subject syllabus covers problem-solving, methods for designing and developing algorithms, fundamentals of Python programming, and computational approaches.
  • 🧠 Problem-solving involves identifying issues, finding possible solutions, and applying the best strategy to resolve the problem.
  • 🔍 Different problem-solving strategies include trial and error, heuristics, means-end analysis, and backtracking.
  • 💡 Trial and error is a basic strategy that involves trying multiple solutions until the problem is solved.
  • 🔧 Heuristics is a mental shortcut or rule of thumb, often used when quick solutions are needed with incomplete information.
  • 🔙 Backtracking involves solving a problem by working in reverse from the desired outcome.
  • 📊 Means-end analysis breaks down problems into smaller, manageable parts and solves them step by step.
  • 🧩 The importance of reviewing results to ensure that the expected outcome is achieved is emphasized.
  • 📚 The next section will explore the problem-solving process in more detail.

Q & A

  • What is the main subject introduced in the video?

    -The main subject introduced in the video is 'Algorithm Thinking with Python,' a common subject for all branches under the 2024 KTU scheme.

  • What are the key topics covered in this subject?

    -The key topics include problem-solving strategies, different methods of designing and developing algorithms, fundamentals of Python programming, and computational approaches to problem-solving.

  • What is the first module about?

    -The first module covers problem-solving strategies, the problem-solving process, and the essentials of Python programming.

  • What is problem-solving, as explained in the video?

    -Problem-solving is described as the process of finding solutions to challenges. It involves identifying the issue, finding possible solutions, selecting the best one, implementing it, and reviewing the results.

  • What are the problem-solving strategies mentioned?

    -The strategies mentioned include trial and error, heuristics, means-ends analysis, and backtracking.

  • How is the trial and error strategy explained?

    -Trial and error involves trying multiple solutions until the problem is resolved. If one approach fails, another is tried until the correct solution is found.

  • Can you give an example of the trial and error method?

    -An example is fixing a broken lamp. You might start by replacing the bulb, and if that doesn't work, check the plug or fuse, continuing this process until the lamp works.

  • What is the heuristic problem-solving method?

    -Heuristics are mental shortcuts or rules of thumb used to quickly solve problems when full information isn't available. An example is the guess and check method.

  • What is backtracking as a problem-solving strategy?

    -Backtracking is solving a problem in reverse order, starting with the desired outcome and working back to the current state. It’s useful in situations where the final goal is known.

  • What is means-ends analysis?

    -Means-ends analysis involves breaking a problem into smaller, manageable sub-problems, addressing each step-by-step to reach the final solution. It compares the current state with the goal and applies strategies to reduce the difference.

Outlines

00:00

💡 Introduction to Problem Solving and Python Fundamentals

The video introduces a new series focused on the KTU 2024 curriculum scheme, covering a subject called 'Algorithm Thinking with Python'. This subject is essential for all branches and includes topics like problem-solving strategies, methods for designing and developing algorithms, Python programming fundamentals, and computational approaches to problem-solving. The speaker dives into the first module, which is about problem-solving strategies, explaining that problem-solving involves identifying the issue, finding possible solutions, and applying the best strategy to overcome it. The key topics covered are the problem-solving process and essential Python programming concepts. The speaker emphasizes the importance of reviewing results to ensure the desired outcome is achieved.

05:01

🔄 Problem-Solving Strategies: Trial and Error, Heuristics

The video discusses various problem-solving strategies such as Trial and Error and Heuristics. The Trial and Error method involves trying multiple solutions until the problem is resolved, which can be effective but time-consuming. An example provided is fixing a broken lamp by replacing the bulb, checking the plug, or fuse until the lamp works again. The Heuristics method, on the other hand, uses mental shortcuts or 'rules of thumb' to quickly solve problems when full information isn’t available. A common heuristic method called 'Guess and Check' is illustrated through a simple math problem: finding the number that, when added to 15, gives 32. By making educated guesses and refining them, the problem can be solved efficiently.

10:03

🔙 Problem-Solving Strategy: Working Backwards

The third paragraph introduces a problem-solving strategy called 'Working Backwards' or 'Backtracking'. This strategy involves starting from the desired outcome and working in reverse order to reach the current state. An example problem is given: thinking of a number, doubling it, subtracting ten, and being left with 52. The solution is obtained by reversing each step to find the original number. Another example involves determining the ages of individuals based on their relationships, where the ages are calculated step-by-step in reverse. The working-backwards strategy is useful for problems where tracking steps from the solution to the initial state is more straightforward.

🛠️ Problem-Solving Strategy: Means and Analysis

The final paragraph discusses the 'Means and Analysis' strategy, which involves breaking down a problem into smaller, manageable sub-problems or sub-units, then addressing them step-by-step. The process includes identifying the goal, analyzing the current state, and comparing the two to understand the difference. The solution is then applied based on the identified differences. A graphical example is used to illustrate how the initial state (left side) is evaluated against the goal state (right side) and modified using three operations: delete, move, and expand. This strategy helps in reaching the final solution by incrementally transforming the current state to the desired state. The video ends by indicating that the next section will cover the problem-solving process in more detail.

Mindmap

Keywords

💡Problem Solving

Problem solving refers to the process of identifying a challenge and finding effective solutions to it. In the video, it is emphasized as a core skill for algorithm design and Python programming. The script details different approaches to problem-solving, including identifying the issue, brainstorming possible solutions, and selecting the best strategy to implement.

💡Trial and Error

Trial and error is a simple problem-solving strategy that involves testing multiple solutions until the correct one is found. In the video, the host gives an example of fixing a broken lamp by trying different solutions, like replacing the bulb or checking the plug, until the problem is resolved. This method can be time-consuming but is straightforward.

💡Heuristics

Heuristics are mental shortcuts or rules of thumb used to solve problems quickly when full information isn't available. The video explains this concept by discussing the 'Guess and Check' method, where the user makes an initial guess and refines it based on feedback, illustrating its application in situations requiring quick solutions.

💡Python Programming

Python programming refers to writing and executing code using the Python language, a key focus of the subject in the video. The syllabus outlined includes fundamental Python skills, such as algorithm design and computational approaches, necessary for solving problems using code.

💡Algorithm Design

Algorithm design involves creating a step-by-step solution or set of instructions to solve a specific problem. In the video, this is highlighted as a critical aspect of the subject, with students expected to learn different methods for developing algorithms that can solve various challenges efficiently.

💡Backtracking

Backtracking is a problem-solving strategy where the solution is approached in reverse, starting from the desired outcome and working backwards to the current state. The video uses an example of a number puzzle where backtracking is used to determine the original number based on given operations and results.

💡Means-Ends Analysis

Means-ends analysis is a strategy that involves breaking down a problem into smaller, manageable sub-problems, addressing each step-by-step. The video explains how this method helps by comparing the current state with the desired goal and applying the necessary actions or methods to achieve it.

💡Computational Approaches

Computational approaches refer to using computers and algorithms to solve problems. In the context of the video, this involves using Python programming to develop solutions that can automate problem-solving processes, a key learning outcome of the syllabus.

💡Guess and Check

Guess and Check is a heuristic method where an initial guess is made, and its correctness is verified, followed by refinement if needed. The video illustrates this with a mathematical example where the number that, when added to 15, gives 32 is found by making and checking guesses.

💡Review Results

Reviewing results is the final step in the problem-solving process, where the solution is evaluated to ensure it meets the desired outcome. In the video, this is highlighted as crucial, as it involves verifying that the problem is fully solved and the results are correct.

Highlights

Introduction to the new KTU 2024 syllabus with Algorithm Thinking using Python, a common subject across all branches.

Main syllabus topics include problem-solving, algorithm design methods, Python fundamentals, and computational approaches.

First module focuses on problem-solving strategies, processes, and essentials of Python programming.

Problem-solving is about identifying the issue, finding solutions, and applying the best strategy to overcome it.

The importance of reviewing results to ensure the solution has worked as intended.

Different problem-solving strategies include trial and error, heuristics, means and analysis, and backtracking.

Trial and error involves testing multiple solutions and adjusting until the problem is resolved.

Heuristics are mental shortcuts used for quick solutions when full information is unavailable.

The guess and check method in heuristics: make an initial guess, check the outcome, and refine the guess based on the feedback.

Example of solving a simple math problem using the guess and check method.

Backtracking is solving a problem in reverse order, starting from the desired outcome and working backwards to the current state.

Example of backtracking used to solve a problem of determining an original number based on final result.

Explanation of a more complex problem using backtracking, involving ages of multiple individuals.

Means and analysis strategy involves breaking a problem into smaller, manageable sub-problems and solving them step by step.

Example of solving a graphical problem using means and analysis, comparing current and required states to reach the final solution.

Transcripts

play00:02

ഹായ് ഓൾ വെൽക്കം ടു ടെക് ടോക്സ് ഇന്ന്

play00:05

ഞങ്ങൾ പുതിയതായിട്ട് ഒരു സീരീസ്

play00:07

സ്റ്റാർട്ട് ചെയ്യുകയാണ് കെ ടിയു ന്റെ

play00:09

2024 സ്കീം അനുസരിച്ച് എല്ലാ ബ്രാഞ്ചസിനും

play00:13

ഒരുപോലെ പഠിക്കേണ്ട ഒരു സബ്ജക്റ്റ് ആണ്

play00:15

അൽഗോരിതം തിങ്കിങ്ഗ് വിത്ത്

play00:19

പൈത്തൺ ഈ കാണുന്നതാണ് ഈ സബ്ജക്റ്റിന്റെ

play00:23

സിലബസ് പ്രോബ്ലം സോൾവിങ് ഡിഫറെൻറ്

play00:26

മെത്തേഡ്സ് ഓഫ് ഡിസൈനിങ് ആൻഡ് ഡെവലപ്പിംഗ്

play00:28

അൽഗോറിതംസ് ഓർ സൊല്യൂഷൻ

play00:33

ഫണ്ടമെന്റൽസ് ഓഫ് പൈത്തൺ

play00:35

പ്രോഗ്രാമിംഗ് കമ്പ്യൂട്ടേഷണൽ അപ്രോച്ചസ്

play00:38

ടു പ്രോബ്ലം സോൾവിങ് എന്നിവയാണ് ഈ

play00:41

സബ്ജക്റ്റിൽ മെയിൻ ആയിട്ട് പഠിക്കാനുള്ളത്

play00:46

ഓക്കേ നമുക്ക് സമയം കളയാതെ തന്നെ ഫസ്റ്റ്

play00:48

മോഡ്യൂളിലേക്ക് പോകാം

play00:51

ഫസ്റ്റ് മോഡ്യൂളിൽ നമുക്ക് കവർ

play00:52

ചെയ്യാനുള്ളത് ഏതൊക്കെയാണ് പ്രോബ്ലം

play00:54

സോൾവിങ്

play00:55

സ്ട്രാറ്റജീസ് പ്രോബ്ലം സോൾവിങ് പ്രോസസ്സ്

play00:58

ആൻഡ് എസ്സെൻഷ്യൽ ഓഫ് പൈത്തൺ

play01:04

പ്രോഗ്രാമിംഗ് ഫസ്റ്റ് ടോപ്പിക് ഈസ്

play01:06

പ്രോബ്ലം സോൾവിങ്

play01:08

സ്ട്രാറ്റജീസ് എന്താണ് പ്രോബ്ലം

play01:14

സോൾവിങ് പ്രോബ്ലം സോൾവിങ് ഈസ് എസ്സെൻഷ്യലി

play01:17

അവർ വേ ഓഫ് ഫൈൻഡിങ് സൊല്യൂഷൻസ് ടു ദി

play01:20

ചാലഞ്ചസ് വി ഫേസ് ചാലഞ്ചസ് അല്ലെങ്കിൽ

play01:23

നമുക്ക് നേരിടേണ്ടി വരുന്ന പ്രോബ്ലംസ്

play01:25

എന്ന് പറയുന്നത് വളരെയധികം സിമ്പിൾ

play01:27

ആയിട്ടുള്ളവ ആയിരിക്കും അല്ലെങ്കിൽ വളരെ

play01:29

കോംപ്ലക്സ് ആയിരിക്കും ആയിട്ടുള്ളവ

play01:30

ആയിരിക്കാം എനിവേയ്സ് പ്രോസസ് ഓഫ് സോൾവിങ്

play01:33

എ പ്രോബ്ലം ഇൻവോൾവ്സ് ഐഡന്റിഫൈ ദി ഇഷ്യൂ

play01:36

ഫൈൻഡ് ഔട്ട് ദി പോസിബിൾ സൊല്യൂഷൻസ് ആൻഡ്

play01:39

അപ്ലൈ ദി ബെസ്റ്റ് സ്ട്രാറ്റജി ടു ഓവർകം

play01:42

ഇറ്റ് അതുപോലെതന്നെ റിവ്യൂ ദി

play01:46

റിസൾട്ട്സ് പ്രോബ്ലം എന്താണെന്നുള്ളത്

play01:49

മനസ്സിലാക്കുക പ്രോബ്ലം സോൾവ് ചെയ്യാനുള്ള

play01:52

എല്ലാവിധ സൊല്യൂഷൻസും ഐഡന്റിഫൈ ചെയ്യുക

play01:55

അതിൽ തന്നെ ഏറ്റവും ബെസ്റ്റ് ആയിട്ടുള്ള

play01:57

സൊല്യൂഷൻ സെലക്ട് ചെയ്ത് അതിനെ

play01:59

ഇംപ്ലിമെന്റ്

play02:00

ചെയ്യുക അതുപോലെതന്നെ പ്രധാനമാണ്

play02:03

റിസൾട്ട്സ് റിവ്യൂ ചെയ്യുക എന്നുള്ളത്

play02:06

നമുക്ക് കിട്ടേണ്ട റിസൾട്ട് വന്നിട്ടുണ്ടോ

play02:08

എന്ന് ഉറപ്പുവരുത്തുക

play02:12

നെക്സ്റ്റ് ഈസ് വാട്ട് ആർ പ്രോബ്ലം

play02:14

സോൾവിങ് സ്ട്രാറ്റജീസ് ഒരു പ്രോബ്ലം സോൾവ്

play02:17

ചെയ്യുന്നതിനായിട്ട് നമുക്ക് ഡിഫറെൻറ്

play02:18

സ്ട്രാറ്റജീസ് ഫോളോ ചെയ്യാം നമ്മുടെ

play02:20

സിലബസിൽ മെൻഷൻ ചെയ്തിരിക്കുന്ന ചില

play02:22

സ്ട്രാറ്റജീസ് ആണ് ഈ തന്നിരിക്കുന്നത്

play02:24

അതായത് ട്രയൽ ആൻഡ് എറർ

play02:27

ഹ്യൂറിസ്റ്റിക്സ് മീൻസ് ആൻഡ് അനാലിസിസ്

play02:30

ബാക്ക് ട്രാക്കിങ്

play02:33

എക്സെറ്റ ഇതിൽ തന്നെ ഏറ്റവും സിമ്പിൾ

play02:36

ആയിട്ടുള്ള ഒരു സ്ട്രാറ്റജി ആണ് ട്രയൽ

play02:37

ആൻഡ്

play02:38

എറർ ഇറ്റ് ഇൻവോൾവ്സ് ട്രയിങ് മൾട്ടിപ്പിൾ

play02:41

സൊല്യൂഷൻസ് ആൻഡ് ദി പ്രോബ്ലം ഈസ്

play02:43

റിസോൾവ്ഡ് ഒരു അപ്രോച്ച് ഫെയിൽ ആയാൽ

play02:45

മറ്റൊരു അപ്രോച്ച് ട്രൈ ചെയ്യുക ഫൈനൽ

play02:48

സൊല്യൂഷൻ കിട്ടുന്നതുവരെ ഈ ഒരു പ്രോസസ്സ്

play02:50

കണ്ടിന്യൂ

play02:51

ചെയ്യുകയാണ് ഇത്തരത്തിലുള്ള ഒരു സിമ്പിൾ

play02:53

ആയിട്ടുള്ള സ്ട്രാറ്റജി ആണ് ട്രയൽ ആൻഡ്

play02:56

എറർ ഇൻട്രെസ്റ്റിംഗ് ആയിട്ടുള്ള ഒരു

play02:58

എക്സാമ്പിൾ പറയുകയാണെങ്കിൽ suppose you

play03:00

are trying to fix a b ബ്രോക്കൺ

play03:02

ലാമ്പ് എങ്ങനെയായിരിക്കും നിങ്ങൾ ഈ ഒരു

play03:05

പ്രോബ്ലം സോൾവ് ചെയ്യുക ഫസ്റ്റ് യു മൈറ്റ്

play03:07

സ്റ്റാർട്ട് ബൈ റീപ്ലേസിങ് ദി ബൾബ്

play03:09

അപ്പോഴും വർക്ക് ചെയ്തില്ലെങ്കിലോ

play03:11

ദെൻ യു മൈറ്റ് ചെക്ക് ദി പ്ലഗ് ഓർ ഫ്യൂസ്

play03:14

ഇതുപോലെ യു മേ കീ ട്രയിങ് ഡിഫറെന്റ്

play03:17

തിങ്സ് ആൻഡ് ദി ലാബ് സ്റ്റാർട്ട്സ്

play03:18

വർക്കിംഗ്

play03:19

എഗൈൻ ഇതൊരു സിമ്പിൾ പ്രോസസ് ആണ് ബട്ട്

play03:23

വളരെ ടൈം കൺസ്യൂമിങ് ആണ്

play03:28

നെക്സ്റ്റ് പ്രോബ്ലംസ് സ്ട്രാറ്റജി ഈസ്

play03:32

ഹ്യൂറിസ്റ്റിക്സ് ഹ്യൂറിസ്റ്റിക്സ് ആർ

play03:34

മെന്റൽ ഷോർട്ട് കട്ട്സ് അല്ലെങ്കിൽ റൂൾസ്

play03:36

ഓഫ് തമ്പ് എന്നും പറയാറുണ്ട് ഫുൾ ഇൻഫർമേഷൻ

play03:39

അവൈലബിൾ അല്ല അതുപോലെതന്നെ വളരെ ക്വിക്ക്

play03:41

ആയിട്ട് ഒരു സൊല്യൂഷൻ വേണമെങ്കിൽ

play03:43

ഹ്യൂറിസ്റ്റിക് പ്രോബ്ലം സോൾവ് ചെയ്യാൻ

play03:44

ട്രൈ

play03:45

ചെയ്യാവുന്നതാണ് ഒരു ഹ്യൂറിസ്റ്റിക്

play03:47

മെത്തേഡ് ആണ് ഗെസ്സ് ആൻഡ് ചെക്ക് ഗെസ്സ്

play03:50

ആൻഡ് ചെക്ക് എങ്ങനെയാണ് വർക്ക്

play03:52

ചെയ്യുന്നത് എന്ന് നോക്കാം

play03:55

ഫസ്റ്റ് സ്റ്റെപ്പ് എന്ന് പറയുന്നത്

play03:56

മേക്ക് ആൻ ഇനിഷ്യൽ ഗെസ് വളരെ പോസിബിൾ

play03:59

ആയിട്ടുള്ള ഒരു സൊല്യൂഷൻ ഗെസ്സ് ചെയ്യുക

play04:01

ദെൻ ആ ഒരു ഗെസ്സ് കറക്റ്റ് ആണോ എന്ന്

play04:03

ചെക്ക്

play04:05

ചെയ്യുക അതിനുശേഷം റിഫൈൻ ദി ഗെസ്സ് അതായത്

play04:09

ഗെസ്സ് കറക്റ്റ് അല്ലെങ്കിൽ ഇപ്പോൾ

play04:11

കിട്ടിയ ഇൻഫർമേഷൻ അനുസരിച്ച് ബെറ്റർ

play04:13

ആയിട്ടുള്ള മറ്റൊരു സൊല്യൂഷൻ ഗെസ്സ്

play04:15

ചെയ്യുക അവിടെയും മറ്റൊരു സൊല്യൂഷൻ ഗെസ്സ്

play04:18

ചെയ്യുകയാണ് കറക്റ്റ് ആകുന്നതുവരെ ഈ ഒരു

play04:21

പ്രോസസ്സ് കണ്ടിന്യൂ ചെയ്യുക ഗെസ്സ് ആൻഡ്

play04:24

ചെക്ക് മെത്തേഡ് അനുസരിച്ച് വളരെ സിമ്പിൾ

play04:26

ആയിട്ടുള്ള ഒരു മാത് പ്രോബ്ലം എങ്ങനെയാണ്

play04:28

സോൾവ് ചെയ്യുന്നത് എന്ന് നോക്കാം

play04:30

ക്വസ്റ്റ്യൻ ഇതാണ് ഫൈൻഡ് ദി നമ്പർ ദാറ്റ്

play04:33

വെൻ ആഡഡ് ടു 15 ഗിവ്സ്

play04:37

32 ഏത് നമ്പർ 15 ന്റെ കൂടെ ആഡ് ചെയ്താൽ 32

play04:41

കിട്ടും ഇതിൻറെ ആൻസർ പല രീതിയിൽ നമുക്ക്

play04:44

ചെയ്യാൻ കഴിയും ഡയറക്റ്റ് ആയിട്ട് 32

play04:47

മൈനസ് 15 ചെയ്താൽ നമുക്ക് ഇതിന്റെ ആൻസർ

play04:50

കിട്ടും ബട്ട് ഗെസ്സ് ആൻഡ് ചെക്ക്

play04:52

മെത്തേഡ് അനുസരിച്ച് എങ്ങനെ നമുക്കിത്

play04:54

ചെയ്യാം എന്ന് നോക്കാം ഫസ്റ്റ് ഗെസ്സ്

play04:57

എന്ന് പറയുന്നത് അതായത് നമ്പർ 20 ആണെന്ന്

play04:59

ഗെസ്

play05:01

ചെയ്യുക ആൻഡ് ചെക്ക് 15 പ്ലസ് 20 വിച്ച്

play05:05

ഈസ് 35 ആൻഡ് ദിസ് ഈസ് ടൂ ഹൈ നമുക്ക്

play05:08

വേണ്ടത് 15 ആയിട്ട് ആഡ് ചെയ്യുമ്പോൾ 32

play05:11

ആണ് വരേണ്ടത് സോ റിഫൈൻ ദി ഗസ് സിൻസ് 35

play05:16

ഈസ് ടൂ ഹൈ യു ക്യാൻ ലോവർ യുവർ ഗെസ്സ് ടു

play05:20

18 മറ്റൊരു ഗസ് 18 ആണ് ആൻഡ് ചെക്ക് എഗൈൻ

play05:24

15 പ്ലസ് 18 ഈസ് 33 വളരെ ക്ലോസ് ആയിട്ട്

play05:28

വന്നിട്ടുണ്ട് ബട്ട് നമുക്ക് വേണ്ടത് 32

play05:31

ആണ് സോ റിഫൈൻഡ് ദി ഗെസ് ബൈ ലോവറിങ് ദി

play05:35

നമ്പർ ടു 17 ആൻഡ് ചെക്ക് എഗൈൻ ഇപ്പോഴത്തെ

play05:39

നമ്മുടെ ഗെസ്സ് എന്ന് പറയുന്നത് 17 ആണ് 15

play05:42

പ്ലസ് 17 വിച്ച് ഈസ് 32 ആൻഡ് ദിസ് ഈസ്

play05:46

കറക്റ്റ് അതായത് ഓരോ വൈൽഡ് ഗെസ്സിനെയും

play05:49

ചെക്ക് ചെയ്ത് ദെൻ റിഫൈൻ ചെയ്ത് ലീഡിങ് ടു

play05:52

ദി

play05:55

സൊല്യൂഷൻ ഗെസ് ആൻഡ് ചെക്ക് വളരെ സിമ്പിൾ

play05:58

ആയിട്ടുള്ള ഒരു പ്രോസസ് ആണ് എസ്പെഷ്യലി ഇൻ

play06:00

സിറ്റുവേഷൻ വെർ അതർ മെത്തേഡ്സ് ആർ നോട്ട്

play06:02

അവൈലബിൾ ബട്ട് നേരത്തെ പറഞ്ഞ മെത്തേഡ്

play06:05

പോലെ തന്നെ ഇതും ഒരു ടൈം കൺസ്യൂമിങ്

play06:07

പ്രോസസ് ആണ്

play06:11

നെക്സ്റ്റ് ഹ്യൂറിസ്റ്റിക് പ്രോബ്ലം

play06:12

സോൾവിങ് മെത്തേഡ് ഈസ് വർക്കിംഗ് ബാക്ക്

play06:14

വേർഡ്സ് അല്ലെങ്കിൽ ബാക്ക് ട്രാക്കിങ്

play06:18

ദിസ് മീൻസ് പ്രോബ്ലം ഈസ് സോൾവ്ഡ് ഇൻ

play06:20

റിവേഴ്സ് ഓർഡർ ഇറ്റ് ഈസ് എ പ്രോബ്ലം

play06:22

സോൾവിങ് സ്ട്രാറ്റജി വെർ വി സ്റ്റാർട്ട്

play06:25

വിത്ത് ദി ഡിസൈർഡ് ഔട്ട്കം ആൻഡ് വർക്ക്

play06:27

അവർ വേ ബാക്ക് ടു ദി കറന്റ് സ്റ്റേറ്റ്

play06:30

അതായത് എൻഡ് റിസൾട്ട് അല്ലെങ്കിൽ നമ്മുടെ

play06:32

ഫൈനൽ ഗോളിൽ നിന്നും റിവേഴ്സ് ഓർഡറിൽ സോൾവ്

play06:36

ചെയ്ത് ഫൈനൽ ആൻസറിൽ എത്തിച്ചേരും ഒരു

play06:38

എക്സാമ്പിൾ കൂടി പറയുകയാണെങ്കിൽ

play06:40

നിങ്ങൾക്ക് കുറച്ചുകൂടി

play06:43

വ്യക്തമാകും സോ അതിനായിട്ട് ഒരു പ്രോബ്ലം

play06:46

നോക്കാം പ്രോബ്ലം ഈസ് തിങ്ക് എ നമ്പർ ദെൻ

play06:51

ഡബിൾ ഇറ്റ് ദെൻ സബ്ട്രാക്ട് ടെൻ ദെൻ ഐ ആം

play06:55

ലെഫ്റ്റ് വിത്ത് 52 വാട്ട് വാസ് ദി

play06:58

ഒറിജിനൽ നമ്പർ

play07:00

ഇവിടെ പ്രോബ്ലത്തിന്റെ ലാസ്റ്റ് കിട്ടിയ

play07:02

നമ്പർ നോക്കുക ദാറ്റ് ഈസ്

play07:04

52 ഈ ഒരു പ്രോബ്ലം റിവേഴ്സ് ഓർഡറിൽ സോൾവ്

play07:08

ചെയ്തു നോക്കുക അല്ലെങ്കിൽ ട്രാക്ക്

play07:09

ചെയ്തു നോക്കുക

play07:11

ലാസ്റ്റ് സ്റ്റേറ്റ്മെൻറ് ഇതാണ്

play07:14

സബ്ട്രാക്ട് ടെൻ ദെൻ ഐ ആം ലെഫ്റ്റ് വിത്ത്

play07:18

52 സബ്ട്രാക്ഷന്റെ ഓപ്പോസിറ്റ് ചെയ്യുക

play07:22

ദാറ്റ് ഈസ് 52 പ്ലസ് ടെൻ വിച്ച് ഈസ്

play07:26

62 റിമൈനിങ് റിവേഴ്സ് ഓർഡറിൽ തന്നെ

play07:29

ട്രാക്ക് ചെയ്യുക അവിടെ ഡബിൾ എന്നൊരു

play07:31

സ്റ്റേറ്റ്മെൻറ് ഉണ്ട് അവിടെ ഡബിൾ

play07:34

ചെയ്യുന്നതിനു പകരം അതിൻറെ ഓപ്പോസിറ്റ്

play07:36

ചെയ്യുക അപ്പൊ ഇപ്പോൾ കിട്ടിയ നമ്പർ 62

play07:39

അതിനെ ഡിവൈഡ് ബൈ ടു ദാറ്റ് ഈസ് 62 ഡിവൈഡ്

play07:42

ബൈ ടു വിച്ച് ഈസ് 31 ആൻഡ് 31 ഈസ് ദി

play07:46

ഒറിജിനൽ നമ്പർ നമുക്കൊന്ന് വെരിഫൈ ചെയ്തു

play07:49

നോക്കാം നോർമൽ ഡയറക്ഷനിൽ തന്നെ സോൾവ്

play07:52

ചെയ്തു നോക്കാം നമ്മുടെ നമ്പർ 31 ആണ് 31

play07:55

ഡബിൾ ചെയ്താൽ

play07:57

31*2 വിച്ച് ഈസ് 62 62 ൽ നിന്ന് ടെൻ

play08:01

സബ്ട്രാക്ട് ചെയ്താൽ 52 ഓക്കേ അത്

play08:04

കറക്റ്റ് ആയിട്ടുള്ള ആൻസർ

play08:08

ആണ് ഒരു പ്രോബ്ലം കൂടി നോക്കാം പ്രോബ്ലം

play08:12

ഈസ് ജിസി ഈസ് 21 ഇയേഴ്സ് ഓൾഡർ ദാൻ പൂജ

play08:17

ആൻഡ് അനാമിക ഈസ് ഹാഫ് പൂജാസ്

play08:20

ഏജ് പാർത്തിവ് ഈസ് ത്രീ ഇയർ യങ്ങer ദാൻ

play08:25

അനാമിക ഇഫ് പാർത്തിവ് ഈസ് ടു ഇയർസ് ഓൾഡ്

play08:28

ഹൗ ഓൾഡ് ഈസ് ജെസി

play08:32

ഓക്കേ നമുക്കിതിനെ റിവേഴ്സ് ഓർഡറിൽ തന്നെ

play08:34

ചെയ്തു നോക്കാം ലാസ്റ്റ് സ്റ്റേറ്റ്മെൻറ്

play08:37

എന്ന് പറയുന്നത് പാർത്തിവ് ഈസ് ടു ഇയേഴ്സ്

play08:39

ഓൾഡ് ആ ഒരു സ്റ്റേറ്റ്മെന്റിൽ നിന്ന്

play08:42

തന്നെ ഏജ് ഓഫ് പാർത്തിവ് ഈസ് ഈക്വൽ ടു ടു

play08:45

ഇയേഴ്സ് വീണ്ടും റിവേഴ്സ് ഓർഡറിൽ ട്രാക്ക്

play08:48

ചെയ്യുക നെക്സ്റ്റ് പാർത്തിവ് ഈസ് ത്രീ

play08:50

ഇയേഴ്സ് യങ്ങer ദാൻ

play08:53

അനാമിക സോ ഏജ് ഓഫ് അനാമിക ഈസ് ടു പ്ലസ്

play08:57

ത്രീ വിച്ച് ഈസ് ഫൈവ് ഇയേഴ്സ് ദേർഫോർ ഏജ്

play09:01

ഓഫ് അനാമിക ഫൈവ്

play09:03

ഇയേഴ്സ് വീണ്ടും റിവേഴ്സ് ഹോളിൽ ട്രാക്ക്

play09:06

ചെയ്യുക റിവേഴ്സ് ഹോളിൽ ട്രാക്ക്

play09:09

ചെയ്യുമ്പോൾ ആ ഒരു സ്റ്റേറ്റ്മെൻറ്

play09:10

നോക്കുക അനാമിക ഈസ് ഹാഫ് പൂജാസ് ഏജ്

play09:14

ദേർഫോർ ഏജ് ഓഫ് പൂജ വിച്ച് ഈസ് ടോയ്സ് ഓഫ്

play09:18

അനാമിക ഏജ് വിച്ച് ഈസ് ടു ഇൻടു ഫൈവ്

play09:23

വിച്ച് ഈസ് ടെൻ ഇയേഴ്സ് ഏജ് ഓഫ് പൂജ ഈസ്

play09:26

ടെൻ ഇയേഴ്സ്

play09:30

സ്റ്റേറ്റ്മെന്റ് റിവേഴ്സ് ഓർഡറിൽ തന്നെ

play09:31

നോക്കുമ്പോൾ ജിസി ഈസ് 21 ഇയേഴ്സ് ഓൾഡർ ദാൻ

play09:35

പൂജ ഫ്രം ദിസ് സ്റ്റേറ്റ്മെൻറ് ഏജ് ഓഫ്

play09:39

ജിസി = 21 പ്ലസ് ഏജ് ഓഫ് പൂജ 21 പ്ലസ് ടെൻ

play09:44

വിച്ച് ഈസ് 31 സോ ഏജ് ഓഫ് ജിസി ഈസ് 31

play09:49

ഇയേഴ്സ്

play09:52

ഓക്കേ ഇങ്ങനെ റിവേഴ്സ് ഡയറക്ഷനിൽ പ്രോബ്ലം

play09:55

സോൾവ് ചെയ്യുന്ന സ്ട്രാറ്റജി ആണ്

play09:56

വർക്കിംഗ് ബാക്ക് വേർഡ്സ് അല്ലെങ്കിൽ

play09:58

ബാക്ക് ട്രാക്കിങ്

play10:00

നെക്സ്റ്റ് പ്രോബ്ലം സോൾവിങ് സ്ട്രാറ്റജി

play10:02

ഈസ് മീൻസ് ആൻഡ് അനാലിസിസ് അല്ലെങ്കിൽ എംഇ

play10:07

എ ഇൻ മീൻസ് ആൻഡ് അനാലിസിസ് പ്രോബ്ലം ഈസ്

play10:11

ബ്രേക്കിങ് ഡൗൺ ഇൻടു സ്മാളർ മാനേജബിൾ സബ്

play10:14

പ്രോബ്ലംസ് ഓർ സബ് യൂണിറ്റ്സ് ദെൻ

play10:18

അഡ്രസ്സ് ഇറ്റ് ഓർ സോൾവ് ഇറ്റ് സ്റ്റെപ്പ്

play10:20

ബൈ സ്റ്റെപ്പ് ഇവിടെ മീൻസ് എന്ന്

play10:23

പറയുന്നത് ആക്ഷൻസ് അല്ലെങ്കിൽ മെത്തേഡ്സ്

play10:25

ഓർ സ്ട്രാറ്റജീസ് യൂസ്ഡ് ടു അച്ചീവ് എ

play10:28

സ്പെസിഫിക് ഗോൾ

play10:31

ഫസ്റ്റ് സ്റ്റെപ്പ് എന്ന് പറയുന്നത്

play10:33

ഐഡന്റിഫൈ ദി ഗോൾ ദെൻ അനലൈസ് ദി കറൻറ്

play10:36

സ്റ്റേറ്റ് ദെൻ നമ്മുടെ ഗോളും കറൻറ്

play10:40

സ്റ്റേറ്റും കംപെയർ ചെയ്ത് എന്താണ്

play10:42

ഡിഫറൻസ് എന്നത് മനസ്സിലാക്കുക

play10:44

അതിനനുസരിച്ചുള്ള സൊല്യൂഷൻസ് കണ്ടെത്തി

play10:47

അപ്ലൈ

play10:48

ചെയ്യുന്നു വളരെ സിമ്പിൾ ആയിട്ടുള്ള ഒരു

play10:50

എക്സാമ്പിൾ നോക്കാം ഒരു ഗ്രാഫിക്കൽ

play10:52

എക്സാമ്പിൾ ആണ് ആ ലെഫ്റ്റ് സൈഡിൽ

play10:54

കാണിച്ചിരിക്കുന്നതാണ് നമ്മുടെ ഇപ്പോഴത്തെ

play10:56

സ്റ്റേറ്റ് അതായത് പ്രോബ്ലത്തിന്റെ

play10:58

സ്റ്റാർട്ടിങ് സ്റ്റേറ്റ് ഓർ ഇനിഷ്യൽ

play11:01

സ്റ്റേറ്റ് റൈറ്റ് സൈഡിൽ

play11:03

കാണിച്ചിരിക്കുന്നതാണ് നമുക്ക് വേണ്ടുന്ന

play11:04

സ്റ്റേറ്റ് അല്ലെങ്കിൽ റിക്വയർഡ്

play11:06

സ്റ്റേറ്റ് ഓർ ഗോൾ സ്റ്റേറ്റ്

play11:09

ഫസ്റ്റ് നമുക്ക് ആ ഒരു ഇനിഷ്യൽ സ്റ്റേറ്റ്

play11:11

ഇവാലുവേറ്റ് ചെയ്യാം അതുപോലെ ഗോൾ

play11:13

സ്റ്റേറ്റിൽ എങ്ങനെ നമുക്ക് എത്തിച്ചേരാം

play11:15

അല്ലെങ്കിൽ റീച്ച് ചെയ്യാം എന്നുള്ളത്

play11:17

നോക്കുക ആദ്യം തന്നെ ഇപ്പോഴത്തെ

play11:20

സ്റ്റേറ്റില് റൈറ്റ് കോർണറിലുള്ള ബ്ലാക്ക്

play11:22

ഡോട്ട് നമുക്ക് ആവശ്യമില്ല സോ യൂസ് ദി

play11:25

ഡിലീറ്റ് ഓപ്പറേറ്റർ ടു റിമൂവ് ഇറ്റ്

play11:28

ഓക്കേ എഗൈൻ ഇപ്പോഴത്തെ സ്റ്റേറ്റും

play11:31

റിക്വയർഡ് സ്റ്റേറ്റും കംപയർ ചെയ്യുക ആൻഡ്

play11:34

വി നോട്ടീസ് ദാറ്റ് ദി സ്ക്വയർ ഈസ്

play11:36

ഔട്ട്സൈഡ് ദി സർക്കിൾ സോ മൂവ് ഓപ്പറേറ്റർ

play11:39

യൂസ് ചെയ്ത് സ്ക്വയർ ബോക്സിനെ സർക്കിളിനെ

play11:41

പുറത്തു

play11:43

കൊണ്ടുവരാം എഗൈൻ കറന്റ് സ്റ്റേറ്റും

play11:46

റിക്വയർഡ് സ്റ്റേറ്റും കംപയർ ചെയ്യുക ആൻഡ്

play11:48

വീഡ് ടു എക്സ്പാൻഡ് ദി സ്ക്വയർ ബോക്സ്

play11:51

ഫൈനലി വി അപ്ലൈ ദി എക്സ്പാൻഡ് ഓപ്പറേറ്റർ

play11:54

ടു കൺസ്ട്രക്ട് ദി ഡിസൈഡ്

play11:57

സ്റ്റേറ്റ് ഇവിടെ നമ്മൾ ത്രീ

play11:59

ഓപ്പറേറ്റേഴ്സ് ആണ് യൂസ് ചെയ്തത് ഫസ്റ്റ്

play12:02

ഡിലീറ്റ് ഓപ്പറേറ്റർ സെക്കൻഡ് മൂവ്

play12:05

ഓപ്പറേറ്റർ തേർഡ് എക്സ്പാൻഡ്

play12:08

ഓപ്പറേറ്റർ സോ ഒരു പ്രോബ്ലം സോൾവ്

play12:11

ചെയ്യാനായിട്ട് ഡിഫറെൻറ് സ്റ്റേറ്റ്സ്

play12:12

ആയിട്ട് ഡിവൈഡ് ചെയ്ത് ഫൈനൽ സൊല്യൂഷൻ

play12:15

എത്തിച്ചേരുന്ന രീതിയാണ് നമ്മൾ ഇവിടെ

play12:17

കണ്ടത് ദിസ് ഈസ് മീൻസ് ആൻഡ്

play12:20

അനാലിസിസ് അടുത്ത സെക്ഷനിൽ പ്രോബ്ലം

play12:23

സോൾവിങ് പ്രോസസ്സ് എങ്ങനെയാണെന്ന്

play12:25

പഠിക്കാം ആൻഡ് സീ യു ഇൻ ദി നെക്സ്റ്റ്

play12:27

ക്ലാസ് താങ്ക്യൂ

Rate This

5.0 / 5 (0 votes)

Связанные теги
Python ProgrammingProblem SolvingAlgorithmsHeuristicsKTU SyllabusTrial and ErrorBacktrackingComputational ThinkingPython FundamentalsLearning Strategies
Вам нужно краткое изложение на английском?