Introduction To Robot Decision Making

Slides:



Advertisements
Similar presentations
Chapter 4 Decision Making Lecture Slides to Accompany An Introduction to Computer Science Using Java (2nd Edition) by S.N. Kamin, D. Mickunas, E. Reingold.
Advertisements

2-1 Making Decisions Sample assignment statements PayAmount = Hours * Rate PayAmount = 40*Rate + (Hours – 40)*Rate*1.5.
Boolean Expressions Conditional Statements & Expressions CSC 1401: Introduction to Programming with Java Lecture 4 – Part 2 Wanda M. Kunkle.
1 CS150 Introduction to Computer Science 1 Relational Operators and the If Statement 9/22/08.
Ch 1.4 – Equations & Inequalities
New Mexico Computer Science For All Booleans and Logic Maureen Psaila-Dombrowski.
CSci 125 Lecture 10 Martin van Bommel. Simple Statements Expression followed by semicolon Assignments total = n1 + n2; Function calls printf(”Hello.\n”);
Unit 5 – “Watch Out!”. Introduction New Topics Case Structures New Functions Less? Comparison Function Ultrasonic Sensor.
Decision Structures Chapter 4 Part 2. Chapter 4 Objectives To understand o What relational operators are and how they are used o Boolean logic o Testing.
Solutions to Equations and Inequalities Lesson 7.01.
1-8 An Introduction to Equations. Vocabulary Equation: A mathematical sentence that uses an equal sign. Open Sentence: An equation is an open sentence.
Semester 1 Final Review Lesson 1.1 Variables in Algebra Evaluate the variable expression when x = x.
Chapter 5 z-Scores: Location of Scores and Standardized Distributions
If…else statements. Boolean Expressions Boolean expression - An expression whose value is either true or false true = 1 false = 0 Datatype: boolean.
Order of Operations Lesson 1.3 Mr. Sparks & Mr. Beltz.
 Evaluate the following expressions. when x = 24 when x = 4 when k = 12 1) 2) 3)
Chapter 5: Making Decisions
Holt Algebra Graphing and Writing Inequalities Warm Up Compare. Write, or =. 1. − < > > = Tell whether the inequality x
Chapter 51 Decisions Relational and Logical Operators If Blocks Select Case Blocks.
Decision Structures and Boolean Variables. Sequence Structures Thus far, we’ve been programming “sequence structures” Thus far, we’ve been programming.
CONDITIONALS. Boolean values Boolean value is either true or false It is name after the British mathemetician, George Boole who first formulated Boolean.
Lesson 1.4 Equations and Inequalities Goal: To learn how to solve equations and check solutions of equations and inequalities.
Laws of Boolean Algebra Commutative Law Associative Law Distributive Law Identity Law De Morgan's Theorem.
Computer Programming Boolean Logic Trade & Industrial Education
Visual Basic CDA College Limassol Campus COM123 Visual Basic Programming Semester C Lecture:Pelekanou Olga Week 4: Understand and implement Decisions.
8. DECISION STRUCTURES Rocky K. C. Chang October 18, 2015 (Adapted from John Zelle’s slides)
Inequalities and their Graphs Objective: To write and graph simple inequalities with one variable.
Chapter 5 z-Scores PowerPoint Lecture Slides Essentials of Statistics for the Behavioral Sciences Seventh Edition by Frederick J. Gravetter and Larry.
 Type Called bool  Bool has only two possible values: True and False.
Lesson Planning. WHO determines what we teach? Put the following in order from the broadest to the most specific. Lesson plan State standard National.
CMSC201 Computer Science I for Majors Lecture 05 – Comparison Operators and Boolean (Logical) Operators Prof. Katherine Gibson Prof. Jeremy.
Computer Programming Boolean Logic.
Yasemin Allsop Senior Lecturer in Computing Education
Introduction to Decision Structures and Boolean Variables
CMSC201 Computer Science I for Majors Lecture 05 – Comparison Operators and Boolean (Logical) Operators Prof. Katherine Gibson Based on slides by Shawn.
CPS120 Introduction to Computer Science
Introduction To Robot Sensors
Brent M. Dingle Texas A&M University Chapter 6, Sections 1 and 2
Introduction To Robot Sensors
4-1 LOGIC OPERATIONS In Chapter 3 we discussed the fact that data inside a computer is stored as patterns of bits. Logic operations refer to those operations.
JavaScript conditional
Aberdeen Grammar School
Introduction To Robot Decision Making
JavaScript conditional
Equations and Inequalities Part 2: Identifying Solutions to Equations and Inequalities Essential Question: How can I determine if given value(s) provide.
2-1 Making Decisions Sample assignment statements
Computers & Programming Languages
Bools and simple if statements
Boolean Bingo!.
Computer Science 210 Computer Organization
Introduction to Decision Structures and Boolean Variables
3.) Which is greater 4 • or 4(5 - 3)
Conditional Logic Presentation Name Course Name
ICT Gaming Lesson 3.
1-8 An Introduction to Equations
Inequalities and Their Graphs
6.5 Solving Absolute Value Equations and Inequalities
Understanding Conditions
JavaScript conditional
Relational Operators.
ECS15 boolean.
Chapter 4: Boolean Expressions, Making Decisions, and Disk Input and Output Prof. Salim Arfaoui.
Learning Goals with Scales: What are you looking for?
Algebra: Variables and Expressions
Computer Programming Boolean Logic Trade & Industrial Education
A3 2.1d To Solve Compound Inequalities
Chapter 2 Sets Active Learning Lecture Slides
Lesson – Teacher Notes Standard:
Conditionals.
Presentation transcript:

Introduction To Robot Decision Making When - after the movement chapter and before the sensor chapter in the curriculum Goal - students to develop a mental model of how robots make decisions The lesson includes: the 6th grade level mathematical concept of inequalities how Boolean expressions use relational operators to make TRUE or FALSE decisions What students know At the end of this lesson students will be able to: Describe what a Boolean expression is Explain how inequalities (a concept taught in 6th grade math classes) are used to form Boolean expressions Teacher background information Boolean expressions Relational operators Example conditional statement Note about Logical Operators Teacher directions to implement the lesson Help students understand what a Boolean expression is Introduce students to the type of sensors that they are using Introduce student to TRUE of FALSE decision making Check students’ understanding of robot decision making Assign students to describe how robots make decisions

How do robots make decisions? 540 mm Evaluate the statements below. What do you notice about them? Be prepared to discuss. “The robot is more than 400mm from the wall” Distance from wall > 500mm Distance from wall == 500mm 400mm > Distance from wall “The robot is 540mm long” Distance from wall == 540mm “The robot is not 540mm from the wall” Distance from wall < 1000mm Ask students to look at the picture and then evaluate the statements in RED.

Discussion What do these statements have in common? Why might it be useful to be able to say whether the robot is more than 500mm from the wall or not? “The robot is more than 400mm from the wall” Distance from wall > 500mm Distance from wall == 500mm 400mm > Distance from wall “The robot is 540mm long” Distance from wall == 540mm “The robot is not 540mm from the wall” Distance from wall < 1000mm Ask students: “What do these statements have in common?” “Why might it be useful to be able to say wheterh the robot is more than 500 mm from the wall or not?” EXPECT ANSWERS LIKE: They are all either true or false They all compare numbers They all check whether something is true or not

2<5 (2 is less than 5) What is the answer? True or False Question – what is the answer? True When students answer go to the next slide

True or False 2<5 (2 is less than 5) “2<5” is called a Boolean expression. Boolean expressions help computers make decisions. Question – what is this? It is a Boolean expression Background for the Teacher - Boolean expressions are derived from Boolean logic which is a form of Algebra that reduces all values either TRUE or FALSE. Boolean logic is named after the nineteenth century mathematician George Boole. Computers and robots make decisions based on Boolean logic. A Boolean expression is a three-part clause that consists of two items to be compared, separated by a comparison operator.  For example, 5>3 (5 is greater than 3) is a Boolean expression and the result of that expression is TRUE. Boolean expressions compare values using relational operators. Relational operators compare the two values and the result is either TRUE or FALSE. Teacher note – ask if this is true or false

What are the parts of a Boolean expression? Boolean Expressions 2<5 What are the parts of a Boolean expression? Review the parts of a Boolean expression A Boolean expression is a three-part clause that consists of two items to be compared, separated by a comparison operator.  Boolean expressions compare values using relational operators. Relational operators compare the two values and the result is either TRUE or FALSE. Teacher note – ask if this is true or false

Common Relational Operators 2<5 The“<“ sign compares two numbers and is called a relational operator. Common Relational Operators equal to not equal to greater than less than greater than or equal to less than or equal to == != >  <  >= <= Introduce the concept of a relational operator Relational operators compare the two values and the result is either TRUE or FALSE.

Review of Boolean expressions 5<3 is this expression true or false A Boolean expression is a three-part clause that compares two values that are separated by a relational operator and results in a value that is TRUE or FALSE. Which are the two values? Which is the relational operator? Background for the Teacher - Boolean expressions are derived from Boolean logic which is a form of Algebra that reduces all values either TRUE or FALSE. Boolean logic is named after the nineteenth century mathematician George Boole. Computers and robots make decisions based on Boolean logic. A Boolean expression is a three-part clause that consists of two items to be compared, separated by a comparison operator.  For example, 5>3 (5 is greater than 3) is a Boolean expression and the result of that expression is TRUE. Boolean expressions compare values using relational operators. Relational operators compare the two values and the result is either TRUE or FALSE

How do robots make decisions? 540 mm Look at each statement below and decide if it is TRUE or FALSE. “The robot is more than 400mm from the wall” Distance from wall > 500mm Distance from wall == 500mm 400mm > Distance from wall “The robot is 540mm long” Distance from wall == 540mm “The robot is not 540mm from the wall” Distance from wall < 1000mm Which of these statements are true and which are false? Which are Boolean expressions and which ones are not?