A Tutorial Introduction to the Lambda Calculus

Size: px
Start display at page:

Download "A Tutorial Introduction to the Lambda Calculus"

Transcription

1 rxiv: v1 [cs.lo] 28 Mr 2015 A Tutoril Introduction to the Lmbd Clculus Rul Rojs Freie Universität Berlin Version 2.0, 2015 Abstrct This pper is concise nd pinless introduction to the λ-clculus. This formlism ws developed by Alonzo Church s tool for studying the mthemticl properties of effectively computble functions. The formlism becme populr nd hs provided strong theoreticl foundtion for the fmily of functionl progrmming lnguges. This tutoril shows how to perform rithmeticl nd logicl computtions using the λ-clculus nd how to define recursive functions, even though λ-clculus functions re unnmed nd thus cnnot refer explicitly to themselves. 1 Definition The λ-clculus cn be clled the smllest universl progrmming lnguge in the world. The λ-clculus consists of single trnsformtion rule (vrible substitution, lso clled β-conversion) nd single function definition Send corrections or suggestions to rojs@inf.fu-berlin.de 1

2 2 scheme. It ws introduced in the 1930s by Alonzo Church s wy of formlizing the concept of effective computbility. The λ-clculus is universl in the sense tht ny computble function cn be expressed nd evluted using this formlism. It is thus equivlent to Turing mchines. However, the λ-clculus emphsizes the use of symbolic trnsformtion rules nd does not cre bout the ctul mchine implementtion. It is n pproch more relted to softwre thn to hrdwre. The centrl concept in λ-clculus is tht of expression. A nme is n identifier which, for our purposes, cn be ny of the letters, b, c, etc. An expression cn be just nme or cn be function. Functions use the Greek letter λ to mrk the nme of the function s rguments. The body of the function specifies how the rguments re to be rerrnged. The identity function, for exmple, is represented by the string (λx.x). The frgment λx tell us tht the function s rgument is x, which is returned unchnged s x by the function. Functions cn be pplied to other functions. The function A, for exmple, pplied to the function B, would be written s AB. In this tutoril, cpitl letters re used to represent functions. In fct, nything of interest in λ- clculus is function. Even numbers or logicl vlues will be represented by functions tht cn ct on one nother in order to trnsform string of symbols into nother string. There re no types in λ-clculus: ny function cn ct on ny other. The progrmmer is responsible for keeping the computtions sensible. An expression is defined recursively s follows: < expression > := < nme > < function > < ppliction > < function > := λ < nme >. < expression > < ppliction > := < expression >< expression > An expression cn be surrounded by prenthesis for clrity, tht is, if E is n expression, (E) is the sme expression. Otherwise, the only keywords used in the lnguge re λ nd the dot. In order to void cluttering expressions with prenthesis, we dopt the convention tht function ppliction ssocites

3 3 from the left, tht is, the composite expression E 1 E 2 E 3... E n is evluted pplying the successive expressions s follows (... ( (E 1 E 2 )E 3 )... En ) As cn be seen from the definition of λ-expressions, well-formed exmple of function is the previously mentioned string, enclosed or not in prentheses: λx.x (λx.x) We use the equivlence symbol to indicte tht when A B, A is just synonym for B. As explined bove, the nme right fter the λ is the identifier of the rgument of this function. The expression fter the point (in this cse single x) is clled the body of the function s definition. Functions cn be pplied to expressions. A simple exmple of n ppliction is (λx.x)y This is the identity function pplied to the vrible y. Prenthesis help to void mbiguity. Function pplictions re evluted by substituting the vlue of the rgument x (in this cse the y being processed) in the body of the function definition. Fig. 1 shows how the vrible y is bsorbed by the function (red line), nd lso shows where it is used s replcement for x (green line). The result is reduction, represented by the right rrow, with the finl result y. Since we cnnot lwys hve pictures, s in Fig. 1, the nottion [y/x] is used to indicte tht ll occurrences of x re substituted by y in the function s body. We write, for exmple, (λx.x)y [y/x]x y. The nmes of the rguments in function definitions do not crry ny mening by themselves. They re just plce holders, tht is, they re used to indicte how to rerrnge the rguments of the function when it is evluted. Therefore ll the strings below represent the sme function: (λz.z) (λy.y) (λt.t) (λu.u) This kind of purely lphbeticl substitution is lso clled α-reduction.

4 4 (λx.x)y y (λ. )y y Figure 1: The sme reduction shown twice. The symbol for the function s rgument is just plce holder. 1.1 Free nd bound vribles If we only hd pictures of the plumbing of λ-expressions, we would not hve to cre bout the nmes of vribles. Since we re using letters s symbols, we hve to be creful if we repet them, s shown in this section. In λ-clculus ll nmes re locl to definitions (like in most progrmming lnguges). In the function λx.x we sy tht x is bound since its occurrence in the body of the definition is preceded by λx. A nme not preceded by λ is clled free vrible. In the expression (λx.x)(λy.yx) the x in the body of the first expression from the left is bound to the first λ. The y in the body of the second expression is bound to the second λ, nd the following x is free. Bound vribles re shown in bold fce. It is very importnt to notice tht this x in the second expression is totlly independent of the x in the first expression. This cn be more esily seen if we drw the plumbing of the function ppliction nd the consequent reduction, s shown in Fig. 2. In Fig. 2 we see how the symbolic expression (first row) cn be interpreted s kind of circuit, where the bound rgument is moved to new position inside the body of the function. The first function (the identity function) consumes the second one. The symbol x in the second function hs no connections with the rest of the expression, it is floting free inside the function definition.

5 5 (λx.x)(λy.yx) (λ. )(λ. x) (λ. x) Figure 2: In successive rows: The function ppliction, the plumbing of the symbolic expression, nd the resulting reduction. Formlly, we sy tht vrible <nme> is free in n expression if one of the following three cses holds: <nme> is free in <nme>. (Exmple: is free in ). <nme> is free in λ<nme 1 >. <exp> if the identifier <nme> <nme 1 > nd <nme> is free in <exp>. (Exmple: y is free in λx.y). <nme> is free in E 1 E 2 if <nme> is free in E 1 or if it is free in E 2. (Exmple: x is free in (λx.x)x). A vrible <nme> is bound if one of two cses holds: <nme> is bound in λ <nme 1 >. <exp> if the identifier <nme>=<nme 1 > or if <nme> is bound in <exp>. (Exmple: x is bound in (λy.(λx.x))). <nme> is bound in E 1 E 2 if <nme> is bound in E 1 or if it is bound in E 2. (Exmple: x is bound in (λx.x)x).

6 6 It should be emphsized tht the sme identifier cn occur free nd bound in the sme expression. In the expression (λx.xy)(λy.y) the first y is free in the prenthesized subexpression to the left, but it is bound in the subexpression to the right. Therefore, it occurs free s well s bound in the whole expression (the bound vribles re shown in bold fce). 1.2 Substitutions The more confusing prt of stndrd λ-clculus, when first pproching it,is the fct tht we do not give nmes to functions. Any time we wnt to pply function, we just write the complete function s definition nd then proceed to evlute it. To simplify the nottion, however, we will use cpitl letters, digits nd other symbols (sn serif) s synonyms for some functions. The identity function, for exmple, cn be denoted by the letter I, using it s shorthnd for (λx.x). The identity function pplied to itself is the ppliction II (λx.x)(λx.x). In this expression, the first x in the body of the first function in prenthesis is independent of the x in the body of the second function (remember tht the plumbing is locl). Just to emphsize the difference we cn in fct rewrite the bove expression s The identity function pplied to itself yields therefore tht is, the identity function gin. II (λx.x)(λz.z). II (λx.x)(λz.z) [(λz.z)/x]x λz.z I,

7 7 (λx.(λy.xy))y y bound in the subexpression (λx.(λy.xy))y dnger: free y should not be mixed with bound y s Figure 3: A free vrible should not be substituted in subexpression where it is bound, otherwise new plumbing, different to the originl, would be generted. When performing substitutions, we should be creful to void mixing up free occurrences of n identifier with bound ones. In the expression ( λx.(λy.xy) ) y the function on the left contins bound y, wheres the y on the right is free. An incorrect substitution would mix the two identifiers in the erroneous result (λy.yy). Simply by renming the bound y to t we obtin ( λx.(λt.xt) ) y (λt.yt) which is completely different result but nevertheless the correct one. Therefore, if the function λx. < exp > is pplied to E, we substitute ll free occurrences of x in < exp > with E. If the substitution would bring free vrible of E in n expression where this vrible occurs bound, we renme

8 8 the bound vrible before performing the substitution. For exmple, in the expression (λx.(λy.(x(λx.xy)))) y we ssocite the first x with y. In the body (λy.(x(λx.xy))) only the first x is free nd cn be substituted. Before substituting though, we hve to renme the vrible y to void mixing its bound with its free occurrence: [y/x] (λt.(x(λx.xt))) (λt(y(λx.xt))) In norml order reduction we reduce lwys the left most expression of series of pplictions first. We continue until no further reductions re possible. 2 Arithmetic A progrmming lnguge should be cpble of specifying rithmeticl clcultions. Numbers cn be represented in the λ-clculus strting from zero nd writing successor of zero, tht is suc(zero), to represent 1, suc(suc(zero)) to represent 2, nd so on. Since in λ-clculus we cn only define new functions, numbers will be defined s functions using the following pproch: zero cn be defined s λs.(λz.z) This is function of two rguments s nd z. We will bbrevite such expressions with more thn one rgument s λsz.z It is understood here tht s is the first rgument to be substituted during the evlution nd z the second. Using this nottion, the first nturl numbers cn be defined s 0 λsz.z 1 λsz.s(z) 2 λsz.s(s(z)) 3 λsz.s(s(s(z)))

9 9 nd so on. The big dvntge of defining numbers in this wy is tht we cn now pply function f to n rgument ny number of times. For exmple, if we wnt to pply f to three times we pply the function 3 to the rguments f nd yielding: 3f (λsz.s(s(sz)))f f(f(f)). This wy of defining numbers provides us with lnguge construct similr to n instruction such s FOR i=1 to 3 in other lnguges. The number zero pplied to the rguments f nd yields 0f (λsz.z)f. Tht is, pplying the function f to the rgument zero times leves the rgument unchnged. Our first interesting function, fter hving defined the nturl numbers, is the successor function. This cn be defined s S λnb.(nb). The definition looks wkwrd but it works. For exmple, the successor function pplied to our representtion for zero is the expression: S0 (λnb.(nb))0 In the body of the first expression we substitute the occurrence of n with 0 nd this produces the reduced expression: λb.(0b) λb.(b) 1 Tht is, the result is the representtion of the number 1 (remember tht bound vrible nmes re dummies nd cn be chnged). Successor pplied to 1 yields: S1 (λnb.(nb))1 λb.(1b) λb.(b) 2 Notice tht the only purpose of pplying the number 1 (λsz.sz) to the rguments nd b is to renme the vribles used internlly in the definition of our number.

10 Addition Addition cn be obtined immeditely by noting tht the body sz of our definition of the number 1, for exmple, cn be interpreted s the ppliction of the function s on z. If we wnt to dd sy 2 nd 3, we just pply the successor function two times to 3. Let us try the following in order to compute 2+3: 2S3 (λsz.s(sz)))s3 S(S3) 5 In generl m plus n cn be computed by the expression msn. 2.2 Multipliction The multipliction of two numbers x nd y cn be computed using the following function: (λxy.x(y)) The product of 3 by 3 is then which reduces to (λxy.x(y))33 (λ.3(3)) Using the definition of the number 3, we further reduce the bove expression to (λ.(λsb.s(s(sb)))(3)) (λb.(3)((3)((3)b))) In order to understnd why this function relly computes the product of 3 by 3, let us look t some digrms. The first ppliction (3) is computed on the left of Fig. 4. Notice tht the ppliction of 3 to hs the effect of producing new function which pplies three times to the function s rgument. Now, pplying the function 3 to the result of (3) produces three copies of the function obtined in Fig. 4, conctented s shown on the right in Fig. 4

11 11 (λsz.s(s(sz))) (λb.(3)((3)((3)b))) three pplic+ons of s pplied three +mes b pplied 3 by 3 +mes to b ((((((((b)))))))) Figure 4: Left: The number 3 pplied to n rgument produces new function. Right: The plumbing of the function 3 pplied to 3, nd the result to b. (where the result hs been pplied to b for clrity). Notice tht we hve tower of three times the sme function, ech one bsorbing the lower one s rgument for the ppliction of the function three times, for totl of nine pplictions. 3 Conditionls We introduce the following two functions which we cll the vlues true T λxy.x

12 12 nd flse F λxy.y The first function tkes two rguments nd returns the first one. The second function returns the second of two rguments. 3.1 Logicl opertions It is now possible to define logicl opertions using this representtion of the truth vlues. The AND function of two rguments cn be defined s λxy.xyf This definition works becuse given tht x is true, the truth vlue of the AND opertion depends on the truth vlue of y. If x is flse (nd selects thus the second rgument in xyf) the complete AND is flse, regrdless of the vlue of y. The OR function of two rguments cn be defined s λxy.xty Here, if x is true, the OR is true. If x is flse, it picks the second rgument y nd the vlue of the OR function depends now on the vlue of y. Negtion of one rgument cn be defined s λx.xft For exmple, the negtion function pplied to true is T (λx.xft)t which reduces to TFT (λcd.c)ft F

13 13 tht is, the truth vlue flse. Armed with this three logic functions we cn encode ny other logic function nd reproduce ny given circuit without feedbck (we look t feedbck when we del with recursion). 3.2 A conditionl test It is very convenient in progrmming lnguge to hve function which is true if number is zero nd flse otherwise. The following function Z fulfills this role: Z λx.xf F To understnd how this function works, remember tht 0f (λsz.z)f = tht is, the function f pplied zero times to the rgument yields. On the other hnd, F pplied to ny rgument yields the identity function F (λxy.y) λy.y I We cn now test if the function Z works correctly. The function pplied to zero yields Z0 (λx.xf F)0 0F F F T becuse F pplied 0 times to yields. The function Z pplied to ny other number N yields ZN (λx.xf F)N NF F The function F is then pplied N times to. But F pplied to nything is the identity (s shown before), so tht the bove expression reduces, for ny number N greter thn zero, to IF F

14 The predecessor function We cn now define the predecessor function combining some of the functions introduced bove. When looking for the predecessor of n, the generl strtegy will be to crete pir (n, n 1) nd then pick the second element of the pir s the result. A pir (, b) cn be represented in λ-clculus using the function (λz.zb) We cn extrct the first element of the pir from the expression pplying this function to T (λz.zb)t Tb, nd the second pplying the function to F (λz.zb)f Fb b. The following function genertes from the pir (n, n 1) (which is the rgument p in the function) the pir (n + 1, n): Φ (λpz.z(s(pt))(pt)) The subexpression pt extrcts the first element from the pir p. A new pir is formed using this element, which is incremented for the first position of the new pir nd just copied for the second position of the new pir. The predecessor of number n is obtined by pplying n times the function Φ to the pir (λ.z00) nd then selecting the second member of the new pir: P (λn.(nφ(λz.z00))f) Notice tht using this pproch the predecessor of zero is zero. This property is useful for the definition of other functions. 3.4 Equlity nd inequlities With the predecessor function s the building block, we cn now define function which tests if number x is greter thn or equl to number y: G (λxy.z(xpy))

15 15 If the predecessor function pplied x times to y yields zero, then it is true tht x y. If x y nd y x, then x = y. This leds to the following definition of the function E which tests if two numbers re equl: E (λxy. (Z(xPy))(Z(yPx))) In similr mnner we cn define functions to test whether x > y, x < y or x y. 4 Recursion Recursive functions cn be defined in the λ-clculus using function which clls function y nd then regenertes itself. This cn be better understood by considering the following function Y: Y (λy.(λx.y(xx))(λx.y(xx))) This function pplied to function R yields: which further reduced yields YR (λx.r(xx))(λx.r(xx)) R((λx.R(xx))(λx.R(xx)) but this mens tht YR R(YR), tht is, the function R is evluted using the recursive cll YR s the first rgument. An infinite loop, for exmple, cn be progrmmed s YI, since this reduces to I(YI), then to YI nd so d infinitum. A more useful function is one which dds the first n nturl numbers. We cn use recursive definition, since n i=0 i = n + n 1 i=0 i. Let us use the following definition for R: R (λrn.zn0(ns(r(pn))))

16 16 This definition tells us tht the number n is tested: if it is zero the result of the sum is zero. In n is not zero, then the successor function is pplied n times to the recursive cll (the rgument r) of the function pplied to the predecessor of n. How do we know tht r in the expression bove is the recursive cll to R, since functions in λ-clculus do not hve nmes? We do not know nd tht is precisely why we hve to use the recursion opertor Y. Assume for exmple tht we wnt to dd the numbers from 0 to 3. The necessry opertions re performed by the cll: YR3 R(YR)3 Z30(3S(YR(P3))) Since 3 is not equl to zero, the evlution is equivlent to 3S(YR(P3)) tht is, the sum of the numbers from 0 to 3 is equl to 3 plus the sum of the numbers from 0 to the predecessor of 3 (tht is, two). Successive recursive evlutions of YR will led to the correct finl result. Notice tht in the function defined bove the recursion will be stopped when the rgument becomes 0. The finl result will be tht is, the number 6. 3S(2S(1S0)) 5 Projects for the reder 1. Define the functions less thn nd greter thn of two numericl rguments. 2. Define the positive nd negtive integers using pirs of nturl numbers. 3. Define ddition nd subtrction of integers. 4. Define the division of positive integers recursively.

17 17 5. Define the function n! = n (n 1) 1 recursively. 6. Define the rtionl numbers s pirs of integers. 7. Define functions for the ddition, subtrction, multipliction nd division of rtionls. 8. Define dt structure to represent list of numbers. 9. Define function which extrcts the first element from list. 10. Define recursive function which counts the number of elements in list. 11. Cn you simulte Turing mchine using λ-clculus? References [1] P.M. Kogge, The Architecture of Symbolic Computers, McGrw-Hill, New york 1991, chpter 4. [2] G. Michelson, An Introduction to Functionl Progrmming through λ- clculus, Addison-Wesley, Wokinghm, [3] G. Revesz, Lmbd-Clculus Combintors nd Functionl Progrmming, Cmbridge University Press, Cmbridge, 1988, chpters 1-3.

A Tutorial Introduction to the Lambda Calculus

A Tutorial Introduction to the Lambda Calculus A Tutorial Introduction to the Lambda Calculus Raúl Rojas FU Berlin, WS-97/98 Abstract This paper is a short and painless introduction to the λ calculus. Originally developed in order to study some mathematical

More information

COMPUTER SCIENCE 123. Foundations of Computer Science. 6. Tuples

COMPUTER SCIENCE 123. Foundations of Computer Science. 6. Tuples COMPUTER SCIENCE 123 Foundtions of Computer Science 6. Tuples Summry: This lecture introduces tuples in Hskell. Reference: Thompson Sections 5.1 2 R.L. While, 2000 3 Tuples Most dt comes with structure

More information

Functor (1A) Young Won Lim 10/5/17

Functor (1A) Young Won Lim 10/5/17 Copyright (c) 2016-2017 Young W. Lim. Permission is grnted to copy, distribute nd/or modify this document under the terms of the GNU Free Documenttion License, Version 1.2 or ny lter version published

More information

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers Wht do ll those bits men now? bits (...) Number Systems nd Arithmetic or Computers go to elementry school instruction R-formt I-formt... integer dt number text chrs... floting point signed unsigned single

More information

Questions About Numbers. Number Systems and Arithmetic. Introduction to Binary Numbers. Negative Numbers?

Questions About Numbers. Number Systems and Arithmetic. Introduction to Binary Numbers. Negative Numbers? Questions About Numbers Number Systems nd Arithmetic or Computers go to elementry school How do you represent negtive numbers? frctions? relly lrge numbers? relly smll numbers? How do you do rithmetic?

More information

Functor (1A) Young Won Lim 8/2/17

Functor (1A) Young Won Lim 8/2/17 Copyright (c) 2016-2017 Young W. Lim. Permission is grnted to copy, distribute nd/or modify this document under the terms of the GNU Free Documenttion License, Version 1.2 or ny lter version published

More information

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES)

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES) Numbers nd Opertions, Algebr, nd Functions 45. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES) In sequence of terms involving eponentil growth, which the testing service lso clls geometric

More information

Unit 5 Vocabulary. A function is a special relationship where each input has a single output.

Unit 5 Vocabulary. A function is a special relationship where each input has a single output. MODULE 3 Terms Definition Picture/Exmple/Nottion 1 Function Nottion Function nottion is n efficient nd effective wy to write functions of ll types. This nottion llows you to identify the input vlue with

More information

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers Wht do ll those bits men now? bits (...) Number Systems nd Arithmetic or Computers go to elementry school instruction R-formt I-formt... integer dt number text chrs... floting point signed unsigned single

More information

4452 Mathematical Modeling Lecture 4: Lagrange Multipliers

4452 Mathematical Modeling Lecture 4: Lagrange Multipliers Mth Modeling Lecture 4: Lgrnge Multipliers Pge 4452 Mthemticl Modeling Lecture 4: Lgrnge Multipliers Lgrnge multipliers re high powered mthemticl technique to find the mximum nd minimum of multidimensionl

More information

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus Unit #9 : Definite Integrl Properties, Fundmentl Theorem of Clculus Gols: Identify properties of definite integrls Define odd nd even functions, nd reltionship to integrl vlues Introduce the Fundmentl

More information

12-B FRACTIONS AND DECIMALS

12-B FRACTIONS AND DECIMALS -B Frctions nd Decimls. () If ll four integers were negtive, their product would be positive, nd so could not equl one of them. If ll four integers were positive, their product would be much greter thn

More information

Lecture 10 Evolutionary Computation: Evolution strategies and genetic programming

Lecture 10 Evolutionary Computation: Evolution strategies and genetic programming Lecture 10 Evolutionry Computtion: Evolution strtegies nd genetic progrmming Evolution strtegies Genetic progrmming Summry Negnevitsky, Person Eduction, 2011 1 Evolution Strtegies Another pproch to simulting

More information

9 4. CISC - Curriculum & Instruction Steering Committee. California County Superintendents Educational Services Association

9 4. CISC - Curriculum & Instruction Steering Committee. California County Superintendents Educational Services Association 9. CISC - Curriculum & Instruction Steering Committee The Winning EQUATION A HIGH QUALITY MATHEMATICS PROFESSIONAL DEVELOPMENT PROGRAM FOR TEACHERS IN GRADES THROUGH ALGEBRA II STRAND: NUMBER SENSE: Rtionl

More information

10/9/2012. Operator is an operation performed over data at runtime. Arithmetic, Logical, Comparison, Assignment, Etc. Operators have precedence

10/9/2012. Operator is an operation performed over data at runtime. Arithmetic, Logical, Comparison, Assignment, Etc. Operators have precedence /9/22 P f Performing i Si Simple l Clcultions C l l ti with ith C#. Opertors in C# nd Opertor Precedence 2. Arithmetic Opertors 3. Logicl Opertors 4. Bitwise Opertors 5. Comprison Opertors 6. Assignment

More information

Subtracting Fractions

Subtracting Fractions Lerning Enhncement Tem Model Answers: Adding nd Subtrcting Frctions Adding nd Subtrcting Frctions study guide. When the frctions both hve the sme denomintor (bottom) you cn do them using just simple dding

More information

MA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork

MA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork MA1008 Clculus nd Liner Algebr for Engineers Course Notes for Section B Stephen Wills Deprtment of Mthemtics University College Cork s.wills@ucc.ie http://euclid.ucc.ie/pges/stff/wills/teching/m1008/ma1008.html

More information

INTRODUCTION TO SIMPLICIAL COMPLEXES

INTRODUCTION TO SIMPLICIAL COMPLEXES INTRODUCTION TO SIMPLICIAL COMPLEXES CASEY KELLEHER AND ALESSANDRA PANTANO 0.1. Introduction. In this ctivity set we re going to introduce notion from Algebric Topology clled simplicil homology. The min

More information

PYTHON PROGRAMMING. The History of Python. Features of Python. This Course

PYTHON PROGRAMMING. The History of Python. Features of Python. This Course The History of Python PYTHON PROGRAMMING Dr Christin Hill 7 9 November 2016 Invented by Guido vn Rossum* t the Centrum Wiskunde & Informtic in Amsterdm in the erly 1990s Nmed fter Monty Python s Flying

More information

Section 3.1: Sequences and Series

Section 3.1: Sequences and Series Section.: Sequences d Series Sequences Let s strt out with the definition of sequence: sequence: ordered list of numbers, often with definite pttern Recll tht in set, order doesn t mtter so this is one

More information

10.5 Graphing Quadratic Functions

10.5 Graphing Quadratic Functions 0.5 Grphing Qudrtic Functions Now tht we cn solve qudrtic equtions, we wnt to lern how to grph the function ssocited with the qudrtic eqution. We cll this the qudrtic function. Grphs of Qudrtic Functions

More information

MATH 25 CLASS 5 NOTES, SEP

MATH 25 CLASS 5 NOTES, SEP MATH 25 CLASS 5 NOTES, SEP 30 2011 Contents 1. A brief diversion: reltively prime numbers 1 2. Lest common multiples 3 3. Finding ll solutions to x + by = c 4 Quick links to definitions/theorems Euclid

More information

Lecture Overview. Knowledge-based systems in Bioinformatics, 1MB602. Procedural abstraction. The sum procedure. Integration as a procedure

Lecture Overview. Knowledge-based systems in Bioinformatics, 1MB602. Procedural abstraction. The sum procedure. Integration as a procedure Lecture Overview Knowledge-bsed systems in Bioinformtics, MB6 Scheme lecture Procedurl bstrction Higher order procedures Procedures s rguments Procedures s returned vlues Locl vribles Dt bstrction Compound

More information

Fig.25: the Role of LEX

Fig.25: the Role of LEX The Lnguge for Specifying Lexicl Anlyzer We shll now study how to uild lexicl nlyzer from specifiction of tokens in the form of list of regulr expressions The discussion centers round the design of n existing

More information

Midterm 2 Sample solution

Midterm 2 Sample solution Nme: Instructions Midterm 2 Smple solution CMSC 430 Introduction to Compilers Fll 2012 November 28, 2012 This exm contins 9 pges, including this one. Mke sure you hve ll the pges. Write your nme on the

More information

1 Quad-Edge Construction Operators

1 Quad-Edge Construction Operators CS48: Computer Grphics Hndout # Geometric Modeling Originl Hndout #5 Stnford University Tuesdy, 8 December 99 Originl Lecture #5: 9 November 99 Topics: Mnipultions with Qud-Edge Dt Structures Scribe: Mike

More information

Definition of Regular Expression

Definition of Regular Expression Definition of Regulr Expression After the definition of the string nd lnguges, we re redy to descrie regulr expressions, the nottion we shll use to define the clss of lnguges known s regulr sets. Recll

More information

Integration. October 25, 2016

Integration. October 25, 2016 Integrtion October 5, 6 Introduction We hve lerned in previous chpter on how to do the differentition. It is conventionl in mthemtics tht we re supposed to lern bout the integrtion s well. As you my hve

More information

In the last lecture, we discussed how valid tokens may be specified by regular expressions.

In the last lecture, we discussed how valid tokens may be specified by regular expressions. LECTURE 5 Scnning SYNTAX ANALYSIS We know from our previous lectures tht the process of verifying the syntx of the progrm is performed in two stges: Scnning: Identifying nd verifying tokens in progrm.

More information

a < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1

a < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1 Mth 33 Volume Stewrt 5.2 Geometry of integrls. In this section, we will lern how to compute volumes using integrls defined by slice nlysis. First, we recll from Clculus I how to compute res. Given the

More information

Stained Glass Design. Teaching Goals:

Stained Glass Design. Teaching Goals: Stined Glss Design Time required 45-90 minutes Teching Gols: 1. Students pply grphic methods to design vrious shpes on the plne.. Students pply geometric trnsformtions of grphs of functions in order to

More information

5 Regular 4-Sided Composition

5 Regular 4-Sided Composition Xilinx-Lv User Guide 5 Regulr 4-Sided Composition This tutoril shows how regulr circuits with 4-sided elements cn be described in Lv. The type of regulr circuits tht re discussed in this tutoril re those

More information

ASTs, Regex, Parsing, and Pretty Printing

ASTs, Regex, Parsing, and Pretty Printing ASTs, Regex, Prsing, nd Pretty Printing CS 2112 Fll 2016 1 Algeric Expressions To strt, consider integer rithmetic. Suppose we hve the following 1. The lphet we will use is the digits {0, 1, 2, 3, 4, 5,

More information

Matrices and Systems of Equations

Matrices and Systems of Equations Mtrices Mtrices nd Sstems of Equtions A mtri is rectngulr rr of rel numbers. CHAT Pre-Clculus Section 8. m m m............ n n n mn We will use the double subscript nottion for ech element of the mtri.

More information

CS201 Discussion 10 DRAWTREE + TRIES

CS201 Discussion 10 DRAWTREE + TRIES CS201 Discussion 10 DRAWTREE + TRIES DrwTree First instinct: recursion As very generic structure, we could tckle this problem s follows: drw(): Find the root drw(root) drw(root): Write the line for the

More information

Ray surface intersections

Ray surface intersections Ry surfce intersections Some primitives Finite primitives: polygons spheres, cylinders, cones prts of generl qudrics Infinite primitives: plnes infinite cylinders nd cones generl qudrics A finite primitive

More information

CSE 401 Midterm Exam 11/5/10 Sample Solution

CSE 401 Midterm Exam 11/5/10 Sample Solution Question 1. egulr expressions (20 points) In the Ad Progrmming lnguge n integer constnt contins one or more digits, but it my lso contin embedded underscores. Any underscores must be preceded nd followed

More information

Fall 2018 Midterm 1 October 11, ˆ You may not ask questions about the exam except for language clarifications.

Fall 2018 Midterm 1 October 11, ˆ You may not ask questions about the exam except for language clarifications. 15-112 Fll 2018 Midterm 1 October 11, 2018 Nme: Andrew ID: Recittion Section: ˆ You my not use ny books, notes, extr pper, or electronic devices during this exm. There should be nothing on your desk or

More information

L2-Python-Data-Structures

L2-Python-Data-Structures L2-Python-Dt-Structures Mrch 19, 2018 1 Principl built-in types in Python (Python ) numerics: int, flot, long, complex sequences: str, unicode, list, tuple, byterry, buffer, xrnge mppings: dict files:

More information

Improper Integrals. October 4, 2017

Improper Integrals. October 4, 2017 Improper Integrls October 4, 7 Introduction We hve seen how to clculte definite integrl when the it is rel number. However, there re times when we re interested to compute the integrl sy for emple 3. Here

More information

Pointwise convergence need not behave well with respect to standard properties such as continuity.

Pointwise convergence need not behave well with respect to standard properties such as continuity. Chpter 3 Uniform Convergence Lecture 9 Sequences of functions re of gret importnce in mny res of pure nd pplied mthemtics, nd their properties cn often be studied in the context of metric spces, s in Exmples

More information

Representation of Numbers. Number Representation. Representation of Numbers. 32-bit Unsigned Integers 3/24/2014. Fixed point Integer Representation

Representation of Numbers. Number Representation. Representation of Numbers. 32-bit Unsigned Integers 3/24/2014. Fixed point Integer Representation Representtion of Numbers Number Representtion Computer represent ll numbers, other thn integers nd some frctions with imprecision. Numbers re stored in some pproximtion which cn be represented by fixed

More information

2 Computing all Intersections of a Set of Segments Line Segment Intersection

2 Computing all Intersections of a Set of Segments Line Segment Intersection 15-451/651: Design & Anlysis of Algorithms Novemer 14, 2016 Lecture #21 Sweep-Line nd Segment Intersection lst chnged: Novemer 8, 2017 1 Preliminries The sweep-line prdigm is very powerful lgorithmic design

More information

CPSC 213. Polymorphism. Introduction to Computer Systems. Readings for Next Two Lectures. Back to Procedure Calls

CPSC 213. Polymorphism. Introduction to Computer Systems. Readings for Next Two Lectures. Back to Procedure Calls Redings for Next Two Lectures Text CPSC 213 Switch Sttements, Understnding Pointers - 2nd ed: 3.6.7, 3.10-1st ed: 3.6.6, 3.11 Introduction to Computer Systems Unit 1f Dynmic Control Flow Polymorphism nd

More information

Theory of Computation CSE 105

Theory of Computation CSE 105 $ $ $ Theory of Computtion CSE 105 Regulr Lnguges Study Guide nd Homework I Homework I: Solutions to the following problems should be turned in clss on July 1, 1999. Instructions: Write your nswers clerly

More information

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών ΕΠΛ323 - Θωρία και Πρακτική Μταγλωττιστών Lecture 3 Lexicl Anlysis Elis Athnsopoulos elisthn@cs.ucy.c.cy Recognition of Tokens if expressions nd reltionl opertors if è if then è then else è else relop

More information

such that the S i cover S, or equivalently S

such that the S i cover S, or equivalently S MATH 55 Triple Integrls Fll 16 1. Definition Given solid in spce, prtition of consists of finite set of solis = { 1,, n } such tht the i cover, or equivlently n i. Furthermore, for ech i, intersects i

More information

Integration. September 28, 2017

Integration. September 28, 2017 Integrtion September 8, 7 Introduction We hve lerned in previous chpter on how to do the differentition. It is conventionl in mthemtics tht we re supposed to lern bout the integrtion s well. As you my

More information

6.2 Volumes of Revolution: The Disk Method

6.2 Volumes of Revolution: The Disk Method mth ppliction: volumes by disks: volume prt ii 6 6 Volumes of Revolution: The Disk Method One of the simplest pplictions of integrtion (Theorem 6) nd the ccumultion process is to determine so-clled volumes

More information

Systems I. Logic Design I. Topics Digital logic Logic gates Simple combinational logic circuits

Systems I. Logic Design I. Topics Digital logic Logic gates Simple combinational logic circuits Systems I Logic Design I Topics Digitl logic Logic gtes Simple comintionl logic circuits Simple C sttement.. C = + ; Wht pieces of hrdwre do you think you might need? Storge - for vlues,, C Computtion

More information

Data sharing in OpenMP

Data sharing in OpenMP Dt shring in OpenMP Polo Burgio polo.burgio@unimore.it Outline Expressing prllelism Understnding prllel threds Memory Dt mngement Dt cluses Synchroniztion Brriers, locks, criticl sections Work prtitioning

More information

MIPS I/O and Interrupt

MIPS I/O and Interrupt MIPS I/O nd Interrupt Review Floting point instructions re crried out on seprte chip clled coprocessor 1 You hve to move dt to/from coprocessor 1 to do most common opertions such s printing, clling functions,

More information

SOME EXAMPLES OF SUBDIVISION OF SMALL CATEGORIES

SOME EXAMPLES OF SUBDIVISION OF SMALL CATEGORIES SOME EXAMPLES OF SUBDIVISION OF SMALL CATEGORIES MARCELLO DELGADO Abstrct. The purpose of this pper is to build up the bsic conceptul frmework nd underlying motivtions tht will llow us to understnd ctegoricl

More information

Misrepresentation of Preferences

Misrepresentation of Preferences Misrepresenttion of Preferences Gicomo Bonnno Deprtment of Economics, University of Cliforni, Dvis, USA gfbonnno@ucdvis.edu Socil choice functions Arrow s theorem sys tht it is not possible to extrct from

More information

Lists in Lisp and Scheme

Lists in Lisp and Scheme Lists in Lisp nd Scheme Lists in Lisp nd Scheme Lists re Lisp s fundmentl dt structures, ut there re others Arrys, chrcters, strings, etc. Common Lisp hs moved on from eing merely LISt Processor However,

More information

A Tautology Checker loosely related to Stålmarck s Algorithm by Martin Richards

A Tautology Checker loosely related to Stålmarck s Algorithm by Martin Richards A Tutology Checker loosely relted to Stålmrck s Algorithm y Mrtin Richrds mr@cl.cm.c.uk http://www.cl.cm.c.uk/users/mr/ University Computer Lortory New Museum Site Pemroke Street Cmridge, CB2 3QG Mrtin

More information

1.1. Interval Notation and Set Notation Essential Question When is it convenient to use set-builder notation to represent a set of numbers?

1.1. Interval Notation and Set Notation Essential Question When is it convenient to use set-builder notation to represent a set of numbers? 1.1 TEXAS ESSENTIAL KNOWLEDGE AND SKILLS Prepring for 2A.6.K, 2A.7.I Intervl Nottion nd Set Nottion Essentil Question When is it convenient to use set-uilder nottion to represent set of numers? A collection

More information

COMP 423 lecture 11 Jan. 28, 2008

COMP 423 lecture 11 Jan. 28, 2008 COMP 423 lecture 11 Jn. 28, 2008 Up to now, we hve looked t how some symols in n lphet occur more frequently thn others nd how we cn sve its y using code such tht the codewords for more frequently occuring

More information

The Fundamental Theorem of Calculus

The Fundamental Theorem of Calculus MATH 6 The Fundmentl Theorem of Clculus The Fundmentl Theorem of Clculus (FTC) gives method of finding the signed re etween the grph of f nd the x-xis on the intervl [, ]. The theorem is: FTC: If f is

More information

Geometric transformations

Geometric transformations Geometric trnsformtions Computer Grphics Some slides re bsed on Shy Shlom slides from TAU mn n n m m T A,,,,,, 2 1 2 22 12 1 21 11 Rows become columns nd columns become rows nm n n m m A,,,,,, 1 1 2 22

More information

a(e, x) = x. Diagrammatically, this is encoded as the following commutative diagrams / X

a(e, x) = x. Diagrammatically, this is encoded as the following commutative diagrams / X 4. Mon, Sept. 30 Lst time, we defined the quotient topology coming from continuous surjection q : X! Y. Recll tht q is quotient mp (nd Y hs the quotient topology) if V Y is open precisely when q (V ) X

More information

CSCI 3130: Formal Languages and Automata Theory Lecture 12 The Chinese University of Hong Kong, Fall 2011

CSCI 3130: Formal Languages and Automata Theory Lecture 12 The Chinese University of Hong Kong, Fall 2011 CSCI 3130: Forml Lnguges nd utomt Theory Lecture 12 The Chinese University of Hong Kong, Fll 2011 ndrej Bogdnov In progrmming lnguges, uilding prse trees is significnt tsk ecuse prse trees tell us the

More information

Lambda Calculus. Adrian Groza. Department of Computer Science Technical University of Cluj-Napoca

Lambda Calculus. Adrian Groza. Department of Computer Science Technical University of Cluj-Napoca Lambda Calculus Adrian Groza Department of Computer Science Technical University of Cluj-Napoca Outline 1 λ-calculus 2 Operational Semantics Syntax Conversions Normal Form 3 Lambda Calculus as a Functional

More information

ECE 468/573 Midterm 1 September 28, 2012

ECE 468/573 Midterm 1 September 28, 2012 ECE 468/573 Midterm 1 September 28, 2012 Nme:! Purdue emil:! Plese sign the following: I ffirm tht the nswers given on this test re mine nd mine lone. I did not receive help from ny person or mteril (other

More information

Sample Midterm Solutions COMS W4115 Programming Languages and Translators Monday, October 12, 2009

Sample Midterm Solutions COMS W4115 Programming Languages and Translators Monday, October 12, 2009 Deprtment of Computer cience Columbi University mple Midterm olutions COM W4115 Progrmming Lnguges nd Trnsltors Mondy, October 12, 2009 Closed book, no ids. ch question is worth 20 points. Question 5(c)

More information

Homework. Context Free Languages III. Languages. Plan for today. Context Free Languages. CFLs and Regular Languages. Homework #5 (due 10/22)

Homework. Context Free Languages III. Languages. Plan for today. Context Free Languages. CFLs and Regular Languages. Homework #5 (due 10/22) Homework Context Free Lnguges III Prse Trees nd Homework #5 (due 10/22) From textbook 6.4,b 6.5b 6.9b,c 6.13 6.22 Pln for tody Context Free Lnguges Next clss of lnguges in our quest! Lnguges Recll. Wht

More information

COMMON HALF YEARLY EXAMINATION DECEMBER 2018

COMMON HALF YEARLY EXAMINATION DECEMBER 2018 li.net i.net li.net i.net li.net i.net li.net i.net li.net i.net li.net i.net li.net i.net li.net i.net li.net i.net.pds.pds COMMON HALF YEARLY EXAMINATION DECEMBER 2018 STD : XI SUBJECT: COMPUTER SCIENCE

More information

UNIVERSITY OF EDINBURGH COLLEGE OF SCIENCE AND ENGINEERING SCHOOL OF INFORMATICS INFORMATICS 1 COMPUTATION & LOGIC INSTRUCTIONS TO CANDIDATES

UNIVERSITY OF EDINBURGH COLLEGE OF SCIENCE AND ENGINEERING SCHOOL OF INFORMATICS INFORMATICS 1 COMPUTATION & LOGIC INSTRUCTIONS TO CANDIDATES UNIVERSITY OF EDINBURGH COLLEGE OF SCIENCE AND ENGINEERING SCHOOL OF INFORMATICS INFORMATICS COMPUTATION & LOGIC Sturdy st April 7 : to : INSTRUCTIONS TO CANDIDATES This is tke-home exercise. It will not

More information

CS 130 : Computer Systems - II. Shankar Balachandran Dept. of Computer Science & Engineering IIT Madras

CS 130 : Computer Systems - II. Shankar Balachandran Dept. of Computer Science & Engineering IIT Madras CS 3 : Computer Systems - II Shnkr Blchndrn (shnkr@cse.iitm.c.in) Dept. of Computer Science & Engineering IIT Mdrs Recp Differentite Between s nd s Truth Tbles b AND b OR NOT September 4, 27 Introduction

More information

CS321 Languages and Compiler Design I. Winter 2012 Lecture 5

CS321 Languages and Compiler Design I. Winter 2012 Lecture 5 CS321 Lnguges nd Compiler Design I Winter 2012 Lecture 5 1 FINITE AUTOMATA A non-deterministic finite utomton (NFA) consists of: An input lphet Σ, e.g. Σ =,. A set of sttes S, e.g. S = {1, 3, 5, 7, 11,

More information

Basics of Logic Design Arithmetic Logic Unit (ALU)

Basics of Logic Design Arithmetic Logic Unit (ALU) Bsics of Logic Design Arithmetic Logic Unit (ALU) CPS 4 Lecture 9 Tody s Lecture Homework #3 Assigned Due Mrch 3 Project Groups ssigned & posted to lckord. Project Specifiction is on We Due April 9 Building

More information

Stack. A list whose end points are pointed by top and bottom

Stack. A list whose end points are pointed by top and bottom 4. Stck Stck A list whose end points re pointed by top nd bottom Insertion nd deletion tke plce t the top (cf: Wht is the difference between Stck nd Arry?) Bottom is constnt, but top grows nd shrinks!

More information

Digital Design. Chapter 1: Introduction. Digital Design. Copyright 2006 Frank Vahid

Digital Design. Chapter 1: Introduction. Digital Design. Copyright 2006 Frank Vahid Chpter : Introduction Copyright 6 Why Study?. Look under the hood of computers Solid understnding --> confidence, insight, even better progrmmer when wre of hrdwre resource issues Electronic devices becoming

More information

CMPSC 470: Compiler Construction

CMPSC 470: Compiler Construction CMPSC 47: Compiler Construction Plese complete the following: Midterm (Type A) Nme Instruction: Mke sure you hve ll pges including this cover nd lnk pge t the end. Answer ech question in the spce provided.

More information

cisc1110 fall 2010 lecture VI.2 call by value function parameters another call by value example:

cisc1110 fall 2010 lecture VI.2 call by value function parameters another call by value example: cisc1110 fll 2010 lecture VI.2 cll y vlue function prmeters more on functions more on cll y vlue nd cll y reference pssing strings to functions returning strings from functions vrile scope glol vriles

More information

Spring 2018 Midterm Exam 1 March 1, You may not use any books, notes, or electronic devices during this exam.

Spring 2018 Midterm Exam 1 March 1, You may not use any books, notes, or electronic devices during this exam. 15-112 Spring 2018 Midterm Exm 1 Mrch 1, 2018 Nme: Andrew ID: Recittion Section: You my not use ny books, notes, or electronic devices during this exm. You my not sk questions bout the exm except for lnguge

More information

SIMPLIFYING ALGEBRA PASSPORT.

SIMPLIFYING ALGEBRA PASSPORT. SIMPLIFYING ALGEBRA PASSPORT www.mthletics.com.u This booklet is ll bout turning complex problems into something simple. You will be ble to do something like this! ( 9- # + 4 ' ) ' ( 9- + 7-) ' ' Give

More information

2014 Haskell January Test Regular Expressions and Finite Automata

2014 Haskell January Test Regular Expressions and Finite Automata 0 Hskell Jnury Test Regulr Expressions nd Finite Automt This test comprises four prts nd the mximum mrk is 5. Prts I, II nd III re worth 3 of the 5 mrks vilble. The 0 Hskell Progrmming Prize will be wrded

More information

George Boole. IT 3123 Hardware and Software Concepts. Switching Algebra. Boolean Functions. Boolean Functions. Truth Tables

George Boole. IT 3123 Hardware and Software Concepts. Switching Algebra. Boolean Functions. Boolean Functions. Truth Tables George Boole IT 3123 Hrdwre nd Softwre Concepts My 28 Digitl Logic The Little Mn Computer 1815 1864 British mthemticin nd philosopher Mny contriutions to mthemtics. Boolen lger: n lger over finite sets

More information

MATH 2530: WORKSHEET 7. x 2 y dz dy dx =

MATH 2530: WORKSHEET 7. x 2 y dz dy dx = MATH 253: WORKSHT 7 () Wrm-up: () Review: polr coordintes, integrls involving polr coordintes, triple Riemnn sums, triple integrls, the pplictions of triple integrls (especilly to volume), nd cylindricl

More information

Fall 2017 Midterm Exam 1 October 19, You may not use any books, notes, or electronic devices during this exam.

Fall 2017 Midterm Exam 1 October 19, You may not use any books, notes, or electronic devices during this exam. 15-112 Fll 2017 Midterm Exm 1 October 19, 2017 Nme: Andrew ID: Recittion Section: You my not use ny books, notes, or electronic devices during this exm. You my not sk questions bout the exm except for

More information

x )Scales are the reciprocal of each other. e

x )Scales are the reciprocal of each other. e 9. Reciprocls A Complete Slide Rule Mnul - eville W Young Chpter 9 Further Applictions of the LL scles The LL (e x ) scles nd the corresponding LL 0 (e -x or Exmple : 0.244 4.. Set the hir line over 4.

More information

Context-Free Grammars

Context-Free Grammars Context-Free Grmmrs Descriing Lnguges We've seen two models for the regulr lnguges: Finite utomt ccept precisely the strings in the lnguge. Regulr expressions descrie precisely the strings in the lnguge.

More information

Introduction to Integration

Introduction to Integration Introduction to Integrtion Definite integrls of piecewise constnt functions A constnt function is function of the form Integrtion is two things t the sme time: A form of summtion. The opposite of differentition.

More information

Assignment 4. Due 09/18/17

Assignment 4. Due 09/18/17 Assignment 4. ue 09/18/17 1. ). Write regulr expressions tht define the strings recognized by the following finite utomt: b d b b b c c b) Write FA tht recognizes the tokens defined by the following regulr

More information

Engineer To Engineer Note

Engineer To Engineer Note Engineer To Engineer Note EE-188 Technicl Notes on using Anlog Devices' DSP components nd development tools Contct our technicl support by phone: (800) ANALOG-D or e-mil: dsp.support@nlog.com Or visit

More information

5/9/17. Lesson 51 - FTC PART 2. Review FTC, PART 1. statement as the Integral Evaluation Theorem as it tells us HOW to evaluate the definite integral

5/9/17. Lesson 51 - FTC PART 2. Review FTC, PART 1. statement as the Integral Evaluation Theorem as it tells us HOW to evaluate the definite integral Lesson - FTC PART 2 Review! We hve seen definition/formul for definite integrl s n b A() = lim f ( i )Δ = f ()d = F() = F(b) F() n i=! where F () = f() (or F() is the ntiderivtive of f() b! And hve seen

More information

Dr. D.M. Akbar Hussain

Dr. D.M. Akbar Hussain Dr. D.M. Akr Hussin Lexicl Anlysis. Bsic Ide: Red the source code nd generte tokens, it is similr wht humns will do to red in; just tking on the input nd reking it down in pieces. Ech token is sequence

More information

Lecture T4: Pattern Matching

Lecture T4: Pattern Matching Introduction to Theoreticl CS Lecture T4: Pttern Mtching Two fundmentl questions. Wht cn computer do? How fst cn it do it? Generl pproch. Don t tlk bout specific mchines or problems. Consider miniml bstrct

More information

Agilent Mass Hunter Software

Agilent Mass Hunter Software Agilent Mss Hunter Softwre Quick Strt Guide Use this guide to get strted with the Mss Hunter softwre. Wht is Mss Hunter Softwre? Mss Hunter is n integrl prt of Agilent TOF softwre (version A.02.00). Mss

More information

If you are at the university, either physically or via the VPN, you can download the chapters of this book as PDFs.

If you are at the university, either physically or via the VPN, you can download the chapters of this book as PDFs. Lecture 5 Wlks, Trils, Pths nd Connectedness Reding: Some of the mteril in this lecture comes from Section 1.2 of Dieter Jungnickel (2008), Grphs, Networks nd Algorithms, 3rd edition, which is ville online

More information

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig

CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig CS311H: Discrete Mthemtics Grph Theory IV Instructor: Işıl Dillig Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 1/25 A Non-plnr Grph Regions of Plnr Grph The plnr representtion of

More information

Solutions to Math 41 Final Exam December 12, 2011

Solutions to Math 41 Final Exam December 12, 2011 Solutions to Mth Finl Em December,. ( points) Find ech of the following its, with justifiction. If there is n infinite it, then eplin whether it is or. ( ) / ln() () (5 points) First we compute the it:

More information

Mid-term exam. Scores. Fall term 2012 KAIST EE209 Programming Structures for EE. Thursday Oct 25, Student's name: Student ID:

Mid-term exam. Scores. Fall term 2012 KAIST EE209 Programming Structures for EE. Thursday Oct 25, Student's name: Student ID: Fll term 2012 KAIST EE209 Progrmming Structures for EE Mid-term exm Thursdy Oct 25, 2012 Student's nme: Student ID: The exm is closed book nd notes. Red the questions crefully nd focus your nswers on wht

More information

EECS 281: Homework #4 Due: Thursday, October 7, 2004

EECS 281: Homework #4 Due: Thursday, October 7, 2004 EECS 28: Homework #4 Due: Thursdy, October 7, 24 Nme: Emil:. Convert the 24-bit number x44243 to mime bse64: QUJD First, set is to brek 8-bit blocks into 6-bit blocks, nd then convert: x44243 b b 6 2 9

More information

pdfapilot Server 2 Manual

pdfapilot Server 2 Manual pdfpilot Server 2 Mnul 2011 by clls softwre gmbh Schönhuser Allee 6/7 D 10119 Berlin Germny info@cllssoftwre.com www.cllssoftwre.com Mnul clls pdfpilot Server 2 Pge 2 clls pdfpilot Server 2 Mnul Lst modified:

More information

Introduction to Computer Engineering EECS 203 dickrp/eecs203/ CMOS transmission gate (TG) TG example

Introduction to Computer Engineering EECS 203  dickrp/eecs203/ CMOS transmission gate (TG) TG example Introduction to Computer Engineering EECS 23 http://ziyng.eecs.northwestern.edu/ dickrp/eecs23/ CMOS trnsmission gte TG Instructor: Robert Dick Office: L477 Tech Emil: dickrp@northwestern.edu Phone: 847

More information

P(r)dr = probability of generating a random number in the interval dr near r. For this probability idea to make sense we must have

P(r)dr = probability of generating a random number in the interval dr near r. For this probability idea to make sense we must have Rndom Numers nd Monte Crlo Methods Rndom Numer Methods The integrtion methods discussed so fr ll re sed upon mking polynomil pproximtions to the integrnd. Another clss of numericl methods relies upon using

More information

Engineer-to-Engineer Note

Engineer-to-Engineer Note Engineer-to-Engineer Note EE-204 Technicl notes on using Anlog Devices DSPs, processors nd development tools Visit our Web resources http://www.nlog.com/ee-notes nd http://www.nlog.com/processors or e-mil

More information

Chapter 2 Sensitivity Analysis: Differential Calculus of Models

Chapter 2 Sensitivity Analysis: Differential Calculus of Models Chpter 2 Sensitivity Anlysis: Differentil Clculus of Models Abstrct Models in remote sensing nd in science nd engineering, in generl re, essentilly, functions of discrete model input prmeters, nd/or functionls

More information