Abstraction and Hierarchy

Slides:



Advertisements
Similar presentations
Where do I get my spots, my stripes, my curly hair?
Advertisements

“The study of algorithms is the cornerstone of computer science.” Algorithms Winter 2012.
ABSTRACTION. Important points from Eckels Reading: All programming languages provide abstraction. The Object Oriented Programming approach to abstraction.
By: Noah Bjork.  The ponds that I will be telling you to make have some things that in Africa they probably didn’t have. Like a filter, a heater, or.
Diamante Poetry Miss Sceri.
Recalling Facts and Details S.T.A.R.S. By Miss Ruhlen
Dog Care! By: Maddie, Katie, Mikaela, and Yuki. Finding the right dog! If you like dogs that are jumpy and playful you should pick the dog that is always.
All About Dogs By: Adan Molly Wendell Abbey
6 < > 99 8 = 8 Click mouse for next screen. Lesson 2.
The fantail goldfish mouse cat parrot dog rabbit.
Scientists observe how animals are the same and different. They put animals that are the same into groups. These groups of animals are: ◦ Mammals ◦ Reptiles.
Animals Keisha Graham.
Summarizing a story means telling the story in a short way. Make sure to tell the important parts.
All About Cats Written By Kaylee. Table of Contents Chapter 13 Chapter 24 Chapter 35 Chapter 46 Diagram7 Different Kinds of Cats8 Interesting Fact9 Glossary10.
Hello!!! I’m Anne! My favourite wild animal is a gorilla!!! It is brown and pink. It has got teeth, nose, legs, arms, eyes and mouth! Hello!!! I’m Anne!
Created by Mrs. Stehli’s Class Next Page What am I? Clue #1 I lick you. Clue #2 I love you. Clue #3 I bark. Clue #4 I chase cats. Click here to find.
The cow The cow is a big and heavy farm animal.
2.1 Elements of Computational thinking
Do Now  On your Do Now sheet, answer the following questions. You may use your notes from last week.  What are the four different types of symbols used.
Learning Safari Olivia Nesse & Rebecca Rogers Wild Animals Black & white, lives in Africa, and is very similar to a horse. Big & gray, lives in the.
Kristina Thompson dolphins Feb My animal is the dolphin Kristina Thompson feb Kristina Thompson My animal is the dolphin Mar
How do you solve a problem that has more than one step? For example: At the pet store, there are 134 birds, 55 cats, and some dogs. If there are 395 animals.
OBJECT ORIENTED PROGRAMMING IS IMPORTANT TO UNDERSTANDING HOW COMPUTERS WORK. OOP ORGANIZES DATA INTO “OBJECTS.” OBJECTS MAY HAVE PROPERTIES, ATTRIBUTES,
牛津版 七年级 (7B) Unit 6. Grammar B Using ‘should’ and ‘must’ Grammar B Using ‘should’ and ‘must’
Cats PREGNANCY THE PROCESS OF A MAMA CAT GETTING READY TO HAVE KITTENS IS CALLED "QUEENING." A FEMALE CAT CAN GET PREGNANT WHEN SHE’S AS YOUNG AS 4 MONTHS.
My animal is a cat. It is a mammal. It is a small pet. It lives in the houses and eats meat. I love these animals, there are so cute...!
1. To learn about rhyme schemes, stress and intonation of poetry. 2. To learn new vocabulary to read about animal’s behavior and talk about pets.
Set. Words from the Fry List set put end.
The exam starts with weighing the pet,
Chapter 5 Dimensional Analysis.
Are you ready? Let's play ? ? The animals guessing game ? ? ? ? ?
Hayvanlar-Animals ENGLİSH LESSON …Egitimhane.com….
Dogs By: Grace Kauffman.
Amur Tiger.
Welcome to our school 7B Unit 6 Vocabulary.
Raccoon! Hi! This is a raccoon. We explain you what a raccoon is.
Welcome to Who Wants to be a Millionaire
Let’s Learn Vocabulary
My Pet.
My pets.
Introduction to Object-Oriented Programming
the responsibilities of pet ownership
My Pet.
FIRST DAY INSTRUCTIONS
Abstraction & Automation
The Knight’s Tour.
What is a DOG? These ARE dogs. These ARE NOT dogs.
Living and Non-Living Things
Have and Has Unit 3 Keeping pets.
GET READY SETTLER ACTIVITY
Primary Longman Elect 1A Chapter 6 Has / have Is / are Adjectives.
Topic 1: Problem Solving
Algorithms.
are different varieties of
Mastering Abstraction
The of and to in is you that it he for was.
Made arrangement Text Structure organized put together.
Listening Lesson Spring 2018
Comprehension Skill First Grade Unit 1 Week 2 Created by Kristi Waltke
What kinds of fish are predators – goldfish or sharks?
Unit 6 At the Zoo.
Computational Thinking
are different varieties of
Have and Has Unit 3 Keeping pets.
Who Am I? 6/9/16 You are about to see a series of images. I will only display each one for 10 seconds. You should describe the people in the pictures in.
WRITING IN THIRD GRADE Materials: Exit Cards Ideas and Details Handout
Computer Science Discoveries Unit 1 Chapter 2 Lesson 5
Problem Solving Fall 2016.
Computational Thinking (How to think like a computer scientist)
Presentation transcript:

Abstraction and Hierarchy Ball State University - CS4MS - Fall 2018

What is Abstraction? Abstraction is one of the essential parts of Computer Science. It includes filtering out characteristics that we do not need so that we can concentrate on those that we do. It is the filtering out of specific details. After filtering out unnecessary details and characteristic, we can create a model of what we are trying to solve.

Example of Irrelevant Characteristics Below is a list of the characteristics of a cat. We want to remove unneeded specific characteristics to build a more universal model that can be used to categorize all cats. We can see how we do not need the specific characteristics to still be able to determine that it is a cat. Specific Characteristics Brown Fur Long Fur Four Legs Tail Ears Two Eyes Likes Fish Meows Whiskers Fur Remove Specific Characteristics Brown Fur Long Fur Four Legs Tail Ears Two Eyes Likes Fish Meows Whiskers Fur Relevant Characteristics Four Legs Tail Two Eyes Fur

Examples Created from the Specific Characteristics Created from the Relevant Characteristics Note: Building from the model based on Relevant Characteristics, we can still tell that the model is a cat. Meow

Using Abstraction For Tasks Now that we know about filtering out unneeded information, let’s take a look at using this with tasks. If you had a list of instructions for feeding the cat, it might look something like this: Feed Cat: Make sure cat food bowl is empty Open cabinet Get out cat food Fill cat food bowl Put cat food away Close cabinet

Using Abstraction For Tasks Now, we need to feed the dog as well, so we need a list of steps on how to feed the dog. It might look like this: Feed Dog: Make sure dog food bowl is empty Open cabinet Get out dog food Fill dog food bowl Put dog food away Close cabinet

Using Abstraction For Tasks Now let’s take a look at our two tasks. Feed Cat: Feed Dog: Make sure cat food bowl is empty Open cabinet Get out cat food Fill cat food bowl Put cat food away Close cabinet Make sure dog food bowl is empty Open cabinet Get out dog food Fill dog food bowl Put dog food away Close cabinet They look very similar, don’t they? We should try to abstract out the Specific Details to create a generic model for feeding pets.

Using Abstraction For Tasks Let’s identify all of the things that are different between the tasks. Chances are, those are the specific details that we want to abstract away. Then, we can replace the Specific, with the Relevant and generic terms. Feed Cat: Feed Dog: Feed Pet: Make sure cat food bowl is empty Open cabinet Get out cat food Fill cat food bowl Put cat food away Close cabinet Make sure dog food bowl is empty Open cabinet Get out dog food Fill dog food bowl Put dog food away Close cabinet Make sure pet food bowl is empty Open cabinet Get out pet food Fill pet food bowl Put pet food away Close cabinet

Using Abstraction For Tasks Now that we got rid of the Specific Characteristics, we can use our new task to show how to feed any of the household animals, instead of needing a task for each one! Recap: Abstraction is getting rid of Specific Characteristics while keeping the Relevant Characteristics needed for completing a task. We do this so we can use the same set of instructions to complete many different tasks, instead of having to create a new set of instructions for every different thing.