The Problem A gallant and brave knight must traverse the lands to rescue the princess and claim his rightful place in the kingdom A Knight on a board.

Slides:



Advertisements
Similar presentations
The Chinese Postman Problem Route Planning Map Colouring
Advertisements

Traveling Salesperson Problem
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
Breakfast Bytes: Pigeons, Holes, Bridges and Computers Alan Kaylor Cline November 24, 2009.
SOFTWARE TESTING. INTRODUCTION  Software Testing is the process of executing a program or system with the intent of finding errors.  It involves any.
Great Theoretical Ideas in Computer Science for Some.
Reducibility Class of problems A can be reduced to the class of problems B Take any instance of problem A Show how you can construct an instance of problem.
MEASUREMENT LESSON 2, PART 1 BIG IDEA: A standard unit of measure is necessary for consistency in communication between people. The standard system of.
CS 206 Introduction to Computer Science II 11 / 07 / 2008 Instructor: Michael Eckmann.
BY: MIKE BASHAM, Math in Scheduling. The Bridges of Konigsberg.
A Knight’s Tour A decision problem. A Legal Move Can only move 1 x 2...Or 2 x 1.
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
CS 206 Introduction to Computer Science II 11 / 10 / 2008 Instructor: Michael Eckmann.
Graphs and Trees This handout: Eulerian Cycles: Sufficiency of the condition Hamiltonian tour.
IEOR266 © Classification of MCNF problems.
CS 206 Introduction to Computer Science II 11 / 05 / 2008 Instructor: Michael Eckmann.
The Knight’s Tour By Colleen Raimondi.
1 Discrete Optimization. 2 The relationship between counting techniques/graph theory and discrete optimization Adding a goal (objective function) to a.
A Trip to England Nicholas Grice Angela Miranda A2 Computer Science 1.
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
Graph an equation in standard form
Scott Perryman Jordan Williams.  NP-completeness is a class of unsolved decision problems in Computer Science.  A decision problem is a YES or NO answer.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we can find a path that goes over all.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Connected Components Fun with graphs, searching, and queues.
Hexahexaflexagon Automata Paul Curzon Queen Mary University of London With support from Google,
Hard problems in computer science Prof. Noah Snavely CS1114
Quadratic Formula 4-7 Today’s Objective: I can use the quadratic formula to solve quadratic equations.
Explorers need maps: Abstraction, representations and graphs Paul Curzon Queen Mary University of London
Graphs A ‘Graph’ is a diagram that shows how things are connected together. It makes no attempt to draw actual paths or routes and scale is generally inconsequential.
The Travelling Salesperson Problem A salesperson needs to visit London, Nottingham, Manchester and Leeds, he lives in Birmingham. Find the shortest route.
Quadratic Equations An Introduction
Associated Matrices of Vertex Edge Graphs Euler Paths and Circuits Block Days April 30, May 1 and May
Consultant Presentation Group B5. Presentation Outline Introduction How to design by Group A5 Future Data Structure Interface Future Conclusion.
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
Chapter 6: Graphs 6.1 Euler Circuits
M Clements Formal Network Theory. Introduction Practical problem – The Seven Bridges of Königsberg Network graphs Nodes & edges Degrees Rules/ axioms.
Example 3 In parts of New York City, the blocks between streets are called short blocks. There are 20 short blocks per mile. Blocks between avenues are.
Materials Reminders. Get out your agenda if you see your name below. I would like to have you in my FLEX Wednesday. Period 2Period 7.
Hamilton Paths and Circuits 1 Click to Start 2 3 Start End.
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare and.
Management Science 461 Lecture 7 – Routing (TSP) October 28, 2008.
Lecture 2: Problem Solving using State Space Representation CS 271: Fall, 2008.
Quadratic Equations An Introduction SPI Solve quadratic equations and systems, and determine roots of a higher order polynomial.
AS Decision Maths Tips for each Topic. Kruskal and Prim What examiner’s are looking for A table of values in the order that they are added and the total.
SOFTWARE TESTING LECTURE 9. OBSERVATIONS ABOUT TESTING “ Testing is the process of executing a program with the intention of finding errors. ” – Myers.
You can type your own categories and points values in this game board. Type your questions and answers in the slides we’ve provided. When you’re in slide.
Quadratic Equations An Introduction.
3.1 Fundamentals of algorithms
Quadratic Equations An Introduction
The Knight’s Tour Graphs, Algorithms, Abstraction and Decomposition
Great Theoretical Ideas in Computer Science
Computational Thinking
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
Quadratic Equations An Introduction
Lesson Objectives Aims Understand the following:
Approximation algorithms
This unit is all about Puzzles Games Strategy.
Graphs Chapter 13.
The Knight’s Tour.
Chapter 2: Business Efficiency Business Efficiency
USING GRAPHS TO SOLVE EQUATIONS
GET READY SETTLER ACTIVITY
Quadratic Equations.
Methodical Counting 01-LCR-02.
Computational Thinking
Shortest Path Solutions
Quiz: Computational Thinking
Computational Thinking (How to think like a computer scientist)
Presentation transcript:

The Problem A gallant and brave knight must traverse the lands to rescue the princess and claim his rightful place in the kingdom A Knight on a board has to visit every square without passing through the same square more than once. Then returns to the starting square

A similar Problem? You are a tour guide and must come up with a tour that gets a tourist from their London hotel to all the city sights and back to their hotel at the end of the day. The tourists get upset if they visit the same place twice

Consider another way Computer Scientist create a diagram This is called a Graph It is easier to plan and find the solution

Abstraction Using abstraction to make a model Hides all the detail apart from what is needed Abstraction is one of the four cornerstones of Computer Science. It involves filtering out – essentially, ignoring the characteristics that we don't need in order to concentrate on those that we do.

1. Use Abstraction to solve the Knight’s Tour 1, 7 1, 9 1, 6

Use Abstraction to solve the Knight’s Tour Add the nodes which the Knight can go to from a particular square

Use Abstraction to solve the Knight’s Tour Continue until all the Boxes have numbers in them. This will create a ‘messy’ diagram of the possible paths that the Knight can go to 8

Another way to Use Abstraction to solve the Knight’s Tour Start at a square and move to the next square that you can 2.Number it and draw a line between the points 3.Then jump to the next free square 4.Repeat until you cannot move any further 5.Select a new square, repeat steps 1, 2, 3, 4

RESULT

Solution Now you have the diagram of the route You need to tidy it up into a graph form so that it is easy to view Ensuring that all the correct nodes touch each other pull the route apart and make it easier to view Create a nice diagram

What is the final solution?

What have you learnt?