Page 44 - CT_AI_Class-5
P. 44

ai in action                           21 st
                                                                                                Century   #Critical Thinking
                In Lyla in the Loop: Vacuum Hockey, players guide a robot by placing             Skills
                arrows and boosters on a grid to reach the goal. It helps students learn step-by-step thinking
                and fix mistakes by testing and improving their instructions.
                Visit the given link or scan the QR code to access the application:
                https://pbskids.org/games/play/vacuum-hockey/875158









                  FLOW OF INSTRUCTIONS

                  The flow of instructions means the order in which steps are followed. In an algorithm,
                  the instructions always flow in a particular direction, usually from top to bottom.

                  Just like reading a book, you start at the first step and move forward, one step at
                  a time. This is called the flow of control and shows how one step leads to the next.


                  Types of Flow

                  The flow of instructions in an algorithm can happen in different ways, depending on
                  the problem and the steps involved. There are three main types of flow. Let us look
                  at each one carefully.


                  Sequence

                  In sequence, the steps happen one after another, in a fixed order, from start to
                  finish. No choices, no repeating, just follow the steps straight through. This is the

                  simplest type of flow.

                  Example:
                  Problem: Making a glass of chocolate milk

                  Algorithm:

                  Step 1   Start

                  Step 2   Go to the kitchen and take a clean mug.


                  Step 3   Add two teaspoons of hot chocolate powder
                            into the mug.

                  Step 4   Pour hot water into the mug.
                  Step 5   Stir the mixture well with a spoon.







                   42        Artificial Intelligence (CT & AI)-V
   39   40   41   42   43   44   45   46   47   48   49