Introduction to Computational Thinking

Slides:



Advertisements
Similar presentations
1 Pertemuan 6 The structure part of object data model (Lanjutan) Matakuliah: M0174/OBJECT ORIENTED DATABASE Tahun: 2005 Versi: 1/0.
Advertisements

Compressing Historical Information in Sensor Networks From ACM SIGMOD 2004 and VLDB journal 2006.
An Introduction to Programming Using Alice Object-Oriented Programming.
 Introduction Introduction  Purpose of Database SystemsPurpose of Database Systems  Levels of Abstraction Levels of Abstraction  Instances and Schemas.
Spanish Spanish originally comes from what country and continent?
Object-Oriented Programming. An algorithm is a step-by-step process. A computer program is a step-by-step set of instructions for a computer. Every computer.
1 ISAT Module III: Building Energy Efficiency Topic 8: Thermal Performance Monitoring  Degree Days  Example of Degree days  Thermal Energy Consumption.
OBJECT-ORIENTED PROGRAMMING (OOP) WITH C++ Instructor: Dr. Hany H. Ammar Dept. of Electrical and Computer Engineering, WVU.
The virtue of dependent failures in multi-site systems Flavio Junqueira and Keith Marzullo University of California, San Diego Workshop on Hot Topics in.
By: Callan Mueller Bus111.  - Yobongo is a new way for people to communicate with people nearby  -It is a location based app that takes your position.
Source: 1997 Economic Census Survey of Minority-Owned Business Enterprises Survey of Minority-Owned Business Enterprises.
Best Places To Live in the United States Brett Spencer, Reed Hogan and Jeffrey Park.
Learn: to organize and interpret data in frequency tables to organize and interpret data in frequency tables.
By Fezhan. New York June The Average Temperature in New York in June is 79’F which is 26 “C. it is very hot and sunny. The Lowest it will get to is 61’F.
CH 9 : MAPS AND DICTIONARIES 1 ACKNOWLEDGEMENT: THESE SLIDES ARE ADAPTED FROM SLIDES PROVIDED WITH DATA STRUCTURES AND ALGORITHMS IN C++, GOODRICH, TAMASSIA.
CTRnet Digital Library for Disaster Information Services Seungwon Yang 1, Andrea Kavanaugh 1, Nádia P. Kozievitch 4, Lin Tzy Li 1,4,5, Venkat Srinivasan.
Introduction to.NET Florin Olariu “Alexandru Ioan Cuza”, University of Iai Department of Computer Science.
Introduction to Computational Thinking
Introduction to Computational Thinking
Introduction to DBMS Purpose of Database Systems View of Data
Introduction to Computational Thinking
Introduction to Computational Thinking
Heat Resistant Coating Market by Resin Type (Silicone, Epoxy, Acrylic, Polyester, Modified Resins), Technology, Application (Automotive & Transportation,
Revised: 2 April 2004 Fred Swartz
Introduction to Computational Thinking
Introduction to Computational Thinking
Introduction to Computational Thinking
Introduction to Computational Thinking
Use of Java’s HashMap.
Introduction to Computational Thinking
Multiplication table. x
Introduction to Computational Thinking
Introduction to Computational Thinking
Graphs ORD SFO LAX DFW Graphs Graphs
Introduction to Computational Thinking
Introduction to Computational Thinking
Match the climograph with the correct location.
Unit 7. Day 9..
Introduction lecture1.
BSAC REPORT NOVEMBER 4, 2016.
Intro to Computer Science CS 1510 Dr. Sarah Diesburg
Tagging and Statistically Translating Latin Sentences
Intro to Computer Science CS 1510 Dr. Sarah Diesburg
Weather Map A – April 22nd 2017 at 7:00 AM E.S.T
DO NOW – Decompose a Problem
Introduction to DBMS Purpose of Database Systems View of Data
Dots 5 × TABLES MULTIPLICATION.
Dots 5 × TABLES MULTIPLICATION.
Dots 2 × TABLES MULTIPLICATION.
Climate Group 2 Jiajun LI, Serena DONG, Charis DENG.
Review of Week 1 Database DBMS File systems vs. database systems
Algorithms.
5 × 7 = × 7 = 70 9 × 7 = CONNECTIONS IN 7 × TABLE
5 × 8 = 40 4 × 8 = 32 9 × 8 = CONNECTIONS IN 8 × TABLE
CH 9 : Maps And Dictionary
INTERMEDIATE ALGEBRA Class Notes
Dots 3 × TABLES MULTIPLICATION.
Operational Rules Model – step-by-step instructions and template
Dots 6 × TABLES MULTIPLICATION.
4 × 6 = 24 8 × 6 = 48 7 × 6 = CONNECTIONS IN 6 × TABLE
5 × 6 = 30 2 × 6 = 12 7 × 6 = CONNECTIONS IN 6 × TABLE
Dots 2 × TABLES MULTIPLICATION.
Dots 4 × TABLES MULTIPLICATION.
10 × 8 = 80 5 × 8 = 40 6 × 8 = CONNECTIONS IN 8 × TABLE MULTIPLICATION.
3 × 12 = 36 6 × 12 = 72 7 × 12 = CONNECTIONS IN 12 × TABLE
Bryan Burlingame 5 December 2018
5 × 12 = × 12 = × 12 = CONNECTIONS IN 12 × TABLE MULTIPLICATION.
5 × 9 = 45 6 × 9 = 54 7 × 9 = CONNECTIONS IN 9 × TABLE
3 × 7 = 21 6 × 7 = 42 7 × 7 = CONNECTIONS IN 7 × TABLE
Dots 3 × TABLES MULTIPLICATION.
Presentation transcript:

Introduction to Computational Thinking Abstraction & Data Structures (C) Dennis Kafura 2016

Abstraction & Data Structures identifying the information properties of an entity relevant for a given stakeholder; each property has a value. computer property --> value abstraction property --> value data structure state property --> value algorithm organizing the properties and their values so that they can be processed by an algorithm executed by a computer. (C) Dennis Kafura 2016

Abstraction An abstraction can be depicted by a table Example: an abstraction of a weather report properties City Temperature “Blacksburg, VA” 77 values (C) Dennis Kafura 2016

Dictionary: a data structure A dictionary is a data structure used to represent a single instance A dictionary is organized as a collection of property-value pairs In Python the term key-value pair is used City Temperature “Blacksburg, VA” 77 key-value pair key-value pair temps = { “City” : “Blacksburg, VA”, “Temperature” : 77} key value (C) Dennis Kafura 2016

Dictionary operations temps = { “ City” :“Blacksburg, VA” , “Temperature” : 77} retrieval cityTemp = temps[“Temperature”] cityName = temps[“City”] update temps[“Temperature”] = 82 (C) Dennis Kafura 2016

For today Work in your cohorts on the class work problems for 30 minutes More discussion of abstraction and dictionaries to follow (C) Dennis Kafura 2016

Abstracting multiple entities Similar abstracted entities (e.g., weather reports for different locations) have the same properties but different values. They are called instances. properties City Temperature “Blacksburg, VA” 77 “New York, NY” 85 “San Jose, CA” 75 “Miami, FL” 88 instances (C) Dennis Kafura 2016

Representing an abstraction City Temperature “Blacksburg, VA” 77 “New York, NY” 85 “San Jose, CA” 75 “Miami, FL” 88 list multiple instances, one property dictionary multiple properties one instance (C) Dennis Kafura 2016

Representing Abstractions Abstractions are represented using data structures Dictionary a collection of key-value pairs used to represent multiple properties of a single instance of an abstraction List a collection of similar things used to represent one property of multiple instances of an abstraction (C) Dennis Kafura 2016

An Example City Temperature “Blacksburg, VA” 77 “New York, NY” 85 “San Jose, CA” 75 “Miami, FL” 88 report = [ { “ City” : “Blacksburg, VA” , “Temperature” : 77} , { “ City” : “New York, NY” , “Temperature” : 85} , { “ City” : “San Jose, CA” , “Temperature” : 75} , { “ City” : “Miami, FL” , “Temperature” : 88} ] (C) Dennis Kafura 2016

Dictionaries/Lists and iteration reports = [ { “ City” : “Blacksburg, VA” , “Temperature” : 77} , { “ City” : “New York, NY” , “Temperature” : 85} , { “ City” : “San Jose, CA” , “Temperature” : 75} , { “ City” : “Miami, FL” , “Temperature” : 88} ] # find average temperature total = 0 number= 0 for report in reports: total= total + report[“Temperature”] number = number + 1 average = total / number (C) Dennis Kafura 2016