29
Can you put these children’s TV shows in date order - earliest to latest?

Can you put these childrens TV shows in date order - earliest to latest?

Embed Size (px)

DESCRIPTION

Sorting Algorithms

Citation preview

Page 1: Can you put these childrens TV shows in date order - earliest to latest?

Can you put these children’s TV shows in date order - earliest to latest?

Page 2: Can you put these childrens TV shows in date order - earliest to latest?

19871964 19971974

Page 3: Can you put these childrens TV shows in date order - earliest to latest?

Sorting Algorithms

Page 4: Can you put these childrens TV shows in date order - earliest to latest?

Algorithm

Precise method for solving a problem

Page 6: Can you put these childrens TV shows in date order - earliest to latest?

ABC

Sorting Algorithms - alphabetical

Page 7: Can you put these childrens TV shows in date order - earliest to latest?

Sorting Algorithms - Alphabetical

Page 9: Can you put these childrens TV shows in date order - earliest to latest?

123

Sorting Algorithms - numerical

Page 10: Can you put these childrens TV shows in date order - earliest to latest?

Sorting Algorithms - numerical

Page 11: Can you put these childrens TV shows in date order - earliest to latest?

Know sorting algorithms mainly sort alphabetically or numerically

Sorting Algorithms - Objectives

Page 12: Can you put these childrens TV shows in date order - earliest to latest?

Sorting Algorithms

Page 13: Can you put these childrens TV shows in date order - earliest to latest?

Selection Sort

Page 14: Can you put these childrens TV shows in date order - earliest to latest?

Selection Sort

● Data divided into sorted & unsorted portions

● Smallest values from unsorted portion are selected & put into sorted portion.

Page 15: Can you put these childrens TV shows in date order - earliest to latest?

Bubble Sort

Page 16: Can you put these childrens TV shows in date order - earliest to latest?

Bubble Sort

● Compare adjacent elements & swop if out of order

● Largest number ‘bubbles up’ to end of list

Page 17: Can you put these childrens TV shows in date order - earliest to latest?

Bubble Sort

● Compare adjacent elements & swop if out of order

● Largest number ‘bubbles up’ to end of list

Page 18: Can you put these childrens TV shows in date order - earliest to latest?

Quick Sort

Quick Sort

Page 19: Can you put these childrens TV shows in date order - earliest to latest?

Quick Sort

● Pick random element ‘pivot’● Put to one side● Compare other elements to ‘pivot’● Put smaller to left● Larger to right● Repeat with other groups

Page 20: Can you put these childrens TV shows in date order - earliest to latest?

Quick Sort

● Divide & conquer

● Larger lists

Page 21: Can you put these childrens TV shows in date order - earliest to latest?

Sorting Algorithms

Compare & contrast the 3 sorting algorithms

Page 22: Can you put these childrens TV shows in date order - earliest to latest?

Understand3 different types of sorting algorithms

Sorting Algorithms - Objectives

Page 23: Can you put these childrens TV shows in date order - earliest to latest?

Comparing Algorithms - extension

● ‘Big O’ notation● Best & Worse Case● Computational thinking● Programs● CSUnplugged

Page 24: Can you put these childrens TV shows in date order - earliest to latest?

Other Sorting Algorithms

● Merge Sort● Insertion Sort ● Cocktail Sort● Gnome Sort

Page 25: Can you put these childrens TV shows in date order - earliest to latest?

Apply your knowledge & understanding of sorting algorithms to your teaching

Sorting Algorithms: Objectives

Page 26: Can you put these childrens TV shows in date order - earliest to latest?

KS2:use logical reasoning to explain how some simple algorithms work and to detect and correct errors in algorithms and programs KS3: understand several key algorithms that reflect computational thinking [for example, ones for sorting and searching]; use logical reasoning to compare the utility of alternative algorithms for the same problem

National Curriculum

Page 27: Can you put these childrens TV shows in date order - earliest to latest?

●Know sorting algorithms mainly sort alphabetically or numerically

●Understand 3 different types of sorting algorithms

●Apply your knowledge & understanding of sorting algorithms to your teaching

Sorting Algorithms: Objectives

Page 28: Can you put these childrens TV shows in date order - earliest to latest?

What have you learnt today that you can use in your classroom tomorrow?

Sorting Algorithms

Page 29: Can you put these childrens TV shows in date order - earliest to latest?

Sorting Algorithms: Objectives