Center for Embedded Networked Sensing University of California, Los Angeles CS4HS Workshop July 23, 2009 And kinesthetic computer science activities Lynn.

Slides:



Advertisements
Similar presentations
Maths and the making of the modern world The maths behind Google and the Ipod Chris Budd.
Advertisements

Applied Algorithmics - week7
Michael Alves, Patrick Dugan, Robert Daniels, Carlos Vicuna
CPSC 171 Introduction to Computer Science Efficiency of Algorithms.
22C:19 Discrete Structures Trees Spring 2014 Sukumar Ghosh.
The Binary Numbering Systems
Lecture 12: Revision Lecture Dr John Levine Algorithms and Complexity March 27th 2006.
CSE 380 – Computer Game Programming Pathfinding AI
 Caesar used to encrypt his messages using a very simple algorithm, which could be easily decrypted if you know the key.  He would take each letter.
Notes for presenters: –These slides are provided courtesy of Tom Cortina (Carnegie Mellon University). Details about this activity can be found at
DAST, Spring © L. Joskowicz 1 Data Structures – LECTURE 1 Introduction Motivation: algorithms and abstract data types Easy problems, hard problems.
Is ASCII the only way? For computers to do anything (besides sit on a desk and collect dust) they need two things: 1. PROGRAMS 2. DATA A program is a.
Promising Practices in CS1: Panel Agenda This Short Introduction Barbara Ericson, Georgia Institute of Technology Deepak Kumar, Bryn Mawr College Wanda.
CS 206 Introduction to Computer Science II 04 / 29 / 2009 Instructor: Michael Eckmann.
CS 206 Introduction to Computer Science II 12 / 10 / 2008 Instructor: Michael Eckmann.
Lecture 20: April 12 Introduction to Randomized Algorithms and the Probabilistic Method.
CS Unplugged Techniques for Teaching Computer Science Concepts.
Clustering and greedy algorithms Prof. Noah Snavely CS1114
Information Theory and Security
DAST, Spring © L. Joskowicz 1 Data Structures – LECTURE 1 Introduction Motivation: algorithms and abstract data types Easy problems, hard problems.
Great Theoretical Ideas in Computer Science.
Computer Science Unplugged Dr. Tom Cortina Carnegie Mellon University.
Spring 2015 Mathematics in Management Science Binary Linear Codes Two Examples.
Optimization Problems Minimum Spanning Tree Behavioral Abstraction.
Ideas for revision activities. Show me the answer! Using mini-whiteboards, true/false cards, hand signals, different coloured cards etc. pupils must show.
Computer Science Unplugged Dr. Tom Cortina Carnegie Mellon University Sponsored by.
Twenty Questions Information Theory Girls Engaged in Math and Science, June 2012.
Instructor: Dr. Sahar Shabanah Fall Lectures ST, 9:30 pm-11:00 pm Text book: M. T. Goodrich and R. Tamassia, “Data Structures and Algorithms in.
Inesthetic earning ctivities inesthetic earning ctivities Steve Wolfman, UW Andrew Begel, UCB Dan Garcia, UCB 08: Norfolk, VA Special Session.
Illuminating Computer Science CCIT 4-6Sep
© Peter Andreae CS4HS Algorithms Searching for an item in a list Sorting a list Searching for a word in text Analysing Networks.
APS various problems. Not all bit-strings are compressible. If we have a bit string length n, sometimes we can compress it to a shorter bit string! Here.
Searching and Sorting Gary Wong.
计算机科学概述 Introduction to Computer Science 陆嘉恒 中国人民大学 信息学院
Computer Science Unplugged Dr. Tom Cortina Carnegie Mellon University.
HKOI 2006 Intermediate Training Searching and Sorting 1/4/2006.
Computer Science Unplugged Dr. Tom Cortina Carnegie Mellon University.
File Structures Foundations of Computer Science  Cengage Learning.
Centra Basics and Games Presented by Julia Parra
Image segmentation Prof. Noah Snavely CS1114
Trees (Ch. 9.2) Longin Jan Latecki Temple University based on slides by Simon Langley and Shang-Hua Teng.
CS4HS Columbia University Injecting CS into High School Math and Science Classes Adam Cannon Department of Computer Science Columbia University.
Computational Thinking
COSC 2007 Data Structures II Chapter 13 Advanced Implementation of Tables IV.
UNIT 2 LESSON 3 CS PRINCIPLES. OBJECTIVES Students will be able to: Construct a binary communication protocol for playing Battleship using the Internet.
SNU OOPSLA Lab. 1 Great Ideas of CS with Java Part 1 WWW & Computer programming in the language Java Ch 1: The World Wide Web Ch 2: Watch out: Here comes.
ALGORITHMS.
Week 10 - Friday.  What did we talk about last time?  Graph representations  Adjacency matrix  Adjacency lists  Depth first search.
Week 9 - Monday.  What did we talk about last time?  Practiced with red-black trees  AVL trees  Balanced add.
Search in State Spaces Problem solving as search Search consists of –state space –operators –start state –goal states A Search Tree is an efficient way.
Computer Science Unplugged Dr. Tom Cortina Carnegie Mellon University Sponsored by.
Great Theoretical Ideas in Computer Science for Some.
Computer Science Unplugged Dr. Tom Cortina Carnegie Mellon University.
Document that explains the chosen concept to the animator 1.
Chapter 11. Chapter Summary  Introduction to trees (11.1)  Application of trees (11.2)  Tree traversal (11.3)  Spanning trees (11.4)
Introductory Lecture. What is Discrete Mathematics? Discrete mathematics is the part of mathematics devoted to the study of discrete (as opposed to continuous)
Great Theoretical Ideas in Computer Science.
Lists and Sorting Algorithms
COMPUTERSCIENCE High School Teacher's Workshop The University of Virginia July 9, 2008 And kinesthetic computer science activities Lynn Lambert Christopher.
Tapestry Workshop The University of Virginia July 15, 2009
Student- Centered Activities For the Secondary Classroom
Introduction to Randomized Algorithms and the Probabilistic Method
Coopersale Theydon Garnon Maths Workshop
Representing characters
Lesson Objectives Aims Understand the following “standard algorithms”:
Sphero CPD 9.30 – 11am Introduction to Sphero 11 – 11.15am
EXPLORING COMPUTER SCIENCE Journal Entries, Portfolio Entries, And Check Your Understanding Unit 2 – Strand 2 Problem Solving This unit focuses on.
Scratch Where Are You Now?
Fundamentals of Data Representation
Error Detection Learning Objectives:
Presentation transcript:

Center for Embedded Networked Sensing University of California, Los Angeles CS4HS Workshop July 23, 2009 And kinesthetic computer science activities Lynn Lambert Christopher Newport University Newport News, Virginia

Author: Tim Bell (not pictured: Ian Witten and Mike Fellows)

Global project New Zealand Sweden United Kingdom Korea Japan China Haiti Even USA (CSTA, Peter Denning, Carnegie- Mellon, SIGCSE, AP Reading, NECC)

What is Unplugged How to teach important computer topics without using computers at all!computer topics Have Fun!

Like? Binary Numbers Image Representation Text Compression Error Detection and Correction Searching Algorithms Sorting Algorithms Sorting Networks Minimal Spanning Trees Routing and Deadlock Finite-state Automata Programming Languages Information Theory

Magic Trick Make a 5x5 grid with colored squares, some with one color, some the other. Magic

Even parity Can detect a bit that was corrupt ISBN detects adjacent swapped digits or a single incorrect digit X 10 = (1x 1 + 2x 2 + 3x 3 + 4x 4 + 5x 5 + 6x 6 + 7x 7 + 8x 8 + 9x 9 ) mod 11 Harry Potter and The Deathly Hallows: (0*1 + 5*2 + 4*3 + 5*4 + 0*5 + 1*6 + 0*7 + 2*8 + 2*9 ) ( ) = mod 11 = 5 Parity Checking

Binary Digits

BINARY NUMBERS HAPPY BIRTHDAY, Daniel Radcliffe ! Born July 23, 1989 Daniel Radcliffe turns

Characters in Binary H E L L O 1234 ABCD 5 E E 6789 FGHI 10 E J L M N 15 E O P Q RS 20 E T UVWX 25 E Y K 26 E Z

Characters and Sound Represented in Binary “ASCII” Modem

Each pixel is a bit Image Representation (black and white) 1440 * 900 = 1,296,000 pixels/bits

Each pixel is a bit for first row etc. Image Representation (black and white)

Image Compression Run Length Encoding 4, 11, 2 4, 9, 2, 1, 1 4, 11, 2 4, 9, 4 5, 7, 5 0, 17 1, 15, 1

Each pixel is a bit Still 1,296,000 pixels Now, each pixel is Image Representation (Color) 32 bits

Color Images RGB color for blue Microsoft Office Color

204/102/0 226/113/0 196/198/0 226/113/0180/90/0 141/105/ /240/255230/206/ /102/38 141/105/ /238/228218/218/200217/187/63

Routing and Deadlock Orange Game

TREASURE HUNT: Finite State Automata (FSA) FSA are theoretical state models Unplugged uses a treasure hunt. Others: letters to accept particular words a metro map for getting to a particular location

TREASURE HUNT What is the quickest route? Finite State Automata

“Yesterday” by The Beatles L-Z Compression Yesterday love was such an easy game to play Now I need a place to hide away Oh, I believe in yesterday. Why she had to go I don’t know, she wouldn’t say. I said something wrong Now I long for yesterday.

MARCHING ORDERS Programming Languages One of the most frustrating things about programming is that computers always obey the instructions to the letter, even if they produce a crazy result.

CS Unplugged in High School (by Scott Fletcher) Perfect: Binary Numbers, Programming Languages ("first day exercise“). Image Representation to introduce computer graphics to the students. Text Compression (used a popular song that the kids would recognize) Used briefly to introduce a topic: Twenty Guesses or the Card Flip Trick Sorting Networks Algorithm, Minimal Spanning Trees, Treasure Hunt could have been more challenging Did not use: Battleships (pretty involved) Lightest and Heaviest (too much equipment) Orange Game (but should have)

Have you used Unplugged? How?

Sorting and Searching In the book Battleship (Searching) Lightest and Heaviest (Sorting) Sorting Network Your ideas

FIND SHIP # 9264 BATTLESHIPS: Search Method 1 GAME 1: Ships are in random order.

BATTLESHIPS GAME 2: Ships are in increasing order. FIND SHIP #

BATTLESHIPS GAME 3: Ships are ordered into 10 groups based on the sum of the digits of the ship modulo 10. FIND SHIP #

BATTLESHIPS These three games illustrate linear search binary search hashing What is the maximum number of guesses required for each of these search techniques for n battleships?

LIGHTEST & HEAVIEST Start with a few (6 or 8) containers with different amounts of sand or water inside. Seal tightly. Children are only allowed to use the scales to compare the relative weights of two containers. Only two containers can be compared at a time.

LIGHTEST & HEAVIEST: Method 1: Selection Sort Find the lightest of the containers using the weights they have been given, using only the balance scales. Now compare that with another, keeping the lighter from the comparison. Repeat until all the objects have been used.

LIGHTEST & HEAVIEST METHOD 2: Quick Sort Choose one of the objects at random. Compare each of the remaining objects with it, and put them in one of two groups. Put those that are lighter on the left of the object in the middle, and those that are heavier on the right (there may be no objects in one of the groups). Repeat this procedure on each of the groups— that is, use the balance to divide the groups into subgroups. Keep repeating on the remaining groups until no group has more than one object in it. The objects will be in ascending order.

Sorting network < > Right Left

Sorting and Searching In the book Battleship (Searching) Lightest and Heaviest (Sorting) Sorting Network Your ideas

Non CSUnplugged Activities Andy Begel, Steve Wolfman, Dan Garcia KLA (Kinesthetic Learning Activities), Binary Tree Recursion cons, car, cdr AP Reading Toy Night with Robert Duvall Internet, Sorting, Searching AP list, CSTA

THE MUDDY CITY Our society is linked by many networks: telephone, utilities, roads For a particular network, there is usually some choice about where the links can be placed. This exercise examines a complete network to determine the links necessary to connect all the components of the network at minimal cost.

THE MUDDY CITY

a graph

THE MUDDY CITY a graph

THE MUDDY CITY This exercise illustrates how to build what we call the “minimal spanning tree”. A tree does not have any cycles where you can get back to where you were before. This exercise does not give us the shortest path from one location to another. But there is another algorithm for that!

Peruvian coin toss Try for a fair coin toss over the phone

Information Theory Can you read the following sentence? Ths sntnce hs th vwls mssng. You probably can, because there is not much "information" in the vowels. This activity introduces a way of measuring information content.

Shannon theory Twenty questions Guess a number

Shannon theory Guess a letter Guess a sentence Probability and information

Your Turn Break up into groups, and answer at least one of the following: 1.What unplugged or unplugged-like activities have you done in your classroom? What worked/didn’t work? 2.Create an activity that you and others can use in a classroom.

Example mappings 1.What unplugged or unplugged-like activities have you done in your classroom? What worked/didn’t work? 2.Create an activity that you and others can use in a classroom. Props you can use Cards two sides, choice, combinations, permutations Cups, containers, buckets hidden information, two states, variable, limited contents Stickers, marker pen commit, label, colour, user input Chalk on pavement/ tape on floor transitions, paths, target Board game paths, chance, rules Food competition, humour, colour, sharing, size String Connection, communication, length, network

Your Turn Reporting

Cryptography Public/Private Key One Way Functions Send Information

One way function Both have the same telephone book Pick a function Odd/even length of name Name begins with H/T

Select name

Record phone number

Presenter guesses: H or T?

Presenter tries to find name

Human-Computer Interaction ≠

Stop the computer...

HCI Works sheets Affordances for doors Layout of ovens Dumb interfaces System is machine plus user

CS Unplugged wants your ideas: Designing an activity What are the key elements? e.g. bits, states, compare, relationships What games/puzzles/toys use similar elements? Turn it into a challenge To find (best) solution Compare speed (of groups or methods) Team? Impediments? Evaluate Simplicity, engagement, cost, novelty Refine Show to lots of kids/teachers/profs Publish

Questions?