Docsity

Discrete Mathematics, Lecture Notes - Computer Science, Study notes of Number Theory

Partial preview of the text

Download Discrete Mathematics, Lecture Notes - Computer Science and more Study notes Number Theory in PDF only on Docsity!

Discrete Mathematics

COMS 3203

Zeph Grunschlag

Agenda

Course policies

Quick Overview

Logic

Course Policies, Schedule,

Syllabus

Handout explaining required text,

overview of course, grading breakdown,

policies, etc. – The “contract”

Available from course homepage:

http://www.cs.columbia.edu/~zeph/

All homework, and most other lecture

material will be available online

Lectures and Notes

Lectures are electronic and will be

available online after class.

There will usually be a low-tech

component (blackboard + chalk) which

you are responsible for.

Quick Overview

The conceptual center of computer

science is the ALGORITHM.

Quick Overview

Discrete Math helps provide…

…the machinery necessary

for creating sophisticated

algorithms

…the tools for analyzing their

efficiency

…the means of proving their validity

Quick Overview - Topics

Logic and Sets

 Make notions you’re already used to from programming a little more rigorous (operators)  Fundamental to all mathematical disciplines  Useful for digital circuits, hardware design

Elementary Number Theory

 Get to rediscover the old reliable number and find out some surprising facts  Very useful in crypto-systems

Quick Overview - Topics

Proofs (especially induction)  If you want to debug a program beyond a doubt, prove that it’s bug-free  Proof-theory has recently also been shown to be useful in discovering bugs in pre-production hardware Counting and Combinatorics  Compute your odds of winning lottery  Important for predicting how long certain computer program will take to finish  Useful in designing algorithms

Section 1.1: Logic

Axiomatic concepts in math:

Equals

Opposite

Truth and falsehood

Statement

Objects

Collections

Section 1.1: Logic

We intuitively know that Truth and Falsehood are opposites. That statements describe the world and can be true/false. That the world is made up of objects and that objects can be organized to form collections.

The foundations of logic mimic our intuitions by setting down constructs that behave analogously.

False, True, Statements

True: I’m 31 years old.

False: I have 17 children.

I always tell the truth.

Both: IMPOSSIBLE, by our Axiom.

False, True, Statements

Neither: I’m lying to you. ( If viewed on its own)

HUH? Well suppose that

S = “I’m lying to you.”

were true. In particular, I am actually lying, so

S is false. So it’s both true and false ,

impossible by the Axiom.

Okay, so I guess S must be false. But then I

must not be lying to you. So the statement is true. Again it’s both true and false.

In both cases we get the opposite of our

assumption, so S is neither true nor false.

Propositions

Propositional Logic is a static discipline of

statements which lack semantic content.

E.G. p = “Clinton was the president.”

q = “The list of U.S. presidents includes

Clinton.”

r = “Lions like to sleep.”

All p and q are no more closely related than q

and r are, in propositional calculus. They are

both equally related as all three statements

are true. Semantically, however, p and q are

the same!

Propositions

So why waste time on such matters?

Propositional logic is the study of how simple propositions can come together to make more complicated propositions. If the simple propositions were endowed with some

meaning – and they will be very soon– then

the complicated proposition would have meaning as well, and then finding out the truth value is actually important!