Last updated at October 28, 2026 by Teachoo
Transcript
Algorithms in Daily Life Everyday tasks become easier when we follow clear steps. An elearafnats isa fi pfs sequence 366 clear, step-by-step histatins to complete a task or solve a problem. Start with what youhave —> Followthesteps —> Get a result Making a cup of tea INPUT: Water, tea bag, U' fater, tea bag, cup nh STEPS: @ Boil water in a kettle. Order matters: "1 put the tea bag in Put a tea bag in a cup. before steeping. © Pour hot water into the cup. © Wait 3 minutes, then remove the tea bag. © Add mitk or sugar if desired. Stir. OUTPUT: A cup of tea ng whether to carry an umbrella INPUT: Weather forecast STEPS: @D @ @ Check the forecast before leaving. Take an Leave it @ ssrain forecast? umbrella. at home. 8 If YES, take an umbrella. vl, If NO, leave the umbrella at home. <a DECISION: © Leave for your destination. Different conditions lead to different OUTPUT: A decision about carrying an umbrella actions. INPUT: The title of the book you want vl, STEPS: REPETITION: n Fs (1) Start at the left end of the shelf. Repeat a step until 2 j @© Read the title of the current book. a stopping condition is} | © fit matches, take the book and stop. ESuTe 8 7 © [fit does not match, move to the next book. 6 Repeat until you find it or reach the end. e If the shelf ends, report “Not found”. OUTPUT: The book, or “Not found” 4. Packing your school bag INPUT: Tomorrow's timetable and a checklist STEPS: ste @© Read tomorrow's timetable. CHECKLIST: (2) List the books and materials you need. Helps you. ee Checklist Take the first item on the list. missing a step. um ining it ths book Repeat for each remaining item. &Z Engish book © Putit in your bag and tick it off. & Science book 8 a C6 ) When every item is ticked, close the bag. EZ Notebook & Pencitcase OUTPUT: A bag ready for school THE BUILDING BLOCKS OF ALGORITHMS SEQUENCE: DECISION: REPETITION: (1203) Follow steps <> Choose using a ® Repeat until itis in order. condition. time to stop. Auseful algorithm tells you what to do, when to choose, and when to stop. Algorithm To bro asd ALGORITHMS IN DAILY LIFE Everyday tasks become easier when we follow clear steps. An elearafnats isa fi pfs sequence 366 clear, step-by-step histatins to complete a task or solve a problem. Start with what youhave —> Followthesteps —> Get a result Making a cup of tea INPUT: Water, tea bag, U' fater, tea bag, cup nh STEPS: @ Boil water in a kettle. Order matters: "1 put the tea bag in Put a tea bag in a cup. before steeping. © Pour hot water into the cup. © Wait 3 minutes, then remove the tea bag. © Add mitk or sugar if desired. Stir. OUTPUT: A cup of tea ng whether to carry an umbrella INPUT: Weather forecast STEPS: @D @ @ Check the forecast before leaving. Take an Leave it @ ssrain forecast? umbrella. at home. 8 If YES, take an umbrella. vl, If NO, leave the umbrella at home. <a DECISION: © Leave for your destination. Different conditions lead to different OUTPUT: A decision about carrying an umbrella actions. INPUT: The title of the book you want vl, STEPS: REPETITION: n Fs (1) Start at the left end of the shelf. Repeat a step until 2 j @© Read the title of the current book. a stopping condition is} | © fit matches, take the book and stop. ESuTe 8 7 © [fit does not match, move to the next book. 6 Repeat until you find it or reach the end. e If the shelf ends, report “Not found”. OUTPUT: The book, or “Not found” 4. Packing your school bag INPUT: Tomorrow's timetable and a checklist STEPS: ste @© Read tomorrow's timetable. CHECKLIST: (2) List the books and materials you need. Helps you. ee Checklist Take the first item on the list. missing a step. um ining it ths book Repeat for each remaining item. &Z Engish book © Putit in your bag and tick it off. & Science book 8 a C6 ) When every item is ticked, close the bag. EZ Notebook & Pencitcase OUTPUT: A bag ready for school THE BUILDING BLOCKS OF ALGORITHMS SEQUENCE: DECISION: REPETITION: (1203) Follow steps <> Choose using a ® Repeat until itis in order. condition. time to stop. Auseful algorithm tells you what to do, when to choose, and when to stop. Algorithm To bro asd ALGORITHMS IN DAILY LIFE Everyday tasks become easier when we follow clear steps. An elearafnats isa fi pfs sequence 366 clear, step-by-step histatins to complete a task or solve a problem. Start with what youhave —> Followthesteps —> Get a result Making a cup of tea INPUT: Water, tea bag, U' fater, tea bag, cup nh STEPS: @ Boil water in a kettle. Order matters: "1 put the tea bag in Put a tea bag in a cup. before steeping. © Pour hot water into the cup. © Wait 3 minutes, then remove the tea bag. © Add mitk or sugar if desired. Stir. OUTPUT: A cup of tea ng whether to carry an umbrella INPUT: Weather forecast STEPS: @D @ @ Check the forecast before leaving. Take an Leave it @ ssrain forecast? umbrella. at home. 8 If YES, take an umbrella. vl, If NO, leave the umbrella at home. <a DECISION: © Leave for your destination. Different conditions lead to different OUTPUT: A decision about carrying an umbrella actions. INPUT: The title of the book you want vl, STEPS: REPETITION: n Fs (1) Start at the left end of the shelf. Repeat a step until 2 j @© Read the title of the current book. a stopping condition is} | © fit matches, take the book and stop. ESuTe 8 7 © [fit does not match, move to the next book. 6 Repeat until you find it or reach the end. e If the shelf ends, report “Not found”. OUTPUT: The book, or “Not found” 4. Packing your school bag INPUT: Tomorrow's timetable and a checklist STEPS: ste @© Read tomorrow's timetable. CHECKLIST: (2) List the books and materials you need. Helps you. ee Checklist Take the first item on the list. missing a step. um ining it ths book Repeat for each remaining item. &Z Engish book © Putit in your bag and tick it off. & Science book 8 a C6 ) When every item is ticked, close the bag. EZ Notebook & Pencitcase OUTPUT: A bag ready for school THE BUILDING BLOCKS OF ALGORITHMS SEQUENCE: DECISION: REPETITION: (1203) Follow steps <> Choose using a ® Repeat until itis in order. condition. time to stop. Auseful algorithm tells you what to do, when to choose, and when to stop.