Functions, High-School Edition

Size: px
Start display at page:

Download "Functions, High-School Edition"

Transcription

1 Functions

2 What is a function?

3 Functions, High-School Edition

4 f(x) = x4 5x2 + 4 source:

5 source:

6 Functions, High-School Edition In high school, functions are usually given as objects of the form x3 +3 x2 +15 x+7 f (x) = 1 x137 What does a function do? Takes in as input a real number. Outputs a real number. except when there are vertical asymptotes or other discontinuities, in which case the function doesn't output anything.

7 Functions, CS Edition

8 int int flipuntil(int flipuntil(int n) n) {{ int int numheads numheads == 0; 0; int int numtries numtries == 0; 0; while while (numheads (numheads << n) n) {{ if if (randomboolean()) (randomboolean()) numheads++; numheads++; }} }} numtries++; numtries++; return return numtries; numtries;

9 Functions, CS Edition In programming, functions might take in inputs, might return values, might have side effects, might never return anything, might crash, and might return different values when called multiple times.

10 What's Common? Although high-school math functions and CS functions are pretty different, they have two key aspects in common: They take in inputs. They produce outputs. In math, we like to keep things easy, so that's pretty much how we're going to define a function.

11 Rough Idea of a Function: A function is an object f that takes in one input and produces exactly one output. x f f(x) (This is not a complete definition we'll revisit this in a bit.)

12 High School versus CS Functions In high school, functions usually were given by a rule: f(x) = 4x + 15 In CS, functions are usually given by code: int factorial(int n) { int result = 1; for (int i = 1; i <= n; i++) { result *= i; } return result; } What sorts of functions are we going to allow from a mathematical perspective?

13 Dikdik Nubian Ibex Sloth

14

15 but also

16 f(x) = x2 + 3x 15

17 { n/2 if n is even f (n)= (n+1)/2 otherwise Functions Functionslike likethese these are arecalled calledpiecewise piecewise functions. functions.

18 To define a function, you will typically either draw a picture, or give a rule for determining the output.

19 In mathematics, functions are deterministic. That is, given the same input, a function must always produce the same output.

20 One Challenge

21 f(x) = x2 + 2x + 5 f( 3 ) = = 20 f( 0 ) = = 5 f( 3 ) =?

22 f( )= f(137 ) =?

23 We need to make sure we can't apply functions to meaningless inputs.

24 Domains and Codomains Every function f has two sets associated with it: its domain and its codomain. A function f can only be applied to elements of its domain. For any x in the domain, f(x) belongs to the codomain. Domain Codomain

25 Domains and Codomains If f is a function whose domain is A and whose codomain is B, we write f : A B. This notation just says what the domain and codomain of the function is. It doesn't say how the function is evaluated. Think of it like a function prototype in C or C++. The notation f : A B is like writing B f(a argument); We know that f takes in an A and returns a B, but we don't know exactly which B it's going to return for a given A.

26 Domains and Codomains A function f must be defined for every element of the domain. For example, if f : ℝ ℝ, then the following function is not a valid choice for f: f(x) = 1 / x The output of f on any element of its domain must be an element of the codomain. For example, if f : ℝ ℕ, then the following function is not a valid choice for f: f(x) = x However, a function f does not have to produce all possible values in its codomain. For example, if f : ℕ ℕ, then the following function is a valid choice for f: f(n) = n2

27 Defining Functions Typically, we specify a function by describing a rule that maps every element of the domain to some element of the codomain. Examples: f(n) = n + 1, where f : ℤ ℤ f(x) = sin x, where f : ℝ ℝ f(x) = x, where f : ℝ ℤ Notice that we're giving both a rule and the domain/codomain.

28 Defining Functions Typically, we specify a function by describing a rule that maps every element This function of the domain to some element of the This isis the the ceiling ceiling function the the smallest smallest integer integer greater greater codomain. Examples: than than or or equal equal to to x. x. For For example, example, 1 1 == 1,1, == 2, 2, f(n) = n + 1, where f : ℤ ℤ and and π π == f(x) = sin x, where f : ℝ ℝ f(x) = x, where f : ℝ ℤ Notice that we're giving both a rule and the domain/codomain.

29 Is this a function from A to B? Stanford Cardinal Berkeley Blue Michigan Gold Arkansas White A B

30 Is this a function from A to B? California Dover New York Sacramento Delaware Albany Washington DC A B

31 Is this a function from A to B? Wish Funshine A B Love-a-Lot Tenderheart Friend

32 Combining Functions

33 f : People Places Keith g : Places Prices Mountain View Far Too Much Erik San Francisco King's Ransom Kevin Redding, CA A Modest Amount Cagla Barrow, AK Pocket Change Andi People Palo Alto Places Prices

34 f : People Places Keith g : Places Prices Mountain View Far Too Much Erik San Francisco King's Ransom Kevin Redding, CA A Modest Amount Cagla Barrow, AK Pocket Change Andi People Palo Alto Places h : People Prices h(x) = g(f(x)) Prices

35 Keith Far Too Much Erik King's Ransom Kevin A Modest Amount Cagla Pocket Change Andi People Places h : People Prices h(x) = g(f(x)) Prices

36 Function Composition Suppose that we have two functions f : A B and g : B C. Notice that the codomain of f is the domain of g. This means that we can use outputs from f as inputs to g. x f f(x) g g(f(x))

37 Function Composition Suppose that we have two functions f : A B and g : B C. The composition of f and g, denoted g f, is a function where g f : A C, and (g f)(x) = g(f(x)). A few things to notice: The Thename nameofofthe thefunction functionisisgg f.f. When Whenwe weapply applyititto toan aninput inputx,x, we wewrite write(g (g f)(x). f)(x).i Idon't don'tknow know why, but that's what we do. why, but that's what we do. The domain of g f is the domain of f. Its codomain is the codomain of g. Even though the composition is written g f, when evaluating (g f)(x), the function f is evaluated first.

38 Function Composition Let f : ℕ ℕ be defined as f(n) = 2n + 1 and g : ℕ ℕ be defined as g(n) = n2. What is g f? (g f)(n) = g(f(n)) (g f)(n) = g(2n + 1) (g f)(n) = (2n + 1)2 = 4n2 + 4n + 1 What is f g? (f g)(n) = f(g(n)) (f g)(n) = f(n2) (f g)(n) = 2n2 + 1 In general, if they exist, the functions g f and f g are usually not the same function. Order matters in function composition!

39 Time-Out for Announcements!

40 Are Are you you on on aa mailing mailing list list where where this this career career fair fair was was advertised? advertised? If If so, so, let let me me know know which which one! one!

41 WiCS Casual CS Dinner Stanford WiCS (Women in Computer Science) is holding a Casual CS Dinner tonight at 6:00PM at the Women's Community Center. All are welcome. Highly recommended!

42 ostem Mixer Stanford's chapter of ostem (Out in STEM) is holding a mixer event tonight at 6:00PM at the LGBT-CRC. If I'm not mistaken, that's literally right above the Casual CS Dinner! Interested in attending? RSVP using this link.

43 Problem Set One Problem Set One has been graded. Feedback is now available online through GradeScope, and solutions are now available in hardcopy. Please read Handout #15 ( Reviewing Graded Work ) for our advice about what to do next. In particular: Make sure you understand every piece of feedback you received. Ask questions about feedback you don't fully understand. Read over our solution sets, especially the why we asked this question section, to make sure that you understand what skills we were trying to help you build. Late PS1 submissions will be returned by tomorrow afternoon at 3:00PM.

44 Problem Set Two The checkpoint assignments for PS2 have been graded. Please be sure to read over the checkpoint solutions set there's a lot of information in there! The remaining problems are due on Friday. Please stop by office hours with questions, and continue to ask questions on Piazza!

45 Problem Set One: A Common Mistake

46 An Incorrect Proof Theorem: For any integers x, y, and k, if x ₖ y, then y ₖ x. Proof: Consider any arbitrary integers x, y, and k where x ₖ y. This means that there is an integer q where x y = kq. We need to prove that y ₖ x, meaning that we need to prove that there is an integer r where y x = kr. Since y x = kr, we see that x y = -kr. Earlier we noted that x y = kq, so collectively we see that -kr = kq. Therefore, we see that r = -q.

47 An Incorrect Proof Theorem: For any integers x, y, and k, if x ₖ y, then y ₖ x. Proof: Consider any arbitrary integers x, y, and k where x ₖ y. This means that there is an integer q where x y = kq. We need to prove that y ₖ x, meaning that we need to prove that there is an integer r where y x = kr. Since y x = kr, we see that x y = -kr. Earlier we noted that x y = kq, so collectively we see that -kr = kq. Therefore, we see that r = -q. We're We're assuming assuming what what we're we're trying trying to to prove! prove!

48 A Better Proof Theorem: For any integers x, y, and k, if x ₖ y, then y ₖ x. Proof: Consider any arbitrary integers x, y, and k where x ₖ y. This means that there is an integer q where x y = kq. We need to prove that y ₖ x, meaning that we need to prove that there is an integer r where y x = kr. Since x y = kq, we see that y x = -kq = k(-q). Therefore, there is an integer r, namely -q, such that y x = kr. Consequently, we see that y ₖ x, as required. Notice Notice that that we we start start with with our our initial initial assumptions assumptions and and use use them them to to derive derive the the required required result. result.

49 General Advice Be careful not to assume what you're trying to prove. In a proof, we recommend using the phrases we need to show that or we need to prove that to clearly indicate your goals. If you later find yourself relying on a statement marked we need to prove that, chances are you've made an error in your proof.

50 Your Questions

51 What was the best piece of advice you ever received? Both math-related and not. For For math math advice: advice: All All models models are are wrong. wrong. Some Some are are useful. useful. (source) (source) General General life life advice: advice: if if you you can t can t make make your your opponent s opponent s point point for for them, them, you you don t don t truly truly grasp grasp the the issue. issue. (source) (source)

52 You asked us to ask you again about research versus industry over the summer. :-) We're We're lucky lucky to to be be inin aa spot spot where where undergrads undergrads can can get get internships internships and and where where recruiting recruiting isis strong. strong. However, However, II think think it's it's important important that that everyone everyone get get some some research research experience experience as as well. well. Keep Keep inin mind mind that that post-graduation, post-graduation, unless unless you you directly directly go go for for aa Ph.D, Ph.D, it's it's really, really, really really hard hard to to get get into into research. research. It's It's worth worth exploring exploring itit to to see see ifif it's it's something something you're you're interested interested inin before before you you graduate, graduate, even even ifif you you decide decide not not to to continue continue on on inin academia. academia. If If you're you're an an undergraduate undergraduate inin CS, CS, II strongly strongly recommend recommend looking looking into into the the CURIS CURIS summer summer research research program. program. It's It's aa great great way way to to get get exposed exposed to to research, research, make make connections connections inin the the CS CS department, department, and and get get aa feel feel for for what what academia academia isis like. like.

53 Back to CS103!

54 Special Types of Functions

55 Mercury Venus Earth Mars Jupiter Saturn Uranus Neptune

56 Injective Functions A function f : A B is called injective (or one-to-one) if the following statement is true about f: a₁ A. a₂ A. (a₁ a₂ f(a₁) f(a₂)) ( If the inputs are different, the outputs are different. ) The following definition is equivalent and tends to be more useful in proofs: a₁ A. a₂ A. (f(a₁) = f(a₂) a₁ = a₂) ( If the outputs are the same, the inputs are the same. ) A function with this property is called an injection. Intuitively, in an injection, every element of the codomain has at most one element of the domain mapping to it.

57 Injective Functions Theorem: Let f : ℕ ℕ be defined as f(n) = 2n + 7. Then f is injective. Proof: Consider any n₀, n₁ ℕ where f(n₀) = f(n₁). We will prove that n₀ = n₁. What What does does itit mean mean for for the the function function ff to to be be Since f(n₀) = f(n₁), we see that injective? injective? 2n₀ + 7 = 2n₁ + 7. This in turn means that n₀ ℕ. n₁ ℕ. n₀ ℕ. n₁ ℕ.((f(n₀) f(n₀)==f(n₁) f(n₁) n₀ n₀==n₁ n₁)) 2n₀ = 2n₁, n₀ n₀ ℕ. ℕ. n₁ n₁ ℕ. ℕ.((n₀ n₀ n₁ n₁ f(n₀) f(n₀) f(n₁) f(n₁))) so n₀ = n₁, as required. Therefore, Therefore, we'll we'll pick pick arbitrary arbitrary n₀, n₀,n₁ n₁ ℕ ℕ where where f(n₀) f(n₀)==f(n₁), f(n₁), then then prove prove that that n₀ n₀==n₁. n₁.

58 Injective Functions Theorem: Let f : ℕ ℕ be defined as f(n) = 2n + 7. Then f is injective. Proof: Consider any n₀, n₁ ℕ where f(n₀) = f(n₁). We will prove that n₀ = n₁. Since f(n₀) = f(n₁), we see that 2n₀ + 7 = 2n₁ + 7. This in turn means that 2n₀ = 2n₁, so n₀ = n₁, as required.

59 Injective Functions Theorem: Let f : ℤ ℕ be defined as f(x) = x4. Then f is not injective. Proof: We will prove that there exist integers x₀ and x₁ such that x₀ x₁, but f(x₀) = f(x₁). What does it mean for f to be injective? What does it mean for f to be injective? Let x₀ = -1 and x₁ = +1. Then x₀ ℤ. x₁ ℤ. (x₀ x₀ ℤ. x₁ ℤ. (x₀ x₁ x₁ f(x₀) f(x₀) f(x₁)) f(x₁)) 4 f(x₀) f(-1) = (-1) =1 What is the negation of this = statement? What is the negation of this statement? and x₀ x₀ ℤ. ℤ. x₁ x₁ ℤ. ℤ.(x₀ (x₀ x₁ x₁ f(x₀) f(x₀) f(x₁)) f(x₁)) x₀ ℤ. = x₁ 4 f(x₀) x₀ ℤ. ℤ. x₁ x₁ ℤ. (x₀ x₁1 f(x₁)) f(x₁) =(x₀ f(1) =f(x₀) 1, f(x₁)) x₀ x₀ ℤ. ℤ. x₁ x₁ ℤ. ℤ. (x₀ (x₀ x₁ x₁ f(x₀) f(x₀) f(x₁)) f(x₁)) so f(x₀) = f(x₁) even though x₀ x₁, as required. x₀ x₀ ℤ. ℤ. x₁ x₁ ℤ. ℤ.(x₀ (x₀ x₁ x₁ (f(x₀) (f(x₀) f(x₁))) f(x₁))) x₀ x₀ ℤ. ℤ. x₁ x₁ ℤ. ℤ.(x₀ (x₀ x₁ x₁ f(x₀) f(x₀)==f(x₁)) f(x₁)) Therefore, we need to find x₀, x₁ ℤ such that x₀ x₁, but f(x₀) = f(x₁). Therefore, we need to find x₀, x₁ ℤ such that x₀ x₁, but f(x₀) = f(x₁). Can we do that? Can we do that?

60 Injective Functions Theorem: Let f : ℤ ℕ be defined as f(x) = x4. Then f is not injective. Proof: We will prove that there exist integers x₀ and x₁ such that x₀ x₁, but f(x₀) = f(x₁). Let x₀ = -1 and x₁ = +1. Then f(x₀) = f(-1) = (-1)4 = 1 and f(x₁) = f(1) = 14 = 1, so f(x₀) = f(x₁) even though x₀ x₁, as required.

61 Injections and Composition

62 Injections and Composition Theorem: If f : A B is an injection and g : B C is an injection, then the function g f : A C is an injection. Our goal will be to prove this result. To do so, we're going to have to call back to the formal definitions of injectivity and function composition.

63 Theorem: If f : A B is an injection and g : B C is an injection, then the function g f : A C is also an injection. Proof: Let f : A B and g : B C be arbitrary injections. We will prove that the function g f : A C is also injective. To do so, we will prove for all a₁ A and a₂ A that if (g f)(a₁) = (g f)(a₂), then a₁ = a₂. Suppose that (g f)(a₁) = (g f)(a₂). Expanding out the definition of g f, this means that g(f(a₁)) = g(f(a₂)). Since g is injective and g(f(a₁)) = g(f(a₂)), we know f(a₁) = f(a₂). Similarly, since f is injective and f(a₁) = f(a₂), we know that a₁ = a₂, as required. Good Good exercise: exercise: Repeat Repeat this this proof proof using using the the other other definition definition of of injectivity. injectivity.

64 Another Class of Functions

65 Front Door Balcony Window Bedroom Window

66 Surjective Functions A function f : A B is called surjective (or onto) if this statement is true about f: b B. a A. f(a) = b ( For every possible output, there's at least one possible input that produces it ) A function with this property is called a surjection. Intuitively, every element in the codomain of a surjection has at least one element of the domain mapping to it.

67 Surjective Functions Theorem: Let f : ℝ ℝ be defined as f(x) = x / 2. Then f(x) is surjective. Proof: Consider any y ℝ. We will prove that there is a choice of x ℝ such that f(x) = y. Let x = 2y. Then we see that f(x) = f(2y) = 2y / 2 = y. So f(x) = y, as required.

68 Composing Surjections

69 Theorem: If f : A B is surjective and g : B C is surjective, then g f : A C is also surjective. Proof: Let f : A B and g : B C be arbitrary surjections. We will prove that the function g f : A C is also surjective. To do so, we will prove that for any c C, there is some a A such that (g f)(a) = c. Equivalently, we will prove that for any c C, there is some a A such that g(f(a)) = c. b Consider any c C. Since g : B C is surjective, there is a b B such that g(b) = c. Similarly, since f : A B is some c surjective, there is some a A such that f(a) = b. This means that there is some a A such that g(f(a)) = g(b) = c, which is what we needed to show. A f B g C

70 Theorem: If f : A B is surjective and g : B C is surjective, then g f : A C is also surjective. Proof: Let f : A B and g : B C be arbitrary surjections. We will prove that the function g f : A C is also surjective. To do so, we will prove that for any c C, there is some a A such that (g f)(a) = c. Equivalently, we will prove that for any c C, there is some a A such that g(f(a)) = c. Consider any c C. Since g : B C is surjective, there is some b B such that g(b) = c. Similarly, since f : A B is surjective, there is some a A such that f(a) = b. This means that there is some a A such that g(f(a)) = g(b) = c, which is what we needed to show.

Functions, High-School Edition

Functions, High-School Edition Functions What is a function? Functions, High-School Edition f(x) = x4 5x2 + 4 source: https://saylordotorg.github.io/text_intermediate-algebra/section_07/6aaf3a5ab540885474d58855068b64ce.png source: http://study.com/cimages/multimages/16/asymptote_1.jpg

More information

Functions, High-School Edition

Functions, High-School Edition Functions What is a function? Functions, High-School Edition f(x) = x4 5x2 + 4 source: https://saylordotorg.github.io/text_intermediate-algebra/section_07/6aaf3a5ab540885474d58855068b64ce.png source: http://study.com/cimages/multimages/16/asymptote_1.jpg

More information

Functions, High-School Edition

Functions, High-School Edition Functions What is a function? Functions, High-School Edition f(x) = x4 5x2 + 4 source: https://saylordotorg.github.io/text_intermediate-algebra/section_07/6aaf3a5ab540885474d58855068b64ce.png source: http://study.com/cimages/multimages/16/asymptote_1.jpg

More information

The Pigeonhole Principle & Functions

The Pigeonhole Principle & Functions The Pigeonhole Principle & Functions Problem Problem Set Set Two Two due due in in the the box box up up front. front. The pigeonhole principle is the following: If m objects are placed into n bins, where

More information

Functions, High-School Edition

Functions, High-School Edition Functions What is a function? Functions, High-School Edition f(x) = x4 5x2 + 4 source: https://saylordotorg.github.io/text_intermediate-algebra/section_07/6aaf3a5ab540885474d58855068b64ce.png source: http://study.com/cimages/multimages/16/asymptote_1.jpg

More information

f(x) = x4 5x2 + 4 source:

f(x) = x4 5x2 + 4 source: Functions What is a function? f(x) = x4 5x2 + 4 source: https://saylordotorg.github.io/text_intermediate-algebra/section_07/6aaf3a5ab540885474d58855068b64ce.png int int flipuntil(int flipuntil(int n) n)

More information

Announcements. Problem Set 3 due Friday, October 21. Alternate Midterm Times. Drop by office hours! Ask questions at

Announcements. Problem Set 3 due Friday, October 21. Alternate Midterm Times. Drop by office hours! Ask questions at Functions Announcements Problem Set 3 due Friday, October 21 Drop by office hours! Ask questions at cs103@cs.stanford.edu. Alternate Midterm Times Wednesday, October 26, 7:00PM 10:00PM Thursday, October

More information

Binary Relations Part One

Binary Relations Part One Binary Relations Part One Outline for Today Binary Relations Reasoning about connections between objects. Equivalence Relations Reasoning about clusters. A Fundamental Theorem How do we know we have the

More information

Graph Theory Part Two

Graph Theory Part Two Graph Theory Part Two Recap from Last Time A graph is a mathematical structure for representing relationships. Nodes A graph consists of a set of nodes (or vertices) connected by edges (or arcs) A graph

More information

Mathematical Logic Part Two

Mathematical Logic Part Two Mathematical Logic Part Two Recap from Last Time Recap So Far A propositional variable is a variable that is either true or false. The propositional connectives are as follows: Negation: p Conjunction:

More information

Functions. How is this definition written in symbolic logic notation?

Functions. How is this definition written in symbolic logic notation? functions 1 Functions Def. Let A and B be sets. A function f from A to B is an assignment of exactly one element of B to each element of A. We write f(a) = b if b is the unique element of B assigned by

More information

Mathematical Logic Part Two

Mathematical Logic Part Two Mathematical Logic Part Two A Note on the Career Fair Recap from Last Time Recap So Far A propositional variable is a variable that is either true or false. The propositional connectives are as follows:

More information

Mathematical Logic Part Two

Mathematical Logic Part Two Mathematical Logic Part Two A Note on the Career Fair Recap from Last Time Recap So Far A propositional variable is a variable that is either true or false. The propositional connectives are as follows:

More information

Mathematical Logic Part One

Mathematical Logic Part One Mathematical Logic Part One Question: How do we formalize the logic we've been using in our proofs? Where We're Going Propositional Logic (Today) Basic logical connectives. Truth tables. Logical equivalences.

More information

CS103 Spring 2018 Mathematical Vocabulary

CS103 Spring 2018 Mathematical Vocabulary CS103 Spring 2018 Mathematical Vocabulary You keep using that word. I do not think it means what you think it means. - Inigo Montoya, from The Princess Bride Consider the humble while loop in most programming

More information

In our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology.

In our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology. Guide to and Hi everybody! In our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology. This guide focuses on two of those symbols: and. These symbols represent concepts

More information

Skill 1: Multiplying Polynomials

Skill 1: Multiplying Polynomials CS103 Spring 2018 Mathematical Prerequisites Although CS103 is primarily a math class, this course does not require any higher math as a prerequisite. The most advanced level of mathematics you'll need

More information

Mathematical Logic Part One

Mathematical Logic Part One Mathematical Logic Part One Question: How do we formalize the logic we've been using in our proofs? Where We're Going Propositional Logic (Today) Basic logical connectives. Truth tables. Logical equivalences.

More information

CS103 Handout 13 Fall 2012 May 4, 2012 Problem Set 5

CS103 Handout 13 Fall 2012 May 4, 2012 Problem Set 5 CS103 Handout 13 Fall 2012 May 4, 2012 Problem Set 5 This fifth problem set explores the regular languages, their properties, and their limits. This will be your first foray into computability theory,

More information

Proofwriting Checklist

Proofwriting Checklist CS103 Winter 2019 Proofwriting Checklist Cynthia Lee Keith Schwarz Over the years, we ve found many common proofwriting errors that can easily be spotted once you know how to look for them. In this handout,

More information

2. Functions, sets, countability and uncountability. Let A, B be sets (often, in this module, subsets of R).

2. Functions, sets, countability and uncountability. Let A, B be sets (often, in this module, subsets of R). 2. Functions, sets, countability and uncountability I. Functions Let A, B be sets (often, in this module, subsets of R). A function f : A B is some rule that assigns to each element of A a unique element

More information

Binary Relations Part One

Binary Relations Part One Binary Relations Part One Outline for Today Binary Relations Reasoning about connections between objects. Equivalence Relations Reasoning about clusters. A Fundamental Theorem How do we know we have the

More information

Formal Methods of Software Design, Eric Hehner, segment 24 page 1 out of 5

Formal Methods of Software Design, Eric Hehner, segment 24 page 1 out of 5 Formal Methods of Software Design, Eric Hehner, segment 24 page 1 out of 5 [talking head] This lecture we study theory design and implementation. Programmers have two roles to play here. In one role, they

More information

Outline for Today. The Pigeonhole Principle. Graph Theory Party Tricks. The Hadwiger-Nelson Problem. Results that are too big to fail.

Outline for Today. The Pigeonhole Principle. Graph Theory Party Tricks. The Hadwiger-Nelson Problem. Results that are too big to fail. Graphs Part Two Outline for Today The Pigeonhole Principle Graph Theory Party Tricks Results that are too big to fail. Applying graph theory to real life! The Hadwiger-Nelson Problem A glimpse of advanced

More information

W13:Homework:H07. CS40 Foundations of Computer Science W13. From 40wiki

W13:Homework:H07. CS40 Foundations of Computer Science W13. From 40wiki W13:Homework:H07 From 40wiki CS40 Foundations of Computer Science W13 W13:Exams W13:Homework in Class and Web Work W13:Calendar W13:Syllabus and Lecture Notes UCSB-CS40-W13 on Facebook (https://www.facebook.com/groups/ucsb.cs40.w13/)

More information

Grade 6 Math Circles November 6 & Relations, Functions, and Morphisms

Grade 6 Math Circles November 6 & Relations, Functions, and Morphisms Faculty of Mathematics Waterloo, Ontario N2L 3G1 Centre for Education in Mathematics and Computing Relations Let s talk about relations! Grade 6 Math Circles November 6 & 7 2018 Relations, Functions, and

More information

CS103 Handout 50 Fall 2018 November 30, 2018 Problem Set 9

CS103 Handout 50 Fall 2018 November 30, 2018 Problem Set 9 CS103 Handout 50 Fall 2018 November 30, 2018 Problem Set 9 What problems are beyond our capacity to solve? Why are they so hard? And why is anything that we've discussed this quarter at all practically

More information

Functions. Def. Let A and B be sets. A function f from A to B is an assignment of exactly one element of B to each element of A.

Functions. Def. Let A and B be sets. A function f from A to B is an assignment of exactly one element of B to each element of A. Functions functions 1 Def. Let A and B be sets. A function f from A to B is an assignment of exactly one element of B to each element of A. a A! b B b is assigned to a a A! b B f ( a) = b Notation: If

More information

CS103 Handout 14 Winter February 8, 2013 Problem Set 5

CS103 Handout 14 Winter February 8, 2013 Problem Set 5 CS103 Handout 14 Winter 2012-2013 February 8, 2013 Problem Set 5 This fifth problem set explores the regular languages, their properties, and their limits. This will be your first foray into computability

More information

Reading 1 : Introduction

Reading 1 : Introduction CS/Math 240: Introduction to Discrete Mathematics Fall 2015 Instructors: Beck Hasti and Gautam Prakriya Reading 1 : Introduction Welcome to CS 240, an introduction to discrete mathematics. This reading

More information

MITOCW watch?v=4dj1oguwtem

MITOCW watch?v=4dj1oguwtem MITOCW watch?v=4dj1oguwtem PROFESSOR: So it's time to examine uncountable sets. And that's what we're going to do in this segment. So Cantor's question was, are all sets the same size? And he gives a definitive

More information

Outline for Today. Why could we construct them in time O(n)? Analyzing data structures over the long term.

Outline for Today. Why could we construct them in time O(n)? Analyzing data structures over the long term. Amortized Analysis Outline for Today Euler Tour Trees A quick bug fix from last time. Cartesian Trees Revisited Why could we construct them in time O(n)? Amortized Analysis Analyzing data structures over

More information

Cardinality Lectures

Cardinality Lectures Cardinality Lectures Enrique Treviño March 8, 014 1 Definition of cardinality The cardinality of a set is a measure of the size of a set. When a set A is finite, its cardinality is the number of elements

More information

MATH 271 Summer 2016 Assignment 4 solutions

MATH 271 Summer 2016 Assignment 4 solutions MATH 7 ummer 06 Assignment 4 solutions Problem Let A, B, and C be some sets and suppose that f : A B and g : B C are functions Prove or disprove each of the following statements (a) If f is one-to-one

More information

Functions 2/1/2017. Exercises. Exercises. Exercises. and the following mathematical appetizer is about. Functions. Functions

Functions 2/1/2017. Exercises. Exercises. Exercises. and the following mathematical appetizer is about. Functions. Functions Exercises Question 1: Given a set A = {x, y, z} and a set B = {1, 2, 3, 4}, what is the value of 2 A 2 B? Answer: 2 A 2 B = 2 A 2 B = 2 A 2 B = 8 16 = 128 Exercises Question 2: Is it true for all sets

More information

Lecture 1: Overview

Lecture 1: Overview 15-150 Lecture 1: Overview Lecture by Stefan Muller May 21, 2018 Welcome to 15-150! Today s lecture was an overview that showed the highlights of everything you re learning this semester, which also meant

More information

CS161 Handout 07 Summer 2013 July 17, 2013 Guide to Reductions. Thanks to Julie Tibshirani for helping with this handout!

CS161 Handout 07 Summer 2013 July 17, 2013 Guide to Reductions. Thanks to Julie Tibshirani for helping with this handout! CS161 Handout 07 Summer 2013 July 17, 2013 Guide to Reductions Thanks to Julie Tibshirani for helping with this handout! We'll design many algorithms over the course of this class. Often, the algorithms

More information

MATH 22 MORE ABOUT FUNCTIONS. Lecture M: 10/14/2003. Form follows function. Louis Henri Sullivan

MATH 22 MORE ABOUT FUNCTIONS. Lecture M: 10/14/2003. Form follows function. Louis Henri Sullivan MATH 22 Lecture M: 10/14/2003 MORE ABOUT FUNCTIONS Form follows function. Louis Henri Sullivan This frightful word, function, was born under other skies than those I have loved. Le Corbusier D ora innanzi

More information

Extra Practice Problems 2

Extra Practice Problems 2 CS103 Handout 31 Fall 2018 October 29, 2018 Extra Practice Problems 2 Here's a set of a bunch of practice problems you can work through to solidify your understanding of the topics from Problem Sets Three,

More information

Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5

Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5 Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5 [talking head] Formal Methods of Software Engineering means the use of mathematics as an aid to writing programs. Before we can

More information

CS103 Handout 39 Winter 2018 February 23, 2018 Problem Set 7

CS103 Handout 39 Winter 2018 February 23, 2018 Problem Set 7 CS103 Handout 39 Winter 2018 February 23, 2018 Problem Set 7 What can you do with regular expressions? What are the limits of regular languages? In this problem set, you'll explore the answers to these

More information

Instructor: Craig Duckett. Lecture 04: Thursday, April 5, Relationships

Instructor: Craig Duckett. Lecture 04: Thursday, April 5, Relationships Instructor: Craig Duckett Lecture 04: Thursday, April 5, 2018 Relationships 1 Assignment 1 is due NEXT LECTURE 5, Tuesday, April 10 th in StudentTracker by MIDNIGHT MID-TERM EXAM is LECTURE 10, Tuesday,

More information

CS103 Handout 35 Spring 2017 May 19, 2017 Problem Set 7

CS103 Handout 35 Spring 2017 May 19, 2017 Problem Set 7 CS103 Handout 35 Spring 2017 May 19, 2017 Problem Set 7 What can you do with regular expressions? What are the limits of regular languages? In this problem set, you'll explore the answers to these questions

More information

Lecture 7: the quotient topology

Lecture 7: the quotient topology Lecture 7: the quotient topology Saul Glasman September 21, 2016 Why couldn t we say that a homeomorphism was just a continuous bijection? Why did we have to explicitly require the inverse to be continuous

More information

Hardware versus software

Hardware versus software Logic 1 Hardware versus software 2 In hardware such as chip design or architecture, designs are usually proven to be correct using proof tools In software, a program is very rarely proved correct Why?

More information

Problem One: A Quick Algebra Review

Problem One: A Quick Algebra Review CS103A Winter 2019 Solutions for Week One Handout 01S Problem One: A Quick Algebra Review In the first week of CS103, we'll be doing a few proofs that will require some algebraic manipulations and reasoning

More information

Range Minimum Queries Part Two

Range Minimum Queries Part Two Range Minimum Queries Part Two Recap from Last Time The RMQ Problem The Range Minimum Query (RMQ) problem is the following: Given a fixed array A and two indices i j, what is the smallest element out of

More information

Introduction to Sets and Logic (MATH 1190)

Introduction to Sets and Logic (MATH 1190) Introduction to Sets and Logic () Instructor: Email: shenlili@yorku.ca Department of Mathematics and Statistics York University Dec 4, 2014 Outline 1 2 3 4 Definition A relation R from a set A to a set

More information

Continuous functions and homeomorphisms

Continuous functions and homeomorphisms Continuous functions and homeomorphisms 1 Motivation Up to now we have defined just a few topological properties, like the first three T -axioms and the countability properties (separable, ccc, first and

More information

Functions. Jason Filippou UMCP. Jason Filippou UMCP) Functions / 19

Functions. Jason Filippou UMCP. Jason Filippou UMCP) Functions / 19 Functions Jason Filippou CMSC250 @ UMCP 06-22-2016 Jason Filippou (CMSC250 @ UMCP) Functions 06-22-2016 1 / 19 Outline 1 Basic definitions and examples 2 Properties of functions 3 The pigeonhole principle

More information

A graph is a mathematical structure for representing relationships.

A graph is a mathematical structure for representing relationships. Graphs Part Two A graph is a mathematical structure for representing relationships. Nodes A graph consists of a set of nodes (or vertices) connected by edges (or arcs) A graph is a mathematical structure

More information

ASYMPTOTIC COMPLEXITY

ASYMPTOTIC COMPLEXITY Simplicity is a great virtue but it requires hard work to achieve it and education to appreciate it. And to make matters worse: complexity sells better. - Edsger Dijkstra ASYMPTOTIC COMPLEXITY Lecture

More information

How invariants help writing loops Author: Sander Kooijmans Document version: 1.0

How invariants help writing loops Author: Sander Kooijmans Document version: 1.0 How invariants help writing loops Author: Sander Kooijmans Document version: 1.0 Why this document? Did you ever feel frustrated because of a nasty bug in your code? Did you spend hours looking at the

More information

CS103 Handout 16 Winter February 15, 2013 Problem Set 6

CS103 Handout 16 Winter February 15, 2013 Problem Set 6 CS103 Handout 16 Winter 2012-2013 February 15, 2013 Problem Set 6 How much firepower do context-free languages have? What are their limits? And just how awesome are PDAs? In this problem set, you'll get

More information

6.001 Notes: Section 6.1

6.001 Notes: Section 6.1 6.001 Notes: Section 6.1 Slide 6.1.1 When we first starting talking about Scheme expressions, you may recall we said that (almost) every Scheme expression had three components, a syntax (legal ways of

More information

CS2 Algorithms and Data Structures Note 1

CS2 Algorithms and Data Structures Note 1 CS2 Algorithms and Data Structures Note 1 Analysing Algorithms This thread of the course is concerned with the design and analysis of good algorithms and data structures. Intuitively speaking, an algorithm

More information

Outline for Today. Planar Graphs. Graph Coloring. The Pigeonhole Principle. Ramsey Theory. The Hadwiger-Nelson Problem (ITA)

Outline for Today. Planar Graphs. Graph Coloring. The Pigeonhole Principle. Ramsey Theory. The Hadwiger-Nelson Problem (ITA) Graphs Part Two Outline for Today Planar Graphs Graph Coloring Revisiting a core idea in counting. Ramsey Theory A common operation on graphs with surprising properties. The Pigeonhole Principle A special

More information

It Might Be Valid, But It's Still Wrong Paul Maskens and Andy Kramek

It Might Be Valid, But It's Still Wrong Paul Maskens and Andy Kramek Seite 1 von 5 Issue Date: FoxTalk July 2000 It Might Be Valid, But It's Still Wrong Paul Maskens and Andy Kramek This month, Paul Maskens and Andy Kramek discuss the problems of validating data entry.

More information

Lecture 3: Recursion; Structural Induction

Lecture 3: Recursion; Structural Induction 15-150 Lecture 3: Recursion; Structural Induction Lecture by Dan Licata January 24, 2012 Today, we are going to talk about one of the most important ideas in functional programming, structural recursion

More information

Chapter 3. Set Theory. 3.1 What is a Set?

Chapter 3. Set Theory. 3.1 What is a Set? Chapter 3 Set Theory 3.1 What is a Set? A set is a well-defined collection of objects called elements or members of the set. Here, well-defined means accurately and unambiguously stated or described. Any

More information

.Math 0450 Honors intro to analysis Spring, 2009 Notes #4 corrected (as of Monday evening, 1/12) some changes on page 6, as in .

.Math 0450 Honors intro to analysis Spring, 2009 Notes #4 corrected (as of Monday evening, 1/12) some changes on page 6, as in  . 0.1 More on innity.math 0450 Honors intro to analysis Spring, 2009 Notes #4 corrected (as of Monday evening, 1/12) some changes on page 6, as in email. 0.1.1 If you haven't read 1.3, do so now! In notes#1

More information

14.1 Encoding for different models of computation

14.1 Encoding for different models of computation Lecture 14 Decidable languages In the previous lecture we discussed some examples of encoding schemes, through which various objects can be represented by strings over a given alphabet. We will begin this

More information

(Refer Slide Time: 1:27)

(Refer Slide Time: 1:27) Data Structures and Algorithms Dr. Naveen Garg Department of Computer Science and Engineering Indian Institute of Technology, Delhi Lecture 1 Introduction to Data Structures and Algorithms Welcome to data

More information

Note: This is a miniassignment and the grading is automated. If you do not submit it correctly, you will receive at most half credit.

Note: This is a miniassignment and the grading is automated. If you do not submit it correctly, you will receive at most half credit. Com S 227 Fall 2017 Miniassignment 1 50 points Due Date: Monday, October 16, 11:59 pm (midnight) Late deadline (25% penalty): Tuesday, October 17, 11:59 pm General information This assignment is to be

More information

Turing Machines Part Two

Turing Machines Part Two Turing Machines Part Two Recap from Last Time The Turing Machine A Turing machine consists of three parts: A finite-state control that issues commands, an infinite tape for input and scratch space, and

More information

The Language of Sets and Functions

The Language of Sets and Functions MAT067 University of California, Davis Winter 2007 The Language of Sets and Functions Isaiah Lankham, Bruno Nachtergaele, Anne Schilling (January 7, 2007) 1 The Language of Sets 1.1 Definition and Notation

More information

3. Determine whether f is a function from the set of all bit strings to the set of integers if

3. Determine whether f is a function from the set of all bit strings to the set of integers if Exercises Exercises 1. Why is f not a function from R to R if a) f(x) = 1/x? b) c) 2. Determine whether f is a function from Z to R if a) f(n) = ± n. b). c) f(n) = 1/(n2 4). 3. Determine whether f is a

More information

Part 1 Simple Arithmetic

Part 1 Simple Arithmetic California State University, Sacramento College of Engineering and Computer Science Computer Science 10A: Accelerated Introduction to Programming Logic Activity B Variables, Assignments, and More Computers

More information

Notes on Turing s Theorem and Computability

Notes on Turing s Theorem and Computability Notes on Turing s Theorem and Computability Walter Neumann About 60 years ago there was a revolution in mathematics and philosophy. First Gödel and then Turing showed that there are impossible problems

More information

(Refer Slide Time: 01.26)

(Refer Slide Time: 01.26) Data Structures and Algorithms Dr. Naveen Garg Department of Computer Science and Engineering Indian Institute of Technology, Delhi Lecture # 22 Why Sorting? Today we are going to be looking at sorting.

More information

MATHEMATICS 191, FALL 2004 MATHEMATICAL PROBABILITY Outline #1 (Countability and Uncountability)

MATHEMATICS 191, FALL 2004 MATHEMATICAL PROBABILITY Outline #1 (Countability and Uncountability) MATHEMATICS 191, FALL 2004 MATHEMATICAL PROBABILITY Outline #1 (Countability and Uncountability) Last modified: September 16, 2004 Reference: Apostol, Calculus, Vol. 2, section 13.19 (attached). The aim

More information

IAE Professional s (02)

IAE Professional  s (02) IAE Professional Emails (02) TASK ONE: There are three different styles of writing when it comes to communication via email: Formal This is the style of an old-fashioned letter. Ideas are presented politely

More information

CS 3512, Spring Instructor: Doug Dunham. Textbook: James L. Hein, Discrete Structures, Logic, and Computability, 3rd Ed. Jones and Barlett, 2010

CS 3512, Spring Instructor: Doug Dunham. Textbook: James L. Hein, Discrete Structures, Logic, and Computability, 3rd Ed. Jones and Barlett, 2010 CS 3512, Spring 2011 Instructor: Doug Dunham Textbook: James L. Hein, Discrete Structures, Logic, and Computability, 3rd Ed. Jones and Barlett, 2010 Prerequisites: Calc I, CS2511 Rough course outline:

More information

Basics of Computational Geometry

Basics of Computational Geometry Basics of Computational Geometry Nadeem Mohsin October 12, 2013 1 Contents This handout covers the basic concepts of computational geometry. Rather than exhaustively covering all the algorithms, it deals

More information

CS103 Handout 13 Spring 2018 April 6, 2018 Problem Set 1

CS103 Handout 13 Spring 2018 April 6, 2018 Problem Set 1 CS103 Handout 13 Spring 2018 April 6, 2018 Problem Set 1 Here we are the first problem set of the quarter! This problem set is designed to give you practice writing proofs on a variety of different topics.

More information

ASYMPTOTIC COMPLEXITY

ASYMPTOTIC COMPLEXITY Simplicity is a great virtue but it requires hard work to achieve it and education to appreciate it. And to make matters worse: complexity sells better. - Edsger Dijkstra ASYMPTOTIC COMPLEXITY Lecture

More information

function at the given point. Thus, for our previous example we would find that lim f(x) = 0

function at the given point. Thus, for our previous example we would find that lim f(x) = 0 Limits In order to introduce the notion of the it, we will consider the following situation. Suppose you are given a function, defined on some interval, except at a single point in the interval. What,

More information

6.001 Notes: Section 4.1

6.001 Notes: Section 4.1 6.001 Notes: Section 4.1 Slide 4.1.1 In this lecture, we are going to take a careful look at the kinds of procedures we can build. We will first go back to look very carefully at the substitution model,

More information

MITOCW watch?v=hverxup4cfg

MITOCW watch?v=hverxup4cfg MITOCW watch?v=hverxup4cfg PROFESSOR: We've briefly looked at graph isomorphism in the context of digraphs. And it comes up in even more fundamental way really for simple graphs where the definition is

More information

0.1 Welcome. 0.2 Insertion sort. Jessica Su (some portions copied from CLRS)

0.1 Welcome. 0.2 Insertion sort. Jessica Su (some portions copied from CLRS) 0.1 Welcome http://cs161.stanford.edu My contact info: Jessica Su, jtysu at stanford dot edu, office hours Monday 3-5 pm in Huang basement TA office hours: Monday, Tuesday, Wednesday 7-9 pm in Huang basement

More information

What a lot of folks might call the class but as we ll see later, it s not entirely accurate.

What a lot of folks might call the class but as we ll see later, it s not entirely accurate. 1 What a lot of folks might call the class but as we ll see later, it s not entirely accurate. 2 Class composition; note that while CS students are the largest group, they re still only about a quarter

More information

Packages in Julia. Downloading Packages A Word of Caution Sawtooth, Revisited

Packages in Julia. Downloading Packages A Word of Caution Sawtooth, Revisited Packages in Julia Downloading Packages A Word of Caution Sawtooth, Revisited Downloading Packages Because Julia is an open-source language, there are a ton of packages available online that enable such

More information

Notes on metric spaces and topology. Math 309: Topics in geometry. Dale Rolfsen. University of British Columbia

Notes on metric spaces and topology. Math 309: Topics in geometry. Dale Rolfsen. University of British Columbia Notes on metric spaces and topology Math 309: Topics in geometry Dale Rolfsen University of British Columbia Let X be a set; we ll generally refer to its elements as points. A distance function, or metric

More information

MITOCW watch?v=sdw8_0rdzuw

MITOCW watch?v=sdw8_0rdzuw MITOCW watch?v=sdw8_0rdzuw PROFESSOR: Directed acyclic graphs are a special class of graphs that really have and warrant a theory of their own. Of course, "directed acyclic graphs" is lot of syllables,

More information

CS446: Machine Learning Fall Problem Set 4. Handed Out: October 17, 2013 Due: October 31 th, w T x i w

CS446: Machine Learning Fall Problem Set 4. Handed Out: October 17, 2013 Due: October 31 th, w T x i w CS446: Machine Learning Fall 2013 Problem Set 4 Handed Out: October 17, 2013 Due: October 31 th, 2013 Feel free to talk to other members of the class in doing the homework. I am more concerned that you

More information

MITOCW MIT6_01SC_rec2_300k.mp4

MITOCW MIT6_01SC_rec2_300k.mp4 MITOCW MIT6_01SC_rec2_300k.mp4 KENDRA PUGH: Hi. I'd like to talk to you today about inheritance as a fundamental concept in object oriented programming, its use in Python, and also tips and tricks for

More information

Fundamental Graph Algorithms Part Three

Fundamental Graph Algorithms Part Three Fundamental Graph Algorithms Part Three Outline for Today Topological Sorting, Part II How can we quickly compute a topological ordering on a DAG? Connected Components How do we find the pieces of an undirected

More information

Announcement. Submit assignment 3 on CourSys Do not hand in hard copy Due Friday, 15:20:00. Caution: Assignment 4 will be due next Wednesday

Announcement. Submit assignment 3 on CourSys Do not hand in hard copy Due Friday, 15:20:00. Caution: Assignment 4 will be due next Wednesday Announcement Submit assignment 3 on CourSys Do not hand in hard copy Due Friday, 15:20:00 Caution: Assignment 4 will be due next Wednesday Recursion Examples and Simple Searching CMPT 125 Jan. 28 Recursion

More information

************ THIS PROGRAM IS NOT ELIGIBLE FOR LATE SUBMISSION. ALL SUBMISSIONS MUST BE RECEIVED BY THE DUE DATE/TIME INDICATED ABOVE HERE

************ THIS PROGRAM IS NOT ELIGIBLE FOR LATE SUBMISSION. ALL SUBMISSIONS MUST BE RECEIVED BY THE DUE DATE/TIME INDICATED ABOVE HERE Program 10: 40 points: Due Tuesday, May 12, 2015 : 11:59 p.m. ************ THIS PROGRAM IS NOT ELIGIBLE FOR LATE SUBMISSION. ALL SUBMISSIONS MUST BE RECEIVED BY THE DUE DATE/TIME INDICATED ABOVE HERE *************

More information

CS 161 Computer Security

CS 161 Computer Security Wagner Spring 2014 CS 161 Computer Security 1/27 Reasoning About Code Often functions make certain assumptions about their arguments, and it is the caller s responsibility to make sure those assumptions

More information

CSE 21 Spring 2016 Homework 5. Instructions

CSE 21 Spring 2016 Homework 5. Instructions CSE 21 Spring 2016 Homework 5 Instructions Homework should be done in groups of one to three people. You are free to change group members at any time throughout the quarter. Problems should be solved together,

More information

Post Experiment Interview Questions

Post Experiment Interview Questions Post Experiment Interview Questions Questions about the Maximum Problem 1. What is this problem statement asking? 2. What is meant by positive integers? 3. What does it mean by the user entering valid

More information

MA651 Topology. Lecture 4. Topological spaces 2

MA651 Topology. Lecture 4. Topological spaces 2 MA651 Topology. Lecture 4. Topological spaces 2 This text is based on the following books: Linear Algebra and Analysis by Marc Zamansky Topology by James Dugundgji Fundamental concepts of topology by Peter

More information

Assignment #1: and Karel the Robot Karel problems due: 3:15pm on Friday, October 4th due: 11:59pm on Sunday, October 6th

Assignment #1:  and Karel the Robot Karel problems due: 3:15pm on Friday, October 4th  due: 11:59pm on Sunday, October 6th Mehran Sahami Handout #7 CS 06A September, 0 Assignment #: Email and Karel the Robot Karel problems due: :pm on Friday, October th Email due: :9pm on Sunday, October 6th Part I Email Based on a handout

More information

6.001 Notes: Section 8.1

6.001 Notes: Section 8.1 6.001 Notes: Section 8.1 Slide 8.1.1 In this lecture we are going to introduce a new data type, specifically to deal with symbols. This may sound a bit odd, but if you step back, you may realize that everything

More information

such a manner that we are able to understand, grasp and grapple with the problem at hand in a more organized fashion.

such a manner that we are able to understand, grasp and grapple with the problem at hand in a more organized fashion. Programming and Data Structure Dr.P.P.Chakraborty Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture 32 Conclusions Hello everybody. Today, we come to the

More information

First-Order Translation Checklist

First-Order Translation Checklist CS103 Winter 2019 First-Order Translation Checklist Cynthia Lee Keith Schwarz In this handout, we ve distilled five specific points that you should check in your first-order logic statements before submitting

More information

For more information on the VCC please reference the clubs web site or Paul Rabenold at

For more information on the VCC please reference the clubs web site or  Paul Rabenold at The Villages Computer Club The Villages Computer Club will host another great WORKSHOP event at La Hacienda Recreation Center on Friday April 20th at 1:00 pm. Here in an informal setting you will be able

More information

CS143 Handout 05 Summer 2011 June 22, 2011 Programming Project 1: Lexical Analysis

CS143 Handout 05 Summer 2011 June 22, 2011 Programming Project 1: Lexical Analysis CS143 Handout 05 Summer 2011 June 22, 2011 Programming Project 1: Lexical Analysis Handout written by Julie Zelenski with edits by Keith Schwarz. The Goal In the first programming project, you will get

More information

Welcome to CS 135 (Fall 2018) Themes of the course. Lectures. cs135/

Welcome to CS 135 (Fall 2018) Themes of the course. Lectures.   cs135/ Welcome to CS 135 (Fall 2018) Instructors: Byron Weber Becker, Charles Clarke, Gord Cormack, Robert Hackman, Kevin Lanctot, Paul Nijjar, Adrian Reetz Other course personnel: see website for details ISAs

More information