Mathematics for Computer Scientists



Similar documents
CSL105: Discrete Mathematical Structures. Ragesh Jaiswal, CSE, IIT Delhi

Euler Paths and Euler Circuits

V. Adamchik 1. Graph Theory. Victor Adamchik. Fall of 2005

Stupid Divisibility Tricks

Graph Theory Origin and Seven Bridges of Königsberg -Rhishikesh

Zeros of Polynomial Functions

going to take to town. On the way to the village, Mr. Norton joined Mr. Bates. I thought I would walk with you to town. I have some business I need

CS311H. Prof: Peter Stone. Department of Computer Science The University of Texas at Austin

3. Mathematical Induction

There are ten mistakes in this account. Underline them and correct them. were dead. Aramis told him that his mother was alive.

A simple solution to the hardest logic puzzle ever

Networks and Paths. The study of networks in mathematics began in the middle 1700 s with a famous puzzle called the Seven Bridges of Konigsburg.

14.2. Degrees. Example 1 Use fractional parts to find. Unlock the Problem. Math Talk. Essential Question. Name

Answer: (a) Since we cannot repeat men on the committee, and the order we select them in does not matter, ( )

Theory of Automated Reasoning An Introduction. Antti-Juhani Kaijanaho

The Distributive Property

Predicate logic Proofs Artificial intelligence. Predicate logic. SET07106 Mathematics for Software Engineering

Assignment #03: Time Management with Excel

Grammar Unit: Pronouns

School of Education. Postgraduate Certificate of Education. Pre-Course Primary Experience Booklet

A beautiful sunny day in July; I m walking on a street in the middle of a city, being surrounded by

Handout #1: Mathematical Reasoning

Name: Date: Use the following to answer questions 3-4:

The Classes P and NP

My name is Jonathan Harker. I am a lawyer and I live in

Discrete Mathematics

LESSON TITLE: Jesus is the Way, the Truth, and the Life

LISTENING COMPREHENSION

Pythagorean Theorem: Proof and Applications

SQUARE-SQUARE ROOT AND CUBE-CUBE ROOT

A permutation can also be represented by describing its cycles. What do you suppose is meant by this?

The Perfect Birthday Present1 by Kelly Hashway

PRIMARY CONTENT MODULE Algebra I -Linear Equations & Inequalities T-71. Applications. F = mc + b.

Setting Up, Keeping Up and Maintaining Files

6.042/18.062J Mathematics for Computer Science. Expected Value I

Excerpt from "Introduction to Algebra" 2014 AoPS Inc.

On July 20, 1969, a machine with legs like a spider detached

MAS108 Probability I

Average rate of change

STATE OF TENNESSEE DEPARTMENT OF LABOR AND WORKFORCE DEVELOPMENT RE - EMPLOYMENT SERVICES ASSESSMENT INTERVIEWING SKILLS WORKSHOP

Time needed: each worksheet will take approximately 1 hour to complete

Macbeth. by William Shakespeare -1-

Correlation. What Is Correlation? Perfect Correlation. Perfect Correlation. Greg C Elvers

A Few Basics of Probability

arxiv: v1 [math.pr] 5 Dec 2011

Anansi and the Moss- Covered Rock Retold by Eric A. Kimmel & Adapted by Whitney Peterson. Lion Scene

AP CALCULUS AB 2009 SCORING GUIDELINES

WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT?

COURSE SYLLABUS. Brazosport College. Math 1314 College Algebra. Office: J.227. Phone:

2.1. Inductive Reasoning EXAMPLE A

There are some easy steps that you can take that will increase your chances of success at interviews.

Exercise 1.12 (Pg )

Introducing Formal Methods. Software Engineering and Formal Methods

Mathematics (Project Maths Phase 1)

Past Simple & Past Continuous. Exercises

Psychic Lotto Formula 3-Step Formula Secret Template To Lottery Secrets Module 3

5 Texts You Should Be Sending

Building Bridges with Transitions A Writing Activity a four-part writing activity designed for intermediate level (4.0-8.

How To Understand The Theory Of Hyperreals

Disabled Access Friendly Campaign. Think about us!

Polynomials. Dr. philippe B. laval Kennesaw State University. April 3, 2005

Common Law Marriage in Texas

OFFICE OF THE STATE CORONER FINDINGS OF INQUEST

Cycles in a Graph Whose Lengths Differ by One or Two

Graph Theory Problems and Solutions

Simple Present, Simple Past and Present Perfect Tenses

Graph theory and network analysis. Devika Subramanian Comp 140 Fall 2008

Conditional Sentences Third Condition (Past Time - Unreal/ Contrary to Fact)

Puberty Problems and Myths

9.2 Summation Notation

CSV886: Social, Economics and Business Networks. Lecture 2: Affiliation and Balance. R Ravi ravi+iitd@andrew.cmu.edu

Customer Service Standards - Greetings

TEST 2 STUDY GUIDE. 1. Consider the data shown below.

Operations and Supply Chain Management Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

(Refer Slide Time: 01.26)

First Grade Spelling 3-1. First Grade Spelling. 1. an 2. at 3. can 4. cat 5. had 6. man 7. I 8. and 9. the 10. a. Dictation Sentences:

Year 7. Grammar booklet 3 and tasks Sentences, phrases and clauses

Pippi Longstocking by Astrid Lindgren

2.5 Zeros of a Polynomial Functions

EMANUEL SCHOOL ENTRANCE EXAMINATION Mathematics Sample Examination Paper Year 7 (11+) Entry. Time allowed : 1 hour

IN THE HANDS OF TIME

Everything You Need To Know About Middle School. This planning guide belongs to:

A Brief Guide to Arithmetic for Advocacy

Mathematics Curriculum

Mathematical goals. Starting points. Materials required. Time needed

AMS 5 CHANCE VARIABILITY

The Story of the Titanic Called "Lost or Saved?"

Effective Meeting Strategies

8 Primes and Modular Arithmetic

Phonics. High Frequency Words P.008. Objective The student will read high frequency words.

7. Normal Distributions

1. What do they do? Write the sentences from the box into the correct columns.

63. Graph y 1 2 x and y 2 THE FACTOR THEOREM. The Factor Theorem. Consider the polynomial function. P(x) x 2 2x 15.

Mathematics (Project Maths Phase 3)

NIVEL A - ACTIVIDADES DE LECTO-COMPRENSION

Organizing Your Website Content

Transcription:

G51MCS www.cs.nott.ac.uk/~vxc/g51mcs/g51mcs.html venanzio.capretta@nottingham.ac.uk Computer Science Building, A07

What this module is about What are the topics of this module?

What this module is about What are the topics of this module? Formal reasoning using exact mathematical logic to prove theorems

What this module is about What are the topics of this module? Formal reasoning using exact mathematical logic to prove theorems Arithmetic theorems and formulas about numbers

What this module is about What are the topics of this module? Formal reasoning using exact mathematical logic to prove theorems Arithmetic theorems and formulas about numbers Abstract mathematical entities sets, functions, relations

What this module is about What are the topics of this module? Formal reasoning using exact mathematical logic to prove theorems Arithmetic theorems and formulas about numbers Abstract mathematical entities sets, functions, relations Combinatorics how to count all the ways to arrange objects

What this module is about What are the topics of this module? Formal reasoning using exact mathematical logic to prove theorems Arithmetic theorems and formulas about numbers Abstract mathematical entities sets, functions, relations Combinatorics how to count all the ways to arrange objects Graphs

What this module is about What are the topics of this module? Formal reasoning using exact mathematical logic to prove theorems Arithmetic theorems and formulas about numbers Abstract mathematical entities sets, functions, relations Combinatorics how to count all the ways to arrange objects Graphs Today I m going to illustrate these topics with some puzzles.

Logic: Cats and Gorillas Suppose you know that the following sentences are true:

Logic: Cats and Gorillas Suppose you know that the following sentences are true: No cat that wears a heron suit is unsociable.

Logic: Cats and Gorillas Suppose you know that the following sentences are true: No cat that wears a heron suit is unsociable. No cat without a tail will play with a gorilla.

Logic: Cats and Gorillas Suppose you know that the following sentences are true: No cat that wears a heron suit is unsociable. No cat without a tail will play with a gorilla. Cats with whiskers always wear heron suits.

Logic: Cats and Gorillas Suppose you know that the following sentences are true: No cat that wears a heron suit is unsociable. No cat without a tail will play with a gorilla. Cats with whiskers always wear heron suits. No sociable cat has blunt claws.

Logic: Cats and Gorillas Suppose you know that the following sentences are true: No cat that wears a heron suit is unsociable. No cat without a tail will play with a gorilla. Cats with whiskers always wear heron suits. No sociable cat has blunt claws. No cats have tails unless they have whiskers.

Logic: Cats and Gorillas Suppose you know that the following sentences are true: No cat that wears a heron suit is unsociable. No cat without a tail will play with a gorilla. Cats with whiskers always wear heron suits. No sociable cat has blunt claws. No cats have tails unless they have whiskers. Can you then logically conclude that: No cat with blunt claws will play with a gorilla? From Ian Stewart, Professor Stewart s Cabinet of Mathematical Curiosities

Logic: Knights and Knaves There is an island where all inhabitants are either knights, who always tell the truth, or knaves, who always lie. From Raymond Smullyan, What is the name of this book?

Logic: Knights and Knaves There is an island where all inhabitants are either knights, who always tell the truth, or knaves, who always lie. First puzzle: You meet two inhabitants, Anna and Benjamin. Anna tells you We are both knaves. Can you deduce who s a knight and who s a knave? From Raymond Smullyan, What is the name of this book?

Logic: Knights and Knaves There is an island where all inhabitants are either knights, who always tell the truth, or knaves, who always lie. Second puzzle: You meet two other inhabitants, Carl and Dora. Carl tells you If Dora is a knave, and only in that case, I am also a knave. Dora tells you We are of different kind. Who s a knight and who s a knave? From Raymond Smullyan, What is the name of this book?

Logic: Knights and Knaves There is an island where all inhabitants are either knights, who always tell the truth, or knaves, who always lie. Third puzzle: Two inhabitants, Frank and Elisa, are standing at a fork in the road. You know that one of them is a knight and the other a knave, but you don t know which. You also know that one road leads to Death, and the other leads to Freedom. By asking one yes/no question, can you determine the road to Freedom? From Raymond Smullyan, What is the name of this book?

Arithmetic: The Monkey and the Coconuts Five men and a monkey were shipwrecked on a desert island, and they spent the first day gathering coconuts for food. They piled them all up together and then went to sleep for the night.

The Monkey and the Coconuts But when they were all asleep one man woke up and decided to take his share. He divided the coconuts in five piles. He had one coconut left and he gave it to the monkey. He took his pile and put the rest all back together.

The Monkey and the Coconuts But when they were all asleep one man woke up and decided to take his share. He divided the coconuts in five piles. He had one coconut left and he gave it to the monkey. He took his pile and put the rest all back together. Later a second man woke up and acted in exactly the same way: He divided the coconuts into five piles; there was one coconut left that he tossed to the monkey; he took his pile and put the rest all back together.

The Monkey and the Coconuts One after the other all five men did the same thing and every time there was one extra coconut given to the monkey. The next morning they divided what coconuts were left into five parts. Once again there was one coconut left that was given to the monkey.

The Monkey and the Coconuts One after the other all five men did the same thing and every time there was one extra coconut given to the monkey. The next morning they divided what coconuts were left into five parts. Once again there was one coconut left that was given to the monkey. How many coconuts were there in the beginning? From Martin Gardner, The Colossal Book of Mathematics

Combinatorics: Handshakes at the Smiths house Mr and Mrs Smith invited four other couples to their house. At the party, some people shake hands with other guests, but not necessarily with everybody. Nobody shakes hands with their own spouse.

Combinatorics: Handshakes at the Smiths house Mr and Mrs Smith invited four other couples to their house. At the party, some people shake hands with other guests, but not necessarily with everybody. Nobody shakes hands with their own spouse. At the end of the party, Mr Smith observes: If you don t count me, there are no two people who shook hands the same number of times.

Combinatorics: Handshakes at the Smiths house Mr and Mrs Smith invited four other couples to their house. At the party, some people shake hands with other guests, but not necessarily with everybody. Nobody shakes hands with their own spouse. At the end of the party, Mr Smith observes: If you don t count me, there are no two people who shook hands the same number of times. How many times did Mrs Smith shake hands?

Graphs: the Bridges of Königsberg The city of Königsberg was set on both sides of the Pregel River, and included two large islands which were connected to each other and the mainland by seven bridges:

Graphs: the Bridges of Königsberg The city of Königsberg was set on both sides of the Pregel River, and included two large islands which were connected to each other and the mainland by seven bridges: Can you find a walk through the city, starting and and arriving at the same place, that crosses each bridge once and only once?