Searching Linked Lists. Perfect Skip List. Building a Skip List. Skip List Analysis (1) Assume the list is sorted, but is stored in a linked list.
|
|
- Blaze Walsh
- 5 years ago
- Views:
Transcription
1 () (d) 3 Sarching Linkd Lists Sarching Linkd Lists Sarching Linkd Lists ssum th list is sortd, but is stord in a linkd list. an w us binary sarch? omparisons? Work? What if w add additional pointrs? Sam. Is this a good modl? No. ssum th list is sortd, but is stord in a linkd list. an w us binary sarch? omparisons? Work? Much highr sinc w must mov around a lot (without comparisons) to gt to th sam position. Might gt to dsird position fastr. What if w add additional pointrs? : Thory of lgorithms Spring 4 79 / 4 Prfct Skip List Prfct Skip List What is th accss tim? W can insrt/dlt in log n tim as wll. Prfct Skip List : Thory of lgorithms Spring 4 8 / 4 uilding a Skip List uilding a Skip List uilding a Skip List Pick th nod siz at random (from a suitabl probability distribution). Pick th nod siz at random (from a suitabl probability distribution). (d) 3 () : Thory of lgorithms Spring 4 8 / 4 Skip List nalysis () What distribution do w want for th nod dpths? int randomlvl(void) { // xponntial distrib for (int lvl=; Random() == ; lvl++); rturn lvl; What is th worst cost to sarch in th prfct Skip List? What is th avrag cost to sarch in th prfct Skip List? What is th cost to insrt? Skip List nalysis () Skip List nalysis () What distribution do w want for th nod dpths? int randomlvl(void) { // xponntial distrib for (int lvl=; Random() == ; lvl++); rturn lvl; What is th worst cost to sarch in th prfct Skip List? What is th avrag cost to sarch in th prfct Skip List? What is th cost to insrt? What is th avrag cost in th typical Skip List? xponntial dcay. link half of th tim, links on quartr, 3 links on ighth, and so on. los to What is th avrag cost in th typical Skip List? : Thory of lgorithms Spring 4 8 / 4
2 Skip List nalysis () Skip List nalysis () Skip List nalysis () How dos this diffr from a ST? Simplr or mor complx? Mor or lss fficint? Which rlis on data distribution, which on basic laws of probability? bout th sam. How dos this diffr from a ST? Simplr or mor complx? Mor or lss fficint? Which rlis on data distribution, which on basic laws of probability? On avrag, about th sam if data ar wll distributd. ST rlis on data distribution, whil skiplist mrly rlis on chanc. : Thory of lgorithms Spring 4 83 / 4 Quicksort runs into troubl on highly structurd input. Solution: Randomiz input ordr. hanc of worst cas is thn /n!. Quicksort runs into troubl on highly structurd input. Solution: Randomiz input ordr. hanc of worst cas is thn /n!. This principl is why, for xampl, th Skip List data structur has much mor rliabl prformanc than a ST. Th ST s prformanc dpnds on th input data. Th Skip List s prformanc dpnds ntirly on chanc. or random data, th two ar ssntially idntical. ut you can t trust data to b random. : Thory of lgorithms Spring 4 84 / 4 Random Numbr Gnrators Random Numbr Gnrators Random Numbr Gnrators Most computrs systms us a dtrministic algorithm to slct psudorandom numbrs. Linar congruntial mthod: Pick a sd r(). Thn, r(i) = (r(i ) b) mod t. Must pick good valus for b and t. Rsulting numbrs must b in th rang: What happns if r(i) = r(j)? Most computrs systms us a dtrministic algorithm to slct psudorandom numbrs. Linar congruntial mthod: Pick a sd r(). Thn, r(i) = (r(i ) b) mod t. Lots of commrcial random numbr gnrators hav poor prformanc bcaus thy don t gt th numbrs right. Must b in rang to t. Thy gnrat th sam numbr, which lads to ycl of lngth j i. Must pick good valus for b and t. Rsulting numbrs must b in th rang: What happns if r(i) = r(j)? : Thory of lgorithms Spring 4 8 / 4 Random Numbr Gnrators (cont) Random Numbr Gnrators (cont) Random Numbr Gnrators (cont) Som xampls: r(i) = 6r(i ) mod 3 =, 6,, 8, 9,,, 7, 3,, 4,, r(i) = 7r(i ) mod 3 =, 7,,, 9,,, 6, 3, 8, 4,, r(i) = r(i ) mod 3 =,,, 8,,,, 3, 4, 7, 9, 6, 4, Th last on dpnds on th start valu of th sd. Suggstd gnrator: r(i) = 687r(i ) mod 3 Som xampls: r(i) = 6r(i ) mod 3 =, 6,, 8, 9,,, 7, 3,, 4,, r(i) = 7r(i ) mod 3 =, 7,,, 9,,, 6, 3, 8, 4,, r(i) = r(i ) mod 3 =,,, 8,,,, 3, 4, 7, 9, 6, 4, Th last on dpnds on th start valu of th sd. Suggstd gnrator: r(i) = 687r(i ) mod 3 : Thory of lgorithms Spring 4 86 / 4
3 Graph lgorithms Graph lgorithms Graph lgorithms Graphs ar usful for rprsnting a varity of concpts: ata Structurs Rlationships amilis ommunication Ntworks Road Maps Graphs ar usful for rprsnting a varity of concpts: ata Structurs Rlationships amilis ommunication Ntworks Road Maps : Thory of lgorithms Spring 4 87 / 4 Tr Proof finition: fr tr is onnctd, undirctd graph that has no cycls. Thorm: If T is a fr tr having n vrtics, thn T has xactly n dgs. Proof: y induction on n. as as: n =. T consists of vrtx and dgs. Inductiv Hypothsis: Th thorm is tru for a tr having n vrtics. If T has n vrtics, thn T contains a vrtx of dgr. Rmov that vrtx and its incidnt dg to obtain T, a fr tr with n vrtics. y IH, T has n dgs. Thus, T has n dgs. graph G = (V, ) consists of a st of vrtics V, and a st of dgs, such that ach dg in is onnction btwn a pair of vrtics in V. irctd vs. Undirctd Labld graph, wightd graph Labls for dgs vs. wights for dgs Multipl dgs, loops ycl, ircuit, path, simpl path, tours ipartit, acyclic, connctd Rootd tr, unrootd tr, fr tr Tr Proof Tr Proof finition: fr tr is onnctd, undirctd graph that has no cycls. Thorm: If T is a fr tr having n vrtics, thn T has xactly n dgs. Proof: y induction on n. as as: n =. T consists of vrtx and dgs. Inductiv Hypothsis: Th thorm is tru for a tr having n vrtics. If T has n vrtics, thn T contains a vrtx of dgr. Rmov that vrtx and its incidnt dg to obtain T, a fr tr with n vrtics. y IH, T has n dgs. Thus, T has n dgs. This is clos to a satisfactory dfinition for fr tr. Thr ar svral quivalnt dfinitions for fr trs, with similar proofs to rlat thm. Why do w know that som vrtx has dgr? caus th dfinition says that th r Tr has no cycls. : Thory of lgorithms Spring 4 88 / 4 Graph Travrsals Graph Travrsals Graph Travrsals Various problms rquir a way to travrs a graph that is, visit ach vrtx and dg in a systmatic way. Thr common travrsals: ulrian tours Travrs ach dg xactly onc pth-first sarch Kps vrtics on a stack 3 radth-first sarch Kps vrtics on a quu Various problms rquir a way to travrs a graph that is, visit ach vrtx and dg in a systmatic way. a vrtx may b visitd multipl tims Thr common travrsals: ulrian tours Travrs ach dg xactly onc pth-first sarch Kps vrtics on a stack 3 radth-first sarch Kps vrtics on a quu : Thory of lgorithms Spring 4 89 / 4 ulrian Tours ulrian Tours ulrian Tours circuit that contains vry dg xactly onc. xampl: f Tour: b a f c d. f xampl: g No ulrian tour. How can you tll for sur? circuit that contains vry dg xactly onc. xampl: f Tour: b a f c d. f xampl: g No ulrian tour. How can you tll for sur? Why no tour? caus som vrtics hav odd dgr. ll vn nods is a ncssary condition. Is it sufficint? : Thory of lgorithms Spring 4 9 / 4
4 ulrian Tour Proof Thorm: connctd, undirctd graph with m dgs that has no vrtics of odd dgr has an ulrian tour. Proof: y induction on m. as as: Inductiv Hypothsis: Start with an arbitrary vrtx and follow a path until you rturn to th vrtx. Rmov this circuit. What rmains ar connctd componnts G, G,..., G k ach with nods of vn dgr and < m dgs. y IH, ach connctd componnt has an ulrian tour. ombin th tours to gt a tour of th ntir graph. ulrian Tour Proof ulrian Tour Proof Thorm: connctd, undirctd graph with m dgs that has no vrtics of odd dgr has an ulrian tour. Proof: y induction on m. as as: Inductiv Hypothsis: Start with an arbitrary vrtx and follow a path until you rturn to th vrtx. Rmov this circuit. What rmains ar connctd componnts G, G,..., Gk ach with nods of vn dgr and < m dgs. y IH, ach connctd componnt has an ulrian tour. ombin th tours to gt a tour of th ntir graph. as cas: dgs and vrtx fits th thorm. IH: Th thorm is tru for < m dgs. lways possibl to find ircuit starting at any arbitrary vrtx, sinc ach vrtx has vn dgr. : Thory of lgorithms Spring 4 9 / 4 pth irst Sarch pth irst Sarch pth irst Sarch void S(Graph G, int v) { // pth first sarch PrVisit(G, v); // Tak appropriat action G.stMark(v, VISIT); for (dg w = ach nighbor of v) if (G.gtMark(G.v(w)) == UNVISIT) S(G, G.v(w)); PostVisit(G, v); // Tak appropriat action Initial call: S(G, r) whr r is th root of th S. ost: Θ( V + ). void S(Graph G, int v) { // pth first sarch PrVisit(G, v); // Tak appropriat action G.stMark(v, VISIT); for (dg w = ach nighbor of v) if (G.gtMark(G.v(w)) == UNVISIT) S(G, G.v(w)); PostVisit(G, v); // Tak appropriat action Initial call: S(G, r) whr r is th root of th S. ost: Θ( V + ). : Thory of lgorithms Spring 4 9 / 4 pth irst Sarch xampl pth irst Sarch xampl pth irst Sarch xampl Th dirctions ar imposd by th travrsal. This is th pth irst Sarch Tr. : Thory of lgorithms Spring 4 93 / 4 S Tr If w numbr th vrtics in th ordr that thy ar markd, w gt S numbrs. Lmma 7.: vry dg is ithr in th S tr T, or conncts two vrtics of G, on of which is an ancstor of th othr in T. S Tr Rsults: No cross dgs. That is, no dgs conncting vrtics sidways in th tr. S Tr If w numbr th vrtics in th ordr that thy ar markd, w gt S numbrs. Lmma 7.: vry dg is ithr in th S tr T, or conncts two vrtics of G, on of which is an ancstor of th othr in T. Proof: onsidr th first tim an dg (v, w) is xamind, with v th currnt vrtx. If w is unmarkd, thn (v, w) is in T. If w is markd, thn w has a smallr S numbr than v N (v, w) is an unxamind dg of w. Thus, w is still on th stack. That is, w is on a path from v. Proof: onsidr th first tim an dg (v, w) is xamind, with v th currnt vrtx. If w is unmarkd, thn (v, w) is in T. If w is markd, thn w has a smallr S numbr than v N (v, w) is an unxamind dg of w. Thus, w is still on th stack. That is, w is on a path from v. : Thory of lgorithms Spring 4 94 / 4
5 S for irctd Graphs S for irctd Graphs S for irctd Graphs Main problm: connctd graph may not giv a singl S tr orward dgs: (, 3) ack dgs: (, ) ross dgs: (6, ), (8, 7), (9, ), (9, 8), (4, ) Solution: Maintain a list of unmarkd vrtics. Whnvr on S tr is complt, choos an arbitrary unmarkd vrtx as th root for a nw tr. Main problm: connctd graph may not giv a singl S tr orward dgs: (, 3) ack dgs: (, ) ross dgs: (6, ), (8, 7), (9, ), (9, 8), (4, ) Solution: Maintain a list of unmarkd vrtics. Whnvr on S tr is complt, choos an arbitrary unmarkd vrtx as th root for a nw tr. : Thory of lgorithms Spring 4 9 / 4 irctd ycls Lmma 7.4: Lt G b a dirctd graph. G has a dirctd cycl iff vry S of G producs a back dg. Proof: Suppos a S producs a back dg (v, w). v and w ar in th sam S tr, w an ancstor of v. (v, w) and th path in th tr from w to v form a dirctd cycl. Suppos G has a dirctd cycl. o a S on G. Lt w b th vrtx of with smallst S numbr. Lt (v, w) b th dg of coming into w. v is a dscndant of w in a S tr. Thrfor, (v, w) is a back dg. : Thory of lgorithms Spring 4 96 / 4 irctd ycls S arlir lmma. irctd ycls Lmma 7.4: Lt G b a dirctd graph. G has a dirctd cycl iff vry S of G producs a back dg. Proof: Suppos a S producs a back dg (v, w). v and w ar in th sam S tr, w an ancstor of v. (v, w) and th path in th tr from w to v form a dirctd cycl. Suppos G has a dirctd cycl. o a S on G. Lt w b th vrtx of with smallst S numbr. Lt (v, w) b th dg of coming into w. v is a dscndant of w in a S tr. Thrfor, (v, w) is a back dg.
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 informationStrongly 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 informationWeek 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 informationThe Equitable Dominating Graph
Intrnational Journal of Enginring Rsarch and Tchnology. ISSN 0974-3154 Volum 8, Numbr 1 (015), pp. 35-4 Intrnational Rsarch Publication Hous http://www.irphous.com Th Equitabl Dominating Graph P.N. Vinay
More informationAnalysis of Algorithms - Elementary graphs algorithms -
Analysis of Algorithms - Elmntary graphs algorithms - Anras Ermahl MRTC (Mälaralns Ral-Tim Rsach Cntr) anras.rmahl@mh.s Autumn 00 Graphs Graphs ar important mathmatical ntitis in computr scinc an nginring
More informationAnalysis of Algorithms - Elementary graphs algorithms -
Analysis of Algorithms - Elmntary graphs algorithms - Anras Ermahl MRTC (Mälaralns Ral-Tim Rsarch Cntr) anras.rmahl@mh.s Autumn 004 Graphs Graphs ar important mathmatical ntitis in computr scinc an nginring
More information1 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 informationFrom Elimination to Belief Propagation
School of omputr Scinc Th lif Propagation (Sum-Product lgorithm Probabilistic Graphical Modls (10-708 Lctur 5, Sp 31, 2007 Rcptor Kinas Rcptor Kinas Kinas X 5 ric Xing Gn G T X 6 X 7 Gn H X 8 Rading: J-hap
More informationpriority queue ADT heaps 1
COMP 250 Lctur 23 priority quu ADT haps 1 Nov. 1/2, 2017 1 Priority Quu Li a quu, but now w hav a mor gnral dinition o which lmnt to rmov nxt, namly th on with highst priority..g. hospital mrgncy room
More informationcycle that does not cross any edges (including its own), then it has at least
W prov th following thorm: Thorm If a K n is drawn in th plan in such a way that it has a hamiltonian cycl that dos not cross any dgs (including its own, thn it has at last n ( 4 48 π + O(n crossings Th
More informationOn 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 informationFinding low cost TSP and 2-matching solutions using certain half integer subtour vertices
Finding low cost TSP and 2-matching solutions using crtain half intgr subtour vrtics Sylvia Boyd and Robrt Carr Novmbr 996 Introduction Givn th complt graph K n = (V, E) on n nods with dg costs c R E,
More informationComputing 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 informationExamples 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 informationPropositional Logic. Combinatorial Problem Solving (CPS) Albert Oliveras Enric Rodríguez-Carbonell. May 17, 2018
Propositional Logic Combinatorial Problm Solving (CPS) Albrt Olivras Enric Rodríguz-Carbonll May 17, 2018 Ovrviw of th sssion Dfinition of Propositional Logic Gnral Concpts in Logic Rduction to SAT CNFs
More informationMinimum Spanning Trees
Minimum Spnning Trs Minimum Spnning Trs Problm A town hs st of houss nd st of rods A rod conncts nd only houss A rod conncting houss u nd v hs rpir cost w(u, v) Gol: Rpir nough (nd no mor) rods such tht:
More informationAddition 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 informationUNTYPED LAMBDA CALCULUS (II)
1 UNTYPED LAMBDA CALCULUS (II) RECALL: CALL-BY-VALUE O.S. Basic rul Sarch ruls: (\x.) v [v/x] 1 1 1 1 v v CALL-BY-VALUE EVALUATION EXAMPLE (\x. x x) (\y. y) x x [\y. y / x] = (\y. y) (\y. y) y [\y. y /
More informationFinal 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 informationRoadmap. 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 informationRandom Process Part 1
Random Procss Part A random procss t (, ζ is a signal or wavform in tim. t : tim ζ : outcom in th sampl spac Each tim w rapat th xprimnt, a nw wavform is gnratd. ( W will adopt t for short. Tim sampls
More informationSlide 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 informationAddition 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 informationSearch 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 informationSquare 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 informationCoupled Pendulums. Two normal modes.
Tim Dpndnt Two Stat Problm Coupld Pndulums Wak spring Two normal mods. No friction. No air rsistanc. Prfct Spring Start Swinging Som tim latr - swings with full amplitud. stationary M +n L M +m Elctron
More information10. 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 informationSection 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 informationInternational Journal of Scientific & Engineering Research, Volume 6, Issue 7, July ISSN
Intrnational Journal of Scintific & Enginring Rsarch, Volum 6, Issu 7, July-25 64 ISSN 2229-558 HARATERISTIS OF EDGE UTSET MATRIX OF PETERSON GRAPH WITH ALGEBRAI GRAPH THEORY Dr. G. Nirmala M. Murugan
More informationNetwork Congestion Games
Ntwork Congstion Gams Assistant Profssor Tas A&M Univrsity Collg Station, TX TX Dallas Collg Station Austin Houston Bst rout dpnds on othrs Ntwork Congstion Gams Travl tim incrass with congstion Highway
More informationSOME 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 informationCombinatorial 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 informationChapter 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 informationSupplementary 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 informationCPSC 665 : An Algorithmist s Toolkit Lecture 4 : 21 Jan Linear Programming
CPSC 665 : An Algorithmist s Toolkit Lctur 4 : 21 Jan 2015 Lcturr: Sushant Sachdva Linar Programming Scrib: Rasmus Kyng 1. Introduction An optimization problm rquirs us to find th minimum or maximum) of
More informationPipe flow friction, small vs. big pipes
Friction actor (t/0 t o pip) Friction small vs larg pips J. Chaurtt May 016 It is an intrsting act that riction is highr in small pips than largr pips or th sam vlocity o low and th sam lngth. Friction
More information1 A lower bound. Lecture notes: Online bipartite matching algorithms
Cornll Univrsity, Fall 217 Lctur nots: Onlin bipartit matching algorithms CS 682: Algorithms 6 8 Spt In practic whn dsigning algorithms, it is oftn th cas that th input is a stram of data arriving ovr
More informationa g f 8 e 11 Also: Minimum degree, maximum degree, vertex of degree d 1 adjacent to vertex of degree d 2,...
Warmup: Lt b 2 c 3 d 1 12 6 4 5 10 9 7 a 8 11 (i) Vriy tat G is connctd by ivin an xampl o a walk rom vrtx a to ac o t vrtics b. (ii) Wat is t sortst pat rom a to c? to? (iii) Wat is t lonst pat rom a
More informationProblem 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 informationAbstract 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 informationWhere 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 informationA Propagating Wave Packet Group Velocity Dispersion
Lctur 8 Phys 375 A Propagating Wav Packt Group Vlocity Disprsion Ovrviw and Motivation: In th last lctur w lookd at a localizd solution t) to th 1D fr-particl Schrödingr quation (SE) that corrsponds to
More informationThat is, we start with a general matrix: And end with a simpler matrix:
DIAGON ALIZATION OF THE STR ESS TEN SOR INTRO DUCTIO N By th us of Cauchy s thorm w ar abl to rduc th numbr of strss componnts in th strss tnsor to only nin valus. An additional simplification of th strss
More informationCOMPUTER GENERATED HOLOGRAMS Optical Sciences 627 W.J. Dallas (Monday, April 04, 2005, 8:35 AM) PART I: CHAPTER TWO COMB MATH.
C:\Dallas\0_Courss\03A_OpSci_67\0 Cgh_Book\0_athmaticalPrliminaris\0_0 Combath.doc of 8 COPUTER GENERATED HOLOGRAS Optical Scincs 67 W.J. Dallas (onday, April 04, 005, 8:35 A) PART I: CHAPTER TWO COB ATH
More informationMutually 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 informationHardy-Littlewood Conjecture and Exceptional real Zero. JinHua Fei. ChangLing Company of Electronic Technology Baoji Shannxi P.R.
Hardy-Littlwood Conjctur and Excptional ral Zro JinHua Fi ChangLing Company of Elctronic Tchnology Baoji Shannxi P.R.China E-mail: fijinhuayoujian@msn.com Abstract. In this papr, w assum that Hardy-Littlwood
More informationHydrogen Atom and One Electron Ions
Hydrogn Atom and On Elctron Ions Th Schrödingr quation for this two-body problm starts out th sam as th gnral two-body Schrödingr quation. First w sparat out th motion of th cntr of mass. Th intrnal potntial
More informationSundials and Linear Algebra
Sundials and Linar Algbra M. Scot Swan July 2, 25 Most txts on crating sundials ar dirctd towards thos who ar solly intrstd in making and using sundials and usually assums minimal mathmatical background.
More informationHomework #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 informationSolution of Assignment #2
olution of Assignmnt #2 Instructor: Alirza imchi Qustion #: For simplicity, assum that th distribution function of T is continuous. Th distribution function of R is: F R ( r = P( R r = P( log ( T r = P(log
More informationEECE 301 Signals & Systems Prof. Mark Fowler
EECE 301 Signals & Systms Prof. Mark Fowlr ot St #21 D-T Signals: Rlation btwn DFT, DTFT, & CTFT 1/16 W can us th DFT to implmnt numrical FT procssing This nabls us to numrically analyz a signal to find
More informationEEO 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 informationSECTION where P (cos θ, sin θ) and Q(cos θ, sin θ) are polynomials in cos θ and sin θ, provided Q is never equal to zero.
SETION 6. 57 6. Evaluation of Dfinit Intgrals Exampl 6.6 W hav usd dfinit intgrals to valuat contour intgrals. It may com as a surpris to larn that contour intgrals and rsidus can b usd to valuat crtain
More informationLinked-List Implementation. Linked-lists for two sets. Multiple Operations. UNION Implementation. An Application of Disjoint-Set 1/9/2014
Disjoint Sts Data Strutur (Chap. 21) A disjoint-st is a olltion ={S 1, S 2,, S k } o distint dynami sts. Eah st is idntiid by a mmbr o th st, alld rprsntativ. Disjoint st oprations: MAKE-SET(x): rat a
More informationChapter Finding Small Vertex Covers. Extending the Limits of Tractability. Coping With NP-Completeness. Vertex Cover
Coping With NP-Compltnss Chaptr 0 Extning th Limits o Tractability Q. Suppos I n to solv an NP-complt problm. What shoul I o? A. Thory says you'r unlikly to in poly-tim algorithm. Must sacriic on o thr
More informationDerangements and Applications
2 3 47 6 23 Journal of Intgr Squncs, Vol. 6 (2003), Articl 03..2 Drangmnts and Applications Mhdi Hassani Dpartmnt of Mathmatics Institut for Advancd Studis in Basic Scincs Zanjan, Iran mhassani@iasbs.ac.ir
More informationDealing 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 informationHigher-Order Discrete Calculus Methods
Highr-Ordr Discrt Calculus Mthods J. Blair Prot V. Subramanian Ralistic Practical, Cost-ctiv, Physically Accurat Paralll, Moving Msh, Complx Gomtry, Slid 1 Contxt Discrt Calculus Mthods Finit Dirnc Mimtic
More informationFunction 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 information2. Laser physics - basics
. Lasr physics - basics Spontanous and stimulatd procsss Einstin A and B cofficints Rat quation analysis Gain saturation What is a lasr? LASER: Light Amplification by Stimulatd Emission of Radiation "light"
More information(1) Then we could wave our hands over this and it would become:
MAT* K285 Spring 28 Anthony Bnoit 4/17/28 Wk 12: Laplac Tranform Rading: Kohlr & Johnon, Chaptr 5 to p. 35 HW: 5.1: 3, 7, 1*, 19 5.2: 1, 5*, 13*, 19, 45* 5.3: 1, 11*, 19 * Pla writ-up th problm natly and
More informationOutlines: Graphs Part-4. Applications of Depth-First Search. Directed Acyclic Graph (DAG) Generic scheduling problem.
Outlins: Graps Part-4 Applications o DFS Elmntary Grap Aloritms Topoloical Sort o Dirctd Acyclic Grap Stronly Connctd Componnts PART-4 1 2 Applications o Dpt-First Sarc Topoloical Sort: Usin dpt-irst sarc
More informationMor 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 informationY 0. Standing Wave Interference between the incident & reflected waves Standing wave. A string with one end fixed on a wall
Staning Wav Intrfrnc btwn th incint & rflct wavs Staning wav A string with on n fix on a wall Incint: y, t) Y cos( t ) 1( Y 1 ( ) Y (St th incint wav s phas to b, i.., Y + ral & positiv.) Rflct: y, t)
More informationQuasi-Classical States of the Simple Harmonic Oscillator
Quasi-Classical Stats of th Simpl Harmonic Oscillator (Draft Vrsion) Introduction: Why Look for Eignstats of th Annihilation Oprator? Excpt for th ground stat, th corrspondnc btwn th quantum nrgy ignstats
More informationAS 5850 Finite Element Analysis
AS 5850 Finit Elmnt Analysis Two-Dimnsional Linar Elasticity Instructor Prof. IIT Madras Equations of Plan Elasticity - 1 displacmnt fild strain- displacmnt rlations (infinitsimal strain) in matrix form
More informationThe 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 informationMCE503: Modeling and Simulation of Mechatronic Systems Discussion on Bond Graph Sign Conventions for Electrical Systems
MCE503: Modling and Simulation o Mchatronic Systms Discussion on Bond Graph Sign Convntions or Elctrical Systms Hanz ichtr, PhD Clvland Stat Univrsity, Dpt o Mchanical Enginring 1 Basic Assumption In a
More informationCS 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 informationGEOMETRICAL PHENOMENA IN THE PHYSICS OF SUBATOMIC PARTICLES. Eduard N. Klenov* Rostov-on-Don, Russia
GEOMETRICAL PHENOMENA IN THE PHYSICS OF SUBATOMIC PARTICLES Eduard N. Klnov* Rostov-on-Don, Russia Th articl considrs phnomnal gomtry figurs bing th carrirs of valu spctra for th pairs of th rmaining additiv
More informationSCHUR S THEOREM REU SUMMER 2005
SCHUR S THEOREM REU SUMMER 2005 1. Combinatorial aroach Prhas th first rsult in th subjct blongs to I. Schur and dats back to 1916. On of his motivation was to study th local vrsion of th famous quation
More information4.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 informationThe 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 informationGeneral Notes About 2007 AP Physics Scoring Guidelines
AP PHYSICS C: ELECTRICITY AND MAGNETISM 2007 SCORING GUIDELINES Gnral Nots About 2007 AP Physics Scoring Guidlins 1. Th solutions contain th most common mthod of solving th fr-rspons qustions and th allocation
More informationIntroduction 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 informationWeak Unit Disk and Interval Representation of Graphs
Wak Unit Disk and Intrval Rprsntation o Graphs M. J. Alam, S. G. Kobourov, S. Pupyrv, and J. Toniskottr Dpartmnt o Computr Scinc, Univrsity o Arizona, Tucson, USA Abstract. W study a variant o intrsction
More informationLucas Test is based on Euler s theorem which states that if n is any integer and a is coprime to n, then a φ(n) 1modn.
Modul 10 Addtonal Topcs 10.1 Lctur 1 Prambl: Dtrmnng whthr a gvn ntgr s prm or compost s known as prmalty tstng. Thr ar prmalty tsts whch mrly tll us whthr a gvn ntgr s prm or not, wthout gvng us th factors
More informationThe 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 informationBrief Introduction to Statistical Mechanics
Brif Introduction to Statistical Mchanics. Purpos: Ths nots ar intndd to provid a vry quick introduction to Statistical Mchanics. Th fild is of cours far mor vast than could b containd in ths fw pags.
More informationApproximate 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 information4.5 Minimum Spanning Tree. Chapter 4. Greedy Algorithms. Minimum Spanning Tree. Applications
Chaptr. Minimum panning Tr Grdy Algorithms lids by Kvin Wayn. Copyright 200 Parson-Addison Wsly. All rights rsrvd. Minimum panning Tr Applications Minimum spanning tr. Givn a connctd graph G = (V, E) with
More informationChapter 13 Aggregate Supply
Chaptr 13 Aggrgat Supply 0 1 Larning Objctivs thr modls of aggrgat supply in which output dpnds positivly on th pric lvl in th short run th short-run tradoff btwn inflation and unmploymnt known as th Phillips
More informationEEO 401 Digital Signal Processing Prof. Mark Fowler
EEO 401 Digital Signal Procssing Prof. Mark Fowlr ot St #18 Introduction to DFT (via th DTFT) Rading Assignmnt: Sct. 7.1 of Proakis & Manolakis 1/24 Discrt Fourir Transform (DFT) W v sn that th DTFT is
More informationData Assimilation 1. Alan O Neill National Centre for Earth Observation UK
Data Assimilation 1 Alan O Nill National Cntr for Earth Obsrvation UK Plan Motivation & basic idas Univariat (scalar) data assimilation Multivariat (vctor) data assimilation 3d-Variational Mthod (& optimal
More informationy = 2xe x + x 2 e x at (0, 3). solution: Since y is implicitly related to x we have to use implicit differentiation: 3 6y = 0 y = 1 2 x ln(b) ln(b)
4. y = y = + 5. Find th quation of th tangnt lin for th function y = ( + ) 3 whn = 0. solution: First not that whn = 0, y = (1 + 1) 3 = 8, so th lin gos through (0, 8) and thrfor its y-intrcpt is 8. y
More informationorbiting electron turns out to be wrong even though it Unfortunately, the classical visualization of the
Lctur 22-1 Byond Bohr Modl Unfortunatly, th classical visualization of th orbiting lctron turns out to b wrong vn though it still givs us a simpl way to think of th atom. Quantum Mchanics is ndd to truly
More informationImage Filtering: Noise Removal, Sharpening, Deblurring. Yao Wang Polytechnic University, Brooklyn, NY11201
Imag Filtring: Nois Rmoval, Sharpning, Dblurring Yao Wang Polytchnic Univrsity, Brooklyn, NY http://wb.poly.du/~yao Outlin Nois rmoval by avraging iltr Nois rmoval by mdian iltr Sharpning Edg nhancmnt
More informationRecall that by Theorems 10.3 and 10.4 together provide us the estimate o(n2 ), S(q) q 9, q=1
Chaptr 11 Th singular sris Rcall that by Thorms 10 and 104 togthr provid us th stimat 9 4 n 2 111 Rn = SnΓ 2 + on2, whr th singular sris Sn was dfind in Chaptr 10 as Sn = q=1 Sq q 9, with Sq = 1 a q gcda,q=1
More informationLearning Spherical Convolution for Fast Features from 360 Imagery
Larning Sphrical Convolution for Fast Faturs from 36 Imagry Anonymous Author(s) 3 4 5 6 7 8 9 3 4 5 6 7 8 9 3 4 5 6 7 8 9 3 3 3 33 34 35 In this fil w provid additional dtails to supplmnt th main papr
More informationThus, because if either [G : H] or [H : K] is infinite, then [G : K] is infinite, then [G : K] = [G : H][H : K] for all infinite cases.
Homwork 5 M 373K Solutions Mark Lindbrg and Travis Schdlr 1. Prov that th ring Z/mZ (for m 0) is a fild if and only if m is prim. ( ) Proof by Contrapositiv: Hr, thr ar thr cass for m not prim. m 0: Whn
More informationRandom Access Techniques: ALOHA (cont.)
Random Accss Tchniqus: ALOHA (cont.) 1 Exampl [ Aloha avoiding collision ] A pur ALOHA ntwork transmits a 200-bit fram on a shard channl Of 200 kbps at tim. What is th rquirmnt to mak this fram collision
More informationph People Grade Level: basic Duration: minutes Setting: classroom or field site
ph Popl Adaptd from: Whr Ar th Frogs? in Projct WET: Curriculum & Activity Guid. Bozman: Th Watrcours and th Council for Environmntal Education, 1995. ph Grad Lvl: basic Duration: 10 15 minuts Stting:
More informationApproximation and Inapproximation for The Influence Maximization Problem in Social Networks under Deterministic Linear Threshold Model
20 3st Intrnational Confrnc on Distributd Computing Systms Workshops Approximation and Inapproximation for Th Influnc Maximization Problm in Social Ntworks undr Dtrministic Linar Thrshold Modl Zaixin Lu,
More information4. Money cannot be neutral in the short-run the neutrality of money is exclusively a medium run phenomenon.
PART I TRUE/FALSE/UNCERTAIN (5 points ach) 1. Lik xpansionary montary policy, xpansionary fiscal policy rturns output in th mdium run to its natural lvl, and incrass prics. Thrfor, fiscal policy is also
More informationu 3 = u 3 (x 1, x 2, x 3 )
Lctur 23: Curvilinar Coordinats (RHB 8.0 It is oftn convnint to work with variabls othr than th Cartsian coordinats x i ( = x, y, z. For xampl in Lctur 5 w mt sphrical polar and cylindrical polar coordinats.
More informationDavisson Germer experiment Announcements:
Davisson Grmr xprimnt Announcmnts: Homwork st 7 is du Wdnsday. Problm solving sssions M3-5, T3-5. Th 2 nd midtrm will b April 7 in MUEN E0046 at 7:30pm. BFFs: Davisson and Grmr. Today w will go ovr th
More informationExam 1. It is important that you clearly show your work and mark the final answer clearly, closed book, closed notes, no calculator.
Exam N a m : _ S O L U T I O N P U I D : I n s t r u c t i o n s : It is important that you clarly show your work and mark th final answr clarly, closd book, closd nots, no calculator. T i m : h o u r
More informationECE 344 Microwave Fundamentals
ECE 44 Microwav Fundamntals Lctur 08: Powr Dividrs and Couplrs Part Prpard By Dr. hrif Hkal 4/0/08 Microwav Dvics 4/0/08 Microwav Dvics 4/0/08 Powr Dividrs and Couplrs Powr dividrs, combinrs and dirctional
More informationFirst order differential equation Linear equation; Method of integrating factors
First orr iffrntial quation Linar quation; Mtho of intgrating factors Exampl 1: Rwrit th lft han si as th rivativ of th prouct of y an som function by prouct rul irctly. Solving th first orr iffrntial
More informationChemical Physics II. More Stat. Thermo Kinetics Protein Folding...
Chmical Physics II Mor Stat. Thrmo Kintics Protin Folding... http://www.nmc.ctc.com/imags/projct/proj15thumb.jpg http://nuclarwaponarchiv.org/usa/tsts/ukgrabl2.jpg http://www.photolib.noaa.gov/corps/imags/big/corp1417.jpg
More information