All-Termination(SCP)
|
|
- Meagan Newton
- 5 years ago
- Views:
Transcription
1 All-Teriatio(SCP) Aaro Turo Northeaster Uiversity (joit work with Pete Maolios) Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 1
2 Why, soeties I've believed as ay as six ipossible thigs before breakfast. -- Quee of Hearts, Alice i Woderlad Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 2
3 Why, soeties I've believed as ay as six ipossible thigs before breakfast. -- Quee of Hearts, Alice i Woderlad Sloga 0 All-Teriatio: how to solve six ipossible probles before luch Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 3
4 (defie (isert i x xs) (cod ((<= i 0) (cos x xs)) ((epty? xs) (list x)) (else (cos (car xs) (isert (- i 1) x (cdr xs)))) Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 4
5 (defie (isert i x xs) (cod ((<= i 0) (cos x xs)) ((epty? xs) (list x)) (else (cos (car xs) (isert (- i 1) x (cdr xs)))) How do we prove that isert teriates? Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 5
6 (defie (isert i x xs) (cod ((<= i 0) (cos x xs)) ((epty? xs) (list x)) (else (cos (car xs) (isert (- i 1) x (cdr xs)))) How do we prove that isert teriates? 1 (i, x, xs) = i Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 6
7 (defie (isert i x xs) (cod ((<= i 0) (cos x xs)) ((epty? xs) (list x)) (else (cos (car xs) (isert (- i 1) x (cdr xs)))) How do we prove that isert teriates? 1 (i, x, xs) = i 2 (i, x, xs) = legth xs Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 7
8 (defie (isert i x xs) (cod ((<= i 0) (cos x xs)) ((epty? xs) (list x)) (else (cos (car xs) (isert (- i 1) x (cdr xs)))) How do we prove that isert teriates? 1 (i, x, xs) = i 2 (i, x, xs) = legth xs 3 (i, x, xs) = i + legth xs Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 8
9 (defie (isert i x xs) (cod ((<= i 0) (cos x xs)) ((epty? xs) (list x)) (else (cos (car xs) (isert (- i 1) x (cdr xs)))) How do we prove that isert teriates? 1 (i, x, xs) = i 2 (i, x, xs) = legth xs 3 (i, x, xs) = i + legth xs Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 9
10 (defie (isert i x xs) (cod ((<= i 0) (cos x xs)) ((epty? xs) (list x)) (else (cos (car xs) (isert (- i 1) x (cdr xs)))) How do we prove that isert teriates? 1 (i, x, xs) = {i} Measured sets 2 (i, x, xs) = {xs} for isert 3 (i, x, xs) = {i, xs} Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 10
11 Measured sets iductio schees [Boyer&Moore, 1979] To prove i,x,xs :: φ(i,x,xs), show: Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 11
12 Measured sets iductio schees [Boyer&Moore, 1979] To prove i,x,xs :: φ(i,x,xs), show: Measured set {i} φ(0,x,xs) [ y,ys :: φ(i,y,ys)] φ(i+1,x,xs) Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 12
13 Measured sets iductio schees [Boyer&Moore, 1979] To prove i,x,xs :: φ(i,x,xs), show: Measured set {i} φ(0,x,xs) [ y,ys :: φ(i,y,ys)] φ(i+1,x,xs) Measured set {xs} φ(i,x,il) [ j,y :: φ(j,y,xs)] φ(i,x,cos(z,xs)) Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 13
14 Measured sets iductio schees [Boyer&Moore, 1979] To prove i,x,xs :: φ(i,x,xs), show: Measured set {i} φ(0,x,xs) [ y,ys :: φ(i,y,ys)] φ(i+1,x,xs) Measured set {xs} φ(i,x,il) [ j,y :: φ(j,y,xs)] φ(i,x,cos(z,xs)) Measured set {i,xs} φ(0,x,il) [ y :: φ(i,y,xs)] φ(i+1,x,cos(z,xs)) Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 14
15 Life with a theore prover: Defie fuctios Kow fuctios Rewritig Make cojectures Iductio Provig egie Kow facts User Theore prover Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 15
16 Life with a theore prover: Defie fuctios Prove teriatio Make cojectures Kow fuctios Rewritig Iductio Provig egie Kow facts User Theore prover Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 16
17 Life with ACL2: Defie fuctios Prove teriatio Make cojectures Kow fuctios Rewritig Iductio Provig egie Kow facts User Theore prover Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 17
18 Life with ACL2 Seda: Defie fuctios Teriatio aalysis Kow fuctios Make cojectures Rewritig Iductio Provig egie User Kow facts Theore prover Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 18
19 A better life ACL2 Seda: Defie fuctios All-Teriatio aalysis Kow fuctios Make cojectures Rewritig Iductio Provig egie User Kow facts Theore prover Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 19
20 Sloga 1 Teriatio is ot a yes/o questio it's ultiple choice Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 20
21 The rest of the talk: All-Teriatio(T ) defiitio research progra Poly-tie size-chage teriatio (SCP) All-Teriatio(SCP) Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 21
22 Teriatio aalysis Teriatio udecidable Soud, icoplete aalyses: T : Progras Bool predicate such that if T(P) the P teriates o all iputs Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 22
23 Teriatio aalysis Teriatio udecidable Soud, icoplete aalyses: T : Progras Bool predicate such that if T(P) the P teriates o all iputs Restricted teriatio aalysis such that T : Progras 2 Variables Bool if T(P,V) the V is a easured set for P Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 23
24 Measured sets are upward-closed: if U V ad U is a easured set for P the so is V Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 24
25 Measured sets are upward-closed: if U V ad U is a easured set for P the so is V All-Teriatio(T) aalysis All-Teriatio(T)(P) iial{v T(P,V)} where T is a restricted teriatio aalysis. Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 25
26 Measured sets are upward-closed: if U V ad U is a easured set for P the so is V All-Teriatio(T) aalysis All-Teriatio(T)(P) iial{v T(P,V)} where T is a restricted teriatio aalysis. Warig All-Teriatio(T)(P) ca be expoetial i P. Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 26
27 Theore: if T is i PSPACE the AllTeriatio(T) is i PSPACE. Proof: All-Teriatio(T)(P): for each V vars(p) if T(P,V) the iial := true for each U V if T(P,U) the iial := false if iial the output(v) Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 27
28 Research progra Begi with stadard teriatio aalysis, A Defie restricted versio, T, so that [ V :: T(P,V)] A(P) Istruet A to produce a certificate Ipleet All-Teriatio(T)(P) by ruig A o P to produce certificate extractig easured sets fro certificate Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 28
29 Sloga 2 All-Teriatio does ot icrease power it eriches results Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 29
30 The rest of the talk: All-Teriatio(T ) Poly-tie size-chage teriatio (SCP) All-Teriatio(SCP) Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 30
31 Size-chage teriatio [Lee et al, POPL01] works by aalyzig a safe abstractio of the progra. ack(0,) = +1 ack(,0) = 1 ack(-1, 1) ack(,) = 2 ack(-1, 3 ack(, -1)) Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 31
32 Size-chage teriatio [Lee et al, POPL01] works by aalyzig a safe abstractio of the progra. 1 ack 2 3 ack(0,) = +1 ack(,0) = 1 ack(-1, 1) ack(,) = 2 ack(-1, 3 ack(, -1)) Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 32
33 Size-chage teriatio [Lee et al, POPL01] works by aalyzig a safe abstractio of the progra. ack(0,) = +1 ack(,0) = 1 ack(-1, 1) ack(,) = 2 ack(-1, 3 ack(, -1)) 1 ack Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 33
34 Size-chage teriatio [Lee et al, POPL01] works by aalyzig a safe abstractio of the progra. ack(0,) = +1 ack(,0) = 1 ack(-1, 1) ack(,) = 2 ack(-1, 3 ack(, -1)) 1 ack Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 34
35 Size-chage teriatio [Lee et al, POPL01] works by aalyzig a safe abstractio of the progra. ack(0,) = +1 ack(,0) = 1 ack(-1, 1) ack(,) = 2 ack(-1, 3 ack(, -1)) 1 ack Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 35
36 1 ack Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 36
37 1 ack Call sequece Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 37
38 1 ack Call sequece Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 38
39 Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 39 ack Call sequece
40 Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 40 ack Call sequece
41 Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 41 ack Call sequece Thread
42 Progra P is size-chage teriatig for graph G if: each ifiite path i G has a thread w/ ifiite descet Theore [Lee et al, POPL01] Decidig size-chage teriatio is PSPACE-coplete Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 42
43 Poly-tie size-chage aalysis Call site C is a achor iff: Passig through C ifiitely ofte etails ifiite descet Algorith [Be-Ara, Lee 2007]: SCP(G): for each H i SCC(G) A := FidAchors(H) if epty(a) or SCP(H-A) = false the retur false retur true Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 43
44 The rest of the talk: All-Teriatio(T ) Poly-tie size-chage teriatio (SCP) All-Teriatio(SCP) Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 44
45 A (aïve!) restricted versio of SCP Let restrict(g, V) be G, but with oly size-chage edges relatig variables i V. Theore: if 1. G is a valid aotated call graph for P 2. SCP(restrict(G,V)) the V is a easured subset for P. Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 45
46 Good, but... Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 46
47 Good, but... Theore: Decidig V :: SCP(restrict(G,V)) is NP-hard. Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 47
48 Good, but... Theore: Decidig V :: SCP(restrict(G,V)) is NP-hard. Corollary: It is ot true that SCP(G) iff V :: SCP(restrict(G,V)). What's goig o? Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 48
49 Good, but... Theore: Decidig V :: SCP(restrict(G,V)) is NP-hard. Corollary: It is ot true that SCP(G) iff V :: SCP(restrict(G,V)). What's goig o? No-ootoicity: V W ad SCP(restrict(G,V)) does ot iply SCP(restrict(G,W)) Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 49
50 Sloga 3 Noootoicity eas trouble Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 50
51 What we do Istruet SCP to produce a achor tree Achor tree is a certificate of teriatio Trasfor achor tree to boolea costrait syste φ φ captures which variables are required for the teriatio proof sall thread preservers are allowed! φ = O( G ) Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 51
52 Fidig the iial solutios Costraits φ are dual-hor: ca fid ψ that is equisatisfiable to φ cojuctio of clauses, each clause a disjuctio of literals at ost oe egative literal per clause i solutios to φ ca be foud fro ψ efficietly Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 52
53 Theore: After coputig φ, we ca fid k eleets of All-Teriatio(SCP)(P) i tie O( G k) Pay-as-you-go algorith Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 53
54 Sloga 4 To wi, istruet ad extract Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 54
55 Preliiary experietal results ACL2 has a large regressio suite: 100MB 11,000 fuctio defiitios (each of which ust be proved teriatig) Code ragig fro bit-vector libraries to odel checkers Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 55
56 Preliiary experietal results We have ipleeted, for ACL2, Poly-tie size-chage (SCP) Exp-tie size-chage (SCT) All-Teriatio(SCT) We have ot yet ipleeted All-Teriatio(SCP) Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 56
57 Preliiary experietal results The setup: we ra CCG + All-Teriatio(SCT) o the etire regressio suite. Nuber of fuctios: 11,000 Proved teriatig: 98% (ote: sae as CCG+SCT) Multiarguet fuctios: Proved teriatig 1728 With otrivial cores 90% With ultiple cores 7% Maxiu core cout 3 Ruig tie (ot icludig CCG): 30 secods Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 57
58 Preliiary experietal results The setup: we ra CCG + All-Teriatio(SCT) o the etire regressio suite. Nuber of fuctios: 11,000 Proved teriatig: 98% (ote: sae as CCG+SCT) Multiarguet fuctios: Proved teriatig 1728 With otrivial cores 90% With ultiple cores 7% Maxiu core cout 3 Ruig tie (ot icludig CCG): 30 secods Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 58
59 Preliiary experietal results The setup: we ra CCG + All-Teriatio(SCT) o the etire regressio suite. Nuber of fuctios: 11,000 Proved teriatig: 98% (ote: sae as CCG+SCT) Multiarguet fuctios: Proved teriatig 1728 With otrivial cores 90% With ultiple cores 7% Maxiu core cout 3 (the k paraeter) Ruig tie (ot icludig CCG): 30 secods Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 59
60 Future work Ipleet All-Teriatio(SCP) Exted our prototype to the ACL2 Seda Will help our fresha users at Northeaster Study All-Teriatio(T) for additioal T e.g. depedecy-pair teriatio aalysis Explore ew applicatios of easured subsets We've got a few i id, but wat to hear yours Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 60
61 Cotributio recap Proposed the All-Teriatio(T) proble Studied All-Teriatio(SCP) Sloga recap Teriatio is ot a yes/o questio All-teriatio icreases richess, ot power Noootoicity eas trouble To wi, istruet ad extract Mitchfest 2009 Aug 24 Aaro Turo All Teriatio(SCP) 61
Chapter 2. Asymptotic Notation
Asyptotic Notatio 3 Chapter Asyptotic Notatio Goal : To siplify the aalysis of ruig tie by gettig rid of details which ay be affected by specific ipleetatio ad hardware. [1] The Big Oh (O-Notatio) : It
More informationLP in Standard and Slack Forms
LP i Stadard ad Slack Fors ax j=1 s.t. j=1 c j a ij b i for i=1, 2,..., 0 for j=1, 2,..., z = 0 j=1 c j x i = b i j=1 a ij for i=1, 2,..., Auxiliary Liear Progra L: LP i stadard for: ax j=1 L aux : Auxiliary
More information19.1 The dictionary problem
CS125 Lecture 19 Fall 2016 19.1 The dictioary proble Cosider the followig data structural proble, usually called the dictioary proble. We have a set of ites. Each ite is a (key, value pair. Keys are i
More informationMa/CS 6a Class 22: Power Series
Ma/CS 6a Class 22: Power Series By Ada Sheffer Power Series Mooial: ax i. Polyoial: a 0 + a 1 x + a 2 x 2 + + a x. Power series: A x = a 0 + a 1 x + a 2 x 2 + Also called foral power series, because we
More informationMathematical Foundation. CSE 6331 Algorithms Steve Lai
Mathematical Foudatio CSE 6331 Algorithms Steve Lai Complexity of Algorithms Aalysis of algorithm: to predict the ruig time required by a algorithm. Elemetary operatios: arithmetic & boolea operatios:
More informationBertrand s postulate Chapter 2
Bertrad s postulate Chapter We have see that the sequece of prie ubers, 3, 5, 7,... is ifiite. To see that the size of its gaps is ot bouded, let N := 3 5 p deote the product of all prie ubers that are
More informationIntroduction to Optimization, DIKU Monday 19 November David Pisinger. Duality, motivation
Itroductio to Optiizatio, DIKU 007-08 Moday 9 Noveber David Pisiger Lecture, Duality ad sesitivity aalysis Duality, shadow prices, sesitivity aalysis, post-optial aalysis, copleetary slackess, KKT optiality
More informationRecurrence Relations
Recurrece Relatios Aalysis of recursive algorithms, such as: it factorial (it ) { if (==0) retur ; else retur ( * factorial(-)); } Let t be the umber of multiplicatios eeded to calculate factorial(). The
More information1 Generating functions for balls in boxes
Math 566 Fall 05 Some otes o geeratig fuctios Give a sequece a 0, a, a,..., a,..., a geeratig fuctio some way of represetig the sequece as a fuctio. There are may ways to do this, with the most commo ways
More informationRecursive Algorithms. Recurrences. Recursive Algorithms Analysis
Recursive Algorithms Recurreces Computer Sciece & Egieerig 35: Discrete Mathematics Christopher M Bourke cbourke@cseuledu A recursive algorithm is oe i which objects are defied i terms of other objects
More informationCOMP 2804 Solutions Assignment 1
COMP 2804 Solutios Assiget 1 Questio 1: O the first page of your assiget, write your ae ad studet uber Solutio: Nae: Jaes Bod Studet uber: 007 Questio 2: I Tic-Tac-Toe, we are give a 3 3 grid, cosistig
More informationBinomial transform of products
Jauary 02 207 Bioial trasfor of products Khristo N Boyadzhiev Departet of Matheatics ad Statistics Ohio Norther Uiversity Ada OH 4580 USA -boyadzhiev@ouedu Abstract Give the bioial trasfors { b } ad {
More information6.4 Binomial Coefficients
64 Bioial Coefficiets Pascal s Forula Pascal s forula, aed after the seveteeth-cetury Frech atheaticia ad philosopher Blaise Pascal, is oe of the ost faous ad useful i cobiatorics (which is the foral ter
More informationStream Ciphers (contd.) Debdeep Mukhopadhyay
Strea Ciphers (cotd.) Debdeep Mukhopadhyay Assistat Professor Departet of Coputer Sciece ad Egieerig Idia Istitute of Techology Kharagpur IDIA -7232 Objectives iear Coplexity Berlekap Massey Algorith ow
More informationSECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES
SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES Read Sectio 1.5 (pages 5 9) Overview I Sectio 1.5 we lear to work with summatio otatio ad formulas. We will also itroduce a brief overview of sequeces,
More information6.3 Testing Series With Positive Terms
6.3. TESTING SERIES WITH POSITIVE TERMS 307 6.3 Testig Series With Positive Terms 6.3. Review of what is kow up to ow I theory, testig a series a i for covergece amouts to fidig the i= sequece of partial
More information1 Hash tables. 1.1 Implementation
Lecture 8 Hash Tables, Uiversal Hash Fuctios, Balls ad Bis Scribes: Luke Johsto, Moses Charikar, G. Valiat Date: Oct 18, 2017 Adapted From Virgiia Williams lecture otes 1 Hash tables A hash table is a
More informationLecture 19. Curve fitting I. 1 Introduction. 2 Fitting a constant to measured data
Lecture 9 Curve fittig I Itroductio Suppose we are preseted with eight poits of easured data (x i, y j ). As show i Fig. o the left, we could represet the uderlyig fuctio of which these data are saples
More informationLecture 2 Clustering Part II
COMS 4995: Usupervised Learig (Summer 8) May 24, 208 Lecture 2 Clusterig Part II Istructor: Nakul Verma Scribes: Jie Li, Yadi Rozov Today, we will be talkig about the hardess results for k-meas. More specifically,
More informationStatistics for Applications Fall Problem Set 7
18.650. Statistics for Applicatios Fall 016. Proble Set 7 Due Friday, Oct. 8 at 1 oo Proble 1 QQ-plots Recall that the Laplace distributio with paraeter λ > 0 is the cotiuous probaλ bility easure with
More informationSums, products and sequences
Sums, products ad sequeces How to write log sums, e.g., 1+2+ (-1)+ cocisely? i=1 Sum otatio ( sum from 1 to ): i 3 = 1 + 2 + + If =3, i=1 i = 1+2+3=6. The ame ii does ot matter. Could use aother letter
More informationSequences. Notation. Convergence of a Sequence
Sequeces A sequece is essetially just a list. Defiitio (Sequece of Real Numbers). A sequece of real umbers is a fuctio Z (, ) R for some real umber. Do t let the descriptio of the domai cofuse you; it
More informationThe state space model needs 5 parameters, so it is not as convenient to use in this control study.
Trasfer fuctio for of the odel G θ K ω 2 θ / v θ / v ( s) = = 2 2 vi s + 2ζωs + ω The followig slides detail a derivatio of this aalog eter odel both as state space odel ad trasfer fuctio (TF) as show
More informationTest One (Answer Key)
CS395/Ma395 (Sprig 2005) Test Oe Name: Page 1 Test Oe (Aswer Key) CS395/Ma395: Aalysis of Algorithms This is a closed book, closed otes, 70 miute examiatio. It is worth 100 poits. There are twelve (12)
More informationCHAPTER 10 INFINITE SEQUENCES AND SERIES
CHAPTER 10 INFINITE SEQUENCES AND SERIES 10.1 Sequeces 10.2 Ifiite Series 10.3 The Itegral Tests 10.4 Compariso Tests 10.5 The Ratio ad Root Tests 10.6 Alteratig Series: Absolute ad Coditioal Covergece
More informationThe Binomial Multi-Section Transformer
4/15/2010 The Bioial Multisectio Matchig Trasforer preset.doc 1/24 The Bioial Multi-Sectio Trasforer Recall that a ulti-sectio atchig etwork ca be described usig the theory of sall reflectios as: where:
More informationAlgorithm of Superposition of Boolean Functions Given with Truth Vectors
IJCSI Iteratioal Joural of Computer Sciece Issues, Vol 9, Issue 4, No, July ISSN (Olie: 694-84 wwwijcsiorg 9 Algorithm of Superpositio of Boolea Fuctios Give with Truth Vectors Aatoly Plotikov, Aleader
More informationf(1), and so, if f is continuous, f(x) = f(1)x.
2.2.35: Let f be a additive fuctio. i Clearly fx = fx ad therefore f x = fx for all Z+ ad x R. Hece, for ay, Z +, f = f, ad so, if f is cotiuous, fx = fx. ii Suppose that f is bouded o soe o-epty ope set.
More informationChapter 10: Power Series
Chapter : Power Series 57 Chapter Overview: Power Series The reaso series are part of a Calculus course is that there are fuctios which caot be itegrated. All power series, though, ca be itegrated because
More information5.6 Binomial Multi-section Matching Transformer
4/14/21 5_6 Bioial Multisectio Matchig Trasforers 1/1 5.6 Bioial Multi-sectio Matchig Trasforer Readig Assiget: pp. 246-25 Oe way to axiize badwidth is to costruct a ultisectio Γ f that is axially flat.
More informationOptimally Sparse SVMs
A. Proof of Lemma 3. We here prove a lower boud o the umber of support vectors to achieve geeralizatio bouds of the form which we cosider. Importatly, this result holds ot oly for liear classifiers, but
More information10.1 Sequences. n term. We will deal a. a n or a n n. ( 1) n ( 1) n 1 2 ( 1) a =, 0 0,,,,, ln n. n an 2. n term.
0. Sequeces A sequece is a list of umbers writte i a defiite order: a, a,, a, a is called the first term, a is the secod term, ad i geeral eclusively with ifiite sequeces ad so each term Notatio: the sequece
More informationAVERAGE MARKS SCALING
TERTIARY INSTITUTIONS SERVICE CENTRE Level 1, 100 Royal Street East Perth, Wester Australia 6004 Telephoe (08) 9318 8000 Facsiile (08) 95 7050 http://wwwtisceduau/ 1 Itroductio AVERAGE MARKS SCALING I
More informationLecture 2: April 3, 2013
TTIC/CMSC 350 Mathematical Toolkit Sprig 203 Madhur Tulsiai Lecture 2: April 3, 203 Scribe: Shubhedu Trivedi Coi tosses cotiued We retur to the coi tossig example from the last lecture agai: Example. Give,
More informationStatistics and Data Analysis in MATLAB Kendrick Kay, February 28, Lecture 4: Model fitting
Statistics ad Data Aalysis i MATLAB Kedrick Kay, kedrick.kay@wustl.edu February 28, 2014 Lecture 4: Model fittig 1. The basics - Suppose that we have a set of data ad suppose that we have selected the
More informationMA131 - Analysis 1. Workbook 3 Sequences II
MA3 - Aalysis Workbook 3 Sequeces II Autum 2004 Cotets 2.8 Coverget Sequeces........................ 2.9 Algebra of Limits......................... 2 2.0 Further Useful Results........................
More informationDiscrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 22
CS 70 Discrete Mathematics for CS Sprig 2007 Luca Trevisa Lecture 22 Aother Importat Distributio The Geometric Distributio Questio: A biased coi with Heads probability p is tossed repeatedly util the first
More informationOn Modeling On Minimum Description Length Modeling. M-closed
O Modelig O Miiu Descriptio Legth Modelig M M-closed M-ope Do you believe that the data geeratig echais really is i your odel class M? 7 73 Miiu Descriptio Legth Priciple o-m-closed predictive iferece
More informationLast time, we talked about how Equation (1) can simulate Equation (2). We asserted that Equation (2) can also simulate Equation (1).
6896 Quatum Complexity Theory Sept 23, 2008 Lecturer: Scott Aaroso Lecture 6 Last Time: Quatum Error-Correctio Quatum Query Model Deutsch-Jozsa Algorithm (Computes x y i oe query) Today: Berstei-Vazirii
More informationProblem. Consider the sequence a j for j N defined by the recurrence a j+1 = 2a j + j for j > 0
GENERATING FUNCTIONS Give a ifiite sequece a 0,a,a,, its ordiary geeratig fuctio is A : a Geeratig fuctios are ofte useful for fidig a closed forula for the eleets of a sequece, fidig a recurrece forula,
More informationCS 270 Algorithms. Oliver Kullmann. Growth of Functions. Divide-and- Conquer Min-Max- Problem. Tutorial. Reading from CLRS for week 2
Geeral remarks Week 2 1 Divide ad First we cosider a importat tool for the aalysis of algorithms: Big-Oh. The we itroduce a importat algorithmic paradigm:. We coclude by presetig ad aalysig two examples.
More information42 Dependence and Bases
42 Depedece ad Bases The spa s(a) of a subset A i vector space V is a subspace of V. This spa ay be the whole vector space V (we say the A spas V). I this paragraph we study subsets A of V which spa V
More informationTrial division, Pollard s p 1, Pollard s ρ, and Fermat s method. Christopher Koch 1. April 8, 2014
Iteger Divisio Algorithm ad Cogruece Iteger Trial divisio,,, ad with itegers mod Iverses mod Multiplicatio ad GCD Iteger Christopher Koch 1 1 Departmet of Computer Sciece ad Egieerig CSE489/589 Algorithms
More informationAdvanced Course of Algorithm Design and Analysis
Differet complexity measures Advaced Course of Algorithm Desig ad Aalysis Asymptotic complexity Big-Oh otatio Properties of O otatio Aalysis of simple algorithms A algorithm may may have differet executio
More informationLecture 14: Randomized Computation (cont.)
CSE 200 Computability ad Complexity Wedesday, May 15, 2013 Lecture 14: Radomized Computatio (cot.) Istructor: Professor Shachar Lovett Scribe: Dogcai She 1 Radmized Algorithm Examples 1.1 The k-th Elemet
More informationA string of not-so-obvious statements about correlation in the data. (This refers to the mechanical calculation of correlation in the data.
STAT-UB.003 NOTES for Wedesday 0.MAY.0 We will use the file JulieApartet.tw. We ll give the regressio of Price o SqFt, show residual versus fitted plot, save residuals ad fitted. Give plot of (Resid, Price,
More informationMATH10040 Chapter 4: Sets, Functions and Counting
MATH10040 Chapter 4: Sets, Fuctios ad Coutig 1. The laguage of sets Iforally, a set is ay collectio of objects. The objects ay be atheatical objects such as ubers, fuctios ad eve sets, or letters or sybols
More informationMath 140A Elementary Analysis Homework Questions 3-1
Math 0A Elemetary Aalysis Homework Questios -.9 Limits Theorems for Sequeces Suppose that lim x =, lim y = 7 ad that all y are o-zero. Detarime the followig limits: (a) lim(x + y ) (b) lim y x y Let s
More informationw (1) ˆx w (1) x (1) /ρ and w (2) ˆx w (2) x (2) /ρ.
2 5. Weighted umber of late jobs 5.1. Release dates ad due dates: maximimizig the weight of o-time jobs Oce we add release dates, miimizig the umber of late jobs becomes a sigificatly harder problem. For
More informationThe Binomial Multi- Section Transformer
4/4/26 The Bioial Multisectio Matchig Trasforer /2 The Bioial Multi- Sectio Trasforer Recall that a ulti-sectio atchig etwork ca be described usig the theory of sall reflectios as: where: ( ω ) = + e +
More informationCS 70 Second Midterm 7 April NAME (1 pt): SID (1 pt): TA (1 pt): Name of Neighbor to your left (1 pt): Name of Neighbor to your right (1 pt):
CS 70 Secod Midter 7 April 2011 NAME (1 pt): SID (1 pt): TA (1 pt): Nae of Neighbor to your left (1 pt): Nae of Neighbor to your right (1 pt): Istructios: This is a closed book, closed calculator, closed
More informationAn Introduction to Randomized Algorithms
A Itroductio to Radomized Algorithms The focus of this lecture is to study a radomized algorithm for quick sort, aalyze it usig probabilistic recurrece relatios, ad also provide more geeral tools for aalysis
More informationSOME FINITE SIMPLE GROUPS OF LIE TYPE C n ( q) ARE UNIQUELY DETERMINED BY THEIR ELEMENT ORDERS AND THEIR ORDER
Joural of Algebra, Nuber Theory: Advaces ad Applicatios Volue, Nuber, 010, Pages 57-69 SOME FINITE SIMPLE GROUPS OF LIE TYPE C ( q) ARE UNIQUELY DETERMINED BY THEIR ELEMENT ORDERS AND THEIR ORDER School
More informationTopics. Homework Problems. MATH 301 Introduction to Analysis Chapter Four Sequences. 1. Definition of convergence of sequences.
MATH 301 Itroductio to Aalysis Chapter Four Sequeces Topics 1. Defiitio of covergece of sequeces. 2. Fidig ad provig the limit of sequeces. 3. Bouded covergece theorem: Theorem 4.1.8. 4. Theorems 4.1.13
More informationDefine a Markov chain on {1,..., 6} with transition probability matrix P =
Pla Group Work 0. The title says it all Next Tie: MCMC ad Geeral-state Markov Chais Midter Exa: Tuesday 8 March i class Hoework 4 due Thursday Uless otherwise oted, let X be a irreducible, aperiodic Markov
More informationOn the Fibonacci-like Sequences of Higher Order
Article Iteratioal Joural of oder atheatical Scieces, 05, 3(): 5-59 Iteratioal Joural of oder atheatical Scieces Joural hoepage: wwwoderscietificpressco/jourals/ijsaspx O the Fiboacci-like Sequeces of
More informationMathematical Induction
Mathematical Iductio Itroductio Mathematical iductio, or just iductio, is a proof techique. Suppose that for every atural umber, P() is a statemet. We wish to show that all statemets P() are true. I a
More information5.6 Binomial Multi-section Matching Transformer
4/14/2010 5_6 Bioial Multisectio Matchig Trasforers 1/1 5.6 Bioial Multi-sectio Matchig Trasforer Readig Assiget: pp. 246-250 Oe way to axiize badwidth is to costruct a ultisectio Γ f that is axially flat.
More informationSummary: Congruences. j=1. 1 Here we use the Mathematica syntax for the function. In Maple worksheets, the function
Summary: Cogrueces j whe divided by, ad determiig the additive order of a iteger mod. As described i the Prelab sectio, cogrueces ca be thought of i terms of coutig with rows, ad for some questios this
More informationName Period ALGEBRA II Chapter 1B and 2A Notes Solving Inequalities and Absolute Value / Numbers and Functions
Nae Period ALGEBRA II Chapter B ad A Notes Solvig Iequalities ad Absolute Value / Nubers ad Fuctios SECTION.6 Itroductio to Solvig Equatios Objectives: Write ad solve a liear equatio i oe variable. Solve
More information(s)h(s) = K( s + 8 ) = 5 and one finite zero is located at z 1
ROOT LOCUS TECHNIQUE 93 should be desiged differetly to eet differet specificatios depedig o its area of applicatio. We have observed i Sectio 6.4 of Chapter 6, how the variatio of a sigle paraeter like
More informationLecture 3: Catalan Numbers
CCS Discrete Math I Professor: Padraic Bartlett Lecture 3: Catala Numbers Week 3 UCSB 2014 I this week, we start studyig specific examples of commoly-occurrig sequeces of umbers (as opposed to the more
More informationOPTIMAL ALGORITHMS -- SUPPLEMENTAL NOTES
OPTIMAL ALGORITHMS -- SUPPLEMENTAL NOTES Peter M. Maurer Why Hashig is θ(). As i biary search, hashig assumes that keys are stored i a array which is idexed by a iteger. However, hashig attempts to bypass
More informationIntegrals of Functions of Several Variables
Itegrals of Fuctios of Several Variables We ofte resort to itegratios i order to deterie the exact value I of soe quatity which we are uable to evaluate by perforig a fiite uber of additio or ultiplicatio
More informationQueueing Theory II. Summary. M/M/1 Output process Networks of Queue Method of Stages. General Distributions
Queueig Theory II Suary M/M/1 Output process Networks of Queue Method of Stages Erlag Distributio Hyperexpoetial Distributio Geeral Distributios Ebedded Markov Chais 1 M/M/1 Output Process Burke s Theore:
More informationLecture Outline. 2 Separating Hyperplanes. 3 Banach Mazur Distance An Algorithmist s Toolkit October 22, 2009
18.409 A Algorithist s Toolkit October, 009 Lecture 1 Lecturer: Joatha Keler Scribes: Alex Levi (009) 1 Outlie Today we ll go over soe of the details fro last class ad ake precise ay details that were
More information1 (12 points) Red-Black trees and Red-Purple trees
CS6 Hoework 3 Due: 29 April 206, 2 oo Subit o Gradescope Haded out: 22 April 206 Istructios: Please aswer the followig questios to the best of your ability. If you are asked to desig a algorith, please
More informationInfinite Sequences and Series
Chapter 6 Ifiite Sequeces ad Series 6.1 Ifiite Sequeces 6.1.1 Elemetary Cocepts Simply speakig, a sequece is a ordered list of umbers writte: {a 1, a 2, a 3,...a, a +1,...} where the elemets a i represet
More informationLecture 11: Hash Functions and Random Oracle Model
CS 7810 Foudatios of Cryptography October 16, 017 Lecture 11: Hash Fuctios ad Radom Oracle Model Lecturer: Daiel Wichs Scribe: Akshar Varma 1 Topic Covered Defiitio of Hash Fuctios Merkle-Damgaård Theorem
More informationBHW #13 1/ Cooper. ENGR 323 Probabilistic Analysis Beautiful Homework # 13
BHW # /5 ENGR Probabilistic Aalysis Beautiful Homework # Three differet roads feed ito a particular freeway etrace. Suppose that durig a fixed time period, the umber of cars comig from each road oto the
More informationMath 113 Exam 4 Practice
Math Exam 4 Practice Exam 4 will cover.-.. This sheet has three sectios. The first sectio will remid you about techiques ad formulas that you should kow. The secod gives a umber of practice questios for
More informationCSCI-6971 Lecture Notes: Stochastic processes
CSCI-6971 Lecture Notes: Stochastic processes Kristopher R. Beevers Departet of Coputer Sciece Resselaer Polytechic Istitute beevek@cs.rpi.edu February 2, 2006 1 Overview Defiitio 1.1. A stochastic process
More informationMath 113 Exam 3 Practice
Math Exam Practice Exam will cover.-.9. This sheet has three sectios. The first sectio will remid you about techiques ad formulas that you should kow. The secod gives a umber of practice questios for you
More informationThe Hypergeometric Coupon Collection Problem and its Dual
Joural of Idustrial ad Systes Egieerig Vol., o., pp -7 Sprig 7 The Hypergeoetric Coupo Collectio Proble ad its Dual Sheldo M. Ross Epstei Departet of Idustrial ad Systes Egieerig, Uiversity of Souther
More informationResolution Proofs of Generalized Pigeonhole Principles
Resolutio Proofs of Geeralized Pigeohole Priciples Samuel R. Buss Departmet of Mathematics Uiversity of Califoria, Berkeley Győrgy Turá Departmet of Mathematics, Statistics, ad Computer Sciece Uiversity
More informationPolynomial reduction. Outline Lecture. Non deterministic polynomial time. Example 1 : discrete log. Lecture: Polynomial reduction.
Outlie Lecture Part 1 : Asymmetric cryptography, oe way fuctio, complexity Part 2 : arithmetic complexity ad lower bouds : expoetiatio Part 3 : Provable security ad polyomial time reductio : P, NP classes.
More informationWe have also learned that, thanks to the Central Limit Theorem and the Law of Large Numbers,
Cofidece Itervals III What we kow so far: We have see how to set cofidece itervals for the ea, or expected value, of a oral probability distributio, both whe the variace is kow (usig the stadard oral,
More informationCS151 Complexity Theory
Time ad Space CS151 Complexity Theory Lecture 2 April 1, 2004 A motivatig questio: Boolea formula with odes evaluate usig O(log ) space? depth-first traversal requires storig itermediate values idea: short-circuit
More informationNotes for Lecture 5. 1 Grover Search. 1.1 The Setting. 1.2 Motivation. Lecture 5 (September 26, 2018)
COS 597A: Quatum Cryptography Lecture 5 (September 6, 08) Lecturer: Mark Zhadry Priceto Uiversity Scribe: Fermi Ma Notes for Lecture 5 Today we ll move o from the slightly cotrived applicatios of quatum
More informationPolynomial identity testing and global minimum cut
CHAPTER 6 Polyomial idetity testig ad global miimum cut I this lecture we will cosider two further problems that ca be solved usig probabilistic algorithms. I the first half, we will cosider the problem
More informationBernoulli Polynomials Talks given at LSBU, October and November 2015 Tony Forbes
Beroulli Polyoials Tals give at LSBU, October ad Noveber 5 Toy Forbes Beroulli Polyoials The Beroulli polyoials B (x) are defied by B (x), Thus B (x) B (x) ad B (x) x, B (x) x x + 6, B (x) dx,. () B 3
More informationMath 2112 Solutions Assignment 5
Math 2112 Solutios Assigmet 5 5.1.1 Idicate which of the followig relatioships are true ad which are false: a. Z Q b. R Q c. Q Z d. Z Z Z e. Q R Q f. Q Z Q g. Z R Z h. Z Q Z a. True. Every positive iteger
More informationLecture #20. n ( x p i )1/p = max
COMPSCI 632: Approximatio Algorithms November 8, 2017 Lecturer: Debmalya Paigrahi Lecture #20 Scribe: Yua Deg 1 Overview Today, we cotiue to discuss about metric embeddigs techique. Specifically, we apply
More informationWavelet Transform Theory. Prof. Mark Fowler Department of Electrical Engineering State University of New York at Binghamton
Wavelet Trasfor Theory Prof. Mark Fowler Departet of Electrical Egieerig State Uiversity of New York at Bighato What is a Wavelet Trasfor? Decopositio of a sigal ito costituet parts Note that there are
More informationBertrand s Postulate
Bertrad s Postulate Lola Thompso Ross Program July 3, 2009 Lola Thompso (Ross Program Bertrad s Postulate July 3, 2009 1 / 33 Bertrad s Postulate I ve said it oce ad I ll say it agai: There s always a
More informationOrthogonal Function Solution of Differential Equations
Royal Holloway Uiversity of Loo Departet of Physics Orthogoal Fuctio Solutio of Differetial Equatios trouctio A give oriary ifferetial equatio will have solutios i ters of its ow fuctios Thus, for eaple,
More information2. ALGORITHM ANALYSIS
2. ALGORITHM ANALYSIS computatioal tractability survey of commo ruig times 2. ALGORITHM ANALYSIS computatioal tractability survey of commo ruig times Lecture slides by Kevi Waye Copyright 2005 Pearso-Addiso
More informationLecture 9: Hierarchy Theorems
IAS/PCMI Summer Sessio 2000 Clay Mathematics Udergraduate Program Basic Course o Computatioal Complexity Lecture 9: Hierarchy Theorems David Mix Barrigto ad Alexis Maciel July 27, 2000 Most of this lecture
More informationX. Perturbation Theory
X. Perturbatio Theory I perturbatio theory, oe deals with a ailtoia that is coposed Ĥ that is typically exactly solvable of two pieces: a referece part ad a perturbatio ( Ĥ ) that is assued to be sall.
More informationMa/CS 6b Class 19: Extremal Graph Theory
/9/05 Ma/CS 6b Class 9: Extremal Graph Theory Paul Turá By Adam Sheffer Extremal Graph Theory The subfield of extremal graph theory deals with questios of the form: What is the maximum umber of edges that
More informationREVIEW OF CALCULUS Herman J. Bierens Pennsylvania State University (January 28, 2004) x 2., or x 1. x j. ' ' n i'1 x i well.,y 2
REVIEW OF CALCULUS Hera J. Bieres Pesylvaia State Uiversity (Jauary 28, 2004) 1. Suatio Let x 1,x 2,...,x e a sequece of uers. The su of these uers is usually deoted y x 1 % x 2 %...% x ' j x j, or x 1
More informationMA131 - Analysis 1. Workbook 2 Sequences I
MA3 - Aalysis Workbook 2 Sequeces I Autum 203 Cotets 2 Sequeces I 2. Itroductio.............................. 2.2 Icreasig ad Decreasig Sequeces................ 2 2.3 Bouded Sequeces..........................
More informationSummer MA Lesson 13 Section 1.6, Section 1.7 (part 1)
Suer MA 1500 Lesso 1 Sectio 1.6, Sectio 1.7 (part 1) I Solvig Polyoial Equatios Liear equatio ad quadratic equatios of 1 variable are specific types of polyoial equatios. Soe polyoial equatios of a higher
More informationFIR Filters. Lecture #7 Chapter 5. BME 310 Biomedical Computing - J.Schesser
FIR Filters Lecture #7 Chapter 5 8 What Is this Course All About? To Gai a Appreciatio of the Various Types of Sigals ad Systems To Aalyze The Various Types of Systems To Lear the Skills ad Tools eeded
More informationSquare-Congruence Modulo n
Square-Cogruece Modulo Abstract This paper is a ivestigatio of a equivalece relatio o the itegers that was itroduced as a exercise i our Discrete Math class. Part I - Itro Defiitio Two itegers are Square-Cogruet
More informationFUZZY RELIABILITY ANALYSIS OF COMPOUND SYSTEM BASED ON WEIBULL DISTRIBUTION
IJAMML 3:1 (2015) 31-39 Septeber 2015 ISSN: 2394-2258 Available at http://scietificadvaces.co.i DOI: http://dx.doi.org/10.18642/ijal_7100121530 FUZZY RELIABILITY ANALYSIS OF COMPOUND SYSTEM BASED ON WEIBULL
More informationOn a Smarandache problem concerning the prime gaps
O a Smaradache problem cocerig the prime gaps Felice Russo Via A. Ifate 7 6705 Avezzao (Aq) Italy felice.russo@katamail.com Abstract I this paper, a problem posed i [] by Smaradache cocerig the prime gaps
More informationREDUCING THE POSSIBILITY OF SUBJECTIVE ERROR IN THE DETERMINATION OF THE STRUCTURE-FUNCTION-BASED EFFECTIVE THERMAL CONDUCTIVITY OF BOARDS
Nice, Côte d Azur, Frace, 27-29 Septeber 2006 REDUCING THE POSSIBILITY OF SUBJECTIVE ERROR IN THE DETERMINATION OF THE STRUCTURE-FUNCTION-BASED EFFECTIVE THERMAL CONDUCTIVITY OF BOARDS Erő Kollár, Vladiír
More informationMath 4707 Spring 2018 (Darij Grinberg): midterm 2 page 1. Math 4707 Spring 2018 (Darij Grinberg): midterm 2 with solutions [preliminary version]
Math 4707 Sprig 08 Darij Griberg: idter page Math 4707 Sprig 08 Darij Griberg: idter with solutios [preliiary versio] Cotets 0.. Coutig first-eve tuples......................... 3 0.. Coutig legal paths
More informationIf a subset E of R contains no open interval, is it of zero measure? For instance, is the set of irrationals in [0, 1] is of measure zero?
2 Lebesgue Measure I Chapter 1 we defied the cocept of a set of measure zero, ad we have observed that every coutable set is of measure zero. Here are some atural questios: If a subset E of R cotais a
More information