CS514 Introductory Lecture - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

CS514 Introductory Lecture

Description:

First, we will explore the realm of formal logic: arguments, boolean algebra ... We will introduce a symbolism for logic and a formal system that will help take ... – PowerPoint PPT presentation

Number of Views:45
Avg rating:3.0/5.0
Slides: 13
Provided by: rober52
Category:

less

Transcript and Presenter's Notes

Title: CS514 Introductory Lecture


1
CS514 -- Introductory Lecture
  • Instructor Bob Amar, raa4_at_cs.wustl.edu
  • TA James Ma, jinma6_at_hotmail.com
  • READING FOR NEXT TIME
  • Rosen, Chapters 1.1 - 1.3

2
The Big Question
  • What Is
  • Computer Science?

3
The Second Big Question
  • Why Should I Care About
  • Computer Science?

4
Course Overview
  • First, we will explore the realm of formal logic
    arguments, boolean algebra
  • How can we make a computer?
  • Second, we will explore modern computer hardware
    and its design
  • How does a computer compute?
  • Finally, we will discuss modern computer science
    algorithms
  • What can a computer compute?

5
CS514 Mission Statement
  • By taking this course, you will jump-start your
    graduate career by acquiring the fundamentals to
    attack any area or application of computer
    science.

6
So...
  • lets get started!

7
Why Logic?
  • We start with logic because it cleanly bridges
    the gap between mathematics and the processes
    used to solve problems
  • Let us first see how to think logically about
    certain entertaining mathematical problems
  • Always two questions for understanding the
    implications of a problem
  • Can we find an answer?
  • If so, why is it the answer? Why does it work?

8
Logic As A System
  • As pattern-recognizers, we tend to solve problems
    by working outside the system
  • The MIU Puzzle (thanks to Douglas Hofstadter)
    Start with the string MI
  • 1. If string ends in I, you may add U to the
    end
  • 2. The string Mx may be replaced with Mxx
    where x is any sequence of characters
  • 3. Within a string, III may be replaced by U
    (but not the other way around!)
  • 4. Within a string, UU may be deleted
  • Can you make the string MU? Try it!

9
Logic As A System, cont.
  • After some fiddling, you should begin to feel
    that MU cannot be made -- but why?
  • Answer on next slide!
  • The core of efficiently solving a problem in
    computing really boils down to capturing the
    essence of its solution in a program
  • No hand-waving will work -- a computer cant
    synthesize truths outside the system of its
    programming -- we have to capture those first

10
The Nature of Logical Proof
  • Statement MI cannot make MU
  • The key element is that you can never get rid of
    all the Is -- in other words, the number of Is
    is never a multiple of 3 (in particular, never 0)
  • For any string, you can double the number of Is
    using Rule 2 -- this never produces a multiple of
    3 unless the number of Is is initially a
    multiple of 3!
  • You can reduce the number of Is by 3 using Rule
    3
  • Neither of these can change one I into zero Is,
    and no other rules change the number of Is
  • This is a proof -- sound logical argument

11
Do You Believe This?
  • Statement If a is odd and b is odd, then the
    quantity a b must be odd.
  • a is odd exactly when there is an integer m such
    that a 2m1
  • Also, there is an integer n where b2n1
  • a b (2m1)(2n1) 4mn 2m 2n 1 2(2mn
    m n) 1
  • Thus, there is an integer p 2mn m n such
    that a b 2p 1, thus a b is odd

12
Next Time
  • We will introduce a symbolism for logic and a
    formal system that will help take some of the
    thinking out of applying logic
  • During the course, we will see formal proof
    techniques and ways of structuring logical
    arguments for things we want to prove
Write a Comment
User Comments (0)
About PowerShow.com