Sorting. APS105: Computer Fundamentals. Jason Anderson
|
|
- Dina Hardy
- 5 years ago
- Views:
Transcription
1 Sorting APS105: Computer Fundamentals Jason Anderson Dept. of Electrical and Computer Engineering Faculty of Applied Science and Engineering University of Toronto 1
2 Sorting Phonebook useless if names were not in alphabetical (sorted) order 2
3 Why Sorting? Sorting used in many computer programs: ipod sorts songs based on title or artist. Facebook sorts friends in alphabetical order. Facebook gives you the most-recent status. Excel spreadsheet can sort column by values. Online dating: sort dating matches based on how close by they live. Youtube sorts based on popularity.. 3
4 Sorting Objective Given: list of items (numbers, names, etc). Want to put the items sorted order. Alpha order Largest-to-smallest Smallest-to-largest Darkest colour to lightest colour Sometimes there are so many items, we need computer s help to do the sorting! 4
5 What is an Algorithm? Set of steps for completing a task. You have already been designing algorithms in this class. You already use algorithms all the time in your daily life! 5
6 Algorithm for Baking a Cake Cream the butter. Mix the dry ingredients separately. Combine the dry and wet ingredients. Mix until smooth. Put into baking pan. Bake for 30 mins at 350º F. Is cake done? If yes, remove from oven. If no, bake for another 5 minutes. 6
7 Algorithm Efficiency Washer, dryer take 30 mins each. Have one load of light clothes, one load dark clothes. Algorithm 1: 2 pm : Light clothes into washer 2:30 pm: Light clothes into dryer 3 pm: Darks into washer 3:30 pm: Darks into dryer Algorithm 2: 2 pm: Light clothes into washer 2:30 pm: Light clothes into dryer AND Darks into washer 3 pm: Darks into dryer 7 All done at 4 pm! All done at 3:30 pm!
8 Sorting Algorithms Sequence of steps computer takes for getting items into the right (sorted) order. Many different sorting algorithms invented: But they have different efficiencies! Some take more steps to get things into the right order. Some work better for different types of items. Want fast sorting algorithms: Sort GTA phonebook with 6 million names. 8
9 Sorting Algorithms Research on sorting algorithms: Started in 1950s Still active today (new algorithm invented in 2004)! We ll discuss three classic sorting approaches today: Bubble sort Insertion sort Quicksort 9
10 Bubble Sort Walk through the list of numbers, comparing two items at a time. Swap the two items if they re out of order. The biggest item bubbles up to the top. Walk the list of numbers several times until completely sorted! 10
11 Bubble Sort Sort Children from Shortest to Tallest 11
12 Bubble Sort Sort Children from Shortest to Tallest Look at first two children and swap them, if necessary. 12
13 Bubble Sort Sort Children from Shortest to Tallest Look at NEXT two children and swap them, if necessary. 13
14 Bubble Sort Sort Children from Shortest to Tallest Look at NEXT two children and swap them, if necessary. 14
15 Bubble Sort Sort Children from Shortest to Tallest Look at NEXT two children and swap them, if necessary. 15
16 Bubble Sort Sort Children from Shortest to Tallest Look at NEXT two children and swap them, if necessary. 16
17 Bubble Sort Sort Children from Shortest to Tallest Look at LAST two children and swap them, if necessary. 17
18 Bubble Sort Sort Children from Shortest to Tallest Look at LAST two children and swap them, if necessary. 18
19 Bubble Sort Sort Children from Shortest to Tallest Look at FIRST two children and swap them, if necessary. 19
20 Bubble Sort Sort Children from Shortest to Tallest Look at FIRST two children and swap them, if necessary. 20
21 Bubble Sort Sort Children from Shortest to Tallest Look at NEXT two children and swap them, if necessary. 21
22 Bubble Sort Sort Children from Shortest to Tallest Look at NEXT two children and swap them, if necessary. 22
23 Bubble Sort Sort Children from Shortest to Tallest Look at NEXT two children and swap them, if necessary. 23
24 Bubble Sort Sort Children from Shortest to Tallest We don t need to look at the last TWO, as in each pass the biggest bubbles up to the top spot. 24
25 Bubble Sort Sort Children from Shortest to Tallest Look at FIRST two children and swap them, if necessary. 25
26 Bubble Sort Sort Children from Shortest to Tallest Look at NEXT two children and swap them, if necessary. 26
27 Bubble Sort Sort Children from Shortest to Tallest We don t need to look at these TWO, as in each pass the biggest bubbles up to the top spot. 27
28 Bubble Sort Sort Children from Shortest to Tallest We don t need to look at these TWO, as in each pass the biggest bubbles up to the top spot. Since we didn t make ANY swaps in this pass, 28 we re DONE!
29 Bubble Sort How many comparisons? Sort 1000 items: 1 st pass: 999 comparisons/swaps 2 nd pass: 998 comparisons/swaps 999 th pass: 1 comparison/swap Sort n items: (n-1)*(n-2)/2 comparison/swaps 29
30 Insertion Sort Like sorting playing cards in hand: Draw a first card card is sorted. Draw second card compare with first card. Draw third card compare with two cards. Draw n th card compare with n-1 cards. Can speed-up using property that hand is kept sorted. 30
31 Quicksort Invented in 1962 by C. Hoare. Much more efficient than previous algorithms. Fewer steps needed to get items into order. Still widely used today. Uses recursion. 31
32 Recursion Contains smaller version of same picture 32
33 Recursion in Computing Task is broken down into smaller/easier tasks solved in a similar way. Ends when we hit a BASE/END case. 33
34 Recursion in Computing Task is broken down into smaller/easier tasks solved in a similar way. Ends when we hit a BASE/END case. Invest $1000 at 8% interest. How much do I have in 3 years? Cash(3 years) = Cash(2 years) + 8% x Cash(2 years) Cash(2 years) = Cash(1 years) + 8% x Cash(1 years) Cash(1 year) = Cash(0 years) + 8% x Cash(0 years) Cash(0 years) = $ Cash(3 years) = $ !
35 Quicksort Core Action Want to sort 10 cards: Choose a pivot card: 6 35
36 Quicksort Core Action Walk along the cards and partition the cards into two groups: Cards smaller than the pivot. Cards larger than the pivot Left partition Right partition Left partition is all less than 6, but is still unsorted! 36 Pivot card is where it should be!
37 Quicksort Core Action Now take the left partition & repeat action! Choose a pivot card: 4 Partition the left partition: Pivot is in its correct place
38 Quicksort Core Action Likewise, take the right partition and repeat the process Choose a pivot card: 8 Partition the right partition:
39 Quicksort Overview Pivot and partition the left and right half. 39
40 40 Quicksort Overview
41 41 Quicksort Overview
42 42 Quicksort Overview
43 43 Quicksort Overview
44 Quicksort Overview Continue until the pieces are so small there is nothing to do! SORTED 44
45 Nitty Gritty Details How do we do the partitioning? LOW HIGH Consider two arrows LOW and HIGH. 45
46 Nitty Gritty Details How do we do the partitioning? LOW HIGH Consider two arrows LOW and HIGH. HIGH will march LEFT until it finds a number less than PIVOT. 46
47 Nitty Gritty Details How do we do the partitioning? LOW HIGH Consider two arrows LOW and HIGH. HIGH marches LEFT until it finds a number less than PIVOT. 47
48 Nitty Gritty Details How do we do the partitioning? LOW HIGH The number at HIGH is moved to the position LOW. 48
49 Nitty Gritty Details How do we do the partitioning? LOW HIGH The number at HIGH is moved to the position LOW. 49
50 Nitty Gritty Details How do we do the partitioning? LOW HIGH LOW marches RIGHT until it finds a number greater than PIVOT 50
51 Nitty Gritty Details How do we do the partitioning? LOW HIGH LOW marches RIGHT until it finds a number greater than PIVOT 51
52 Nitty Gritty Details How do we do the partitioning? LOW HIGH The number at position LOW is moved to position HIGH. 52
53 Nitty Gritty Details How do we do the partitioning? LOW HIGH The number at position LOW is moved to position HIGH. 53
54 Nitty Gritty Details How do we do the partitioning? LOW HIGH HIGH marches left until it finds a number less than PIVOT. 54
55 Nitty Gritty Details How do we do the partitioning? LOW HIGH HIGH marches left until it finds a number less than PIVOT. 55
56 Nitty Gritty Details How do we do the partitioning? LOW HIGH The number at position HIGH is moved to position LOW. 56
57 Nitty Gritty Details How do we do the partitioning? LOW HIGH The number at position HIGH is moved to position LOW. 57
58 Nitty Gritty Details How do we do the partitioning? LOW HIGH LOW marches right until it finds a number larger than PIVOT. 58
59 Nitty Gritty Details How do we do the partitioning? LOW HIGH LOW marches right until it finds a number larger than PIVOT. 59
60 Nitty Gritty Details How do we do the partitioning? LOW HIGH The number at position LOW is moved to position HIGH. 60
61 Nitty Gritty Details How do we do the partitioning? LOW HIGH The number at position LOW is moved to position HIGH. 61
62 Nitty Gritty Details How do we do the partitioning? LOW HIGH HIGH marches LEFT until it aligns with LOW. 62
63 Nitty Gritty Details How do we do the partitioning? LOW HIGH HIGH marches LEFT until it aligns with LOW. 63
64 Nitty Gritty Details How do we do the partitioning? LOW HIGH The PIVOT is inserted at the position LOW/HIGH. 64
65 Nitty Gritty Details How do we do the partitioning? LOW HIGH The PIVOT is inserted at the position LOW/HIGH. 65
66 Nitty Gritty Details How do we do the partitioning? LOW HIGH PARTITIONING COMPLETE! The PIVOT is inserted at the position LOW/HIGH. 6 66
67 Quicksort How many comparisons/swaps? Sort 1000 items: 1000 items 67
68 Quicksort How many comparisons/swaps? Sort 1000 items: 1000 items ~500 items ~500 items 68
69 Quicksort How many comparisons/swaps? Sort 1000 items: 1000 items ~500 items ~500 items ~250 items ~250 items ~250 items ~250 items 69
70 Quicksort How many comparisons/swaps? Sort 1000 items: ~10 levels of the tree 1000 items ~500 items ~500 items ~250 items ~250 items ~250 items ~250 items ~1 item ~1 item ~1 item ~1 item ~1 item ~1 item 70
71 Comparing Algorithms To sort 1000 times: Quicksort requires ~10,000 comparisons (on average). Bubble sort may require ~500,000 comparisons. Insertion sort may require ~500,000 comparisons. 71
72 Sorting Summary Sorting: key part of many computer programs!! Algorithm: set of steps for completing a task. Different algorithms for same task may have different efficiencies! Talked about three sorting algorithms: Bubble sort, Insertion Sort and Quicksort Bubble sort and insertion sort are simple to build, but need many steps to sort the list. Quicksort is more complex to build, sorts list much faster. 72
Chapter 7: Sorting 7.1. Original
Chapter 7: Sorting 7.1 Original 3 1 4 1 5 9 2 6 5 after P=2 1 3 4 1 5 9 2 6 5 after P=3 1 3 4 1 5 9 2 6 5 after P=4 1 1 3 4 5 9 2 6 5 after P=5 1 1 3 4 5 9 2 6 5 after P=6 1 1 3 4 5 9 2 6 5 after P=7 1
More informationPrevious Lecture. How can computation sort data faster for you? Sorting Algorithms: Speed Comparison. Recursive Algorithms 10/31/11
CS 202: Introduction to Computation " UIVERSITY of WISCOSI-MADISO Computer Sciences Department Professor Andrea Arpaci-Dusseau How can computation sort data faster for you? Previous Lecture Two intuitive,
More informationDivide & conquer. Which works better for multi-cores: insertion sort or merge sort? Why?
1 Sorting... more 2 Divide & conquer Which works better for multi-cores: insertion sort or merge sort? Why? 3 Divide & conquer Which works better for multi-cores: insertion sort or merge sort? Why? Merge
More informationCSc 110, Spring Lecture 40: Sorting Adapted from slides by Marty Stepp and Stuart Reges
CSc 110, Spring 2017 Lecture 40: Sorting Adapted from slides by Marty Stepp and Stuart Reges 1 Searching How many items are examined worse case for sequential search? How many items are examined worst
More informationPast questions from the last 6 years of exams for programming 101 with answers.
1 Past questions from the last 6 years of exams for programming 101 with answers. 1. Describe bubble sort algorithm. How does it detect when the sequence is sorted and no further work is required? Bubble
More informationMaths Homework Challenge! Maths homework challenge cards. How did you find out? Draw a picture of that person and write their name.
Who has the biggest hands in your family? How did you find out? Draw a picture of that person and write their name. Card 1 Write down the numbers from a car registration plate. Add them up. How did you
More informationProgramming Abstractions
Programming Abstractions C S 1 0 6 X Cynthia Lee Today s Topics Sorting! 1. The warm-ups Selection sort Insertion sort 2. Let s use a data structure! Heapsort 3. Divide & Conquer Merge Sort (aka Professor
More informationJanuary 11, 2017 Administrative notes
January 11, 2017 Administrative notes Clickers Updated on Canvas as of people registered yesterday night. REEF/iClicker mobile is not working for everyone. Use at your own risk. If you are having trouble
More informationECE 242 Data Structures and Algorithms. Simple Sorting II. Lecture 5. Prof.
ECE 242 Data Structures and Algorithms http://www.ecs.umass.edu/~polizzi/teaching/ece242/ Simple Sorting II Lecture 5 Prof. Eric Polizzi Summary previous lecture 1 Bubble Sort 2 Selection Sort 3 Insertion
More informationFinite State Machines CS 64: Computer Organization and Design Logic Lecture #16
Finite State Machines CS 64: Computer Organization and Design Logic Lecture #16 Ziad Matni Dept. of Computer Science, UCSB Lecture Outline Review of Latches vs. FFs Finite State Machines Moore vs. Mealy
More informationSOME MORE DECREASE AND CONQUER ALGORITHMS
What questions do you have? Decrease by a constant factor Decrease by a variable amount SOME MORE DECREASE AND CONQUER ALGORITHMS Insertion Sort on Steroids SHELL'S SORT A QUICK RECAP 1 Shell's Sort We
More informationSorting. Suppose behind each door (indicated below) there are numbers placed in a random order and I ask you to find the number 41.
Sorting Suppose behind each door (indicated below) there are numbers placed in a random order and I ask you to find the number 41. Door #1 Door #2 Door #3 Door #4 Door #5 Door #6 Door #7 Is there an optimal
More informationAnimation Demos. Shows time complexities on best, worst and average case.
Animation Demos http://cg.scs.carleton.ca/~morin/misc/sortalg/ http://home.westman.wave.ca/~rhenry/sort/ Shows time complexities on best, worst and average case http://vision.bc.edu/~dmartin/teaching/sorting/animhtml/quick3.html
More information4. Non Adaptive Sorting Batcher s Algorithm
4. Non Adaptive Sorting Batcher s Algorithm 4.1 Introduction to Batcher s Algorithm Sorting has many important applications in daily life and in particular, computer science. Within computer science several
More informationCS 540-2: Introduction to Artificial Intelligence Homework Assignment #2. Assigned: Monday, February 6 Due: Saturday, February 18
CS 540-2: Introduction to Artificial Intelligence Homework Assignment #2 Assigned: Monday, February 6 Due: Saturday, February 18 Hand-In Instructions This assignment includes written problems and programming
More informationMaths Challenge. Can you sort the cutlery in your house into different sets?
Can you sort the cutlery in your house into different sets? How did you do it? 1 Can you add up the numbers on a car registration plate? 2 Can you find 4 different sized shoes in your house and put them
More informationTHE SULTAN S SCHOOL HELPING YOUR CHILD WITH MATHS AT HOME
HELPING YOUR CHILD WITH MATHS AT HOME Your child has taken home a letter which explains the main things that your child has or will be learning in maths. Have a look through this letter so you can get
More informationAnimation Demos. Shows time complexities on best, worst and average case.
Animation Demos http://cg.scs.carleton.ca/~morin/misc/sortalg/ http://home.westman.wave.ca/~rhenry/sort/ Shows time complexities on best, worst and average case http://vision.bc.edu/~dmartin/teaching/sorting/animhtml/quick3.html
More informationAdministrative notes January 9, 2018
Administrative notes January 9, 2018 Survey: https://survey.ubc.ca/s/cpsc-100-studentexperience-pre-2017w2/ Worth bonus 1% on final course mark We ll be using iclickers today If you want to try REEF/iClicker
More informationDATA STRUCTURES USING C
DATA STRUCTURES USING C Lecture-10 Data Structures Different types of Sorting Techniques used in Data Structures Sorting: Definition Sorting: an operation that segregates items into groups according to
More informationUse each digit card once to make the decimal number nearest to 20
NUMBER Level 4 questions 1. Here is a number chart. Circle the smallest number on the chart that is a multiple of both 2 and 7 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
More informationCS101 Lecture 28: Sorting Algorithms. What You ll Learn Today
CS101 Lecture 28: Sorting Algorithms Selection Sort Bubble Sort Aaron Stevens (azs@bu.edu) 18 April 2013 What You ll Learn Today What is sorting? Why does sorting matter? How is sorting accomplished? Why
More informationLectures: Feb 27 + Mar 1 + Mar 3, 2017
CS420+500: Advanced Algorithm Design and Analysis Lectures: Feb 27 + Mar 1 + Mar 3, 2017 Prof. Will Evans Scribe: Adrian She In this lecture we: Summarized how linear programs can be used to model zero-sum
More informationCollectives Pattern. Parallel Computing CIS 410/510 Department of Computer and Information Science. Lecture 8 Collective Pattern
Collectives Pattern Parallel Computing CIS 410/510 Department of Computer and Information Science Outline q What are Collectives? q Reduce Pattern q Scan Pattern q Sorting 2 Collectives q Collective operations
More information((( ))) CS 19: Discrete Mathematics. Please feel free to ask questions! Getting into the mood. Pancakes With A Problem!
CS : Discrete Mathematics Professor Amit Chakrabarti Please feel free to ask questions! ((( ))) Teaching Assistants Chien-Chung Huang David Blinn http://www.cs cs.dartmouth.edu/~cs Getting into the mood
More informationProCo 2017 Advanced Division Round 1
ProCo 2017 Advanced Division Round 1 Problem A. Traveling file: 256 megabytes Moana wants to travel from Motunui to Lalotai. To do this she has to cross a narrow channel filled with rocks. The channel
More informationCollectives Pattern CS 472 Concurrent & Parallel Programming University of Evansville
Collectives Pattern CS 472 Concurrent & Parallel Programming University of Evansville Selection of slides from CIS 410/510 Introduction to Parallel Computing Department of Computer and Information Science,
More informationReleased January Years 3/4. Small Steps Guidance and Examples. Block 2 Length, Perimeter, Area
Released January 208 Years 3/4 Small Steps Guidance and Examples Block 2 Length, Perimeter, Area Year 3/4 Spring Term Teaching Guidance Overview Small Steps Year 3 Year 4 Measure length Equivalent lengths
More informationARTIFICIAL INTELLIGENCE (CS 370D)
Princess Nora University Faculty of Computer & Information Systems ARTIFICIAL INTELLIGENCE (CS 370D) (CHAPTER-5) ADVERSARIAL SEARCH ADVERSARIAL SEARCH Optimal decisions Min algorithm α-β pruning Imperfect,
More informationThorvie Instructions Always wear eye protection and do not wear loose clothing when operating machinery. FOR AV- 41 ICE AUGER MACHINE
FOR AV- 41 ICE AUGER MACHINE 1. Please study video and all instructions before proceeding to grind. For Mora, Jeffy and Eskimo blades use the 6 brown resin bond wheel. Mount with washer and left-hand nut
More informationSMS Dictionary. Solution hint. Input format. Output format. (Indian National Olympiad in Informatics, INOI, 2007)
SMS Dictionary (Indian National Olympiad in Informatics, INOI, 2007) In the pre-smartphone era, most mobile phones with numeric keypads had a private dictionary of words to allow users to type messages
More informationModule 1 Getting Started
Module 1 Getting Started Computers Rule the World 2 Say Hello to Scratch 3 Using Scratch 4 Exercises 5 Playing with Pictures 7 Exercises 8 Tell me what to do 9 Exercises 10 Playing With Music 12 Exercises
More informationDesign and Analysis of Algorithms Prof. Madhavan Mukund Chennai Mathematical Institute. Module 6 Lecture - 37 Divide and Conquer: Counting Inversions
Design and Analysis of Algorithms Prof. Madhavan Mukund Chennai Mathematical Institute Module 6 Lecture - 37 Divide and Conquer: Counting Inversions Let us go back and look at Divide and Conquer again.
More informationIntroduction to Algorithms / Algorithms I Lecturer: Michael Dinitz Topic: Algorithms and Game Theory Date: 12/4/14
600.363 Introduction to Algorithms / 600.463 Algorithms I Lecturer: Michael Dinitz Topic: Algorithms and Game Theory Date: 12/4/14 25.1 Introduction Today we re going to spend some time discussing game
More informationCS 758/858: Algorithms
CS 758/858: Algorithms http://www.cs.unh.edu/~ruml/cs758 1 handout: slides Wheeler Ruml (UNH) Class 2, CS 758 1 / 19 Counting Sort O() O() Example Stable Counting Wheeler Ruml (UNH) Class 2, CS 758 2 /
More informationA Lower Bound for Comparison Sort
A Lower Bound for Comparison Sort Pedro Ribeiro DCC/FCUP 2014/2015 Pedro Ribeiro (DCC/FCUP) A Lower Bound for Comparison Sort 2014/2015 1 / 9 On this lecture Upper and lower bound problems Notion of comparison-based
More informationHeuristics, and what to do if you don t know what to do. Carl Hultquist
Heuristics, and what to do if you don t know what to do Carl Hultquist What is a heuristic? Relating to or using a problem-solving technique in which the most appropriate solution of several found by alternative
More informationST NICHOLAS COLLEGE HALF YEARLY PRIMARY EXAMINATIONS February 2016 YEAR 6 MATHEMATICS TIME: 1h 15 min
ST NICHOLAS COLLEGE HALF YEARLY PRIMARY EXAMINATIONS February 2016 YEAR 6 MATHEMATICS TIME: 1h 15 min Name: 1. Work out. Class: Total Mark 80 a) 324 + 92 = b) 912-234 = c) 418 x 7 = d) 424 8 = 2a) Write
More informationLecture5: Lossless Compression Techniques
Fixed to fixed mapping: we encoded source symbols of fixed length into fixed length code sequences Fixed to variable mapping: we encoded source symbols of fixed length into variable length code sequences
More informationSolving the Rubik s Cube
the network Solving the Rubik s Cube Introduction Hungarian sculptor and professor of architecture Ernö Rubik invented the Rubik s Cube in 1974. When solved, each side of the Rubik s Cube is a different
More informationGENERALIZATION: RANK ORDER FILTERS
GENERALIZATION: RANK ORDER FILTERS Definition For simplicity and implementation efficiency, we consider only brick (rectangular: wf x hf) filters. A brick rank order filter evaluates, for every pixel in
More informationArrangement of Your Page What is your Facebook url? How often should I post? What time should I post? Schedule a Post Invite People to
Arrangement of Your Page What does the user see first? Videos Photos Reviews Posts How is your page presented to the viewer? If videos are first are they current? What you want the viewer to see first?
More informationEnglish 1 st Grade M-Z Vocabulary Cards and Word Walls Revised: 1/13/14
English 1 st Grade M-Z Vocabulary Cards and Word Walls Revised: 1/13/14 Important Notes for Teachers: The vocabulary cards in this file match the Common Core, the math curriculum adopted by the Utah State
More informationGOAL SETTING NOTES. How can YOU expect to hit a target you that don t even have?
GOAL SETTING NOTES You gotta have goals! How can YOU expect to hit a target you that don t even have? I ve concluded that setting and achieving goals comes down to 3 basic steps, and here they are: 1.
More informationMA/CSSE 473 Day 14. Permutations wrap-up. Subset generation. (Horner s method) Permutations wrap up Generating subsets of a set
MA/CSSE 473 Day 14 Permutations wrap-up Subset generation (Horner s method) MA/CSSE 473 Day 14 Student questions Monday will begin with "ask questions about exam material time. Exam details are Day 16
More informationUser Guide for Diagnostics Atlas of Variation Instant Atlas. For enquiries or additional support, please contact:
User Guide for Diagnostics Atlas of Variation Instant Atlas For enquiries or additional support, please contact: healthcare.variations@phe.gov.uk () Geographical Level this is the first step to looking
More informationSetting Up Shop with Etsy. By Ben Eggler Digital Literacy Specialist
Setting Up Shop with Etsy By Ben Eggler Digital Literacy Specialist Upcoming Classes Teen Tech Help for Seniors 6/21/2017 Wednesdays at 2:00 PM - 3:30 PM High School Lounge Teen Tech Drop-in Help Saturdays
More informationAlgorithms and Data Structures CS 372. The Sorting Problem. Insertion Sort - Summary. Merge Sort. Input: Output:
Algorithms and Data Structures CS Merge Sort (Based on slides by M. Nicolescu) The Sorting Problem Input: A sequence of n numbers a, a,..., a n Output: A permutation (reordering) a, a,..., a n of the input
More information10 x 10 Flat Top Two Tone Pergola
0 x 0 Flat Top Two Tone Pergola Models: Bordeaux ASSEMBLY GUIDE OPTIONAL ACCESSORIES Arch Kit System ( Arches) Privacy Fence Panel System ( Panels & Middle Post) Bolt Down Bracket Kit ( for Pergola) Ver.0-00
More informationMaths Challenge. Can you sort the cutlery in your house into different sets?
Can you sort the cutlery in your house into different sets? How did you do it? SSM78 1 Can you add up the numbers on a car registration plate? CA6 2 Can you find 4 different sized shoes in your house and
More informationCoimisiún na Scrúduithe Stáit State Examinations Commission. Leaving Certificate Examination
Coimisiún na Scrúduithe Stáit State Examinations Commission 2009. M103A (S) Leaving Certificate Examination Technology Ordinary Level Sample Paper Duration 2:00 hours There are three Sections in this paper.
More informationHow to Make a Run Chart in Excel
How to Make a Run Chart in Excel While there are some statistical programs that you can use to make a run chart, it is simple to make in Excel, using Excel s built-in chart functions. The following are
More informationMore on games (Ch )
More on games (Ch. 5.4-5.6) Announcements Midterm next Tuesday: covers weeks 1-4 (Chapters 1-4) Take the full class period Open book/notes (can use ebook) ^^ No programing/code, internet searches or friends
More information3. The Goal Setting Method
3. The Goal Setting Method During the semester of my Senior Recital, I had to learn four new pieces in 6 weeks: two movements from a Beethoven Sonata, a Bartok piece, and a Chamber piece. In order to learn
More information2009 ACM ICPC Southeast USA Regional Programming Contest. 7 November, 2009 PROBLEMS
2009 ACM ICPC Southeast USA Regional Programming Contest 7 November, 2009 PROBLEMS A: Block Game... 1 B: Euclid... 3 C: Museum Guards... 5 D: Knitting... 7 E: Minesweeper... 9 F: The Ninja Way... 10 G:
More informationM 3 : Manipulatives, Modeling, and Mayhem - Session I Activity #1
M 3 : Manipulatives, Modeling, and Mayhem - Session I Activity #1 Purpose: The purpose of this activity is to develop a student s understanding of ways to organize data. In particular, by completing this
More informationPatterns and rules repeating patterns
Patterns and rules repeating patterns We are used to continuing repeated patterns. But what if the pattern rule is in the middle? What strategies can you use to continue these patterns both ways? 1 ontinue
More informationAdvancing with Watercolor
Advancing with Watercolor Working with Edges New Snow ADVANCING IN WATERCOLOR - EDGES 1 Introduction When we are beginning with watercolor we tend to paint all of our shapes with hard edges - it is the
More informationHomework Assignment #1
CS 540-2: Introduction to Artificial Intelligence Homework Assignment #1 Assigned: Thursday, February 1, 2018 Due: Sunday, February 11, 2018 Hand-in Instructions: This homework assignment includes two
More informationCSE373: Data Structure & Algorithms Lecture 23: More Sorting and Other Classes of Algorithms. Nicki Dell Spring 2014
CSE373: Data Structure & Algorithms Lecture 23: More Sorting and Other Classes of Algorithms Nicki Dell Spring 2014 Admin No class on Monday Extra time for homework 5 J 2 Sorting: The Big Picture Surprising
More informationCSE 373 DECEMBER 4 TH ALGORITHM DESIGN
CSE 373 DECEMBER 4 TH ALGORITHM DESIGN ASSORTED MINUTIAE P3P3 scripts running right now Pushing back resubmission to Friday Next Monday office hours 12:00-2:00 last minute exam questions Topics list and
More informationREC Peak Energy 72 Series Panel Appearance Specification - Q2
1 Glass (non-removable), scratches or unevenness on Visible at a distance glass which can not be removed by equal to B4 is permitted advised cleaning method. 2 Glass tape on glass 3 Glass Residual sealant
More informationAddition quiz. Level A. 1. What is ? A) 100 B) 110 C) 80 D) What is ? A) 76 B) 77 C) 66 D) What is ?
Level A 1. What is 78 + 32? A) 100 B) 110 C) 80 D) 40 2. What is 57 + 19? A) 76 B) 77 C) 66 D) 87 3. What is 66 + 9? A) 76 B) 79 C) 74 D) 75 4. Adding two even numbers gives an even number. 5. Adding two
More information(Notice that the mean doesn t have to be a whole number and isn t normally part of the original set of data.)
One-Variable Statistics Descriptive statistics that analyze one characteristic of one sample Where s the middle? How spread out is it? Where do different pieces of data compare? To find 1-variable statistics
More informationCOS 226 Algorithms and Data Structures Fall Midterm Exam
COS 226 lgorithms and Data Structures Fall 2015 Midterm Exam This exam has 8 questions worth a total of 100 points. You have 80 minutes. The exam is closed book, except that you are allowed to use one
More informationA Single view - Two Moods
Watercolor on Location A Single view - Two Moods Working with Edges WATERCOLOR ON LOCATION - EDGES AND MOOD 1 Introduction In this tutorial we will use a view of the center cafe at Faneuil Hall Marketplace
More informationImage Smoothing. Controlling printed output. Printing. Using color. Paper handling. Maintenance. Troubleshooting. Administration.
Your printer driver provides you with the best quality output for various types of printing needs. However, you may want more control over how your printed document will look. 1 Your printer default is
More informationCOS 226 Algorithms and Data Structures Fall Midterm Exam
COS 226 lgorithms and Data Structures Fall 2015 Midterm Exam You have 80 minutes for this exam. The exam is closed book, except that you are allowed to use one page of notes (8.5-by-11, one side, in your
More informationGetting Started with Osmo Coding. Updated
Updated 3.1.17 1.4.2 What s Included Each set contains 19 magnetic coding blocks to control Awbie, a playful character who loves delicious strawberries. With each coding command, you guide Awbie on a wondrous
More informationART 70 (1) - Syllabus Drawing Session A UCLA Summer Art Institute 2017
ART 70 (1) - Syllabus Drawing Session A UCLA Summer Art Institute 2017 Instructor: Kate Spencer Stewart TA: Henry Anker BROAD Room number Monday, July 10th - Friday, July 21st Class times: 9:00am-5:30pm
More informationGreen Room News. How Things Work
Green Room News Carnegie Mellon University Children s School March 7- April 8, 2016 How Things Work At the Children s School, our year is separated into theme-related units. During each theme, the teachers
More informationGrade 5 WINTER HOLIDAY Brain Boosting Student Activities
The Straws ATTACK Can a paper straw go through a raw potato? Here's an easy way to learn about inertia and momentum. A raw potato One or more paper straws (Use plastic if you don t have paper) 1. Put a
More informationFiona Peart Detailed Hedgerow studies using watercolour.
Detailed Hedgerow studies using watercolour. Introduction As the summer moves towards autumn, but before the colours all change, is a wonderful time to find painting subjects in our hedgerows. There is
More information2 person perfect information
Why Study Games? Games offer: Intellectual Engagement Abstraction Representability Performance Measure Not all games are suitable for AI research. We will restrict ourselves to 2 person perfect information
More informationStockport Grammar School Entrance Examination Mathematics January 2017 Time: 1 Hour. Number: Name:
1 Stockport Grammar School Entrance Examination Mathematics January 2017 Time: 1 Hour Name: Number: as many questions as you can in any order. Show your working and then put your answer in the space provided.
More informationTip: Faller Water Mill Enhancements Date:
Hi All, I have had this classic Faller 130225 water mill for well over forty years now and decided to service it and enhance the mill both in operation and aesthetics. I have had the mill installed on
More informationAsk Jo: Quilt Designing on the Computer
Ask Jo: Quilt Designing on the Computer If you are new to the blog, welcome. You have reached an archived free pattern. We typically put up new blog post twice daily so there is always something new and
More informationMA/CSSE 473 Day 13. Student Questions. Permutation Generation. HW 6 due Monday, HW 7 next Thursday, Tuesday s exam. Permutation generation
MA/CSSE 473 Day 13 Permutation Generation MA/CSSE 473 Day 13 HW 6 due Monday, HW 7 next Thursday, Student Questions Tuesday s exam Permutation generation 1 Exam 1 If you want additional practice problems
More informationFor Barrel Tapers. Installation and Operating Instructions for use with table saws and large disk sanders
Tim s Taper Tool For Barrel Tapers Installation and Operating Instructions for use with table saws and large disk sanders Your taper tool is capable of making barrel tapered shafts. The term barrel is
More informationThe Problem. Tom Davis December 19, 2016
The 1 2 3 4 Problem Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles December 19, 2016 Abstract The first paragraph in the main part of this article poses a problem that can be approached
More informationEquivalent Fractions
Grade 6 Ch 4 Notes Equivalent Fractions Have you ever noticed that not everyone describes the same things in the same way. For instance, a mother might say her baby is twelve months old. The father might
More information6 th Grade Thinker and Team PRACTICE
6 th Grade Thinker and Team PRACTICE 1. Last month Mrs. Smith made deposits in her checking account of $635.95, $800, and $123.6. During the same month she wrote checks of $95, $8.17, $27.36, $31.17, $63,
More informationUnit 1 Money. 1 loves 2 usually saves 3 doesn t want 4 doesn t like 5 always wants 6 doesn t spend. countable nouns (e.g.
Unit Money loves usually saves doesn t want doesn t like always wants doesn t spend like believe / know understands want know prefers don t like don t believe / don t know doesn t understand don t want
More informationYear 2 Problems and Investigations Spring
Year 2 Problems and Investigations Spring Week 1 Title: Racing riddles Children discuss the positions of four dogs in a set of four races using the information given. They attempt to use mathematical reasoning
More informationNANYANG TECHNOLOGICAL UNIVERSITY SEMESTER II EXAMINATION MH1301 DISCRETE MATHEMATICS. Time Allowed: 2 hours
NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER II EXAMINATION 206-207 DISCRETE MATHEMATICS May 207 Time Allowed: 2 hours INSTRUCTIONS TO CANDIDATES. This examination paper contains FOUR (4) questions and comprises
More informationAdvancing with Watercolor
Advancing with Watercolor Working with Edges Shimmering Water ADVANCING IN WATERCOLOR - EDGES 1 Introduction to Edges When I speak of edges I am talking about the edges of shapes we create in the painting
More informationInstalling Your New Creature From The Black Lagoon Tail Light DMD Panel MOD
Installing Your New Creature From The Black Lagoon Tail Light DMD Panel MOD A few things before we start: The wooden speaker panel provided in this MOD was manufactured using a Precision CNC machine and
More informationMarketing Impact Chart (MIC) STUDY GUIDE
Marketing Impact Chart (MIC) STUDY GUIDE This study guide is created to support your free 4 part Training Series and the White Paper entitled Creating Strategic Plans and Goals for Every Major Donor. Our
More informationCS188: Section Handout 1, Uninformed Search SOLUTIONS
Note that for many problems, multiple answers may be correct. Solutions are provided to give examples of correct solutions, not to indicate that all or possible solutions are wrong. Work on following problems
More informationMagnetic Towers of Hanoi and their Optimal Solutions
Magnetic Towers of Hanoi and their Optimal olutions Uri Levy Atlantium Technologies, Har-Tuv Industrial Park, Israel uril@atlantium.com August 5, 00 Abstract The Magnetic Tower of Hanoi puzzle a modified
More informationsatspapers.org MATHEMATICS YEAR 4 LEVELS TEST 4a Total marks CALCULATOR NOT ALLOWED Name Class School Date
MATHEMATICS satspapers.org YEAR 4 TEST 4a LEVELS 2 3 CALCULATOR NOT ALLOWED Total marks Name Class School Date Lauren Zak Jade 2 Getting started This shows where you need to put the answer. Some questions
More informationLecture 12: Divide and Conquer Algorithms. Divide and Conquer Algorithms
Lecture 12: Divide and Conquer Algorithms Study Chapter 7.1 7.4 1 Divide and Conquer Algorithms Divide problem into sub-problems Conquer by solving sub-problems recursively. If the sub-problems are small
More informationSequencing Activities
Sequencing Activities For The Whole Year K-3rd Grade Common Core Aligned Created by: The Dabbling Speechie 1 Table of Contents Pages 3-10: Draw what happens next with blank template Pages 11-20: Silly
More information10 x 10 Arch Top Pergola
0 x 0 Arch Top Pergola I N S T A L L A T I O N G U I D E O P T I O N A L A C C E S S O R I E S Privacy Fence Panel System ( Panels & Middle Post Included) Bolt Down Bracket Kit (Set of ) Additional Shade
More informationENGAGE ENLIGHTEN EMPOWER
Educore Services PO Box 110506 Solwezi, Zambia Telephone: +260 965 47 63 52 tridentprepkal@educoreservices.com www.educoreservices.com IPC OVERVIEW MILEPOST 2 2016 UNIT: THE GENERATION GAME (8 Weeks) No
More informationImage Forgery. Forgery Detection Using Wavelets
Image Forgery Forgery Detection Using Wavelets Introduction Let's start with a little quiz... Let's start with a little quiz... Can you spot the forgery the below image? Let's start with a little quiz...
More informationThe Theory Behind the z/architecture Sort Assist Instructions
The Theory Behind the z/architecture Sort Assist Instructions SHARE in San Jose August 10-15, 2008 Session 8121 Michael Stack NEON Enterprise Software, Inc. 1 Outline A Brief Overview of Sorting Tournament
More informationCSE 1400 Applied Discrete Mathematics Permutations
CSE 1400 Applied Discrete Mathematics Department of Computer Sciences College of Engineering Florida Tech Fall 2011 1 Cyclic Notation 2 Re-Order a Sequence 2 Stirling Numbers of the First Kind 2 Problems
More informationCoin control unit. Operating instructions C 4065
Operating instructions Coin control unit C 4065 G To avoid the risk of accidents or damage to the machine it is essential to read these instructions before installing, commissioning and using it for the
More information