Shortcomings with Tree-Structured Edge Encodings for Neural Networks

Size: px
Start display at page:

Download "Shortcomings with Tree-Structured Edge Encodings for Neural Networks"

Transcription

1 Shortcomings with Tree-Structured Edge Encodings for Neurl Networks Gregory S. Horny QSS Group Inc., NASA Ames Reserch Center Mil Stop 269-3, Moffett Field, CA Astrct. In evolutionry lgorithms common method for encoding neurl networks is to use tree-structured ssemly procedure for constructing them. Since node opertors hve difficulties in specifying edge weights nd these opertors re execution-order dependent, n lterntive is to use edge opertors. Here we identify three prolems with edge opertors: in the initiliztion phse most rndomly creted genotypes produce n incorrect numer of inputs nd outputs; vrition opertors cn esily chnge the numer of input/output (I/O) units; nd units hve connectivity is sed on their order of cretion. Insted of creting I/O nodes s prt of the construction process we propose using prmeterized opertors to connect to pre-existing I/O units. Results from experiments show tht these prmeterized opertors gretly improve the proility of creting nd mintining networks with the correct numer of I/O units, remove the connectivity is with I/O units nd produce etter controllers for gol-scoring tsk. 1 Introduction Neurl networks re one of the more common types of controllers used for rtificil cretures nd evolutionry rootics [1]. Since representtions tht directly encode the weights nd connections of network hve sclility prolems indirect representtions must e used for lrger networks lthough to chieve etter sclility the indirect representtion must llow for reuse of the genotype in creting the phenotype [2]. One type of indirect representtion tht is ecoming incresingly populr for encoding neurl networks is to use tree-structured genotype which specifies how to construct them. Advntges of indirect, treestructured representtions re tht they etter llow for vrile sized networks thn directly using weight mtrix, nd Genetic Progrmming style recomintion etween two trees is esier nd more meningful thn trying to swp su-networks with grph-structured representtion. One of the originl systems for encoding neurl networks in tree-structured ssemly procedures is cellulr encoding [3]. Yet cellulr encoding hs een found to hve shortcomings due to its use of node opertors: sutrees swpped through recomintion do not produce the sme sugrphs ecuse node opertors re execution-order dependent nd specifying connection weights is pro- K. De et l. (Eds.): GECCO 2004, LNCS 3103, pp , c Springer-Verlg Berlin Heidelerg 2004

2 496 G.S. Horny lemtic since node opertors cn crete n ritrry numer of edges [4]. Consequently, of growing interest is the use of edge-encoding commnds in which opertors ct on edges insted of nodes [5,6,7]. In this pper we point out three different shortcomings of edge-encoding lnguges. First, regrdless of whether the first N nodes re tken s input/output (I/O) units or if specil node-construction commnds re used for creting I/O units, when creting n initil popultion it is difficult to ensure tht rndomly creted genotypes hve the correct numer of them. A second prolem is tht s evolution proceeds the vrition opertors hve high proility of chnging the genotype so tht it produces networks with incorrect numers of I/O units. Finlly, more serious prolem with tree-structured ssemly procedures is the node cretion-order connectivity is (NCOCB). The NCOCB prolem is tht nodes creted from edge opertors t the ottom of the genotype will hve only single input nd output, wheres nodes creted from opertors higher up in the genotype will hve connectivity proportionl to 2 height. One wy to ddress the prolems of producing the correct numer of I/O nodes nd the NCOCB with I/O nodes is y chnging the construction lnguge. Rther thn hving commnds in the lnguge for creting new I/O unit, or ssigning the Nth creted unit s the ith I/O unit, we propose strting network construction with the desired numer of I/O units nd then using prmeterized-connection opertors for dding edges to these units. Prolems in creting nd mintining networks with the correct numer of I/O units re reduced since ll networks strt with the desired numer nd no commnds exist for creting/removing them. Also, prmeterized connection commnds men tht the expected numer of connections for ll I/O units is equl for rndomly creted genotypes nd does not suffer from the NCOCB. In the following sections we first descrie cnonicl method for using edge encoding opertors to represent neurl networks s well s our prmeterized opertors for connecting to I/O units. Next we present our experiments which show the different ises with stndrd edge-encoding opertors nd demonstrte tht evolution with the prmeterized opertors for connecting to I/O units produces etter controllers on gol-scoring tsk. Finlly we close with discussion on the underlying prolem with edge opertors nd tree-structured representtions nd conclusion in which we restte our findings. 2 Encoding Neurl-Networks In this section fter descriing the type of neurl networks tht we wnt to evolve we then descrie tree-structured representtion for encoding them, followed y two different methods for hndling input nd output (I/O) units. The first method for hndling I/O units uses stndrd edge-encoding lnguge (SEEL) nd hs specil commnds for creting I/O nodes. Since this method hs prolems in creting the correct numer of I/O nodes nd lso hs node cretion-order connectivity is (NCOCB) we then descrie second method for hndling I/O units. In this second method the initil network strts with

3 Shortcomings with Tree-Structured Edge Encodings for Neurl Networks 497 the desired numer of I/O units nd opertors in the lnguge connect to them using opertor prmeters to specify which unit to connect to (PEEL, for prmeterized edge-encoding lnguge). 2.1 Neurl Network Architecture The neurl networks used in these experiments re continuous-time, recurrent networks similr to those of Beer nd Gllgher [8], nd of our previous work [9,10]. Ech non-input neuron hs n input is, θ, nd time constnt, τ. The ctivtion vlue of non-input neuron i t time t is: ( ) i,t = τ i i,t 1 +(1 τ)tnh W ji j,t 1 + θ i (1) For input neurons, their ctivtion vlue is the vlue of the corresponding sensor. j 2.2 Creting Network from Tree The different methods for encoding neurl networks or grphs with treestructured ssemly procedure ll strt with single node nd edge nd then new nodes/edges re dded y executing the opertors in the ssemly procedure. Using n edge-encoding lnguge in which grph-construction opertors ct on the edge connecting from unit A to unit B, typicl set of commnds re s follows. dd reverse cretes link from B to A. dd split(n) cretes new neuron, C, with is of θ = n, nd dds new link from A to C nd cretes new edge connecting from neuron C to neuron B. The is of this node is set to θ = n, nd the time constnt is set to zero. dd split cont(m, n) cts the sme s dd split(), only it cretes continuous time neuron with is of θ = m nd time constnt of τ = n. connect cretes new link from neuron A to neuron B. dest to next chnges the to-neuron in the current link to its next siling. loop cretes new link from neuron B to itself. The no-op commnd performs no opertion. set weight(n) sets the weight of the current link to n. source to next chnges the from-neuron in the current link to its next siling. source to prent chnges the from-neuron in the current link to the inputneuron of the current from-neuron. Of these commnds dd split(n) nd dd split cont(m, n) hve exctly three children commnds since fter their execution the edge they ct on ecomes three edges. The set weight(n) commnd hs no children, consequently it is lwys lef node nd the no-op hs either zero or one children so it cn e either lef node nd hlt the development of the grph on the current edge,

4 498 G.S. Horny or it cn e used to dely execution on the current edge for round llowing time for the rest of the grph to develop more. The rest of the commnds result in the ddition of single new edge to the grph so they hve exctly two children commnds: one to continue grph construction long the originl edge one commnd to construction long the new edge. Using the commnds descried ove the sequence of grphs from figure 1-i shows the construction of network from the genotype in figure 1.. Grphs re constructed from this genotype y strting with single neuron linked to itself, figure 1., nd executing the commnds in the ssemly procedure in redthfirst order. First, executing split(0.01) dds node with is of 0.01 nd pir of links, figure 1.c. The commnd set-weight() sets the weight of the link to, no-op performs no opertion, nd then split(0.02) results in the cretion of neuron c with is of 0.02 nd two more links, figure 1.d. Source-to-prent cretes second link, nd set-weight(0.2) sets the weight of the link to 0.2, figure 1.e. The second source-to-prent commnd cretes the link c, executing set-weight(0.3) sets the weight of the link c to 0.3 nd set-weight(-0.2) results in weight of -0.2 ssigned to the link, figure 1.f. The source-to-next commnd results in the link eing creted, figure 1.g. The commnd set-weight(0.4) sets the weight of link c to 0.4 nd then executing connect cretes n dditionl link c, figure 1.h. Executing set-weight(0.5) sets the weight of link to 0.5, set-weight(0.6) sets the weight of link to 0.6, no-op sets the weight of link to 0.0, nd set-weight(0.7) sets the weight of link c to 0.7, figure 1.i. In ddition, fter ll tree-construction opertors hve een executed, there is pruning phse tht consolidtes the weights of links with the sme source nd destintion neurons, figure 1.j, nd removes hidden neurons tht re not on directed pth to n output neuron. 2.3 Stndrd Edge Encoding Lnguge The grph-construction lnguge of the previous su-section cn e used to crete neurl networks either y ssigning the first n units s I/O units or y dding commnds specificlly for creting I/O units. Assigning ritrry units to e I/O units hs the drwck tht chnges in the genotype cn dd/delete units in the network so tht units shift position nd wht ws the ith input unit in the prent ecomes the i + 1 input unit in the child. To void this disruption the SEEL we use hs specilized commnds for creting I/O units. I/O units re creted through the use of the dd input nd output split(n) commnds. Since these re edge opertors, we lel the edge they re ssocited with to e from the vertex A to the vertex B. Executing the dd input commnd cretes new input unit nd n edge connecting from this unit to A. Output units re creted with the output split(n) commnd, which performs split on the existing edge nd the newly creted neuron is set s n output unit with is of θ = n.

5 Shortcomings with Tree-Structured Edge Encodings for Neurl Networks 499 split(0.01) set weight() source to prent no op split(0.02) set weight(0.2) set weight(0.3) source to prent set weight( 0.2) source next set weight(0.4) connect set weight(0.5) set weight(0.6) () no op set weight(0.7) () (c) (d) c c c (e) (f) (g) 0.3 c c c c (h) (i) (j) Fig. 1. A tree-structured encoding of network (), with dshed-lines to seprte the lyers, nd (-j) construction of the network it encodes.

6 500 G.S. Horny 2.4 Prmetric Edge Encoding Lnguge A method to remove the connectivity is with I/O nodes is y hving these nodes exist in the initil grph nd then dding connections to them, such s with the commnds connect input(i) nd connect output(i). Leling the current edge s connecting from unit A to unit B, connect input(i) cretes link from the ith input neuron to B nd connect output(i) cretes link from B to the ith output neuron. Since ech of these commnds cretes new edge, oth commnds hve exctly two children opertors: one to continue network construction long the originl edge nd one to construct long the new edge. 3 Experiments In this section we present our experiments compring SEEL with PEEL. First we show tht rndomly creted genotypes using SEEL hve prolems producing networks with the desired numer of I/O neurons wheres this prolem is gretly reduced when using PEEL. Next we show tht networks encoded with PEEL re more roust to mintining the correct numer of I/O units under muttion nd recomintion thn re networks encoded with SEEL. In our third set of experiments we demonstrte the existence of the node cretion-order connectivity is. Finlly, we demonstrte tht using PEEL results in etter neurl-controllers for the evolution of gol-scoring ehvior. 3.1 Initiliztion Comprison One enefit of strting with the desired numer of I/O neurons is tht rndomly creted, network-constructing, ssemly procedures re more likely to hve the correct numer of I/O neurons. This cn e shown y compring the numer of vlid networks creted using oth network construction lnguges. A network is considered vlid if it hs four input neurons nd four output neurons (ritrry vlues selected for this experiment) nd for ech input neuron there is pth to t lest one output neuron nd ech output neuron is on pth from t lest one input neuron. Tle 1 shows the numer of vlid networks creted from ten thousnd rndomly creted ssemly procedures for vrious tree depths. From this tle it cn e seen tht vlid networks re significntly more likely to e creted with PEEL thn with SEEL. The reson PEEL does not score 100% even though it strts with the correct numer of I/O neurons is ecuse some input neurons my not e on pth to n output neuron. 3.2 Vrition Comprison In ddition to the prolem of creting initil individuls with the correct numer of I/O units, SEELs hve difficulty mintining these numers under muttion nd recomintion. To show tht PEELs etter mintin vlid networks we compre the numer of networks tht still hve four inputs nd four outputs fter muttion nd recomintion from vlid prents.

7 Shortcomings with Tree-Structured Edge Encodings for Neurl Networks 501 Tle 1. Numer of vlid networks generted out of ten thousnd rndomly creted tree-structured ssemly procedures. Depth SEEL PEEL For this comprison the muttion opertor modifies n individul y chnging one symol with nother, perturing the prmeter vlue of symol, dding/deleting some symols, or recomining n individul with itself. Two types of recomintion re used, with equl proility of using one or the other. The first recomintion opertor is the stndrd GP recomintion tht swps rndom sutrees etween prents [11]. The second recomintion opertor is similr to one-point crossover [12] nd we cll it mtched recomintion (MR). MR works y lining up two trees nd, strting t the root, mtches up the children nodes y type nd rgument vlues, finds the loctions t which sutrees differ nd then picks one of these plces t rndom to swp. Since rndom trees of depth seven produced the most vlid networks with SEEL, we compred ten thousnd muttions nd recomintions etween SEEL nd PEEL on vlid, rndomly creted individuls. With SEEL muttion hd success rte of 84.8% nd recomintion hd success rte of 79.2%. In comprison, with PEEL muttion produced vlid children 93.5% of the time nd recomintion did so 89.5% of them. These results show tht networks encoded with PEEL re more roust to vrition opertors. 3.3 Node Cretion Order Connectivity Bis A more serious prolem with tree-structured ssemly procedures is the node cretion-order connectivity is (NCOCB). Nodes creted from commnds erly in the construction process tend to hve greter numer of edges into nd out of them then nodes creted lter in the the process. One consequence of this is is tht I/O neurons tht re creted erly in the construction process will hve significntly higher numer of outputs/inputs thn those I/O neurons creted t the end of the construction process. The grph in figure 2. shows the verge connectivity (sum of inputs nd outputs) of node plotted ginst its cretion order. From this grph it cn e seen tht nodes creted erlier in the construction process hve more connections thn those creted lter nd most nodes only hve two connections: one input nd one output link. Thus if I/O nodes re creted y the tree-structured ssemly procedure, the first I/O nodes will hve significntly more inputs/outputs from/to them thn those creted lter in the construction process. For input neurons, this suggests tht the first inputs re likely to hve greter influence on the ehvior of the network thn the ltter inputs nd for output neurons this suggests tht more processing of inputs is hppening for the ctivtion vlues of the first output neurons thn for the ltter output neurons.

8 502 G.S. Horny connectivity depth 25 depth 20 depth 15 depth 10 depth neuron cretion numer () numer of nodes connectivity () depth 25 depth 20 depth 15 depth 10 depth 5 Fig. 2. Grphs of () the verge node connectivity y order of cretion, nd () the numer of nodes with given connectivity for rndomly creted individuls. Becuse the connectivity of node is strongly ised y its height in the treestructured ssemly procedure nd since most commnds re ner the leves in the tree this results in is in the distriution of the numer of nodes with given connectivity. Most nodes in the network will hve connectivity of two one input nd one output nd the numer of nodes with given connectivity decreses exponentilly (figure 2.). 3.4 Comprison on Evolving Gol-Scoring Behvior While PEEL hs een shown to e etter thn SEEL for removing vrious ises, of prcticl importnce is whether evolution with PEEL produces etter controllers thn evolution with SEEL. To test this we evolve neurl-controllers for gol-scoring tsk. Gol-scoring tkes plce in computer-simulted, 275x152.5 wlled, soccer field with gols t ech end (figure 3.). Inside the soccer field is two-wheeled, soccer plyer which hs seven sensor inputs (three sensors to detect distnce to the wll (one pointing directly in front nd the other two t 30 to the left nd right), nd four sensors tht return ngle to the ll, distnce to the ll, ngle to the gol nd distnce to the gol) nd two outputs (desired wheel-speed for the left nd right wheels) (figure 3.). Evluting n individul consists of summing the score from eight trils, two ech with the ll initilly plced in ech of the four corners of the field, nd the soccer-plyer plced in the middle of the field. Initil loctions for oth the plyer nd ll re pertured y smll rndom mount nd then the plyer is given 60 seconds (t 30fps this results in 1800 network updtes) to score s mny gols s it cn. For ech gol scored the distnce from the vehicle s strting position to the ll plus the distnce from the ll s initil loction to the gol is dded to the network s score. After gol is scored the ll is rndomly locted t the center of the field (±30, ±30), the minimum distnces to the ll nd to

9 Shortcomings with Tree-Structured Edge Encodings for Neurl Networks 503 Bll sensor Gol sensor Wll sensors () () Fig. 3. () The soccer field nd () the soccer plyer nd its sensors. the gol re reset, nd the network is llowed to try to score nother gol. Once time runs out, network s score is incresed y how much closer it moved the plyer to the ll nd how much closer it moved the ll to the gol. In ddition, if the plyer scores n own-gol, its score is reduced y the distnce it moved the ll from its strting position to the gol. To perform these experiments the EA ws run on Linux-PC with evlutions frmed out to five PlySttion R 2 1 development systems. Ech experiment consisted of evolving fifty individuls for fifty genertions. A genertionl EA ws used nd new individuls were creted with equl proility of either muttion or recomintion nd n elitism of three. Evluting one genertion of fifty individuls took pproximtely four minutes. The results of experiments re shown in figure 4 nd show tht evolution with PEEL produces soccer plyers lmost twice s fit s with SEEL SEEL PEEL 2000 fitness genertion Fig. 4. Fitness of the est evolved gol-scores verged over four trils. 1 PlySttion is registered trdemrk of Sony Computer Entertinment Inc.

10 504 G.S. Horny The higher fitness of networks encoded with PEEL is reflected in the ehviors produced y these networks. Networks encoded with SEEL produced soccer plyers tht tended to spin in plce nd move wkwrdly or in looping pttern. These networks only moved towrd the ll somewht hphzrdly nd generlly did not pper to e iming their shots. In contrst, networks encoded with PEEL would move to position themselves on the other side of the ll from the gol nd then either push the ll towrd the gol or spin to kick it towrd the gol. The est of these networks seldom missed in its shots nd n exmple of its ehvior is shown in the sequence of imges in figure 5. 4 Discussion While the results of the experiments section show tht vrious ises hold for the edge-encoding lnguges presented here, of interest is the degree to which these ises exist in other edge-encoding lnguges. The edge-encoding lnguge of section 2 differs from Luke s [4] in tht edges re not explicitly deleted, rther they dispper if they re not ssigned weight, nd the split commnd does not delete the link when it cretes the new neuron c nd links c nd c. A commnd for explicitly deleting links would not necessrily chnge the ises in resulting networks since the no-op commnd with no children hs the sme effect. In contrst, since the split opertor used here dds links to existing neurons without removing ny, it should produce lrger is thn Luke s split opertor. Although the differences in opertors etween different edge encoding lnguges ffect the degree of connectivity is tht cn e expected, the min cuse of the ises is the tree-structure of the representtion. When neuron is creted it hs single input nd output edge. Since edge opertors cn dd one input or output to n existing neuron (except for the loop commnd, which dds oth n input nd n output) the expected connectivity of neuron is on the order of 2 height. Since PEEL only ddresses the NCOCB for I/O units nd does not scle for lrge networks the direction to go for ddressing the vrious shortcomings of edge encodings is not cler. One wy to remove the NCOCB is to chnge from tree-structured to grph-structured genotypes, ut then there re difficulties in creting meningful recomintion opertors. Another wy is to switch to opertors in which the connectivity of new node is not dependent on its depth in the genotype; ut these would e node opertors which hve their own shortcomings [4]. 5 Conclusion In this pper we identified three shortcomings with typicl edge encoding opertors for representing neurl networks: individuls creted t rndom in the initiliztion phse do not usully hve the correct numer of inputs/outputs; vrition opertors cn esily chnge the numer input/output neurons; nd the node cretion-order connectivity is (NCOCB). To ddress these prolems we

11 Shortcomings with Tree-Structured Edge Encodings for Neurl Networks 505 () () (c) (d) (e) (f) Fig. 5. An evolved gol-scorer in ction: ()-(c) the soccer-plyer circles round the ll; (d) it pushes the ll towrd the gol; (e)-(f), while the ll is going into the gol the plyer moves to the center of the field where the ll will re-pper fter the gol is scored. proposed using prmeterized opertors for connecting to input/output units nd demonstrted tht evolution with these opertors produces etter neurl networks on gol-scoring tsk. While these prmeterized opertors gretly improve the proility of creting nd mintining networks with the correct numer of input/output units it does not ddress the NCOCB prolem for hidden units. Consequently the contriution of this pper is more n oservtion tht these shortcomings exist. Future work with edge encoding opertors will

12 506 G.S. Horny need to ddress more generl solutions to these prolems tht scle with the size of the network nd work for hidden units. Acknowledgements. Most of this reserch ws conducted while the uthor ws t Sony Computer Entertinment Americ, Reserch nd Development nd then t Brndeis University. The soccer gme nd simultor ws developed y Eric Lrsen t SCEA R&D. References 1. Nolfi, S., Floreno, D., eds.: Evolutionry Rootics. MIT Press, Cmridge, MA (2000) 2. Horny, G.S., Pollck, J.B.: Creting high-level components with genertive representtion for ody-rin evolution. Artificil Life 8 (2002) Gruu, F.: Neurl Network Synthesis Using Cellulr Encoding nd the Genetic Algorithm. PhD thesis, Ecole Normle Supérieure de Lyon (1994) 4. Luke, S., Spector, L.: Evolving grphs nd networks with edge encoding: Preliminry report. In Koz, J., ed.: Lte-reking Ppers of Genetic Progrmming 96, Stnford Bookstore (1996) Brve, S.: Evolving deterministic finite utomt using cellulr encoding. In Koz, J.R., Golderg, D.E., Fogel, D.B., Riolo, R.L., eds.: Genetic Progrmming 1996: Proceedings of the First Annul Conference, Stnford University, CA, USA, MIT Press (1996) Horny, G.S., Pollck, J.B.: Body-rin coevolution using L-systems s genertive encoding. In: Genetic nd Evolutionry Computtion Conference. (2001) Koz, J., Bennett, F., Andre, D., Kene, M.: Genetic Progrmming III: Drwinin Invention nd Prolem Solving. Morgn Kufmnn (1999) 8. Beer, R.D., Gllgher, J.G.: Evolving dynmicl neurl networks for dptive ehvior. Adptive Behvior 1 (1992) Horny, G.S., Mirtich, B.: Diffuse versus true coevolution in physics-sed world. In Bnzhf, W., et l., eds.: Proc. of the Genetic nd Evolutionry Computtion Conference, Morgn Kufmnn (1999) Horny, G.S., Tkmur, S., Hngt, O., Fujit, M., Pollck, J.: Evolution of controllers from high-level simultor to high dof root. In Miller, J., ed.: Evolvle Systems: from iology to hrdwre; Proc. of the Third Intl. Conf. Lecture Notes in Computer Science; Vol. 1801, Springer (2000) Koz, J.R.: Genetic Progrmming: on the progrmming of computers y mens of nturl selection. MIT Press, Cmridge, Mss. (1992) 12. Poli, R., Lngdon, W.B.: Schem theory for genetic progrmming with one-point crossover nd point muttion. Evolutionry Computtion 6 (1998)

Lecture 10 Evolutionary Computation: Evolution strategies and genetic programming

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

More information

COMP 423 lecture 11 Jan. 28, 2008

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

More information

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

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

More information

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

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

More information

Presentation Martin Randers

Presentation Martin Randers Presenttion Mrtin Rnders Outline Introduction Algorithms Implementtion nd experiments Memory consumption Summry Introduction Introduction Evolution of species cn e modelled in trees Trees consist of nodes

More information

What are suffix trees?

What are suffix trees? Suffix Trees 1 Wht re suffix trees? Allow lgorithm designers to store very lrge mount of informtion out strings while still keeping within liner spce Allow users to serch for new strings in the originl

More information

CS321 Languages and Compiler Design I. Winter 2012 Lecture 5

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

More information

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

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

More information

Fig.25: the Role of LEX

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

More information

CS143 Handout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexical Analysis

CS143 Handout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexical Analysis CS143 Hndout 07 Summer 2011 June 24 th, 2011 Written Set 1: Lexicl Anlysis In this first written ssignment, you'll get the chnce to ply round with the vrious constructions tht come up when doing lexicl

More information

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

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

More information

Ma/CS 6b Class 1: Graph Recap

Ma/CS 6b Class 1: Graph Recap M/CS 6 Clss 1: Grph Recp By Adm Sheffer Course Detils Adm Sheffer. Office hour: Tuesdys 4pm. dmsh@cltech.edu TA: Victor Kstkin. Office hour: Tuesdys 7pm. 1:00 Mondy, Wednesdy, nd Fridy. http://www.mth.cltech.edu/~2014-15/2term/m006/

More information

Definition of Regular Expression

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

More information

Alignment of Long Sequences. BMI/CS Spring 2012 Colin Dewey

Alignment of Long Sequences. BMI/CS Spring 2012 Colin Dewey Alignment of Long Sequences BMI/CS 776 www.biostt.wisc.edu/bmi776/ Spring 2012 Colin Dewey cdewey@biostt.wisc.edu Gols for Lecture the key concepts to understnd re the following how lrge-scle lignment

More information

10.5 Graphing Quadratic Functions

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

More information

OUTPUT DELIVERY SYSTEM

OUTPUT DELIVERY SYSTEM Differences in ODS formtting for HTML with Proc Print nd Proc Report Lur L. M. Thornton, USDA-ARS, Animl Improvement Progrms Lortory, Beltsville, MD ABSTRACT While Proc Print is terrific tool for dt checking

More information

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

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

More information

COMBINATORIAL PATTERN MATCHING

COMBINATORIAL PATTERN MATCHING COMBINATORIAL PATTERN MATCHING Genomic Repets Exmple of repets: ATGGTCTAGGTCCTAGTGGTC Motivtion to find them: Genomic rerrngements re often ssocited with repets Trce evolutionry secrets Mny tumors re chrcterized

More information

Dr. D.M. Akbar Hussain

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

More information

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

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

More information

box Boxes and Arrows 3 true 7.59 'X' An object is drawn as a box that contains its data members, for example:

box Boxes and Arrows 3 true 7.59 'X' An object is drawn as a box that contains its data members, for example: Boxes nd Arrows There re two kinds of vriles in Jv: those tht store primitive vlues nd those tht store references. Primitive vlues re vlues of type long, int, short, chr, yte, oolen, doule, nd flot. References

More information

Network Interconnection: Bridging CS 571 Fall Kenneth L. Calvert All rights reserved

Network Interconnection: Bridging CS 571 Fall Kenneth L. Calvert All rights reserved Network Interconnection: Bridging CS 57 Fll 6 6 Kenneth L. Clvert All rights reserved The Prolem We know how to uild (rodcst) LANs Wnt to connect severl LANs together to overcome scling limits Recll: speed

More information

From Dependencies to Evaluation Strategies

From Dependencies to Evaluation Strategies From Dependencies to Evlution Strtegies Possile strtegies: 1 let the user define the evlution order 2 utomtic strtegy sed on the dependencies: use locl dependencies to determine which ttriutes to compute

More information

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

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

More information

Ma/CS 6b Class 1: Graph Recap

Ma/CS 6b Class 1: Graph Recap M/CS 6 Clss 1: Grph Recp By Adm Sheffer Course Detils Instructor: Adm Sheffer. TA: Cosmin Pohot. 1pm Mondys, Wednesdys, nd Fridys. http://mth.cltech.edu/~2015-16/2term/m006/ Min ook: Introduction to Grph

More information

Agenda & Reading. Class Exercise. COMPSCI 105 SS 2012 Principles of Computer Science. Arrays

Agenda & Reading. Class Exercise. COMPSCI 105 SS 2012 Principles of Computer Science. Arrays COMPSCI 5 SS Principles of Computer Science Arrys & Multidimensionl Arrys Agend & Reding Agend Arrys Creting & Using Primitive & Reference Types Assignments & Equlity Pss y Vlue & Pss y Reference Copying

More information

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

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

More information

Mobile IP route optimization method for a carrier-scale IP network

Mobile IP route optimization method for a carrier-scale IP network Moile IP route optimiztion method for crrier-scle IP network Tkeshi Ihr, Hiroyuki Ohnishi, nd Ysushi Tkgi NTT Network Service Systems Lortories 3-9-11 Midori-cho, Musshino-shi, Tokyo 180-8585, Jpn Phone:

More information

Before We Begin. Introduction to Spatial Domain Filtering. Introduction to Digital Image Processing. Overview (1): Administrative Details (1):

Before We Begin. Introduction to Spatial Domain Filtering. Introduction to Digital Image Processing. Overview (1): Administrative Details (1): Overview (): Before We Begin Administrtive detils Review some questions to consider Winter 2006 Imge Enhncement in the Sptil Domin: Bsics of Sptil Filtering, Smoothing Sptil Filters, Order Sttistics Filters

More information

Graphs with at most two trees in a forest building process

Graphs with at most two trees in a forest building process Grphs with t most two trees in forest uilding process rxiv:802.0533v [mth.co] 4 Fe 208 Steve Butler Mis Hmnk Mrie Hrdt Astrct Given grph, we cn form spnning forest y first sorting the edges in some order,

More information

Today. CS 188: Artificial Intelligence Fall Recap: Search. Example: Pancake Problem. Example: Pancake Problem. General Tree Search.

Today. CS 188: Artificial Intelligence Fall Recap: Search. Example: Pancake Problem. Example: Pancake Problem. General Tree Search. CS 88: Artificil Intelligence Fll 00 Lecture : A* Serch 9//00 A* Serch rph Serch Tody Heuristic Design Dn Klein UC Berkeley Multiple slides from Sturt Russell or Andrew Moore Recp: Serch Exmple: Pncke

More information

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

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

More information

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

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

More information

Algorithm Design (5) Text Search

Algorithm Design (5) Text Search Algorithm Design (5) Text Serch Tkshi Chikym School of Engineering The University of Tokyo Text Serch Find sustring tht mtches the given key string in text dt of lrge mount Key string: chr x[m] Text Dt:

More information

Typing with Weird Keyboards Notes

Typing with Weird Keyboards Notes Typing with Weird Keyords Notes Ykov Berchenko-Kogn August 25, 2012 Astrct Consider lnguge with n lphet consisting of just four letters,,,, nd. There is spelling rule tht sys tht whenever you see n next

More information

Solving Problems by Searching. CS 486/686: Introduction to Artificial Intelligence Winter 2016

Solving Problems by Searching. CS 486/686: Introduction to Artificial Intelligence Winter 2016 Solving Prolems y Serching CS 486/686: Introduction to Artificil Intelligence Winter 2016 1 Introduction Serch ws one of the first topics studied in AI - Newell nd Simon (1961) Generl Prolem Solver Centrl

More information

CS481: Bioinformatics Algorithms

CS481: Bioinformatics Algorithms CS481: Bioinformtics Algorithms Cn Alkn EA509 clkn@cs.ilkent.edu.tr http://www.cs.ilkent.edu.tr/~clkn/teching/cs481/ EXACT STRING MATCHING Fingerprint ide Assume: We cn compute fingerprint f(p) of P in

More information

On the Detection of Step Edges in Algorithms Based on Gradient Vector Analysis

On the Detection of Step Edges in Algorithms Based on Gradient Vector Analysis On the Detection of Step Edges in Algorithms Bsed on Grdient Vector Anlysis A. Lrr6, E. Montseny Computer Engineering Dept. Universitt Rovir i Virgili Crreter de Slou sin 43006 Trrgon, Spin Emil: lrre@etse.urv.es

More information

CSCI 104. Rafael Ferreira da Silva. Slides adapted from: Mark Redekopp and David Kempe

CSCI 104. Rafael Ferreira da Silva. Slides adapted from: Mark Redekopp and David Kempe CSCI 0 fel Ferreir d Silv rfsilv@isi.edu Slides dpted from: Mrk edekopp nd Dvid Kempe LOG STUCTUED MEGE TEES Series Summtion eview Let n = + + + + k $ = #%& #. Wht is n? n = k+ - Wht is log () + log ()

More information

Lexical Analysis: Constructing a Scanner from Regular Expressions

Lexical Analysis: Constructing a Scanner from Regular Expressions Lexicl Anlysis: Constructing Scnner from Regulr Expressions Gol Show how to construct FA to recognize ny RE This Lecture Convert RE to n nondeterministic finite utomton (NFA) Use Thompson s construction

More information

Fig.1. Let a source of monochromatic light be incident on a slit of finite width a, as shown in Fig. 1.

Fig.1. Let a source of monochromatic light be incident on a slit of finite width a, as shown in Fig. 1. Answer on Question #5692, Physics, Optics Stte slient fetures of single slit Frunhofer diffrction pttern. The slit is verticl nd illuminted by point source. Also, obtin n expression for intensity distribution

More information

Position Heaps: A Simple and Dynamic Text Indexing Data Structure

Position Heaps: A Simple and Dynamic Text Indexing Data Structure Position Heps: A Simple nd Dynmic Text Indexing Dt Structure Andrzej Ehrenfeucht, Ross M. McConnell, Niss Osheim, Sung-Whn Woo Dept. of Computer Science, 40 UCB, University of Colordo t Boulder, Boulder,

More information

Intermediate Information Structures

Intermediate Information Structures CPSC 335 Intermedite Informtion Structures LECTURE 13 Suffix Trees Jon Rokne Computer Science University of Clgry Cnd Modified from CMSC 423 - Todd Trengen UMD upd Preprocessing Strings We will look t

More information

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

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

More information

Reducing a DFA to a Minimal DFA

Reducing a DFA to a Minimal DFA Lexicl Anlysis - Prt 4 Reducing DFA to Miniml DFA Input: DFA IN Assume DFA IN never gets stuck (dd ded stte if necessry) Output: DFA MIN An equivlent DFA with the minimum numer of sttes. Hrry H. Porter,

More information

Slides for Data Mining by I. H. Witten and E. Frank

Slides for Data Mining by I. H. Witten and E. Frank Slides for Dt Mining y I. H. Witten nd E. Frnk Simplicity first Simple lgorithms often work very well! There re mny kinds of simple structure, eg: One ttriute does ll the work All ttriutes contriute eqully

More information

TO REGULAR EXPRESSIONS

TO REGULAR EXPRESSIONS Suject :- Computer Science Course Nme :- Theory Of Computtion DA TO REGULAR EXPRESSIONS Report Sumitted y:- Ajy Singh Meen 07000505 jysmeen@cse.iit.c.in BASIC DEINITIONS DA:- A finite stte mchine where

More information

CS 241. Fall 2017 Midterm Review Solutions. October 24, Bits and Bytes 1. 3 MIPS Assembler 6. 4 Regular Languages 7.

CS 241. Fall 2017 Midterm Review Solutions. October 24, Bits and Bytes 1. 3 MIPS Assembler 6. 4 Regular Languages 7. CS 241 Fll 2017 Midterm Review Solutions Octoer 24, 2017 Contents 1 Bits nd Bytes 1 2 MIPS Assemly Lnguge Progrmming 2 3 MIPS Assemler 6 4 Regulr Lnguges 7 5 Scnning 9 1 Bits nd Bytes 1. Give two s complement

More information

this grammar generates the following language: Because this symbol will also be used in a later step, it receives the

this grammar generates the following language: Because this symbol will also be used in a later step, it receives the LR() nlysis Drwcks of LR(). Look-hed symols s eplined efore, concerning LR(), it is possile to consult the net set to determine, in the reduction sttes, for which symols it would e possile to perform reductions.

More information

6.3 Volumes. Just as area is always positive, so is volume and our attitudes towards finding it.

6.3 Volumes. Just as area is always positive, so is volume and our attitudes towards finding it. 6.3 Volumes Just s re is lwys positive, so is volume nd our ttitudes towrds finding it. Let s review how to find the volume of regulr geometric prism, tht is, 3-dimensionl oject with two regulr fces seprted

More information

FPGA-Based Implementation of Genetic Algorithm for the Traveling Salesman Problem and Its Industrial Application

FPGA-Based Implementation of Genetic Algorithm for the Traveling Salesman Problem and Its Industrial Application FPGA-Bsed Implementtion of Genetic Algorithm for the Trveling Slesmn Problem nd Its Industril Appliction Ioulii Sklirov nd António B.Ferrri Deprtment of Electronics nd Telecommunictions University of Aveiro,

More information

Section 10.4 Hyperbolas

Section 10.4 Hyperbolas 66 Section 10.4 Hyperbols Objective : Definition of hyperbol & hyperbols centered t (0, 0). The third type of conic we will study is the hyperbol. It is defined in the sme mnner tht we defined the prbol

More information

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

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

More information

The Greedy Method. The Greedy Method

The Greedy Method. The Greedy Method Lists nd Itertors /8/26 Presenttion for use with the textook, Algorithm Design nd Applictions, y M. T. Goodrich nd R. Tmssi, Wiley, 25 The Greedy Method The Greedy Method The greedy method is generl lgorithm

More information

EECS150 - Digital Design Lecture 23 - High-level Design and Optimization 3, Parallelism and Pipelining

EECS150 - Digital Design Lecture 23 - High-level Design and Optimization 3, Parallelism and Pipelining EECS150 - Digitl Design Lecture 23 - High-level Design nd Optimiztion 3, Prllelism nd Pipelining Nov 12, 2002 John Wwrzynek Fll 2002 EECS150 - Lec23-HL3 Pge 1 Prllelism Prllelism is the ct of doing more

More information

Approximation of Two-Dimensional Rectangle Packing

Approximation of Two-Dimensional Rectangle Packing pproximtion of Two-imensionl Rectngle Pcking Pinhong hen, Yn hen, Mudit Goel, Freddy Mng S70 Project Report, Spring 1999. My 18, 1999 1 Introduction 1-d in pcking nd -d in pcking re clssic NP-complete

More information

3.5.1 Single slit diffraction

3.5.1 Single slit diffraction 3..1 Single slit diffrction ves pssing through single slit will lso diffrct nd produce n interference pttern. The reson for this is to do with the finite width of the slit. e will consider this lter. Tke

More information

MTH 146 Conics Supplement

MTH 146 Conics Supplement 105- Review of Conics MTH 146 Conics Supplement In this section we review conics If ou ne more detils thn re present in the notes, r through section 105 of the ook Definition: A prol is the set of points

More information

3.5.1 Single slit diffraction

3.5.1 Single slit diffraction 3.5.1 Single slit diffrction Wves pssing through single slit will lso diffrct nd produce n interference pttern. The reson for this is to do with the finite width of the slit. We will consider this lter.

More information

pdfapilot Server 2 Manual

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

More information

INTRODUCTION TO SIMPLICIAL COMPLEXES

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

More information

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

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

More information

CS 430 Spring Mike Lam, Professor. Parsing

CS 430 Spring Mike Lam, Professor. Parsing CS 430 Spring 2015 Mike Lm, Professor Prsing Syntx Anlysis We cn now formlly descrie lnguge's syntx Using regulr expressions nd BNF grmmrs How does tht help us? Syntx Anlysis We cn now formlly descrie

More information

PPS: User Manual. Krishnendu Chatterjee, Martin Chmelik, Raghav Gupta, and Ayush Kanodia

PPS: User Manual. Krishnendu Chatterjee, Martin Chmelik, Raghav Gupta, and Ayush Kanodia PPS: User Mnul Krishnendu Chtterjee, Mrtin Chmelik, Rghv Gupt, nd Ayush Knodi IST Austri (Institute of Science nd Technology Austri), Klosterneuurg, Austri In this section we descrie the tool fetures,

More information

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

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

More information

Meaningful Change Detection in Structured Data.

Meaningful Change Detection in Structured Data. Meningful Chnge Detection in Structured Dt Sudrshn S. Chwthe Hector Grci-Molin Computer Science Deprtment, Stnford University, Stnford, Cliforni 94305 fchw,hectorg@cs.stnford.edu Astrct Detecting chnges

More information

Creating Flexible Interfaces. Friday, 24 April 2015

Creating Flexible Interfaces. Friday, 24 April 2015 Creting Flexible Interfces 1 Requests, not Objects Domin objects re esy to find but they re not t the design center of your ppliction. Insted, they re trp for the unwry. Sequence digrms re vehicle for

More information

A New Learning Algorithm for the MAXQ Hierarchical Reinforcement Learning Method

A New Learning Algorithm for the MAXQ Hierarchical Reinforcement Learning Method A New Lerning Algorithm for the MAXQ Hierrchicl Reinforcement Lerning Method Frzneh Mirzzdeh 1, Bbk Behsz 2, nd Hmid Beigy 1 1 Deprtment of Computer Engineering, Shrif University of Technology, Tehrn,

More information

Stack Manipulation. Other Issues. How about larger constants? Frame Pointer. PowerPC. Alternative Architectures

Stack Manipulation. Other Issues. How about larger constants? Frame Pointer. PowerPC. Alternative Architectures Other Issues Stck Mnipultion support for procedures (Refer to section 3.6), stcks, frmes, recursion mnipulting strings nd pointers linkers, loders, memory lyout Interrupts, exceptions, system clls nd conventions

More information

AI Adjacent Fields. This slide deck courtesy of Dan Klein at UC Berkeley

AI Adjacent Fields. This slide deck courtesy of Dan Klein at UC Berkeley AI Adjcent Fields Philosophy: Logic, methods of resoning Mind s physicl system Foundtions of lerning, lnguge, rtionlity Mthemtics Forml representtion nd proof Algorithms, computtion, (un)decidility, (in)trctility

More information

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

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

More information

Agilent Mass Hunter Software

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

More information

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

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

More information

SAPPER: Subgraph Indexing and Approximate Matching in Large Graphs

SAPPER: Subgraph Indexing and Approximate Matching in Large Graphs SAPPER: Sugrph Indexing nd Approximte Mtching in Lrge Grphs Shijie Zhng, Jiong Yng, Wei Jin EECS Dept., Cse Western Reserve University, {shijie.zhng, jiong.yng, wei.jin}@cse.edu ABSTRACT With the emergence

More information

CS201 Discussion 10 DRAWTREE + TRIES

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

More information

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

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

More information

UT1553B BCRT True Dual-port Memory Interface

UT1553B BCRT True Dual-port Memory Interface UTMC APPICATION NOTE UT553B BCRT True Dul-port Memory Interfce INTRODUCTION The UTMC UT553B BCRT is monolithic CMOS integrted circuit tht provides comprehensive MI-STD- 553B Bus Controller nd Remote Terminl

More information

A Sparse Grid Representation for Dynamic Three-Dimensional Worlds

A Sparse Grid Representation for Dynamic Three-Dimensional Worlds A Sprse Grid Representtion for Dynmic Three-Dimensionl Worlds Nthn R. Sturtevnt Deprtment of Computer Science University of Denver Denver, CO, 80208 sturtevnt@cs.du.edu Astrct Grid representtions offer

More information

Lexical Analysis. Amitabha Sanyal. (www.cse.iitb.ac.in/ as) Department of Computer Science and Engineering, Indian Institute of Technology, Bombay

Lexical Analysis. Amitabha Sanyal. (www.cse.iitb.ac.in/ as) Department of Computer Science and Engineering, Indian Institute of Technology, Bombay Lexicl Anlysis Amith Snyl (www.cse.iit.c.in/ s) Deprtment of Computer Science nd Engineering, Indin Institute of Technology, Bomy Septemer 27 College of Engineering, Pune Lexicl Anlysis: 2/6 Recp The input

More information

Languages. L((a (b)(c))*) = { ε,a,bc,aa,abc,bca,... } εw = wε = w. εabba = abbaε = abba. (a (b)(c)) *

Languages. L((a (b)(c))*) = { ε,a,bc,aa,abc,bca,... } εw = wε = w. εabba = abbaε = abba. (a (b)(c)) * Pln for Tody nd Beginning Next week Interpreter nd Compiler Structure, or Softwre Architecture Overview of Progrmming Assignments The MeggyJv compiler we will e uilding. Regulr Expressions Finite Stte

More information

Dynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012

Dynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012 Dynmic Progrmming Andres Klppenecker [prtilly bsed on slides by Prof. Welch] 1 Dynmic Progrmming Optiml substructure An optiml solution to the problem contins within it optiml solutions to subproblems.

More information

Information Retrieval and Organisation

Information Retrieval and Organisation Informtion Retrievl nd Orgnistion Suffix Trees dpted from http://www.mth.tu.c.il/~himk/seminr02/suffixtrees.ppt Dell Zhng Birkeck, University of London Trie A tree representing set of strings { } eef d

More information

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. Example: Pancake Problem. Example: Pancake Problem

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. Example: Pancake Problem. Example: Pancake Problem Announcements Project : erch It s live! Due 9/. trt erly nd sk questions. It s longer thn most! Need prtner? Come up fter clss or try Pizz ections: cn go to ny, ut hve priority in your own C 88: Artificil

More information

Graphing Conic Sections

Graphing Conic Sections Grphing Conic Sections Definition of Circle Set of ll points in plne tht re n equl distnce, clled the rdius, from fixed point in tht plne, clled the center. Grphing Circle (x h) 2 + (y k) 2 = r 2 where

More information

ASTs, Regex, Parsing, and Pretty Printing

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

More information

1 Quad-Edge Construction Operators

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

More information

A Comparison of High-Level Approaches for Speeding Up Pathfinding

A Comparison of High-Level Approaches for Speeding Up Pathfinding A Comprison of High-Level Approches for Speeding Up Pthfinding Nthn R. Sturtevnt Deprtment of Computing Science University of Alert Edmonton, Alert, Cnd nthnst@cs.ulert.c Roert Geiserger Fculty of Informtics

More information

Video-rate Image Segmentation by means of Region Splitting and Merging

Video-rate Image Segmentation by means of Region Splitting and Merging Video-rte Imge Segmenttion y mens of Region Splitting nd Merging Knur Anej, Florence Lguzet, Lionel Lcssgne, Alin Merigot Institute for Fundmentl Electronics, University of Pris South Orsy, Frnce knur.nej@gmil.com,

More information

Computer Arithmetic Logical, Integer Addition & Subtraction Chapter

Computer Arithmetic Logical, Integer Addition & Subtraction Chapter Computer Arithmetic Logicl, Integer Addition & Sutrction Chpter 3.-3.3 3.3 EEC7 FQ 25 MIPS Integer Representtion -it signed integers,, e.g., for numeric opertions 2 s s complement: one representtion for

More information

4452 Mathematical Modeling Lecture 4: Lagrange Multipliers

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

More information

SUPPLEMENTARY INFORMATION

SUPPLEMENTARY INFORMATION Supplementry Figure y (m) x (m) prllel perpendiculr Distnce (m) Bird Stndrd devition for distnce (m) c 6 prllel perpendiculr 4 doi:.8/nture99 SUPPLEMENTARY FIGURE Confirmtion tht movement within the flock

More information

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών. Lecture 3b Lexical Analysis Elias Athanasopoulos

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

More information

Compression Outline :Algorithms in the Real World. Lempel-Ziv Algorithms. LZ77: Sliding Window Lempel-Ziv

Compression Outline :Algorithms in the Real World. Lempel-Ziv Algorithms. LZ77: Sliding Window Lempel-Ziv Compression Outline 15-853:Algorithms in the Rel World Dt Compression III Introduction: Lossy vs. Lossless, Benchmrks, Informtion Theory: Entropy, etc. Proility Coding: Huffmn + Arithmetic Coding Applictions

More information

The Fundamental Theorem of Calculus

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

More information

How to Design REST API? Written Date : March 23, 2015

How to Design REST API? Written Date : March 23, 2015 Visul Prdigm How Design REST API? Turil How Design REST API? Written Dte : Mrch 23, 2015 REpresenttionl Stte Trnsfer, n rchitecturl style tht cn be used in building networked pplictions, is becoming incresingly

More information

PARALLEL AND DISTRIBUTED COMPUTING

PARALLEL AND DISTRIBUTED COMPUTING PARALLEL AND DISTRIBUTED COMPUTING 2009/2010 1 st Semester Teste Jnury 9, 2010 Durtion: 2h00 - No extr mteril llowed. This includes notes, scrtch pper, clcultor, etc. - Give your nswers in the ville spce

More information

Section 3.1: Sequences and Series

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

More information

CSEP 573 Artificial Intelligence Winter 2016

CSEP 573 Artificial Intelligence Winter 2016 CSEP 573 Artificil Intelligence Winter 2016 Luke Zettlemoyer Problem Spces nd Serch slides from Dn Klein, Sturt Russell, Andrew Moore, Dn Weld, Pieter Abbeel, Ali Frhdi Outline Agents tht Pln Ahed Serch

More information

2014 Haskell January Test Regular Expressions and Finite Automata

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

More information

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES)

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

More information