Page 39 - Touhpad Ai
P. 39

Real-Life Examples
                 Some real-life examples of deterministic problems are as follows:
                 u  Mathematical calculations: Any calculator, whether physical or digital, will always return 4 for the expression 2 + 2
                   because arithmetic rules ensure complete consistency.
                 u  Sorting algorithms: Algorithms like quicksort or merge sort always produce the same sorted output for identical input
                   lists since their logic follows strictly defined steps without randomness.
                 u  Physics (Projectile motion): Under classical mechanics, the path of a projectile (e.g., a thrown ball) can be predicted
                   precisely using its initial velocity and launch angle, provided factors like air resistance are ignored.
                 u  Simple pendulum: The time period of a simple pendulum can be calculated exactly from its length and the local
                   gravitational acceleration under ideal conditions.
                 u  Digital circuits: In computing and electronics, digital circuits (e.g., AND, OR, NOT gates) consistently produce the
                   same output for the same inputs.
                 u  Financial transactions: Processes like transferring money or executing stock trades follow a regulated, traceable
                   order, ensuring identical outcomes when repeated under the same conditions.
                 u  Safety-critical  systems: Systems  like  car  anti-lock  brakes,  aircraft  autopilot,  and  medical  pacemakers  rely  on
                   deterministic logic to guarantee predictable and reliable responses in every identical scenario.
                 u  Chemical reactions (ideal conditions): In controlled laboratory environments, simple chemical reactions yield the
                   same products for given reactants, allowing deterministic modelling.

                 Deterministic Logic in AI
                 AI applications where deterministic logic is used are as follows:
                 u  Rule-based chatbots: These chatbots work on predefined rules. If you ask the same question, you get the same
                   answer every time.
                    Example: A school chatbot always replies with "School timings are 8 AM to 2 PM" when you ask, "What are the school
                   timings?"
                 u  Data sorting or filtering tasks: AI can sort or filter information using set conditions, always giving the same result with
                   the same data.
                    Example: Sorting a list of students by marks or filtering students who scored above 90%.
                 u  Auto-grading of objective test answers: Multiple-choice or true/false questions can be graded automatically because
                   the correct answers are fixed.
                    Example: An online quiz platform marks answers as correct or wrong instantly.
                 u  Spam email detection (rule-based): AI can block emails containing specific keywords or patterns using strict rules.
                    Example: Emails with "lottery prize" or "free money" go directly to the spam folder.
                 u  Traffic signal timers (AI-controlled but deterministic): Signals change based on set timers, so the same time interval
                   always repeats unless changed manually.
                    Example: Green light stays on for 60 seconds, then turns red—same every time.

                 Probabilistic Problems
                 A probabilistic problem is one where the outcome is not guaranteed, even if the inputs look
                 the same. This happens because the system works with incomplete information, external
                 factors, or unpredictable elements, so it relies on probabilities, patterns, and predictions
                 rather than certainty.

                 Characteristics of Probabilistic Problems

                 Some characteristics of probabilistic problems are as follows:
                 u  Outcome can change, even for the same input.


                                                                                 Basic Concepts of Artificial Intelligence  37
   34   35   36   37   38   39   40   41   42   43   44