CPE702 Algorithm Analysis and Design Week 11 String Processing

Size: px
Start display at page:

Download "CPE702 Algorithm Analysis and Design Week 11 String Processing"

Transcription

1 CPE702 Agorithm Anaysis and Dsign Wk 11 String Procssing Prut Boonma Dpartmnt of Computr Enginring Facuty of Enginring, Chiang Mai Univrsity Basd on Sids by M.T. Goodrich and R. Tamassia

2 2 In this wk String Procssing Strings Pattrn Matching Tri

3 3 Strings A string is a squnc of charactrs Examps of strings: Java program HTML documnt DNA squnc Digitizd imag An aphabt Σ is th st of possib charactrs for a famiy of strings Examp of aphabts: ASCII Unicod {0, 1} {A, C, G, T} Lt P b a string of siz m A substring P[i.. j] of P is th subsqunc of P consisting of th charactrs with ranks btwn i and j A prfix of P is a substring of th typ P[0.. j] A suffix of P is a substring of th typ P[i..m 1] Givn strings T (txt) and P (pattrn), th pattrn matching probm consists of finding a substring of T qua to P Appications: Txt ditors Sarch ngins Bioogica rsarch

4 4 Brut-Forc Pattrn Matching Th brut-forc pattrn matching agorithm compars th pattrn P with th txt T for ach possib shift of P rativ to T, unti ithr a match is found, or a pacmnts of th pattrn hav bn trid Brut-forc pattrn matching runs in tim O(nm) Examp of worst cas: T = aaa ah P = aaah may occur in imags and DNA squncs uniky in Engish txt Agorithm BrutForcMatch(T, P) Input txt T of siz n and pattrn P of siz m Output starting indx of a substring of T qua to P or 1 if no such substring xists for i 0 to n m { tst shift i of th pattrn } j 0 whi j < m T[i + j] = P[j] j j + 1 if j = m rturn i {match at i} s brak whi oop {mismatch} rturn -1 {no match anywhr}

5 5 Boyr-Moor Huristics Th Boyr-Moor s pattrn matching agorithm is basd on two huristics Looking-gass huristic: Compar P with a subsqunc of T moving backwards Charactr-jump huristic: Whn a mismatch occurs at T[i] = c If P contains c, shift P to aign th ast occurrnc of c in P with T[i] Es, shift P to aign P[0] with T[i + 1] Examp T a p a t t r n m a t c h i n g a g o r i t h m P 1 r i t h m 3 r i t h m 5 r i t h m r i t h m 2 r i t h m 4 r i t h m 6 r i t h m

6 6 Last-Occurrnc Function Boyr-Moor s agorithm prprocsss th pattrn P and th aphabt Σ to buid th ast-occurrnc function L mapping Σ to intgrs, whr L(c) is dfind as th argst indx i such that P[i] = c or 1 if no such indx xists Examp: Σ = {a, b, c, d} P = abacab c a b c d L(c) Th ast-occurrnc function can b rprsntd by an array indxd by th numric cods of th charactrs Th ast-occurrnc function can b computd in tim O(m + s), whr m is th siz of P and s is th siz of Σ

7 7 Th Boyr-Moor Agorithm Agorithm BoyrMoorMatch(T, P, Σ) L astoccurncfunction(p, Σ ) i m 1 j m 1 rpat if T[i] = P[j] if j = 0 rturn i { match at i } s i i 1 j j 1 s { charactr-jump } L[T[i]] i i + m min(j, 1 + ) j m 1 unti i > n 1 rturn 1 { no match } Cas 1: j a i b a j m j.... b a j Cas 2: 1 + j a a.. i b. j m (1 + ). a.. b. 1 +

8 8 Examp a b a c a a b a d c a b a c a b a a b b 1 a b a c a b a b a c a b 5 a b a c a b a b a c a b 8 a b a c a b 6 a b a c a b

9 9 Anaysis Boyr-Moor s agorithm runs in tim O(nm + s) Examp of worst cas: T = aaa a P = baaa Th worst cas may occur in imags and DNA squncs but is uniky in Engish txt Boyr-Moor s agorithm is significanty fastr than th brut-forc agorithm on Engish txt a a a a a a a a a b a a a a a 12 b a a a a a b a a a a a b a a a a a

10 10 Th KMP Agorithm Knuth-Morris-Pratt s agorithm compars th pattrn to th txt in ft-toright, but shifts th pattrn mor intignty than th brut-forc agorithm. Whn a mismatch occurs, what is th most w can shift th pattrn so as to avoid rdundant comparisons? Answr: th argst prfix of P[0..j] that is a suffix of P[1..j].. a b a a b x..... a b a a b a No nd to rpat ths comparisons j a b a a b a Rsum comparing hr

11 11 KMP Faiur Function Knuth-Morris-Pratt s agorithm prprocsss th pattrn to find matchs of prfixs of th pattrn with th pattrn itsf Th faiur function F(j) is dfind as th siz of th argst prfix of P[0..j] that is aso a suffix of P[1..j] Knuth-Morris-Pratt s agorithm modifis th brut-forc agorithm so that if a mismatch occurs at P[j] T[i] w st j F(j j P[j] a b a a b a F(j) a b a a b x..... a b a a b a F(j 1) j a b a a b a

12 12 Th KMP Agorithm Th faiur function can b rprsntd by an array and can b computd in O(m) tim At ach itration of th whi-oop, ithr i incrass by on, or th shift amount i j incrass by at ast on (obsrv that F(j Agorithm KMPMatch(T, P) F faiurfunction(p) i 0 j 0 whi i < n if T[i] = P[j] if j = m 1 rturn i j { match } s i i + 1 j j + 1 s if j > 0 j F[j 1] s i i + 1 rturn 1 { no match }

13 Computing th Faiur Function 13 Th faiur function can b rprsntd by an array and can b computd in O(m) tim Th construction is simiar to th KMP agorithm itsf At ach itration of th whi-oop, ithr i incrass by on, or th shift amount i j incrass by at ast on (obsrv that F(j 1) < j) Hnc, thr ar no mor Agorithm faiurfunction(p) F[0] 0 i 1 j 0 whi i < m if P[i] = P[j] {w hav matchd j + 1 chars} F[i] j + 1 i i + 1 j j + 1 s if j > 0 thn {us faiur function to shift P} j F[j 1] s F[i] 0 { no match } i i + 1

14 14 Examp a b a c a a b a c c a b a c a b a a b b a b a c a b 7 a b a c a b j P[j] a b a c a b F(j) a b a c a b 13 a b a c a b a b a c a b

15 15 Prprocssing Strings Prprocssing th pattrn spds up pattrn matching quris Aftr prprocssing th pattrn, KMP s agorithm prforms pattrn matching in tim proportiona to th txt siz If th txt is arg, immutab and sarchd for oftn (.g., works by Shakspar), w may want to prprocss th txt instad of th pattrn A tri is a compact data structur for rprsnting a st of strings, such as a th words in a txt A tris supports pattrn matching quris in tim proportiona to th pattrn siz

16 16 Standard Tris Th standard tri for a st of strings S is an ordrd tr such that: Each nod but th root is abd with a charactr Th chidrn of a nod ar aphabticay ordrd Th paths from th xtrna nods to th root yid th strings of S Examp: standard tri for th st of strings S = { bar, b, bid, bu, buy, s, stock, stop } b s i u t a d y o r c p k

17 17 Anaysis of Standard Tris A standard tri uss O(n) spac and supports sarchs, insrtions and dtions in tim O(dm), whr: n tota siz of th strings in S m siz of th string paramtr of th opration d siz of th aphabt b s i u t a d y o r c p k

18 18 Word Matching with a Tri W insrt th words of th txt into a tri Each af stors th occurrncs of th associatd word in th txt s a b a r? s s t o c k! s a b u? b u y s t o c k! b i d s t o c k! b i d s t o c k! h a r t h b? s t o p! b h s i u t a d y a o r , r 69 0, c k p 84 17, 40, 51, 62

19 19 Comprssd Tris A comprssd tri has intrna nods of dgr at ast two It is obtaind from standard tri by comprssing chains of rdundant nods ar b id u y s ck to p b s i u t a d y o r c p k

20 20 Compact Rprsntation Compact rprsntation of a comprssd tri for an array of strings: Stors at th nods rangs of indics instad of substrings Uss O(s) spac, whr s is th numbr of strings in th array Srvs as an auxiiary indx structur S[0] = S[1] = S[2] = S[3] = s b a r s s t o c k S[4] = S[5] = S[6] = S[7] = b u b u y b i d S[8] = S[9] = h a r b s t o p 1, 0, 0 7, 0, 3 0, 0, 0 1, 1, 1 6, 1, 2 4, 1, 1 0, 1, 1 3, 1, 2 1, 2, 3 8, 2, 3 4, 2, 3 5, 2, 2 0, 2, 2 2, 2, 3 3, 3, 4 9, 3, 3

21 21 Suffix Tri Th suffix tri of a string X is th comprssd tri of a th suffixs of X m i n i z m i i mi nimiz z miz nimiz z nimiz z

22 22 Anaysis of Suffix Tris Compact rprsntation of th suffix tri for a string X of siz n from an aphabt of siz d Uss O(n) spac Supports arbitrary pattrn matching quris in X in O(dm) tim, whr m is th siz of th pattrn Can b constructd in O(n) tim m i n i z m i , 7 1, 1 0, 1 2, 7 6, 7 4, 7 2, 7 6, 7 2, 7 6, 7

23 23 Homwork Brut-forc matching for string with prfix, suffix and infix. Pattrn can b h* which can match any words startd with h For xamp, if T = This is monday, P = mon*, thn matchd substring is monday *day which can match any words ndd with day For xamp, if T = This is monday, P = *day, thn matchd substring is monday h*o which can match any substring startd with h and ndd with o For xamp, if T = This is monday, P = T*s, thn matchd substring is This Input: two strings, th first is txt (T) and th scond is pattrn (P) Output: th ocation of th first matchd substring in T. Nu if no match. Du dat: Spt 9, 2010

Indexed Search Tree (Trie)

Indexed Search Tree (Trie) Indxd Sarch Tr (Tri) Fawzi Emad Chau-Wn Tsng Dpartmnt of Computr Scinc Univrsity of Maryand, Cog Park Indxd Sarch Tr (Tri) Spcia cas of tr Appicab whn Ky C can b dcomposd into a squnc of subkys C 1, C

More information

Pattern Matching. a b a c a a b. a b a c a b. a b a c a b. Pattern Matching 1

Pattern Matching. a b a c a a b. a b a c a b. a b a c a b. Pattern Matching 1 Pattern Matching a b a c a a b 1 4 3 2 Pattern Matching 1 Outline and Reading Strings ( 9.1.1) Pattern matching algorithms Brute-force algorithm ( 9.1.2) Boyer-Moore algorithm ( 9.1.3) Knuth-Morris-Pratt

More information

Pattern Matching. a b a c a a b. a b a c a b. a b a c a b. Pattern Matching Goodrich, Tamassia

Pattern Matching. a b a c a a b. a b a c a b. a b a c a b. Pattern Matching Goodrich, Tamassia Pattern Matching a b a c a a b 1 4 3 2 Pattern Matching 1 Brute-Force Pattern Matching ( 11.2.1) The brute-force pattern matching algorithm compares the pattern P with the text T for each possible shift

More information

Homework #3. 1 x. dx. It therefore follows that a sum of the

Homework #3. 1 x. dx. It therefore follows that a sum of the Danil Cannon CS 62 / Luan March 5, 2009 Homwork # 1. Th natural logarithm is dfind by ln n = n 1 dx. It thrfor follows that a sum of th 1 x sam addnd ovr th sam intrval should b both asymptotically uppr-

More information

Winter 2016 COMP-250: Introduction to Computer Science. Lecture 23, April 5, 2016

Winter 2016 COMP-250: Introduction to Computer Science. Lecture 23, April 5, 2016 Wintr 2016 COMP-250: Introduction to Computr Scinc Lctur 23, April 5, 2016 Commnt out input siz 2) Writ ny lgorithm tht runs in tim Θ(n 2 log 2 n) in wors cs. Explin why this is its running tim. I don

More information

Search sequence databases 3 10/25/2016

Search sequence databases 3 10/25/2016 Sarch squnc databass 3 10/25/2016 Etrm valu distribution Ø Suppos X is a random variabl with probability dnsity function p(, w sampl a larg numbr S of indpndnt valus of X from this distribution for an

More information

Aim To manage files and directories using Linux commands. 1. file Examines the type of the given file or directory

Aim To manage files and directories using Linux commands. 1. file Examines the type of the given file or directory m E x. N o. 3 F I L E M A N A G E M E N T Aim To manag ils and dirctoris using Linux commands. I. F i l M a n a g m n t 1. il Examins th typ o th givn il or dirctory i l i l n a m > ( o r ) < d i r c t

More information

Association (Part II)

Association (Part II) Association (Part II) nanopoulos@ismll.d Outlin Improving Apriori (FP Growth, ECLAT) Qustioning confidnc masur Qustioning support masur 2 1 FP growth Algorithm Us a comprssd rprsntation of th dtb databas

More information

(Upside-Down o Direct Rotation) β - Numbers

(Upside-Down o Direct Rotation) β - Numbers Amrican Journal of Mathmatics and Statistics 014, 4(): 58-64 DOI: 10593/jajms0140400 (Upsid-Down o Dirct Rotation) β - Numbrs Ammar Sddiq Mahmood 1, Shukriyah Sabir Ali,* 1 Dpartmnt of Mathmatics, Collg

More information

1 Minimum Cut Problem

1 Minimum Cut Problem CS 6 Lctur 6 Min Cut and argr s Algorithm Scribs: Png Hui How (05), Virginia Dat: May 4, 06 Minimum Cut Problm Today, w introduc th minimum cut problm. This problm has many motivations, on of which coms

More information

Roadmap. XML Indexing. DataGuide example. DataGuides. Strong DataGuides. Multiple DataGuides for same data. CPS Topics in Database Systems

Roadmap. XML Indexing. DataGuide example. DataGuides. Strong DataGuides. Multiple DataGuides for same data. CPS Topics in Database Systems Roadmap XML Indxing CPS 296.1 Topics in Databas Systms Indx fabric Coopr t al. A Fast Indx for Smistructurd Data. VLDB, 2001 DataGuid Goldman and Widom. DataGuids: Enabling Qury Formulation and Optimization

More information

Week 3: Connected Subgraphs

Week 3: Connected Subgraphs Wk 3: Connctd Subgraphs Sptmbr 19, 2016 1 Connctd Graphs Path, Distanc: A path from a vrtx x to a vrtx y in a graph G is rfrrd to an xy-path. Lt X, Y V (G). An (X, Y )-path is an xy-path with x X and y

More information

Lecture 2: Discrete-Time Signals & Systems. Reza Mohammadkhani, Digital Signal Processing, 2015 University of Kurdistan eng.uok.ac.

Lecture 2: Discrete-Time Signals & Systems. Reza Mohammadkhani, Digital Signal Processing, 2015 University of Kurdistan eng.uok.ac. Lctur 2: Discrt-Tim Signals & Systms Rza Mohammadkhani, Digital Signal Procssing, 2015 Univrsity of Kurdistan ng.uok.ac.ir/mohammadkhani 1 Signal Dfinition and Exampls 2 Signal: any physical quantity that

More information

The Matrix Exponential

The Matrix Exponential Th Matrix Exponntial (with xrciss) by D. Klain Vrsion 207.0.05 Corrctions and commnts ar wlcom. Th Matrix Exponntial For ach n n complx matrix A, dfin th xponntial of A to b th matrix A A k I + A + k!

More information

Higher order derivatives

Higher order derivatives Robrto s Nots on Diffrntial Calculus Chaptr 4: Basic diffrntiation ruls Sction 7 Highr ordr drivativs What you nd to know alrady: Basic diffrntiation ruls. What you can larn hr: How to rpat th procss of

More information

The Matrix Exponential

The Matrix Exponential Th Matrix Exponntial (with xrciss) by Dan Klain Vrsion 28928 Corrctions and commnts ar wlcom Th Matrix Exponntial For ach n n complx matrix A, dfin th xponntial of A to b th matrix () A A k I + A + k!

More information

10. The Discrete-Time Fourier Transform (DTFT)

10. The Discrete-Time Fourier Transform (DTFT) Th Discrt-Tim Fourir Transform (DTFT Dfinition of th discrt-tim Fourir transform Th Fourir rprsntation of signals plays an important rol in both continuous and discrt signal procssing In this sction w

More information

INTEGRATION BY PARTS

INTEGRATION BY PARTS Mathmatics Rvision Guids Intgration by Parts Pag of 7 MK HOME TUITION Mathmatics Rvision Guids Lvl: AS / A Lvl AQA : C Edcl: C OCR: C OCR MEI: C INTEGRATION BY PARTS Vrsion : Dat: --5 Eampls - 6 ar copyrightd

More information

The second condition says that a node α of the tree has exactly n children if the arity of its label is n.

The second condition says that a node α of the tree has exactly n children if the arity of its label is n. CS 6110 S14 Hanout 2 Proof of Conflunc 27 January 2014 In this supplmntary lctur w prov that th λ-calculus is conflunt. This is rsult is u to lonzo Church (1903 1995) an J. arkly Rossr (1907 1989) an is

More information

1 Isoparametric Concept

1 Isoparametric Concept UNIVERSITY OF CALIFORNIA BERKELEY Dpartmnt of Civil Enginring Spring 06 Structural Enginring, Mchanics and Matrials Profssor: S. Govindj Nots on D isoparamtric lmnts Isoparamtric Concpt Th isoparamtric

More information

Approximate Maximum Flow in Undirected Networks by Christiano, Kelner, Madry, Spielmann, Teng (STOC 2011)

Approximate Maximum Flow in Undirected Networks by Christiano, Kelner, Madry, Spielmann, Teng (STOC 2011) Approximat Maximum Flow in Undirctd Ntworks by Christiano, Klnr, Madry, Spilmann, Tng (STOC 2011) Kurt Mhlhorn Max Planck Institut for Informatics and Saarland Univrsity Sptmbr 28, 2011 Th Rsult High-Lvl

More information

2008 AP Calculus BC Multiple Choice Exam

2008 AP Calculus BC Multiple Choice Exam 008 AP Multipl Choic Eam Nam 008 AP Calculus BC Multipl Choic Eam Sction No Calculator Activ AP Calculus 008 BC Multipl Choic. At tim t 0, a particl moving in th -plan is th acclration vctor of th particl

More information

Problem Set #2 Due: Friday April 20, 2018 at 5 PM.

Problem Set #2 Due: Friday April 20, 2018 at 5 PM. 1 EE102B Spring 2018 Signal Procssing and Linar Systms II Goldsmith Problm St #2 Du: Friday April 20, 2018 at 5 PM. 1. Non-idal sampling and rcovry of idal sampls by discrt-tim filtring 30 pts) Considr

More information

Vehicle Routing Problem with Simultaneous Pickup and Delivery in Cross-Docking Environment

Vehicle Routing Problem with Simultaneous Pickup and Delivery in Cross-Docking Environment Vhicl Routing Problm with Simultanous Picup and Dlivry in Cross-Docing Environmnt Chiong Huang and Yun-Xi Liu Abstract This study will discuss th vhicl routing problm with simultanous picup and dlivry

More information

Applied Statistics II - Categorical Data Analysis Data analysis using Genstat - Exercise 2 Logistic regression

Applied Statistics II - Categorical Data Analysis Data analysis using Genstat - Exercise 2 Logistic regression Applid Statistics II - Catgorical Data Analysis Data analysis using Gnstat - Exrcis 2 Logistic rgrssion Analysis 2. Logistic rgrssion for a 2 x k tabl. Th tabl blow shows th numbr of aphids aliv and dad

More information

3-2-1 ANN Architecture

3-2-1 ANN Architecture ARTIFICIAL NEURAL NETWORKS (ANNs) Profssor Tom Fomby Dpartmnt of Economics Soutrn Mtodist Univrsity Marc 008 Artificial Nural Ntworks (raftr ANNs) can b usd for itr prdiction or classification problms.

More information

Tries and Suffix Trees. Inge Li Gørtz

Tries and Suffix Trees. Inge Li Gørtz Tri nd Suffix Tr Ing Li Gørtz String indxing prom String mtcing prom. Givn tring T (txt) nd P (pttrn) ovr n pt Σ, rport trting poition of occurrnc of P in T. Finit utomton: O(mΣ + n) tim nd pc KMP: O(m+n)

More information

Function Spaces. a x 3. (Letting x = 1 =)) a(0) + b + c (1) = 0. Row reducing the matrix. b 1. e 4 3. e 9. >: (x = 1 =)) a(0) + b + c (1) = 0

Function Spaces. a x 3. (Letting x = 1 =)) a(0) + b + c (1) = 0. Row reducing the matrix. b 1. e 4 3. e 9. >: (x = 1 =)) a(0) + b + c (1) = 0 unction Spacs Prrquisit: Sction 4.7, Coordinatization n this sction, w apply th tchniqus of Chaptr 4 to vctor spacs whos lmnts ar functions. Th vctor spacs P n and P ar familiar xampls of such spacs. Othr

More information

Examples and applications on SSSP and MST

Examples and applications on SSSP and MST Exampls an applications on SSSP an MST Dan (Doris) H & Junhao Gan ITEE Univrsity of Qunslan COMP3506/7505, Uni of Qunslan Exampls an applications on SSSP an MST Dijkstra s Algorithm Th algorithm solvs

More information

Lie Groups HW7. Wang Shuai. November 2015

Lie Groups HW7. Wang Shuai. November 2015 Li roups HW7 Wang Shuai Novmbr 015 1 Lt (π, V b a complx rprsntation of a compact group, show that V has an invariant non-dgnratd Hrmitian form. For any givn Hrmitian form on V, (for xampl (u, v = i u

More information

Mutually Independent Hamiltonian Cycles of Pancake Networks

Mutually Independent Hamiltonian Cycles of Pancake Networks Mutually Indpndnt Hamiltonian Cycls of Pancak Ntworks Chng-Kuan Lin Dpartmnt of Mathmatics National Cntral Univrsity, Chung-Li, Taiwan 00, R O C discipl@ms0urlcomtw Hua-Min Huang Dpartmnt of Mathmatics

More information

Combinatorial Networks Week 1, March 11-12

Combinatorial Networks Week 1, March 11-12 1 Nots on March 11 Combinatorial Ntwors W 1, March 11-1 11 Th Pigonhol Principl Th Pigonhol Principl If n objcts ar placd in hols, whr n >, thr xists a box with mor than on objcts 11 Thorm Givn a simpl

More information

DIFFERENTIAL EQUATION

DIFFERENTIAL EQUATION MD DIFFERENTIAL EQUATION Sllabus : Ordinar diffrntial quations, thir ordr and dgr. Formation of diffrntial quations. Solution of diffrntial quations b th mthod of sparation of variabls, solution of homognous

More information

Elements of Statistical Thermodynamics

Elements of Statistical Thermodynamics 24 Elmnts of Statistical Thrmodynamics Statistical thrmodynamics is a branch of knowldg that has its own postulats and tchniqus. W do not attmpt to giv hr vn an introduction to th fild. In this chaptr,

More information

Problem Set 6 Solutions

Problem Set 6 Solutions 6.04/18.06J Mathmatics for Computr Scinc March 15, 005 Srini Dvadas and Eric Lhman Problm St 6 Solutions Du: Monday, March 8 at 9 PM in Room 3-044 Problm 1. Sammy th Shark is a financial srvic providr

More information

Where k is either given or determined from the data and c is an arbitrary constant.

Where k is either given or determined from the data and c is an arbitrary constant. Exponntial growth and dcay applications W wish to solv an quation that has a drivativ. dy ky k > dx This quation says that th rat of chang of th function is proportional to th function. Th solution is

More information

ECE602 Exam 1 April 5, You must show ALL of your work for full credit.

ECE602 Exam 1 April 5, You must show ALL of your work for full credit. ECE62 Exam April 5, 27 Nam: Solution Scor: / This xam is closd-book. You must show ALL of your work for full crdit. Plas rad th qustions carfully. Plas chck your answrs carfully. Calculators may NOT b

More information

A Sub-Optimal Log-Domain Decoding Algorithm for Non-Binary LDPC Codes

A Sub-Optimal Log-Domain Decoding Algorithm for Non-Binary LDPC Codes Procdings of th 9th WSEAS Intrnational Confrnc on APPLICATIONS of COMPUTER ENGINEERING A Sub-Optimal Log-Domain Dcoding Algorithm for Non-Binary LDPC Cods CHIRAG DADLANI and RANJAN BOSE Dpartmnt of Elctrical

More information

Chapter 6 Folding. Folding

Chapter 6 Folding. Folding Chaptr 6 Folding Wintr 1 Mokhtar Abolaz Folding Th folding transformation is usd to systmatically dtrmin th control circuits in DSP architctur whr multipl algorithm oprations ar tim-multiplxd to a singl

More information

Unfired pressure vessels- Part 3: Design

Unfired pressure vessels- Part 3: Design Unfird prssur vssls- Part 3: Dsign Analysis prformd by: Analysis prformd by: Analysis vrsion: According to procdur: Calculation cas: Unfird prssur vssls EDMS Rfrnc: EF EN 13445-3 V1 Introduction: This

More information

WEIGHTED SZEGED INDEX OF GRAPHS

WEIGHTED SZEGED INDEX OF GRAPHS BULLETIN OF THE INTERNATIONAL MATHEMATICAL VIRTUAL INSTITUTE ISSN (p) 2303-4874, ISSN (o) 2303-4955 www.imvib.org /JOURNALS / BULLETIN Vo. 8(2018), 11-19 DOI: 10.7251/BIMVI1801011P Formr BULLETIN OF THE

More information

Chapter 6. The Discrete Fourier Transform and The Fast Fourier Transform

Chapter 6. The Discrete Fourier Transform and The Fast Fourier Transform Pusan ational Univrsity Chaptr 6. Th Discrt Fourir Transform and Th Fast Fourir Transform 6. Introduction Frquncy rsponss of discrt linar tim invariant systms ar rprsntd by Fourir transform or z-transforms.

More information

Exercise 1. Sketch the graph of the following function. (x 2

Exercise 1. Sketch the graph of the following function. (x 2 Writtn tst: Fbruary 9th, 06 Exrcis. Sktch th graph of th following function fx = x + x, spcifying: domain, possibl asymptots, monotonicity, continuity, local and global maxima or minima, and non-drivability

More information

Algorithm Theory. 13 Text Search - Knuth, Morris, Pratt, Boyer, Moore. Christian Schindelhauer

Algorithm Theory. 13 Text Search - Knuth, Morris, Pratt, Boyer, Moore. Christian Schindelhauer Algorithm Theory 13 Text Search - Knuth, Morris, Pratt, Boyer, Moore Institut für Informatik Wintersemester 2007/08 Text Search Scenarios Static texts Literature databases Library systems Gene databases

More information

CS 361 Meeting 12 10/3/18

CS 361 Meeting 12 10/3/18 CS 36 Mting 2 /3/8 Announcmnts. Homwork 4 is du Friday. If Friday is Mountain Day, homwork should b turnd in at my offic or th dpartmnt offic bfor 4. 2. Homwork 5 will b availabl ovr th wknd. 3. Our midtrm

More information

Basic Polyhedral theory

Basic Polyhedral theory Basic Polyhdral thory Th st P = { A b} is calld a polyhdron. Lmma 1. Eithr th systm A = b, b 0, 0 has a solution or thr is a vctorπ such that π A 0, πb < 0 Thr cass, if solution in top row dos not ist

More information

Mor Tutorial at www.dumblittldoctor.com Work th problms without a calculator, but us a calculator to chck rsults. And try diffrntiating your answrs in part III as a usful chck. I. Applications of Intgration

More information

Solution: APPM 1360 Final (150 pts) Spring (60 pts total) The following parts are not related, justify your answers:

Solution: APPM 1360 Final (150 pts) Spring (60 pts total) The following parts are not related, justify your answers: APPM 6 Final 5 pts) Spring 4. 6 pts total) Th following parts ar not rlatd, justify your answrs: a) Considr th curv rprsntd by th paramtric quations, t and y t + for t. i) 6 pts) Writ down th corrsponding

More information

Clausius-Clapeyron Equation

Clausius-Clapeyron Equation ausius-apyron Equation 22000 p (mb) Liquid Soid 03 6. Vapor 0 00 374 (º) oud drops first form whn th aporization quiibrium point is rachd (i.., th air parc bcoms saturatd) Hr w dop an quation that dscribs

More information

Dealing with quantitative data and problem solving life is a story problem! Attacking Quantitative Problems

Dealing with quantitative data and problem solving life is a story problem! Attacking Quantitative Problems Daling with quantitati data and problm soling lif is a story problm! A larg portion of scinc inols quantitati data that has both alu and units. Units can sa your butt! Nd handl on mtric prfixs Dimnsional

More information

There is an arbitrary overall complex phase that could be added to A, but since this makes no difference we set it to zero and choose A real.

There is an arbitrary overall complex phase that could be added to A, but since this makes no difference we set it to zero and choose A real. Midtrm #, Physics 37A, Spring 07. Writ your rsponss blow or on xtra pags. Show your work, and tak car to xplain what you ar doing; partial crdit will b givn for incomplt answrs that dmonstrat som concptual

More information

Objective Mathematics

Objective Mathematics x. Lt 'P' b a point on th curv y and tangnt x drawn at P to th curv has gratst slop in magnitud, thn point 'P' is,, (0, 0),. Th quation of common tangnt to th curvs y = 6 x x and xy = x + is : x y = 8

More information

TEMASEK JUNIOR COLLEGE, SINGAPORE. JC 2 Preliminary Examination 2017

TEMASEK JUNIOR COLLEGE, SINGAPORE. JC 2 Preliminary Examination 2017 TEMASEK JUNIOR COLLEGE, SINGAPORE JC Prliminary Eamination 7 MATHEMATICS 886/ Highr 9 August 7 Additional Matrials: Answr papr hours List of Formula (MF6) READ THESE INSTRUCTIONS FIRST Writ your Civics

More information

4. (5a + b) 7 & x 1 = (3x 1)log 10 4 = log (M1) [4] d = 3 [4] T 2 = 5 + = 16 or or 16.

4. (5a + b) 7 & x 1 = (3x 1)log 10 4 = log (M1) [4] d = 3 [4] T 2 = 5 + = 16 or or 16. . 7 7 7... 7 7 (n )0 7 (M) 0(n ) 00 n (A) S ((7) 0(0)) (M) (7 00) 8897 (A). (5a b) 7 7... (5a)... (M) 7 5 5 (a b ) 5 5 a b (M)(A) So th cofficint is 75 (A) (C) [] S (7 7) (M) () 8897 (A) (C) [] 5. x.55

More information

Math 34A. Final Review

Math 34A. Final Review Math A Final Rviw 1) Us th graph of y10 to find approimat valus: a) 50 0. b) y (0.65) solution for part a) first writ an quation: 50 0. now tak th logarithm of both sids: log() log(50 0. ) pand th right

More information

Computing and Communications -- Network Coding

Computing and Communications -- Network Coding 89 90 98 00 Computing and Communications -- Ntwork Coding Dr. Zhiyong Chn Institut of Wirlss Communications Tchnology Shanghai Jiao Tong Univrsity China Lctur 5- Nov. 05 0 Classical Information Thory Sourc

More information

CS 6353 Compiler Construction, Homework #1. 1. Write regular expressions for the following informally described languages:

CS 6353 Compiler Construction, Homework #1. 1. Write regular expressions for the following informally described languages: CS 6353 Compilr Construction, Homwork #1 1. Writ rgular xprssions for th following informally dscribd languags: a. All strings of 0 s and 1 s with th substring 01*1. Answr: (0 1)*01*1(0 1)* b. All strings

More information

dt d Chapter 30: 1-Faraday s Law of induction (induced EMF) Chapter 30: 1-Faraday s Law of induction (induced Electromotive Force)

dt d Chapter 30: 1-Faraday s Law of induction (induced EMF) Chapter 30: 1-Faraday s Law of induction (induced Electromotive Force) Chaptr 3: 1-Faraday s aw of induction (inducd ctromotiv Forc) Variab (incrasing) Constant Variab (dcrasing) whn a magnt is movd nar a wir oop of ara A, currnt fows through that wir without any battris!

More information

ANALYSIS IN THE FREQUENCY DOMAIN

ANALYSIS IN THE FREQUENCY DOMAIN ANALYSIS IN THE FREQUENCY DOMAIN SPECTRAL DENSITY Dfinition Th spctral dnsit of a S.S.P. t also calld th spctrum of t is dfind as: + { γ }. jτ γ τ F τ τ In othr words, of th covarianc function. is dfind

More information

4.5 Minimum Spanning Tree. Chapter 4. Greedy Algorithms. Minimum Spanning Tree. Motivating application

4.5 Minimum Spanning Tree. Chapter 4. Greedy Algorithms. Minimum Spanning Tree. Motivating application 1 Chaptr. Minimum panning Tr lids by Kvin Wayn. Copyright 200 Parson-Addison Wsly. All rights rsrvd. *Adjustd by Gang Tan for C33: Algorithms at Boston Collg, Fall 0 Motivating application Minimum panning

More information

Module 9: Tries and String Matching

Module 9: Tries and String Matching Module 9: Tries and String Matching CS 240 - Data Structures and Data Management Sajed Haque Veronika Irvine Taylor Smith Based on lecture notes by many previous cs240 instructors David R. Cheriton School

More information

Enumerating Unlabeled and Root Labeled Trees for Causal Model Acquisition

Enumerating Unlabeled and Root Labeled Trees for Causal Model Acquisition Enumrating Unlabld and Root Labld Trs for Causal Modl Acquisition Yang Xiang, Zo Jingyu Zhu, and Yu Li Univrsity of Gulph, Canada Abstract. To spcify a Bays nt (BN), a conditional probability tabl (CPT),

More information

perm4 A cnt 0 for for if A i 1 A i cnt cnt 1 cnt i j. j k. k l. i k. j l. i l

perm4 A cnt 0 for for if A i 1 A i cnt cnt 1 cnt i j. j k. k l. i k. j l. i l h 4D, 4th Rank, Antisytric nsor and th 4D Equivalnt to th Cross Product or Mor Fun with nsors!!! Richard R Shiffan Digital Graphics Assoc 8 Dunkirk Av LA, Ca 95 rrs@isidu his docunt dscribs th four dinsional

More information

Construction of asymmetric orthogonal arrays of strength three via a replacement method

Construction of asymmetric orthogonal arrays of strength three via a replacement method isid/ms/26/2 Fbruary, 26 http://www.isid.ac.in/ statmath/indx.php?modul=prprint Construction of asymmtric orthogonal arrays of strngth thr via a rplacmnt mthod Tian-fang Zhang, Qiaoling Dng and Alok Dy

More information

Strongly Connected Components

Strongly Connected Components Strongly Connctd Componnts Lt G = (V, E) b a dirctd graph Writ if thr is a path from to in G Writ if and is an quivalnc rlation: implis and implis s quivalnc classs ar calld th strongly connctd componnts

More information

7' The growth of yeast, a microscopic fungus used to make bread, in a test tube can be

7' The growth of yeast, a microscopic fungus used to make bread, in a test tube can be N Sction A: Pur Mathmatics 55 marks] / Th rgion R is boundd by th curv y, th -ais, and th lins = V - +7 and = m, whr m >. Find th volum gnratd whn R is rotatd through right angls about th -ais, laving

More information

Supplementary Materials

Supplementary Materials 6 Supplmntary Matrials APPENDIX A PHYSICAL INTERPRETATION OF FUEL-RATE-SPEED FUNCTION A truck running on a road with grad/slop θ positiv if moving up and ngativ if moving down facs thr rsistancs: arodynamic

More information

Abstract Interpretation: concrete and abstract semantics

Abstract Interpretation: concrete and abstract semantics Abstract Intrprtation: concrt and abstract smantics Concrt smantics W considr a vry tiny languag that manags arithmtic oprations on intgrs valus. Th (concrt) smantics of th languags cab b dfind by th funzcion

More information

Some Terminologies. Some Terminologies. Trees. Example: UNIX Directory. Trees. Binary Trees, Binary Search Trees 1/9/2014

Some Terminologies. Some Terminologies. Trees. Example: UNIX Directory. Trees. Binary Trees, Binary Search Trees 1/9/2014 // Som Trminoogis Binry Trs, Binry Srch Trs www.cs.ust.hk/~humin/comp /st.ppt Chid nd prnt Evry nod xcpt th root hs on prnt A nod cn hv n ritrry numr of chidrn Lvs Nods with no chidrn Siing nods with sm

More information

Addition of angular momentum

Addition of angular momentum Addition of angular momntum April, 07 Oftn w nd to combin diffrnt sourcs of angular momntum to charactriz th total angular momntum of a systm, or to divid th total angular momntum into parts to valuat

More information

MATH 1080 Test 2-SOLUTIONS Spring

MATH 1080 Test 2-SOLUTIONS Spring MATH Tst -SOLUTIONS Spring 5. Considr th curv dfind by x = ln( 3y + 7) on th intrval y. a. (5 points) St up but do not simplify or valuat an intgral rprsnting th lngth of th curv on th givn intrval. =

More information

Final Exam Solutions

Final Exam Solutions CS 2 Advancd Data Structurs and Algorithms Final Exam Solutions Jonathan Turnr /8/20. (0 points) Suppos that r is a root of som tr in a Fionacci hap. Assum that just for a dltmin opration, r has no childrn

More information

4 x 4, and. where x is Town Square

4 x 4, and. where x is Town Square Accumulation and Population Dnsity E. A city locatd along a straight highway has a population whos dnsity can b approimatd by th function p 5 4 th distanc from th town squar, masurd in mils, whr 4 4, and

More information

MAXIMA-MINIMA EXERCISE - 01 CHECK YOUR GRASP

MAXIMA-MINIMA EXERCISE - 01 CHECK YOUR GRASP EXERCISE - MAXIMA-MINIMA CHECK YOUR GRASP. f() 5 () 75 f'() 5. () 75 75.() 7. 5 + 5. () 7 {} 5 () 7 ( ) 5. f() 9a + a +, a > f'() 6 8a + a 6( a + a ) 6( a) ( a) p a, q a a a + + a a a (rjctd) or a a 6.

More information

Text: WMM, Chapter 5. Sections , ,

Text: WMM, Chapter 5. Sections , , Lcturs 6 - Continuous Probabilit Distributions Tt: WMM, Chaptr 5. Sctions 6.-6.4, 6.6-6.8, 7.-7. In th prvious sction, w introduc som of th common probabilit distribution functions (PDFs) for discrt sampl

More information

COUNTING TAMELY RAMIFIED EXTENSIONS OF LOCAL FIELDS UP TO ISOMORPHISM

COUNTING TAMELY RAMIFIED EXTENSIONS OF LOCAL FIELDS UP TO ISOMORPHISM COUNTING TAMELY RAMIFIED EXTENSIONS OF LOCAL FIELDS UP TO ISOMORPHISM Jim Brown Dpartmnt of Mathmatical Scincs, Clmson Univrsity, Clmson, SC 9634, USA jimlb@g.clmson.du Robrt Cass Dpartmnt of Mathmatics,

More information

Integration by Parts

Integration by Parts Intgration by Parts Intgration by parts is a tchniqu primarily for valuating intgrals whos intgrand is th product of two functions whr substitution dosn t work. For ampl, sin d or d. Th rul is: u ( ) v'(

More information

Probability and Stochastic Processes: A Friendly Introduction for Electrical and Computer Engineers Roy D. Yates and David J.

Probability and Stochastic Processes: A Friendly Introduction for Electrical and Computer Engineers Roy D. Yates and David J. Probability and Stochastic Procsss: A Frindly Introduction for Elctrical and Computr Enginrs Roy D. Yats and David J. Goodman Problm Solutions : Yats and Goodman,4.3. 4.3.4 4.3. 4.4. 4.4.4 4.4.6 4.. 4..7

More information

The University of Alabama in Huntsville Electrical and Computer Engineering Homework #4 Solution CPE Spring 2008

The University of Alabama in Huntsville Electrical and Computer Engineering Homework #4 Solution CPE Spring 2008 Th Univrsity of Alabama in Huntsvill Elctrical and Comutr Enginring Homwork # Solution CE 6 Sring 8 Chatr : roblms ( oints, ( oints, ( oints, 8( oints, ( oints. You hav a RAID systm whr failurs occur at

More information

EEO 401 Digital Signal Processing Prof. Mark Fowler

EEO 401 Digital Signal Processing Prof. Mark Fowler EEO 401 Digital Signal Procssing Prof. Mark Fowlr Dtails of th ot St #19 Rading Assignmnt: Sct. 7.1.2, 7.1.3, & 7.2 of Proakis & Manolakis Dfinition of th So Givn signal data points x[n] for n = 0,, -1

More information

VII. Quantum Entanglement

VII. Quantum Entanglement VII. Quantum Entanglmnt Quantum ntanglmnt is a uniqu stat of quantum suprposition. It has bn studid mainly from a scintific intrst as an vidnc of quantum mchanics. Rcntly, it is also bing studid as a basic

More information

COHORT MBA. Exponential function. MATH review (part2) by Lucian Mitroiu. The LOG and EXP functions. Properties: e e. lim.

COHORT MBA. Exponential function. MATH review (part2) by Lucian Mitroiu. The LOG and EXP functions. Properties: e e. lim. MTH rviw part b Lucian Mitroiu Th LOG and EXP functions Th ponntial function p : R, dfind as Proprtis: lim > lim p Eponntial function Y 8 6 - -8-6 - - X Th natural logarithm function ln in US- log: function

More information

The graph of y = x (or y = ) consists of two branches, As x 0, y + ; as x 0, y +. x = 0 is the

The graph of y = x (or y = ) consists of two branches, As x 0, y + ; as x 0, y +. x = 0 is the Copyright itutcom 005 Fr download & print from wwwitutcom Do not rproduc by othr mans Functions and graphs Powr functions Th graph of n y, for n Q (st of rational numbrs) y is a straight lin through th

More information

Section 6.1. Question: 2. Let H be a subgroup of a group G. Then H operates on G by left multiplication. Describe the orbits for this operation.

Section 6.1. Question: 2. Let H be a subgroup of a group G. Then H operates on G by left multiplication. Describe the orbits for this operation. MAT 444 H Barclo Spring 004 Homwork 6 Solutions Sction 6 Lt H b a subgroup of a group G Thn H oprats on G by lft multiplication Dscrib th orbits for this opration Th orbits of G ar th right costs of H

More information

Introduction to Arithmetic Geometry Fall 2013 Lecture #20 11/14/2013

Introduction to Arithmetic Geometry Fall 2013 Lecture #20 11/14/2013 18.782 Introduction to Arithmtic Gomtry Fall 2013 Lctur #20 11/14/2013 20.1 Dgr thorm for morphisms of curvs Lt us rstat th thorm givn at th nd of th last lctur, which w will now prov. Thorm 20.1. Lt φ:

More information

ECE 407 Computer Aided Design for Electronic Systems. Instructor: Maria K. Michael. Overview. CAD tools for multi-level logic synthesis:

ECE 407 Computer Aided Design for Electronic Systems. Instructor: Maria K. Michael. Overview. CAD tools for multi-level logic synthesis: 407 Computr Aidd Dsign for Elctronic Systms Multi-lvl Logic Synthsis Instructor: Maria K. Michal 1 Ovrviw Major Synthsis Phass Logic Synthsis: 2-lvl Multi-lvl FSM CAD tools for multi-lvl logic synthsis:

More information

10. EXTENDING TRACTABILITY

10. EXTENDING TRACTABILITY Coping with NP-compltnss 0. EXTENDING TRACTABILITY ining small vrtx covrs solving NP-har problms on trs circular arc covrings vrtx covr in bipartit graphs Q. Suppos I n to solv an NP-complt problm. What

More information

Continuous probability distributions

Continuous probability distributions Continuous probability distributions Many continuous probability distributions, including: Uniform Normal Gamma Eponntial Chi-Squard Lognormal Wibull EGR 5 Ch. 6 Uniform distribution Simplst charactrizd

More information

On the Design of an On-line Complex FIR Filter

On the Design of an On-line Complex FIR Filter On th sign of an On-lin Complx FIR Filtr Robrt McIlhnny Computr Scinc partmnt California Stat Univrsity, Northridg Northridg, CA 91330 rmcilhn@csun.du Miloš.Ercgovac Computr Scinc partmnt Univrsity of

More information

DISTRIBUTION OF DIFFERENCE BETWEEN INVERSES OF CONSECUTIVE INTEGERS MODULO P

DISTRIBUTION OF DIFFERENCE BETWEEN INVERSES OF CONSECUTIVE INTEGERS MODULO P DISTRIBUTION OF DIFFERENCE BETWEEN INVERSES OF CONSECUTIVE INTEGERS MODULO P Tsz Ho Chan Dartmnt of Mathmatics, Cas Wstrn Rsrv Univrsity, Clvland, OH 4406, USA txc50@cwru.du Rcivd: /9/03, Rvisd: /9/04,

More information

BINOMIAL COEFFICIENTS INVOLVING INFINITE POWERS OF PRIMES

BINOMIAL COEFFICIENTS INVOLVING INFINITE POWERS OF PRIMES BINOMIAL COEFFICIENTS INVOLVING INFINITE POWERS OF PRIMES DONALD M. DAVIS Abstract. If p is a prim (implicit in notation and n a positiv intgr, lt ν(n dnot th xponnt of p in n, and U(n n/p ν(n, th unit

More information

Addition of angular momentum

Addition of angular momentum Addition of angular momntum April, 0 Oftn w nd to combin diffrnt sourcs of angular momntum to charactriz th total angular momntum of a systm, or to divid th total angular momntum into parts to valuat th

More information

On spanning trees and cycles of multicolored point sets with few intersections

On spanning trees and cycles of multicolored point sets with few intersections On spanning trs and cycls of multicolord point sts with fw intrsctions M. Kano, C. Mrino, and J. Urrutia April, 00 Abstract Lt P 1,..., P k b a collction of disjoint point sts in R in gnral position. W

More information

Bayesian Decision Theory

Bayesian Decision Theory Baysian Dcision Thory Baysian Dcision Thory Know probabiity distribution of th catgoris Amost nvr th cas in ra if! Nvrthss usfu sinc othr cass can b rducd to this on aftr som work Do not vn nd training

More information

SOME PARAMETERS ON EQUITABLE COLORING OF PRISM AND CIRCULANT GRAPH.

SOME PARAMETERS ON EQUITABLE COLORING OF PRISM AND CIRCULANT GRAPH. SOME PARAMETERS ON EQUITABLE COLORING OF PRISM AND CIRCULANT GRAPH. K VASUDEVAN, K. SWATHY AND K. MANIKANDAN 1 Dpartmnt of Mathmatics, Prsidncy Collg, Chnnai-05, India. E-Mail:vasu k dvan@yahoo.com. 2,

More information

PROOF OF FIRST STANDARD FORM OF NONELEMENTARY FUNCTIONS

PROOF OF FIRST STANDARD FORM OF NONELEMENTARY FUNCTIONS Intrnational Journal Of Advanc Rsarch In Scinc And Enginring http://www.ijars.com IJARSE, Vol. No., Issu No., Fbruary, 013 ISSN-319-8354(E) PROOF OF FIRST STANDARD FORM OF NONELEMENTARY FUNCTIONS 1 Dharmndra

More information

Answer Homework 5 PHA5127 Fall 1999 Jeff Stark

Answer Homework 5 PHA5127 Fall 1999 Jeff Stark Answr omwork 5 PA527 Fall 999 Jff Stark A patint is bing tratd with Drug X in a clinical stting. Upon admiion, an IV bolus dos of 000mg was givn which yildd an initial concntration of 5.56 µg/ml. A fw

More information

Slide 1. Slide 2. Slide 3 DIGITAL SIGNAL PROCESSING CLASSIFICATION OF SIGNALS

Slide 1. Slide 2. Slide 3 DIGITAL SIGNAL PROCESSING CLASSIFICATION OF SIGNALS Slid DIGITAL SIGAL PROCESSIG UIT I DISCRETE TIME SIGALS AD SYSTEM Slid Rviw of discrt-tim signals & systms Signal:- A signal is dfind as any physical quantity that varis with tim, spac or any othr indpndnt

More information

Square of Hamilton cycle in a random graph

Square of Hamilton cycle in a random graph Squar of Hamilton cycl in a random graph Andrzj Dudk Alan Friz Jun 28, 2016 Abstract W show that p = n is a sharp thrshold for th random graph G n,p to contain th squar of a Hamilton cycl. This improvs

More information