Presentation is loading. Please wait.

Presentation is loading. Please wait.

Unit 3 lesson 2&3 The Need For Algorithms- Creativity in Algorithms

Similar presentations


Presentation on theme: "Unit 3 lesson 2&3 The Need For Algorithms- Creativity in Algorithms"— Presentation transcript:

1 Unit 3 lesson 2&3 The Need For Algorithms- Creativity in Algorithms
Day 25

2 Review Quiz 4 Journal vocabulary words/terms

3 Lesson 2- The Need for Algorithms
Today- design an algorithm to find the minimum card in a row of playing cards. Then, presented with a more formal, "Human Machine Language" you try to implement the algorithm again, in the new language. Different algorithms can be developed to solve the same problem Different 'code' can be written to implement the same algorithm

4 Lesson 2- The Need for Algorithms
Low level programming language: A programming language that captures only the most primitive operations available to a machine. Anything that a computer can do can be represented with combinations of low level commands. High level programming language: A programming language with many commands and features designed to make common tasks easier to program. Any high level functionality is encapsulated as combinations of low level commands.

5

6 Minimum Card Algorithm
Activity Guide: Minimum Card Algorithm Write instructions to find the smallest card in a row of playing cards Compare solutions with classmates and come up with the minimal set of instructions needed to do this Define a "human machine language" for this task and implement your algorithm with it. Test out and refine your algorithm

7 Human machine language
Activity Guide: The "Human Machine" Language Complete Activity

8 Lesson 3- Creativity in Algorithms
In this lesson you get more practice designing algorithms using the "Human Machine Language". In particular you see that new problems are often easily solved by combining other algorithms that you know. Introduce the 'swap' command, new to the Human Machine Language Design an algorithm for the "Min-to-Front" problem Activity Guide: Human Machine Language - Part 2: Min To Front

9 Human Machine Language Part 2: Min To Front
Complete Activity


Download ppt "Unit 3 lesson 2&3 The Need For Algorithms- Creativity in Algorithms"

Similar presentations


Ads by Google