01 CMPT 260 Introduction.pdf - CMPT 260 Introduction!1 Couse Overview ● Review syllabus grading textbook and contact information ● Assignment design

01 CMPT 260 Introduction.pdf - CMPT 260 Introduction!1...

This preview shows page 1 - 11 out of 56 pages.

CMPT 260 Introduction 1
Image of page 1
Couse Overview Review syllabus, grading, textbook, and contact information Assignment design - heavy work load first month front loaded, and early quiz, then it tapers off. To get rolling want to give very quick overview of discrete math (as opposed to continuous math of calculus) 2
Image of page 2
Discrete Math Is the world smooth and continuous, like calculus assumes, or does it consist of discrete chunks? Certain things are “obviously” continuous - like water or time or your degree of belief in a sentence(!). And some are obviously not - the number of stones in a plate. Artificial intelligence? Are thoughts continuous, fuzzy, or can they be represented with symbols? Do words (which are chunky) represent thoughts? Can we do this with 1’s and 0’s). 3
Image of page 3
Propositional Logic First we see this subject as the arithmetic of truth. Very simple sentences and symbols representing simple “logical” ideas” coffee or tea? if cloudy then rain Symbols can be arranged in sequences that resemble arguments if cloud then rain cloud Therefore, rain Propositional logic provides the fundamental basis of computer hardware and software 4 The first two sentences represent the ideas “if it’s cloudy, it will rain” and the observation “cloudy”. From these two, we can conclude “it will rain.” (Concluding line of argument.)
Image of page 4
Predicate Logic Predicate Logic contains two kinds of objects, a universe of individuals (with names) and predicates, which can be properties of objects or relationships among objects, e.g. has-red-hair(kelly) sibling(kelly, jody) triangle(vertex1, vertex1, vertex3) Also permits generalizations, e.g. Everyone pays taxes. Somebody doesn’t pay taxes. Much more expressive power - yet a modular extension of propositional logic. X pays-taxes ( X ) X pays-taxes ( X ) 5
Image of page 5
Computational Logic A variation of logic that allows computers to reason with (part of) the full power of logic Python implementation 6
Image of page 6
Sets A set is a collection of objects 7
Image of page 7
CMPT 260 Sets We review set notation, because we use it a lot in this class. S = A set is unordered, elements the same even if listed more than once is read as “2 is an element of S” Some sets R – reals, Z – integers, Q – rationals, Z + positive integers {1,2,3} = {3,2,1} = {2,1,3} = {2,2,1,3,1} 2 S 8
Image of page 8
CMPT 260 Sets Subset Proper subset How many subsets are there are of ? Is Is The empty set, written , or , which is a subset of every set How many elements are there is How many subsets? ࠵?   ⊆ ࠵? ࠵? ࠵?   S = { ࠵? , ࠵? , ࠵? , ࠵? } ࠵? ࠵? ? { ࠵? } ࠵? ? {} ࠵? = { { ࠵? , ࠵? }, ࠵? , { ࠵? }, ࠵? , ࠵? } ࠵? ? 9
Image of page 9
Can a set be a subset of itself? Can Some thought, why not? Some thought - it’s impossible. Since we are computer scientists, and (I’ve just learned Python), and we are living in the era of Artificial Intelligence, let’s ASK A COMPUTER!
Image of page 10
Image of page 11

You've reached the end of your free preview.

Want to read all 56 pages?

  • Spring '14

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors