Associated code files to read, execute in Hugs, modify: Intro.lhs, Trans1.hs, IntroFuns.lhs, ListOps.hs, Tuples.lhs. 12/5/2003. Author: J. Nino.

Size: px
Start display at page:

Download "Associated code files to read, execute in Hugs, modify: Intro.lhs, Trans1.hs, IntroFuns.lhs, ListOps.hs, Tuples.lhs. 12/5/2003. Author: J. Nino."

Transcription

1 ! " # $ $ # Associated code files to read, execute in Hugs, modify: Intro.lhs, Trans1.hs, IntroFuns.lhs, istops.hs, Tuples.lhs % & ' ( ) * ++,( ' -. / 1,2 / ' ' 6 6,/ 5 +' / 5. ' 5 * : ; < =< >:? ' 1 ' A ' +. * ( ' 1 ' ( * ( B 2 / * C.,+1 ' 4 * / * A * 4 D ' / 5 EF 8 : H I ; < =J?,( ' 3 4,6 ' 4 K 2 / ( * 8 & * ' A K. ( * 2 - =M : ; N J ; O : ; -. / 1,2 / ( B,E* E -. / 1,2 / ( P D, D 1 ' ) * -. / 1,2 / ( ' ' 1 ' ' 4 * 1. 4 / -. / 1,2 / ( ' ( 4 * (. +1 ( F 8 Q. / 1,2 / ' (,1,2 / ' ( 6 ',/ 6 * ' / ( (,/ ' 6 (. (,/ 5 3 ' 4 1 ( 8 R S ' 6 3 +* +' / 5. ' 5 * ( 7 T U V W W Y Z [\ ] ^ _ ] Y Z ` Y a U ] b c % d 6 3 * 4 ' 1,A * +' / 5. ' 5 * ( e C K 2 / 1 4 ' ( 1 e * 6 3 D ' (,f * 7 8 g I >h i j: A ' 4,' C +* ( ' 1 ' ( * ( E 8 k J J l =?M 4 ' 1 D * 4 1 D ' / 4 *. 4 (,2 /,( * 6 3 D ' (,f E 8 m =; < > N J ; O : ; 4 ' 1 D * 4 1 D ' / D,5 D * 4 n 2 * 4 -. / 1,2 / ( E 8 R S ' 6 3 +* ( 7 o Y p a q r q s t Y u ] v U ] b Y s _ ] Y o w w Y x ] y ] Y u W \ be 12/5/23. Author: J. Nino. 1 12/5/23. Author: J. Nino. 2 z $ { # } ~ { % & ' ( ) * ++,( ' / W \ W v v [ ^ +' / 5. ' 5 * E ' 6,( ' / * S 3 4 * ( (,2 / E ƒ D * 6 * ' /,/ D * ' 6,( 1 D * A ' +. * 2-1 D * * S 3 4 * ( (,2 / ˆ Š Š 7 ( Œ. ' 4 * B F (. 6 Ž EE ( Œ. ' 4 * B B Š e ˆ F F ,( d / ' / 5 * B (. 6 B -,4 ( 1 Q ' 1 ˆ F F { # š œ ž Ÿ š Ÿ š ž ž œ ž ž œš š Ÿ ž ª «ž ž œ š ž š ž Ÿ ž œ œÿ š œ ± Ÿ œÿ œ ž ž ž Ÿ œ ž ž ž ² Ÿ ž š ± ž œ ž ž œ ž Ÿ š ³ Ÿ š ² œµ š µ ž Ÿ read-eval-print š š š œÿ œ ± ž ž š ž ž µ ž Ÿ Ÿ œš œÿ ž ž ž œ š ž œ ž ž ž Ÿ š œ ± ¹ ž ž œ ± š œ œš š Ÿ ž š ± Ÿ ¹ º œ œ œ œž Ÿ š š ž š œ ± š œ š ž š ž Ÿ Ÿ ž œÿ ž ± ± ž ¹ Ÿ ž Ÿ ž œ ž ž ž Ÿ œ š ž š ± ž ¹ º š ž š ž Ÿ š ž š ž ž ž ž µ ž Ÿ Ÿ œš» œ œ ± Ÿ ž š š ž š Ÿ œÿ Ÿ š ± œ œ ± Ÿ ž š ž œ œ œš Ÿ š ž ž Ÿ ¹ ž ž Ÿ ž œš Ÿ Ÿ ž š ± Ÿ ž Ÿ ž ž œ œ œš œ ž š œš š ž µ ž Ÿ Ÿ œš Ÿ ž Ÿ ž ž µ ž Ÿ Ÿ œš Ÿ Ÿ ž ž ž œ œ œš Ÿ š ž ž ž ž µ ž Ÿ Ÿ œš š ž ž ž ¼ ½ ¾ ½ À Á Ÿ ž ž Ÿ š º œ ž µ ž Ÿ Ÿ œš Ÿ ž ž ž š Ÿ ž ž Ÿ š ž Ÿ ž š š Ÿ œ ž  ž ž Ÿ 12/5/23. Author: J. Nino. 3 12/5/23. Author: J. Nino. 4 1

2 ! š ± Á inchespermile = 12*3*176 drivingage :: Int drivingage = 17 e = ± Ÿ š š ± Main> :l Prog.hs Main> inchespermile 2736 Main> :t inchespermile inchespermile :: Integer Main> drivingage 17 Main> :t drivingage drivingage :: Int Main> :t e e :: Double Main> 12/5/23. Author: J. Nino. 5 Int, Integer, Float, Double Bool " # $% & ' : True, False ( ) * +, -. * / &&, :: Bool -> Bool -> Bool not :: Bool -> Bool Char +1 2 ( ) * +, -. * / ord :: Char -> Int, chr :: Int -> Char 12/5/23. Author: J. Nino. 6 E F H I J K J M N O K P Q FR K S T O F IQ U F K P R H R S FQ J Q V H J S W F S Q S square:: Int -> Int square val = val * val cube x = x * x * x fac x = if x == then 1 else x * fac (x - 1) fac :: Int -> Int fac n n == = 1 n > = n * fac (n-1) newfac = 1 newfac n = n * newfac (n-1) fac :: Int -> Int fac n n == = 1 n > = n * fac (n-1) otherwise = error n< f2 m n = (f m) / (g n) where f m = 2*m 3*m g m = n/5 f1 n m = let k1 = 2*n k2 = 3*m in k1 + k2 Y 2 Z - [ \ +] ^ _ ) 1 ) * 1 [ `, 1 ` [ Z 2 - [ * Z - a a ` ], 1 +- ] ) b. [ - ^ [ ) c c +] ^ d e - [ 1 2 Z * 1 - [ +] ^ - a ), - bbz, 1 +- ] - a f g h g i j k j g l m _ ) 1 ) n ) b` Z * d o Z * 1 ) [ * - c Z b+1 Z [ ) b b+* 1 n ) b` Z * / [] [2, 3, 5, 7, 9, 11, 17, 23] :: [Int] [4.5, 7.2, 6.666] :: [Float] [ a, r, m ] :: [Char] -- can also be written as arm [True, True, False, True, False] :: [Bool] [ [2,6], [3,7,9], [1,6,4,11] ] :: [[Int]] hello p q r st r u p v u w [ h, e, l, l, o ] 12/5/23. Author: J. Nino : ; <=>?@@ 5ABCD 7 12/5/23. Author: J. Nino : ; <=>?@@ 5ABCD 8 2

3 T O F IQ U F K P R H R S FQ J Q V H J S R K S Q O P Q F K W F S Q S ) * \ Z bb. [ - n +_ Z * ] ` c Z [ - ` * ( ` +b1 +] -. Z [ ) 1 +- ] * 1 2 ) 1 c ) ] +. ` b) 1 Z ) ] _ [ Z 1 ` [ ] b+* 1 * d Y 2 Z c - * 1 ( ) * +, - ] Z, [ Z ) 1 Z * ) ] Z b+* 1 ( ) +] ^ ) ] Z bz c Z ] Z a [ - ] 1 - a ) ] Z +* 1 +] ^ b+* 1 d Y 2 Z -. Z [ ) 1 +- ] +* [ +1 1 Z ] ) ] _. [ - ] - ` ], Z _ g k m 3:[2,5] p q r st r u p v u w [3,2,5] a :[ b, c, d ] p q r st r u p v u w [a, b, c, d ] hello : [ there ] p q r st r u p v u w [ hello, there ] 3:5:7:[] p q r st r u p v u w [3,5,7] 1 2 Z [ b+* 1 n ) b` Z * / [1..1] p q r st r u p v u w [1,2,3,4,5,6,7,8,9,1] [5,7..] -- this is an infinite list! 12/5/23. Author: J. Nino : ; <=>?@@ 5ABCD 9 T O F IQ U F K P R H R S FQ J Q V H J S W F S Q R H J Q F R K S ) * \ Z bb. [ - n +_ Z * k l h j g l m -. Z [ ) 1 +- ] * - ] b+* 1 * d - c Z Z ) c. bz * / head :: [a] -> a head (x:_) = x last :: [a] -> a last [x] = x last (_:xs) = last xs tail :: [a] -> [a] tail (_:xs) = xs length :: [a] -> Int length [] = length (x:xs) = 1 + length(xs) (++) :: [a] -> [a] -> [a] [] ++ ys = ys (x:xs) ++ ys = x : (xs ++ ys) filter :: (a -> Bool) -> [a] -> [a] filter p [] = [] filter p (x:xs) = if p x then x: (filter p xs) else filter p xs map :: (a -> b) -> [a] -> [b] map f [] = [] map f (x:xs ) = f x : (map f xs) replicate :: Int -> a -> [a] replicate n x = take n (repeat x) Z Z Y 2 - c. * - ] *. ^ d 12/5/23. Author: J. Nino : ; <=>?@@ 5ABCD 1 W F S Q R H J Q F R K S Q Q J K Q P F K ) 1 1 Z [ ] c ) 1, 2 +] ^ +* ^ Z ] Z [ ) bb ` * Z _ 1 - ),, Z * * *. Z, +a +, n ) b` Z * - a _ ) 1 ) * 1 [ `, 1 ` [ Z * ) c - ] ^ Z [ * d 1 *, - c c - ] b ` * Z _ +] 1 2 Z a - bb- +] ^ 1 -, ) * Z * / a ` ], 1 +- ] _ Z a +] ] d ] +1 +) b+ ) 1 +- ] - a ) n ) [ +) ( bz d - ` *. Z, +a ). ) 1 1 Z [ ] 2 +, 2 *. Z, +a +Z * ) n ) b` Z - [ n ) b` Z _ Z, - c. - * ] a - [ _ ) 1 ) * 1 [ `, 1 ` [ Z * ) ] ` [ +] ^ [ ` ] 1 +c Z +a 1 2 Z. ) 1 1 Z [ ] +* c ) 1, 2 Z _ 1 2 Z +] * 1 [ `, 1 +- ] * ) * * -, +) 1 Z _ ) [ Z Z Z, ` 1 Z _ d R R K I F S Q H Q Q J K S ) 1 1 Z [ ] c ) 1, 2 Z * Z c. 1 b+* 1 [] ) b+* ] Z Z bz c Z ] 1 [x] ) 1 - Z bz c Z ] 1 b+* 1 [x,y] ) b+* 1 x:xs +1 2 ) 1 bz ) * 1 - ] Z Z bz c Z ] 1 +bb, - ] 1 ) +] 1 2 Z n ) b` Z - a 1 2 Z a +[ * 1 Z bz c Z ] 1 * - a 1 2 Z 1 ) +b - a b+* 1 d ) b+* 1 x:y:xs +1 2 ) 1 bz ) * Z bz c Z ] 1 * +bb, - ] 1 ) +] 1 2 Z n ) b` Z - a 1 2 Z a +[ * 1 Z bz c Z ] 1 - a 1 2 Z * Z, - ] _ ) ] _ * - a 1 2 Z 1 ) +b - a b+* 1 d _ ` ] _ Z [ *, - [ Z c ) 1, 2 Z * ) ] 1 2 +] ^ d 12/5/23. Author: J. Nino : ; <=>?@@ 5ABCD 11 12/5/23. Author: J. Nino : ; <=>?@@ 5ABCD 12 3

4 R M M Q J J I J J K Q S R N K K Q sum list = if (length list) == then else (head list) + sum (tail list) sum list length list == = otherwise = (head list) + sum (tail list) sum list = case (length list) of -> _ -> (head list) + sum (tail list) sum [] = sum [x] = x sum (x:xs) = x + sum xs 12/5/23. Author: J. Nino : ; <=>?@@ 5ABCD 13 T O F IQ U F K P R H R S FQ J Q V H J S O H I J S * Z _ a - [ 1 2 Z ^ [ - `. +] ^ - a n ) b` Z * - a. - * * +( b _ +a a Z [ Z ] 1 1. Z * d Y 2 +] \ * 1 [ `, 1 * +] [ Z, - [ _ * +] (8, 3) :: (Int, Int) ( a, 1) :: (Char, Int) ( John Doe, True, [ Mary, Joseph ]) :: (String, Bool,[String])! " # $ " # " % # fst $ " snd & ' $ (! # ( # ( % $ " % # % & ) * ( # $ " & 12/5/23. Author: J. Nino : ; <=>?@@ 5ABCD 14 = B C C A D E F B C H IE J $ ( # & ' # # % flip :: (Int, Int) -> (Int, Int) flip pair = (snd pair, fst pair) -- better below: flip (x,y) = (y, x) -- match equal:: (Int, Int) -> (Int, Int) -> Bool equal (x,y) (x1,y1) = x * y1 == x1 * y numberchildren :: (String, Bool, [String]) -> Int numberchildren (name, married, children) = length children 12/5/23. Author: J. Nino. +, + -./ :;< 15 = > K A K M N O P Q RS P T N O U S V O W RO T N S T U T W Y Z T U [\ ] ^ W W O Z W _ U [\ ` S U Z S R W a _ S Q RS P b N O \ RP _ [c c O W O \ Z O d [T N T N O U O [U T N S T e P _ O cs Y RT f S U g O RR U T W Y Z T U c [O R_ U _ \ T W O h Y [W O RS e O RU i M N O P Z S \ e O Y U O _ c W T N O _ O c [\ [T [ \ c Y U O W _ O c [\ O _ T P Q O U i type Date = (Int, Int, Int) -- (day, month, year) type Testrade = (String, Int, Char) --(id, score, grade) type Employee = (Date, String, Float) (begin, name, salary) M N O P Z S \ S RU e O Y U O _ T W O T Y W \ V W O T N S \ \ O j S RY O c W V c Y \ Z T [ \ U i type Author = String type AuthorPubs = (Author, Int) - (author, book pubscount) type AuthorDB = [AuthorPubs] pubscount :: AuthorDB -> Author -> AuthorPubs pubscount [] anauthor = ( NoSuch, ) pubscount ((author, pubs):authors) anauthor = if author == anauthor then (author, pubs) else (pubscount authors anauthor) 12/5/23. Author: J. Nino. +, + -./ :;< 16 4

5 A I E I E IK C K IK C F? D A H A E K I E ] N S W S Z T O W [U T [Z S RRP c Y \ _ [\ Y \ Z T [ \ S R Q W W S V V [\ RS \ Y S O U i a R[U T Z V Q W O N O \ U [ \ [U Y U O _ T _ O c [\ O T N O O RO V O \ T U c \ O d R[U T [\ T O W V U c O RO V O \ T U c S \ T N O W R[U T i M N O R[U T e O [\ Y U O _ [U Z S RRO _ T N O O \ O W S T W i evennumbers = [2*n n <- [1..4]] [2,4,6,8] shiftvalues = [n + 1 n <- [5,8,11,15] ] [6,9,12, 16] primes = [ isprime n n <- [2..2]] [2,3,5,7,11,13,17] shiftvalues = [n + 1 n <- [5,8,11,15], iseven n ] [9] shiftvalues = [n + 1 n <- [5,8,11,15], n < 1] [6,9] digitist = [ ch ch <- string, isdigit ch] # $ " pairsum =[ n + m (n,m) <- pairist] pairsum = [ n + m (n,m) <- pairist, m mod n == ] 12/5/23. Author: J. Nino. +, + -./ :;< 17 D I D B D # # ( * % # " % & ( % % "! $ $ & ' # & $ ( " " & % $ # % # % # % $ & # $ $ ( type String = [Char] ERROR "c:\unocourses\451\haskell\code\simplefuns.hs":27 - Ambiguous type constructor occurrence "String" *** Could refer to: Main.String Prelude.String! " # $ # % & ' " " ( " ) ' * *! % ' * $# +! *, ' --! " ' ( # -. /! " $! ' -/ /5/23. Author: J. Nino. +, + -./ :;< 18 H I J K M I N OP Q R S M J T I P Q U N V M U W T Q U YQ Z U U [ \ ] I ^ U I Q Q _U ` _a J K I J Q a b U c W c Q U U _a P I J K Z c T P U ^ P J W H I J K J Q ` I M I T P U ^ P J W Q J d J O_J Z _I U _O I \ e f I P S OQ I Q g h \i j h \k l h \m l h \in l o \p l o \m l o \i n l o \i i l q \r l q \p l q \q l q \R l q \i h l q \i k l q \i q l q \i R l q \r k 12/5/23. Author: J. Nino : ; < = >?@ABB 7CDEF 19 5

Framework for functional tree simulation applied to 'golden delicious' apple trees

Framework for functional tree simulation applied to 'golden delicious' apple trees Purdue University Purdue e-pubs Open Access Theses Theses and Dissertations Spring 2015 Framework for functional tree simulation applied to 'golden delicious' apple trees Marek Fiser Purdue University

More information

OC330C. Wiring Diagram. Recommended PKH- P35 / P50 GALH PKA- RP35 / RP50. Remarks (Drawing No.) No. Parts No. Parts Name Specifications

OC330C. Wiring Diagram. Recommended PKH- P35 / P50 GALH PKA- RP35 / RP50. Remarks (Drawing No.) No. Parts No. Parts Name Specifications G G " # $ % & " ' ( ) $ * " # $ % & " ( + ) $ * " # C % " ' ( ) $ * C " # C % " ( + ) $ * C D ; E @ F @ 9 = H I J ; @ = : @ A > B ; : K 9 L 9 M N O D K P D N O Q P D R S > T ; U V > = : W X Y J > E ; Z

More information

1. Allstate Group Critical Illness Claim Form: When filing Critical Illness claim, please be sure to include the following:

1. Allstate Group Critical Illness Claim Form: When filing Critical Illness claim, please be sure to include the following: Dear Policyholder, Per your recent request, enclosed you will find the following forms: 1. Allstate Group Critical Illness Claim Form: When filing Critical Illness claim, please be sure to include the

More information

w = baa tš, w L µ? q 0 K : δ(q 2, b) = q 2 (1)

w = baa tš, w L µ? q 0 K : δ(q 2, b) = q 2 (1) J S "!$#"%"#"&"'(#$) 26 * 2 +, 3 * -/.2 354 3 6/798 :. ; ="?A@CBED, F$G, H$I JLKNMPO"Q"RCS5T$U"VCWAX"YNS5Z\[P]"O ^`_ Σ = {A, B,, Z, a, b,, z, (acb ),d, e, f } (gihkjlmcnc ) Σ + = { abc de, this is, aa,

More information

ALTER TABLE Employee ADD ( Mname VARCHAR2(20), Birthday DATE );

ALTER TABLE Employee ADD ( Mname VARCHAR2(20), Birthday DATE ); !! "# $ % & '( ) # * +, - # $ "# $ % & '( ) # *.! / 0 "# "1 "& # 2 3 & 4 4 "# $ % & '( ) # *!! "# $ % & # * 1 3 - "# 1 * #! ) & 3 / 5 6 7 8 9 ALTER ; ? @ A B C D E F G H I A = @ A J > K L ; ?

More information

n P! " # $ % & % & ' ( ) * + % $, $ -. $ -..! " # ) & % $/ $ - 0 1 2 3 4 5 6 7 3 8 7 9 9 : 3 ; 1 7 < 9 : 5 = > : 9? @ A B C D E F G HI J G H K D L M N O P Q R S T U V M Q P W X X Y W X X Z [ Y \ ] M

More information

An Example file... log.txt

An Example file... log.txt # ' ' Start of fie & %$ " 1 - : 5? ;., B - ( * * B - ( * * F I / 0. )- +, * ( ) 8 8 7 /. 6 )- +, 5 5 3 2( 7 7 +, 6 6 9( 3 5( ) 7-0 +, => - +< ( ) )- +, 7 / +, 5 9 (. 6 )- 0 * D>. C )- +, (A :, C 0 )- +,

More information

LA PRISE DE CALAIS. çoys, çoys, har - dis. çoys, dis. tons, mantz, tons, Gas. c est. à ce. C est à ce. coup, c est à ce

LA PRISE DE CALAIS. çoys, çoys, har - dis. çoys, dis. tons, mantz, tons, Gas. c est. à ce. C est à ce. coup, c est à ce > ƒ? @ Z [ \ _ ' µ `. l 1 2 3 z Æ Ñ 6 = Ð l sl (~131 1606) rn % & +, l r s s, r 7 nr ss r r s s s, r s, r! " # $ s s ( ) r * s, / 0 s, r 4 r r 9;: < 10 r mnz, rz, r ns, 1 s ; j;k ns, q r s { } ~ l r mnz,

More information

Symmetry - intro. Matti Hotokka Department of Physical Chemistry Åbo Akademi University

Symmetry - intro. Matti Hotokka Department of Physical Chemistry Åbo Akademi University Symmetry - intro Matti Hotokka Department of Physical Chemistry Åbo Akademi University Jyväskylä 008 Symmetrical or not The image looks symmetrical. Why? Jyväskylä 008 Symmetrical or not The right hand

More information

: : m.alghorani@uaeu.ac.ae ( ' &ت #$!" )$ +ص, $ -$!/ی 0 ی 1 : 67! 55-23 5889.!"#$ %&' ( )*+,-. /0 ( ) =/H@ I*E F"= G8 ' )E ABCD 2 # 34 5 + 6' 78 9 : ;+ < =' > 4? @#.)*P# Q' "=RS O 6? 5 O 6@ %' )N* JK@

More information

CS100: DISCRETE STRUCTURES

CS100: DISCRETE STRUCTURES 1 CS100: DISCRETE STRUCTURES Computer Science Department Lecture 2: Functions, Sequences, and Sums Ch2.3, Ch2.4 2.3 Function introduction : 2 v Function: task, subroutine, procedure, method, mapping, v

More information

VAPT.E Solenoids for Use in Hazardous Locations. Solenoids for Use in Hazardous Locations

VAPT.E Solenoids for Use in Hazardous Locations. Solenoids for Use in Hazardous Locations R S T U V V W Y Z Z W Y [ \ ] ^ V V T U Z [ _ X Y T Z ` a b c b d e _ Y Z Z Y [ f Y [ V T g [ T T Y U [ [ _ U [ T U Z h U g V Y [ i _ U g V Z U T Y U [ V V j j k k j l k m n W o p j o q j r j j l s l q

More information

February 17, 2015 REQUEST FOR PROPOSALS. For Columbus Metropolitan Library. Issued by: Purchasing Division 96 S. Grant Ave. Columbus, OH 43215

February 17, 2015 REQUEST FOR PROPOSALS. For Columbus Metropolitan Library. Issued by: Purchasing Division 96 S. Grant Ave. Columbus, OH 43215 F 7, 05 RQU FOR PROPOL P/B & O RFP L 5-006 F L : P D 96 G, OH 435 D : 3, 05 N :00 N (, O L ) W D, P P D, F D : (64) 849-034; F: (64) 849-34 @ RQU FOR PROPOL NRUON L ( L L ) R P ( RFP ) P B P N L 5-006

More information

n CS 160 or CS122 n Sets and Functions n Propositions and Predicates n Inference Rules n Proof Techniques n Program Verification n CS 161

n CS 160 or CS122 n Sets and Functions n Propositions and Predicates n Inference Rules n Proof Techniques n Program Verification n CS 161 Discrete Math at CSU (Rosen book) Sets and Functions (Rosen, Sections 2.1,2.2, 2.3) TOPICS Discrete math Set Definition Set Operations Tuples 1 n CS 160 or CS122 n Sets and Functions n Propositions and

More information

" #$ P UTS W U X [ZY \ Z _ `a \ dfe ih j mlk n p q sr t u s q e ps s t x q s y i_z { U U z W } y ~ y x t i e l US T { d ƒ ƒ ƒ j s q e uˆ ps i ˆ p q y

 #$ P UTS W U X [ZY \ Z _ `a \ dfe ih j mlk n p q sr t u s q e ps s t x q s y i_z { U U z W } y ~ y x t i e l US T { d ƒ ƒ ƒ j s q e uˆ ps i ˆ p q y " #$ +. 0. + 4 6 4 : + 4 ; 6 4 < = =@ = = =@ = =@ " #$ P UTS W U X [ZY \ Z _ `a \ dfe ih j mlk n p q sr t u s q e ps s t x q s y i_z { U U z W } y ~ y x t i e l US T { d ƒ ƒ ƒ j s q e uˆ ps i ˆ p q y h

More information

Optimal Control of PDEs

Optimal Control of PDEs Optimal Control of PDEs Suzanne Lenhart University of Tennessee, Knoville Department of Mathematics Lecture1 p.1/36 Outline 1. Idea of diffusion PDE 2. Motivating Eample 3. Big picture of optimal control

More information

Executive Assessment. Executive Assessment Math Review. Section 1.0, Arithmetic, includes the following topics:

Executive Assessment. Executive Assessment Math Review. Section 1.0, Arithmetic, includes the following topics: Executive Assessment Math Review Although the following provides a review of some of the mathematical concepts of arithmetic and algebra, it is not intended to be a textbook. You should use this chapter

More information

Harlean. User s Guide

Harlean. User s Guide Harlean User s Guide font faq HOW TO INSTALL YOUR FONT You will receive your files as a zipped folder. For instructions on how to unzip your folder, visit LauraWorthingtonType.com/faqs/. Your font is available

More information

) = 1, ) = 2, and o( [ 11]

) = 1, ) = 2, and o( [ 11] True/False Questions 1. The order of the identity element in any group is 1. True. n = 1 is the least positive integer such that e n = e. 2. Every cyclic group is abelian. True. Let G be a cyclic group.

More information

Examination paper for TFY4240 Electromagnetic theory

Examination paper for TFY4240 Electromagnetic theory Department of Physics Examination paper for TFY4240 Electromagnetic theory Academic contact during examination: Associate Professor John Ove Fjærestad Phone: 97 94 00 36 Examination date: 16 December 2015

More information

Computing N-th Roots using the Babylonian Method

Computing N-th Roots using the Babylonian Method Computing N-th Roots using the Babylonian Method René Thiemann May 27, 2015 Abstract We implement the Babylonian method [1] to compute n-th roots of numbers. We provide precise algorithms for naturals,

More information

AN IDENTIFICATION ALGORITHM FOR ARMAX SYSTEMS

AN IDENTIFICATION ALGORITHM FOR ARMAX SYSTEMS AN IDENTIFICATION ALGORITHM FOR ARMAX SYSTEMS First the X, then the AR, finally the MA Jan C. Willems, K.U. Leuven Workshop on Observation and Estimation Ben Gurion University, July 3, 2004 p./2 Joint

More information

NORTHWESTERN UNIVERSITY Tuesday, Oct 6th, 2015 ANSWERS FALL 2015 NU PUTNAM SELECTION TEST

NORTHWESTERN UNIVERSITY Tuesday, Oct 6th, 2015 ANSWERS FALL 2015 NU PUTNAM SELECTION TEST Problem A1. Show that log(1 + x) > x/(1 + x) for all x > 0. - Answer: We have that (log x) = 1/(1+x), and (x/(1+x)) = 1/(1+x) 2. Since 1/(1+x) > 1/(1 + x) 2 for x > 0, the function log x grows faster than

More information

( ) Chapter 6 ( ) ( ) ( ) ( ) Exercise Set The greatest common factor is x + 3.

( ) Chapter 6 ( ) ( ) ( ) ( ) Exercise Set The greatest common factor is x + 3. Chapter 6 Exercise Set 6.1 1. A prime number is an integer greater than 1 that has exactly two factors, itself and 1. 3. To factor an expression means to write the expression as the product of factors.

More information

NATIONAL INSTITUTE OF HOTEL MANAGEMENT, KOLKATA BUSINESS MATHEMATICS 3 rd Semester

NATIONAL INSTITUTE OF HOTEL MANAGEMENT, KOLKATA BUSINESS MATHEMATICS 3 rd Semester NATIONAL INSTITUTE OF HOTEL MANAGEMENT, KOLKATA BUSINESS MATHEMATICS 3 rd Semester Choose (tick) the appropriate from the following options given below. 1. Find the number of subsets of a set {x : x is

More information

! " # $! % & '! , ) ( + - (. ) ( ) * + / 0 1 2 3 0 / 4 5 / 6 0 ; 8 7 < = 7 > 8 7 8 9 : Œ Š ž P P h ˆ Š ˆ Œ ˆ Š ˆ Ž Ž Ý Ü Ý Ü Ý Ž Ý ê ç è ± ¹ ¼ ¹ ä ± ¹ w ç ¹ è ¼ è Œ ¹ ± ¹ è ¹ è ä ç w ¹ ã ¼ ¹ ä ¹ ¼ ¹ ±

More information

CSE 311: Foundations of Computing. Lecture 12: Two s Complement, Primes, GCD

CSE 311: Foundations of Computing. Lecture 12: Two s Complement, Primes, GCD CSE 311: Foundations of Computing Lecture 12: Two s Complement, Primes, GCD n-bit Unsigned Integer Representation Represent integer as sum of powers of 2: If 2 where each {0,1} then representation is b

More information

! "#$ %& '&() * +*, )#-./ , 78-:9-#;</ *1= C D EF G H I EJ F1I J KLJ A1M N F D OP M Q G? RSLF ET J N Q ED U

! #$ %& '&() * +*, )#-./ , 78-:9-#;</ *1= C D EF G H I EJ F1I J KLJ A1M N F D OP M Q G? RSLF ET J N Q ED U ! "#$ %& '&() * +*, )#-./.102.31.4 56.1, 78-:9-#;? @BA C D EF G H I EJ F1I J KLJ A1M N D @&J F D OP M Q G? RSLF ET J N Q ED U OPM Q G? ROBV W&X YYBZ H I? D PM F1[ \] @&M EP ^$_ [ M PM @ M G D Z

More information

CS177 Fall Midterm 1. Wed 10/07 6:30p - 7:30p. There are 25 multiple choice questions. Each one is worth 4 points.

CS177 Fall Midterm 1. Wed 10/07 6:30p - 7:30p. There are 25 multiple choice questions. Each one is worth 4 points. CS177 Fall 2015 Midterm 1 Wed 10/07 6:30p - 7:30p There are 25 multiple choice questions. Each one is worth 4 points. Answer the questions on the bubble sheet given to you. Only the answers on the bubble

More information

LEAD IN DRINKING WATER REPORT

LEAD IN DRINKING WATER REPORT 181 US Hwy 46 Mine Hill, NJ 07803 (908) 654-8068 (800) 783-0567 Fax 908-654-8069 LEAD IN DRINKING WATER REPORT Performed At: Montrose School 356 Clark St., South Orange, NJ 07079 Performed For: South Orange

More information

Hashing. Hashing DESIGN & ANALYSIS OF ALGORITHM

Hashing. Hashing DESIGN & ANALYSIS OF ALGORITHM Hashing Hashing Start with an array that holds the hash table. Use a hash function to take a key and map it to some index in the array. If the desired record is in the location given by the index, then

More information

Front-end. Organization of a Modern Compiler. Middle1. Middle2. Back-end. converted to control flow) Representation

Front-end. Organization of a Modern Compiler. Middle1. Middle2. Back-end. converted to control flow) Representation register allocation instruction selection Code Low-level intermediate Representation Back-end Assembly array references converted into low level operations, loops converted to control flow Middle2 Low-level

More information

cse 311: foundations of computing Fall 2015 Lecture 12: Primes, GCD, applications

cse 311: foundations of computing Fall 2015 Lecture 12: Primes, GCD, applications cse 311: foundations of computing Fall 2015 Lecture 12: Primes, GCD, applications n-bit unsigned integer representation Represent integer x as sum of powers of 2: If x = n 1 i=0 b i 2 i where each b i

More information

4.3 Laplace Transform in Linear System Analysis

4.3 Laplace Transform in Linear System Analysis 4.3 Laplace Transform in Linear System Analysis The main goal in analysis of any dynamic system is to find its response to a given input. The system response in general has two components: zero-state response

More information

Ed S MArket. NarROW } ] T O P [ { U S E R S G U I D E. urrrrrrrrrrrv

Ed S MArket. NarROW } ] T O P [ { U S E R S G U I D E. urrrrrrrrrrrv Ed S MArket NarROW Q urrrrrrrrrrrv } ] T O P [ { U S E R S G U I D E QUALITY U op e nt y p e fa q: For information on how to access the swashes and alternates, visit LauraWorthingtonType.com/faqs All operating

More information

Outline. A recursive function follows the structure of inductively-defined data.

Outline. A recursive function follows the structure of inductively-defined data. Outline A recursive function follows the structure of inductively-defined data. With lists as our example, we shall study 1. inductive definitions (to specify data) 2. recursive functions (to process data)

More information

Solutions to problems. The function f(x) is constant when 2 cos θ 1 = 0, or when θ = π/3, and its constant value in this case is 3/4.

Solutions to problems. The function f(x) is constant when 2 cos θ 1 = 0, or when θ = π/3, and its constant value in this case is 3/4. 103 Determine a value of the parameter θ so that is a constant function of x Solution 1 Solutions to problems f(x) cos x + cos (x + θ) cos x cos(x + θ) f(x) = cos x + (cos x cos θ sin x sin θ) cos x(cos

More information

Max. Input Power (W) Input Current (Arms) Dimming. Enclosure

Max. Input Power (W) Input Current (Arms) Dimming. Enclosure Product Overview XI025100V036NM1M Input Voltage (Vac) Output Power (W) Output Voltage Range (V) Output urrent (A) Efficiency@ Max Load and 70 ase Max ase Temp. ( ) Input urrent (Arms) Max. Input Power

More information

Note: Prior Contact Checks will be required at other stages in the adoption process. The Agency will advise you when these are required.

Note: Prior Contact Checks will be required at other stages in the adoption process. The Agency will advise you when these are required. MINISTRY OF CHILDREN AND FAMILY DEVELOPMENT (MCFD) PRIOR CONTACT CHECK (PCC) - 4 forms: Prior Contact Check Request Consent for Prior Contact Check Consent to Share Information Form C Results of Prior

More information

Warshall s algorithm

Warshall s algorithm Regular Expressions [1] Warshall s algorithm See Floyd-Warshall algorithm on Wikipedia The Floyd-Warshall algorithm is a graph analysis algorithm for finding shortest paths in a weigthed, directed graph

More information

$%! & (, -3 / 0 4, 5 6/ 6 +7, 6 8 9/ 5 :/ 5 A BDC EF G H I EJ KL N G H I. ] ^ _ ` _ ^ a b=c o e f p a q i h f i a j k e i l _ ^ m=c n ^

$%! & (, -3 / 0 4, 5 6/ 6 +7, 6 8 9/ 5 :/ 5 A BDC EF G H I EJ KL N G H I. ] ^ _ ` _ ^ a b=c o e f p a q i h f i a j k e i l _ ^ m=c n ^ ! #" $%! & ' ( ) ) (, -. / ( 0 1#2 ' ( ) ) (, -3 / 0 4, 5 6/ 6 7, 6 8 9/ 5 :/ 5 ;=? @ A BDC EF G H I EJ KL M @C N G H I OPQ ;=R F L EI E G H A S T U S V@C N G H IDW G Q G XYU Z A [ H R C \ G ] ^ _ `

More information

U ight. User s Guide

U ight. User s Guide Samantha Uight Regular Bold User s Guide font faq HOW TO INSTALL YOUR FONT You will receive your files as a zipped folder. For instructions on how to unzip your folder, visit LauraWorthingtonType.com/faqs/.

More information

Constructive Decision Theory

Constructive Decision Theory Constructive Decision Theory Joe Halpern Cornell University Joint work with Larry Blume and David Easley Economics Cornell Constructive Decision Theory p. 1/2 Savage s Approach Savage s approach to decision

More information

9A. Iteration with range. Topics: Using for with range Summation Computing Min s Functions and for-loops A Graphics Applications

9A. Iteration with range. Topics: Using for with range Summation Computing Min s Functions and for-loops A Graphics Applications 9A. Iteration with range Topics: Using for with range Summation Computing Min s Functions and for-loops A Graphics Applications Iterating Through a String s = abcd for c in s: print c Output: a b c d In

More information

Grade: 8 Mathematics Olympiad Qualifier Set: 2

Grade: 8 Mathematics Olympiad Qualifier Set: 2 Grade: 8 Mathematics Olympiad Qualifier Set: 2 ----------------------------------------------------------------------------------------------- Max Marks: 60 Test ID: 88802 Time Allotted: 40 Mins -----------------------------------------------------------------------------------------------

More information

8. More on Iteration with For

8. More on Iteration with For 8. More on Iteration with For Topics: Using for with range Summation Computing Min s Functions and for-loops Graphical iteration Traversing a String Character-by-Character s = abcd for c in s: print c

More information

6.1 Area Between Curves. Example 1: Calculate the area of the region between the parabola y = 1 x 2 and the line y = 1 x

6.1 Area Between Curves. Example 1: Calculate the area of the region between the parabola y = 1 x 2 and the line y = 1 x AP Calculus 6.1 Area Between Curves Name: Goal: Calculate the Area between curves Keys to Success: Top Curve Bottom Curve (integrate w/respect to x or dx) Right Curve Left Curve (integrate w/respect to

More information

Lecture # 31. Questions of Marks 3. Question: Solution:

Lecture # 31. Questions of Marks 3. Question: Solution: Lecture # 31 Given XY = 400, X = 5, Y = 4, S = 4, S = 3, n = 15. Compute the coefficient of correlation between XX and YY. r =0.55 X Y Determine whether two variables XX and YY are correlated or uncorrelated

More information

EXAM # AM PM, Wednesday March 14. Write your name and ID number at the top of this page and on pages 2-5.

EXAM # AM PM, Wednesday March 14. Write your name and ID number at the top of this page and on pages 2-5. NAME: SOLUTIONS Student ID: Score: Physics 322 Winter 2018 EXAM # 3 1030 AM - 1220 PM, Wednesday March 14 Write your name and ID number at the top of this page and on pages 2-5. Clearly show all your reasoning.

More information

Complex Analysis. PH 503 Course TM. Charudatt Kadolkar Indian Institute of Technology, Guwahati

Complex Analysis. PH 503 Course TM. Charudatt Kadolkar Indian Institute of Technology, Guwahati Complex Analysis PH 503 Course TM Charudatt Kadolkar Indian Institute of Technology, Guwahati ii Copyright 2000 by Charudatt Kadolkar Preface Preface Head These notes were prepared during the lectures

More information

Vector analysis. 1 Scalars and vectors. Fields. Coordinate systems 1. 2 The operator The gradient, divergence, curl, and Laplacian...

Vector analysis. 1 Scalars and vectors. Fields. Coordinate systems 1. 2 The operator The gradient, divergence, curl, and Laplacian... Vector analysis Abstract These notes present some background material on vector analysis. Except for the material related to proving vector identities (including Einstein s summation convention and the

More information

1.1 Variables and Expressions How can a verbal expression be translated to an algebraic expression?

1.1 Variables and Expressions How can a verbal expression be translated to an algebraic expression? 1.1 Variables and Expressions How can a verbal expression be translated to an algebraic expression? Recall: Variable: Algebraic Expression: Examples of Algebraic Expressions: Different ways to show multiplication:

More information

GATE 2015 A Brief Analysis (Based on student test experiences in the stream of CS on 8th February, 2015 (Morning Session)

GATE 2015 A Brief Analysis (Based on student test experiences in the stream of CS on 8th February, 2015 (Morning Session) CS-GATE-05 GATE 05 A Brief Analysis (Based on student test experiences in the stream of CS on 8th February, 05 (Morning Session) Section wise analysis of the paper Section Classification Mark Marks Total

More information

Principal Secretary to Government Haryana, Town & Country Planning Department, Haryana, Chandigarh.

Principal Secretary to Government Haryana, Town & Country Planning Department, Haryana, Chandigarh. 1 From To Principal Secretary to Government Haryana, Town & Country Planning Department, Haryana, Chandigarh. The Director General, Town & Country Planning Department, Haryana, Chandigarh. Memo No. Misc-2339

More information

Abstract Algebra Part I: Group Theory

Abstract Algebra Part I: Group Theory Abstract Algebra Part I: Group Theory From last time: Let G be a set. A binary operation on G is a function m : G G G Some examples: Some non-examples Addition and multiplication Dot and scalar products

More information

Notes on Inductive Sets and Induction

Notes on Inductive Sets and Induction Notes on Inductive Sets and Induction Finite Automata Theory and Formal Languages TMV027/DIT21 Ana Bove, March 15th 2018 Contents 1 Induction over the Natural Numbers 2 1.1 Mathematical (Simple) Induction........................

More information

CS154 Final Examination

CS154 Final Examination CS154 Final Examination June 7, 2010, 7-10PM Directions: CS154 students: answer all 13 questions on this paper. Those taking CS154N should answer only questions 8-13. The total number of points on this

More information

CS177 Spring Midterm 2. April 02, 8pm-9pm. There are 25 multiple choice questions. Each one is worth 4 points.

CS177 Spring Midterm 2. April 02, 8pm-9pm. There are 25 multiple choice questions. Each one is worth 4 points. CS177 Spring 2015 Midterm 2 April 02, 8pm-9pm There are 25 multiple choice questions. Each one is worth 4 points. Answer the questions on the bubble sheet given to you. Only the answers on the bubble sheet

More information

MOTION REGARDING PARENTING TIME FOC 65

MOTION REGARDING PARENTING TIME FOC 65 Mecosta County Friend the Court 400 Elm Street P.O. Box 508 Big Rapids, MI 49307 (231) 592-0115 USE THIS FORM IF: MOTION REGARDING PARENTING TIME FOC 65 You have a court order through the Mecosta County

More information

Typing-by-encoding. A reductionistic approach to building type systems. François Pottier.

Typing-by-encoding. A reductionistic approach to building type systems. François Pottier. Typing-by-encoding A reductionistic approach to building type systems François Pottier Francois.Pottier@inria.fr Overview What is typing-by-encoding? Encoding exceptions into sums (folklore). Encoding

More information

Fall 2014 CMSC250/250H Midterm II

Fall 2014 CMSC250/250H Midterm II Fall 2014 CMSC250/250H Midterm II Circle Your Section! 0101 (10am: 3120, Ladan) 0102 (11am: 3120, Ladan) 0103 (Noon: 3120, Peter) 0201 (2pm: 3120, Yi) 0202 (10am: 1121, Vikas) 0203 (11am: 1121, Vikas)

More information

State High School Mathematics Tournament

State High School Mathematics Tournament February 3, 2018 Tournament Round 1 Rules Tournament Round 1 Rules You will be asked a series of questions. Each correct answer earns you a point. Tournament Round 1 Rules You will be asked a series of

More information

Computer Sciences Department

Computer Sciences Department Computer Sciences Department 1 Reference Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Computer Sciences Department 3 ADVANCED TOPICS IN C O M P U T A B I L I T Y

More information

COP5025 Midterm Exam Spring 2001

COP5025 Midterm Exam Spring 2001 COP5025 Midterm Exam Spring 2001 Name: (Please print) You can put all answers on these sheets. Use additional sheets when necessary. Always show how you derived your answers (this is required for full

More information

2.1 Lecture 5: Probability spaces, Interpretation of probabilities, Random variables

2.1 Lecture 5: Probability spaces, Interpretation of probabilities, Random variables Chapter 2 Kinetic Theory 2.1 Lecture 5: Probability spaces, Interpretation of probabilities, Random variables In the previous lectures the theory of thermodynamics was formulated as a purely phenomenological

More information

Automata Theory Final Exam Solution 08:10-10:00 am Friday, June 13, 2008

Automata Theory Final Exam Solution 08:10-10:00 am Friday, June 13, 2008 Automata Theory Final Exam Solution 08:10-10:00 am Friday, June 13, 2008 Name: ID #: This is a Close Book examination. Only an A4 cheating sheet belonging to you is acceptable. You can write your answers

More information

Symbols and dingbats. A 41 Α a 61 α À K cb ➋ à esc. Á g e7 á esc. Â e e5 â. Ã L cc ➌ ã esc ~ Ä esc : ä esc : Å esc * å esc *

Symbols and dingbats. A 41 Α a 61 α À K cb ➋ à esc. Á g e7 á esc. Â e e5 â. Ã L cc ➌ ã esc ~ Ä esc : ä esc : Å esc * å esc * Note: Although every effort ws tken to get complete nd ccurte tble, the uhtor cn not be held responsible for ny errors. Vrious sources hd to be consulted nd MIF hd to be exmined to get s much informtion

More information

Free Groups. Joachim Breitner. April 17, 2016

Free Groups. Joachim Breitner. April 17, 2016 Free Groups Joachim Breitner April 17, 2016 Abstract Free Groups are, in a sense, the most generic kind of group. They are defined over a set of generators with no additional relations in between them.

More information

Redoing the Foundations of Decision Theory

Redoing the Foundations of Decision Theory Redoing the Foundations of Decision Theory Joe Halpern Cornell University Joint work with Larry Blume and David Easley Economics Cornell Redoing the Foundations of Decision Theory p. 1/21 Decision Making:

More information

New BaBar Results on Rare Leptonic B Decays

New BaBar Results on Rare Leptonic B Decays New BaBar Results on Rare Leptonic B Decays Valerie Halyo Stanford Linear Accelerator Center (SLAC) FPCP 22 valerieh@slac.stanford.edu 1 Table of Contents Motivation to look for and Analysis Strategy Measurement

More information

Turing Machine Recap

Turing Machine Recap Turing Machine Recap DFA with (infinite) tape. One move: read, write, move, change state. High-level Points Church-Turing thesis: TMs are the most general computing devices. So far no counter example Every

More information

Mathematical Induction

Mathematical Induction Mathematical Induction COM1022 Functional Programming Techniques Professor Steve Schneider University of Surrey Semester 2, 2010 Week 10 Professor Steve Schneider Mathematical Induction Semester 2, 2010

More information

Programming Language Concepts, cs2104 Tutorial 1. Answers

Programming Language Concepts, cs2104 Tutorial 1. Answers Programming Language Concepts, cs2104 Tutorial 1. Answers Exercise 1. (Variables and Cells) Given: local X in X=23 local X in X=44 {Browse X} The second uses a cell: local X in X={NewCell 23} X:=44 {Browse

More information

Autumn 2015 Practice Final. Time Limit: 1 hour, 50 minutes

Autumn 2015 Practice Final. Time Limit: 1 hour, 50 minutes Math 309 Autumn 2015 Practice Final December 2015 Time Limit: 1 hour, 50 minutes Name (Print): ID Number: This exam contains 9 pages (including this cover page) and 8 problems. Check to see if any pages

More information

SOAP Webservice for querying the IM2.MDM dialogue database: Java package documentation

SOAP Webservice for querying the IM2.MDM dialogue database: Java package documentation MULTIMODAL DIALOGUE MANAGEMENT!!"$#&% '(*)+%,('(*-/.1032 4!567*2 8 9;:=?5 0!@A435 SOAP Webservice for querying the IM2.MDM dialogue database: Java package documentation BDCEF CHGHI*J E K ILMNO PQSR

More information

ETIKA V PROFESII PSYCHOLÓGA

ETIKA V PROFESII PSYCHOLÓGA P r a ž s k á v y s o k á š k o l a p s y c h o s o c i á l n í c h s t u d i í ETIKA V PROFESII PSYCHOLÓGA N a t á l i a S l o b o d n í k o v á v e d ú c i p r á c e : P h D r. M a r t i n S t r o u

More information

Modèles stochastiques II

Modèles stochastiques II Modèles stochastiques II INFO 154 Gianluca Bontempi Département d Informatique Boulevard de Triomphe - CP 1 http://ulbacbe/di Modéles stochastiques II p1/50 The basics of statistics Statistics starts ith

More information

Permutation distance measures for memetic algorithms with population management

Permutation distance measures for memetic algorithms with population management MIC2005: The Sixth Metaheuristics International Conference??-1 Permutation distance measures for memetic algorithms with population management Marc Sevaux Kenneth Sörensen University of Valenciennes, CNRS,

More information

Chapter 5. Resampling methods: Bias, Variance, and their trade-off

Chapter 5. Resampling methods: Bias, Variance, and their trade-off Chapter 5 Resampling methods: Bias, Variance, and their trade-off We have defined various smoothers and nonparametric estimation techniques. In classical statistical theory we usually assume that the underlying

More information

s 1 if xπy and f(x) = f(y)

s 1 if xπy and f(x) = f(y) Algorithms Proessor John Rei Hash Function : A B ALG 4.2 Universal Hash Functions: CLR - Chapter 34 Auxillary Reading Selections: AHU-Data Section 4.7 BB Section 8.4.4 Handout: Carter & Wegman, "Universal

More information

ALG 4.1 Randomized Pattern Matching:

ALG 4.1 Randomized Pattern Matching: Algorithms Professor John Reif Generalized Pattern Matching ALG 4.1 Randomized Pattern Matching: Reading Selection: CLR: Chapter 12 Handout: R. Karp and M. Rabin, "Efficient Randomized Pattern-Matching"

More information

Question Bank In Mathematics Class IX (Term II)

Question Bank In Mathematics Class IX (Term II) Question Bank In Mathematics Class IX (Term II) PROBABILITY A. SUMMATIVE ASSESSMENT. PROBABILITY AN EXPERIMENTAL APPROACH. The science which measures the degree of uncertainty is called probability.. In

More information

Selected problems from past exams and a few additional problems

Selected problems from past exams and a few additional problems Discrete Structures CS2800 Prelim 1 sample questions s Selected problems from past exams and a few additional problems 1. Compute (10101) 2 + (101) 2. Express your answer in both binary and decimal. There

More information

Scalar multiplication in compressed coordinates in the trace-zero subgroup

Scalar multiplication in compressed coordinates in the trace-zero subgroup Scalar multiplication in compressed coordinates in the trace-zero subgroup Giulia Bianco and Elisa Gorla Institut de Mathématiques, Université de Neuchâtel Rue Emile-Argand 11, CH-2000 Neuchâtel, Switzerland

More information

CS-140 Fall 2018 Test 2 Version Practice Nov. 12, Name:

CS-140 Fall 2018 Test 2 Version Practice Nov. 12, Name: CS-140 Fall 2018 Test 2 Version Practice Nov. 12, 2018 Name: 1. (10 points) For the following, Check T if the statement is true, or F if the statement is false. (a) T F : If a child overrides its parent

More information

Algebra I. Book 2. Powered by...

Algebra I. Book 2. Powered by... Algebra I Book 2 Powered by... ALGEBRA I Units 4-7 by The Algebra I Development Team ALGEBRA I UNIT 4 POWERS AND POLYNOMIALS......... 1 4.0 Review................ 2 4.1 Properties of Exponents..........

More information

Carleton University. Final Examination Fall DURATION: 2 HOURS No. of students: 223

Carleton University. Final Examination Fall DURATION: 2 HOURS No. of students: 223 Carleton University Final Examination Fall 2016 DURATION: 2 HOURS No. of students: 223 Department Name & Course Number: Computer Science COMP 2804A Course Instructor: Michiel Smid Authorized memoranda:

More information

CMSC 631 Program Analysis and Understanding Fall Type Systems

CMSC 631 Program Analysis and Understanding Fall Type Systems Program Analysis and Understanding Fall 2017 Type Systems Type Systems A type system is a tractable syntactic method for proving the absence of certain program behaviors by classifying phrases according

More information

SERIES AND SEQUENCE. solution. 3r + 2r 2. r=1. r=1 = = = 155. solution. r 3. 2r +

SERIES AND SEQUENCE. solution. 3r + 2r 2. r=1. r=1 = = = 155. solution. r 3. 2r + Series 1 + + 3 + 4 +... SERIES AND SEQUENCE Sequence 1,, 3, 4,... example The series 1 + + 3 + 4 +... + n = n r=1 r n r=1 r = 1 + + 3 +... + n = n(n + 1) Eg.1 The sum of the first 100 natural numbers is

More information

Vectors. Teaching Learning Point. Ç, where OP. l m n

Vectors. Teaching Learning Point. Ç, where OP. l m n Vectors 9 Teaching Learning Point l A quantity that has magnitude as well as direction is called is called a vector. l A directed line segment represents a vector and is denoted y AB Å or a Æ. l Position

More information

EE C128 / ME C134 Final Exam Fall 2014

EE C128 / ME C134 Final Exam Fall 2014 EE C128 / ME C134 Final Exam Fall 2014 December 19, 2014 Your PRINTED FULL NAME Your STUDENT ID NUMBER Number of additional sheets 1. No computers, no tablets, no connected device (phone etc.) 2. Pocket

More information

Matrices and Determinants

Matrices and Determinants Matrices and Determinants Teaching-Learning Points A matri is an ordered rectanguar arra (arrangement) of numbers and encosed b capita bracket [ ]. These numbers are caed eements of the matri. Matri is

More information

CS250, Fall 2010, Midterm 2, Tuesday November 9, 8am.

CS250, Fall 2010, Midterm 2, Tuesday November 9, 8am. CS250, Fall 2010, Midterm 2, Tuesday November 9, 8am. This is an individual, closed-book (and notes, cell phone,...) exam. You have 75 minutes. Write CS250 in the Subject and #1 in the Test No. fields

More information

Monty Hall Puzzle. Draw a tree diagram of possible choices (a possibility tree ) One for each strategy switch or no-switch

Monty Hall Puzzle. Draw a tree diagram of possible choices (a possibility tree ) One for each strategy switch or no-switch Monty Hall Puzzle Example: You are asked to select one of the three doors to open. There is a large prize behind one of the doors and if you select that door, you win the prize. After you select a door,

More information

Regularity-preserving letter selections

Regularity-preserving letter selections Regularity-preserving letter selections Armando B. Matos LIACC, Universidade do Porto Rua do Campo Alegre 823, 4150 Porto, Portugal 1 Introduction and definitions Seiferas and McNaughton gave in [SM76]

More information

Relationship between identification metrics: Expected Confusion and Area Under a ROC curve

Relationship between identification metrics: Expected Confusion and Area Under a ROC curve Relationship between identification metrics: Expected Confusion and Area Under a ROC curve Amos Y. Johnson Aaron F. obick Electrical and Computer Engineering VU Center/College of Computing eorgia Tech

More information

CS177 Spring Final exam. Fri 05/08 7:00p - 9:00p. There are 40 multiple choice questions. Each one is worth 2.5 points.

CS177 Spring Final exam. Fri 05/08 7:00p - 9:00p. There are 40 multiple choice questions. Each one is worth 2.5 points. CS177 Spring 2015 Final exam Fri 05/08 7:00p - 9:00p There are 40 multiple choice questions. Each one is worth 2.5 points. Answer the questions on the bubble sheet given to you. Only the answers on the

More information

Binary Logic and Gates

Binary Logic and Gates 1 COE 202- Digital Logic Binary Logic and Gates Dr. Abdulaziz Y. Barnawi COE Department KFUPM 2 Outline Introduction Boolean Algebra Elements of Boolean Algebra (Binary Logic) Logic Operations & Logic

More information

Marquette University Executive MBA Program Statistics Review Class Notes Summer 2018

Marquette University Executive MBA Program Statistics Review Class Notes Summer 2018 Marquette University Executive MBA Program Statistics Review Class Notes Summer 2018 Chapter One: Data and Statistics Statistics A collection of procedures and principles

More information

A Functional Quantum Programming Language

A Functional Quantum Programming Language A Functional Quantum Programming Language Thorsten Altenkirch University of Nottingham based on joint work with Jonathan Grattage and discussions with V.P. Belavkin supported by EPSRC grant GR/S30818/01

More information