10 Pages

328L0221

Course: ITK 328, Spring 2008
School: Illinois State
Rating:
 
 
 
 
 

Word Count: 583

Document Preview

State Illinois University School of Information Technology ITK 328 Introduction to The Theory of Computation Spring, 2005 February 21, 2005 1 Announcement and Agenda Questions From Last Lecture? Second Test on Wednesday 02/23/05 Homework #3 Solution Context Free Language Summary After Test #1 2 Chapter 2 Context-Free Languages What is context-free grammar? Context free grammars were first used in the...

Register Now

Unformatted Document Excerpt

Coursehero >> Illinois >> Illinois State >> ITK 328

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
State Illinois University School of Information Technology ITK 328 Introduction to The Theory of Computation Spring, 2005 February 21, 2005 1 Announcement and Agenda Questions From Last Lecture? Second Test on Wednesday 02/23/05 Homework #3 Solution Context Free Language Summary After Test #1 2 Chapter 2 Context-Free Languages What is context-free grammar? Context free grammars were first used in the study of human languages. One way of understanding the relationship of terms such as noun, verb, and preposition and their respective phrases leads to a natural recursion because noun phrases may appear inside verb phrases and vice versa. Most compilers and interpreters contain a component called a parser uses context-free grammar to extract the meaning of a program prior to generating the compiled code or performing the interpreted execution. Including XML (needs parser). 3 Context-Free Grammars An Example of a Context-Free Grammar A ! 0A1 A!B B!# 1. 2. 3. 4. 5. A collection of Substitution rules (productions). Symbols in grammar are called variables. One variable is designed the start variable. The sequence of substitution is called a derivation. Strings consist of variables and can not make any derivation are called terminals. In the above grammar: 0,1,and # are terminals, A is the start variable, A derivation of string 000#111 in the above grammar is: A 0A1 00A11 000A111 000B111 000#111 4 Context-Free Grammars The Parse Tree of G1 A A A L(G1) is {0n#1n | n 0} B 0 0 0 # 1 1 1 5 Formal Definition of a Context-Free Grammars A context-free grammar is a 4-tuple (V, , R, S), where V is a finite set called the variables, is a finite set, disjoint from V, called the terminals, R is a finite set of rules, with each rule being a variable and a string of variables and terminals, and S V is the start variable. If u, v, and w are strings of variables and terminals, and A ! w is a rule of the grammar, we say that uAv yields uwv, written uAv uwv. * Write u v if u = v or if a sequence u1, . u2, . . ,uk exists for k 0 and u u1 u2 . . . uk v. * The language of the grammar is {w * | S w }. 6 Page 93 and 94 <SENTENCE> ! <NOUN-PHASE> <VERB-PHASE> <NOUN-PHASE> ! <CMPLX-NOUN> | <CMPLX-NOUN> <PREP-PHASE> <VERB-PHASE> !<CMPLX-VERB> | <CMPLX-VERB> <PREP-PHASE> <PREP-PHASE> ! <PREP> <CMPLX-NOUN> <CMPLEX-NOUN> ! <ARTICLE> <NOUN> <CMPLX-VERB> ! <VERB> | <VERB> <NOUN-PHASE> <ARTICLE> ! a | the <NOUN> ! boy| girl | flower <VERB> ! touches | likes | sees <PREP> ! with a boy sees <SENTENCE> " <NOUN-PHASE> <VERB-PHASE> " <CMPLX-NOUN> <VERB-PHASE> " <ARTICLE> <NOUN> <VERB-PHASE> " a <NOUN> <VERB-PHASE> " a boy <VERB-PHASE> " a boy <CMPLX-VERB> " a boy <VERB> ! a boy sees 7 Examples of Context-Free Grammars Grammar G3 = ({S}, {a.b}, R, S). The set of rules, R, is S ! aSb | SS | This grammar generates strings such as abab, aaabbb, and aababb. If we substitute `a' by `(' and `b' by `)', then we can view L(G3) is the language of all strings of properly nested parentheses. Grammar G4 = (V, , R, EXPR) and is {a, +, , (, )}, The rules are EXPR ! EXPR + TERM | TERM TERM ! TERM FACTOR | FACTOR FACTOR ! (EXPR) | a The two strings a + a a and (a + a) a can be generated with grammar G4 The parse trees are: 8 EXPR EXPR TERM TERM EXPR TERM FACTOR FACTOR TERM TERM FACTOR FACTOR FACTOR EXPR TERM TERM FACTOR FACTOR a + a a ( a + a ) a EXPR 9 What Have We Learned after Test 1 Finite Automata DFA and NFA Definition and Design of FA Equivalence of DFA and NFA (Convert NFA to DFA) Closure Properties Union, Concatenation, and Star Epsilon () move. Regular Expression Definition and few examples Equivalence with FA Non-regular Languages Property of regular language Pumping Lemma (only to proof a language is not regular) 10
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Illinois State - ITK - 328
Illinois State University School of Information Technology ITK 328 Introduction to The Theory of Computation Spring, 2005February 28, 20051Announcement and Agenda Questions From Last Lecture? Test #2 Result Section 1 Average: 81.6 90 a
Illinois State - ITK - 328
Illinois State University School of Information Technology ITK 328 Introduction to The Theory of Computation Spring, 2005March 02, 20051Announcement and Agenda Questions From Last Lecture? Your Grades posted on WebCT For the first time login
Illinois State - ITK - 328
Illinois State University School of Information Technology ITK 328 Introduction to The Theory of Computation Spring, 2005March 07, 20051Announcement and Agenda Questions From Last Lecture? Homework #4 Part I Pushdown Automata Turning Machine
Illinois State - ITK - 328
Illinois State University School of Information Technology ITK 328 Introduction to The Theory of Computation Spring, 2005March 09, 20051Announcement and Agenda Questions From Last Lecture? CFG from a language description Understand the desc
Illinois State - ITK - 328
Illinois State University School of Information Technology ITK 328 Introduction to The Theory of Computation Spring, 2005March 21, 20051Announcement and Agenda Questions From Last Lecture? Test Number 3 on Wednesday, 03/23/2005 50 minutes test
Illinois State - ITK - 328
Illinois State University School of Information Technology ITK 328 Introduction to The Theory of Computation Spring, 2005March 28, 20051Announcement and Agenda Questions From Last Lecture? Test Number 3 Results Section I Average: Distributio
Illinois State - ITK - 328
Illinois State University School of Information Technology ITK 328 Introduction to The Theory of Computation Spring, 2005March 30, 20051Announcement and Agenda Questions From Last Lecture? Homework #5 Due Wed. 04/06/2005 Exercise: 3.7, 3.8c
Illinois State - ITK - 328
Illinois State University School of Information Technology ITK 328 Introduction to the Theory of Computation Spring, 2005Monday, April 04, 20051Announcement and Agenda Questions From Last Lecture? Homework #5 Due Wed. 04/06/2005 WebCT has You
Illinois State - ITK - 328
Illinois State University School of Information Technology ITK 328 Introduction to the Theory of Computation Spring, 2005Wednesday, April 06, 20051Announcement and Agenda Questions From Last Lecture? Homework #6 Due Wed. 04/13/2005 Exercise (
Illinois State - ITK - 328
Illinois State University School of Information Technology ITK 328 Introduction to the Theory of Computation Spring, 2005Monday, April 11, 20051Announcement and Agenda Questions From Last Lecture? Homework #6 Due Wed. 04/13/2005 Test #4 Next
Illinois State - ITK - 328
Illinois State University School of Information Technology ITK 328 Introduction to the Theory of Computation Spring, 2005Wednesday, April 20, 20051Announcement and Agenda Questions From Last Lecture? Test #5 Day/Time Section 1 (9:35 am) at 7
Illinois State - ITK - 328
Illinois State University School of Information Technology ITK 328 Introduction to the Theory of Computation Spring, 2005Monday, April 25, 20051Announcement and Agenda Questions From Last Lecture? Test #4 Result Section 1 Average 74.10 Secti
Illinois State - ITK - 328
Illinois State University School of Information Technology ITK 328 Introduction to the Theory of Computation Spring, 2005Wednesday, April 27, 20051Announcement and Agenda Questions From Last Lecture? NP Completeness2NP-COMPLETENESS 1970s
Illinois State - ITK - 328
Illinois State University School of Information Technology ITK 328 Introduction to the Theory of Computation Spring, 2005Monday, May 2, 20041Announcement and Agenda Questions From Last Lecture? Homework #7 due on Wednesday SAT is NP-Complete
Illinois State - ITK - 328
Illinois State University School of Information Technology ITK 328 Introduction to the Theory of Computation Spring, 2005Wednesday, May 4, 20041Announcement and Agenda The Last ITK328 Lecture of Spring 2005 Vertex Cover Problem Homework #7 O
Washington - TGIS - 312
Accessibility Analysis of Children's Services in Pierce County LibrariesJennifer Campbell &amp; Susan Steinert - GIS Certificate Program, University of Washington, Tacoma2006 Tacoma Libraries w/ Children's Staff2007 Tacoma Libraries w/ Children's St
Mines - INSIDE - 467
Professor Eileen Poeter Office Hours: Monday 2-3:30 &amp; Wednesday 9-10:30GEGN 467 Ground Water Engineeringwww.mines.edu/~epoeter/467lab manual #Teaching Assistant UPDATED AUGUST 25 Kevin Mininger Office location BH118 Office hours Tues 2-4 PM kmi
Mines - INSIDE - 466
Professor Eileen Poeter Office Hours: Monday 2-3:30 &amp; Wednesday 9-10:30GEGN 466 Ground Water Engineeringwww.mines.edu/~epoeter/466for exceptions, check www.mines.edu/~epoeter/OfficeHours.htm and by appointment BH121B epoeter @ mines.edu 303-273-3
Mines - INSIDE - 466
WELCOME TO: Ground Water Engineering GEGN466Eileen Poeter www.mines.edu/~epoeterSchedule Notes and Other Materials Posted: www.mines.edu/~epoeter/466/ Let's Look Now - WATCH FOR UPDATES!www.mines.edu/~epoeter/OfficeHours.htmMON 2-3:30Supportin
Mines - INSIDE - 467
WELCOME TO: Ground Water Engineering GEGN467Eileen Poeter www.mines.edu/~epoeterSchedule Notes and Other Materials Posted: www.mines.edu/~epoeter/467/ Let's Look Now - WATCH FOR UPDATES!www.mines.edu/~epoeter/OfficeHours.htmMON 2-3:30Supportin
Mines - INSIDE - 583
Techniques of Water-Resources Investigations of the Uni tes Geological SurveylA MODU FINITE-DIFFEBy Mich el G. McDonald Arl n W. Harbaugh andpen-fileU.S. Geological Report 83-875Book 6MODELINGTECHNIQUESClick here to return to USGS Pu
Mines - INSIDE - 583
User's Documentation for MODFLOW-96, an update to the U.S. Geological Survey Modular Finite-Difference Ground-Water Flow ModelU.S. GEOLOGICAL SURVEY Open-File Report 96-485User's Documentation for MODFLOW-96, an update to the U.S. Geological Surve
Mines - INSIDE - 583
User's Guide for MODPATH/MODPATH-PLOT, Version 3: A particle tracking post-processing package for MODFLOW, the U. S. Geological Survey finite-difference ground-water flow modelby David W. PollockU. S. GEOLOGICAL SURVEY Open-File Report 94-464Res
Berkeley - G - 059
Race Vote Totals Candidate/DescriptionTOTREG 1,298,892DEMREG 413,897REPREG 634,672AIPREG 24,463GRNREG 6,729LIBREG 9,284NLPREG 2,824REFREG 5,765DCLREG 196,296MSCREG
Boise State - M - 360
HOMEWORK # 7 SOLUTIONSChapter 439. a. b. c. 42. From Table A.3, P(1.96 Z 1.96) = .95. Then P( .1 X + .1) = P-0.1/ z0.1/ implies that 0.1/ = 1.96, and thus that + (91st percentile from std normal) = 30 + 5(1.34) = 36.7 30 + 5( 1.555) = 22.22
Boise State - M - 360
HOMEWORK # 8 SOLUTIONSIf you find error(s), please let me know.Chapter 546. = 12 cma. b. c. n = 16 n = 64 = .04 cm E X =12cm E X =12cm = x / n=0.04/4=0.01cm x = x / n=0.04/8=0.005cm xX is more likely to be within .01 cm of the mean
Berkeley - C - 051
&quot;01&quot;,&quot;1&quot;&quot;02&quot;,&quot;2&quot;&quot;03&quot;,&quot;3&quot;&quot;04&quot;,&quot;4&quot;&quot;05&quot;,&quot;5&quot;&quot;06&quot;,&quot;6&quot;&quot;07&quot;,&quot;7&quot;&quot;08&quot;,&quot;8&quot;&quot;09&quot;,&quot;9&quot;&quot;10&quot;,&quot;10&quot;&quot;11&quot;,&quot;11&quot;&quot;12&quot;,&quot;12&quot;&quot;13&quot;,&quot;13&quot;
Allan Hancock College - DB - 5047
Caching Off Speed = 100= _209_db Starting =Run 0 start. Total memory=113246208 free memory=103440384db 1 iterations Reading database input/db6 . OKBuilding database .Done.NOT found- Record number 5000 -Full name Last: Hendricks First: To
Allan Hancock College - DB - 5047
Caching Off Speed = 100= _209_db Starting =Run 0 start. Total memory=113246208 free memory=103440384db 1 iterations Reading database input/db6 . OKBuilding database .Done.NOT found- Record number 5000 -Full name Last: Hendricks First: To
Allan Hancock College - DB - 5047
Caching Off Speed = 100= _209_db Starting =Run 0 start. Total memory=113246208 free memory=103440384db 1 iterations Reading database input/db6 . OKBuilding database .Done.NOT found- Record number 5000 -Full name Last: Hendricks First: To
Allan Hancock College - DB - 5047
Caching Off Speed = 100= _209_db Starting =Run 0 start. Total memory=113246208 free memory=103440384db 1 iterations Reading database input/db6 . OKBuilding database .Done.NOT found- Record number 5000 -Full name Last: Hendricks First: To
Maple Springs - ECON - 5110
The exam has two parts, A and B. Part A has 4 problems: two with pre-midterm material, two with post-midterm. For Part B, you choose to do either one of two problems that are based on the student presentations.On the pre-midterm part we covered the
Maple Springs - ECON - 5110
al&quot;e_lltL.-*^*r( tqccr)fl,L d da*fs )# l\^rt L'rtlb e #b'*s)I II*L (n^hrtlfr\ lte-^Lrlqr5tqrno+t^/lr k e- s $*r^-.'r1&quot;*t-Ao-{&quot; t cte_#t*da*'._l\t I lrl-*dps#a#ffi!bEf*D c,.rtf{I'.Sfo^/*,*Affi n-*F
Washington - ESS - 502
1963 Nature Publishing Group 1963 Nature Publishing Group 1963 Nature Publishing Group
Washington - IS - 300
IS300 Lab SessionLab 2 Web DevelopmentLab Topic Activating web publishing service Creating a simple web site Using webpage editor and ftp program Software Used We're going to use three kinds of software to do this: Microsoft FrontPage - design an
Laurentian - AGST - 200603
Have We Learned the Lesson of History? Australia The Aral Sea India: The Green Revolution China Australia The British brought convicts to Australia to solve a problem at home (1788) They expected the colony to become self suffici
Laurentian - AGST - 200603
The Aral Sea The Aral Sea BasinCovers 5 of the old Soviet states, the Stans in the south eastern corner of the Soviet Union Once the 4th largest inland body of water in the world. In the past few years the Aral Sea has gained global attentio
Laurentian - AGST - 200603
China China geographyThe worlds largest population 1/5 of the worlds total population Complex environment worlds largest and highest mountain plateau Two of the worlds longest rivers Many lakesEcosystem range from glaciers, deserts,
Laurentian - AGST - 200603
History of Irrigation 1 Ancient irrigation At least 6 major irrigation based civilizations arose between 2000 and 6000 years ago: In Mesopotamia: Sumerians, Babylonians and Assyrians The Egyptians formed the longest lasting irrigati
Laurentian - AGST - 200603
History of Irrigation 2 Running out Agriculture and groundwater Groundwater in Agriculture Expansion of food production over the last 30 40 years driven by irrigation Much of this using groundwater Advantage of increased productivity
Laurentian - AGST - 200603
History of Irrigation 3 Canada Water issues in Canada Water Rights for irrigation farming Transboundary issues with the U.S. St Mary River and the Milk River Water and Hydro Power (e.g.) Columbia River Basin Treaty 1961 Skagit Riv
Laurentian - AGST - 200603
Structural Adjustment in AgricultureThe United States A case study History of Commodity Policy 1933 Agricultural Adjustment Act supply management payment to farmers to increase the price they received for crop and livestock Reverse def
Laurentian - AGST - 200603
Sustainable AgricultureA natural part of the structural adjustment process ? Sustainable Agriculture: balance three main goals Environmental health Economic profitability Socioeconomic equity Commodity agricultureAgricultur
N.E. Illinois - PED - 3900
History of NBADr. James Naismith is best known world wide as the inventor of basketball. He also led an exemplary life, following the values he held dear. He was an educator and leader, dedicated to developing character through sport, and devoted to
Michigan - PERSONAL - 162
Math 162 Homework 8 Problem 1. (Brouwer fixed point theorem) Let f : [0, 1] R be a continuous function, such that 0 f (x) 1 for all x. Show that there exists a point x [0, 1] such that f (x) = x (this is called a fixed point of f ). Problem 2. Le
Air Force Academy - CS - 455
Information Types for Media SelectionManju Shree Chava CMPT 826 7th April, 2009Introduction Different types of media Information Types- Useful dimension for categorisation Useful for everyoneMediaRelated work 1: ISO 14915 3Informati
U. Memphis - PSYC - 7705
PSYCHOLOGY 7705/8705 - NEUROPHARMACOLOGY - MIDTERM I STUDY GUIDE - 2007Multiple Choice Pharmacokinetics and Pharmacodynamics (17 questions) 1. Pharmacokinetics refers to? 2. Pharmacodynamics refers to? 3. Drug elimination refers to? 4. Drug clearanc
U. Memphis - PSYC - 7705
PSYCHOLOGY 7705/8705 - NEUROPHARMACOLOGY - MIDTERM I STUDY GUIDE - 2007 Neurotransmitter Systems (35 questions; all multiple choice) 1. 2. 3. 4. 5. 6. 7. 8. The central serotonin system is important in what? Which neurotransmitter has been historical
U. Memphis - PSYC - 7705
Actors / Actresses / Models / Directors Nick Adams (actor) Bridgette Andersen (actress) John Drew Barrymore (actor) John Belushi (actor, comedian) Timothy Carey (actor) Seymour Cassel (actor) Montgomery Clift (actor) Jean Cocteau (writer, fil
U. Memphis - PSYC - 7705
ANALGESICS: MORPHINE AND OPIOID ANALOGUES Opium and Morphine - Historical Facts Naturally occurring and synthetic drugs that exert actions on body similar to those induced by endogenous opioids Derived from either of two sources: 1. drugs (morphine
U. Memphis - PSYC - 7705
Fig. 1Fig. 2Fig. 3Fig. 4Fig. 5Fig. 6Fig. 7Fig. 8Fig. 9Fig. 10Fig. 11Fig. 12Fig. 13END ANXIETY FIGS, BEGIN DEPRESSION FIGS Fig. 14Fig. 15Fig. 16ANTIDEPRESSANT EXPENDITURES (95-98)fig. 17ANTIDEPRESSANT USE (95-98)F
U. Memphis - PSYC - 7705
Overview of Monoamines and Affective Disorders Panic Disorders Symptoms: episodes of unexpected terror Sites: locus coeruleus, raphe, limbic system Systems: NE/GABA/5-HT dysfunction Strategy: GABA agonists, uptake inhibitors, MAOI Social Phobia Disor
U. Memphis - PSYC - 7705
Fig. 1 - Lecture 5Structure of Four Amino Acid Neurotransmitters in the CNSFig. 2 - Lecture 5GABA Metabolisma eGlycine MetabolismFig. 3 - Lecture 5GABA PathwaysFi. 4 - Lecture 5GABAA Receptor ComplexConvulsant and Anxiolytic Bindin
U. Memphis - PSYC - 7705
Inhibitory Amino Acids: GABA and Glycine Gamma-Aminobutyric Acid (GABA) GABA is the major inhibitory transmitter in the brain; therefore GABA-containing neurons are widely distributed and are relevant to most CNS functions. (see Fig. 1 &amp; 3) GABA
U. Memphis - PSYC - 7705
INTRODUCTION TO GENERAL PHARMACOLOGY Nomenclature Pharmacology - the study of the effects of drugs on the body. However, given the broad nature of this subject area, pharmacology includes a number of subdisciplines: Neuropharmacology - the subdiscipl
U. Memphis - PSYC - 7705
Fig. 1 - Lecture 2Fig. 2 - Lecture 2Fig. 3 - Lecture 2Fi. 4 - Lecture 2Fig. 5 - Lecture 2Fig. 6 - Lecture 2Fig. 7 - Lecture 2Fig. 8 - Lecture 2Note: Figs. 9 and 10 (channel blocker examples) and Figs. 11 and 12 (pictures of poisonous
U. Memphis - PSYC - 7705
BIOGENIC AMINE NEUROTRANSMITTERS IN THE CNS (Fig. 1 and 2) There are a variety of substances in the CNS that serve as neurotransmitters, neuroregulators, and neuromodulators (see Fig. 1). At present there are about 50 substances that have been iden
U. Memphis - PSYC - 7705
Fig. 2Fig. 3Fig.4Fig. 5Fig. 6Treatment using GVG Brain scans showing the average level of dopamine receptors in 6 primates's brains. Red (well dark gray to black in this picture) is high concentration of dopamine receptors. The higher the l
U. Memphis - PSYC - 7705
C.D. Blaha Drugs for Psychotic Disorders Nine Categories of Psychosis (DSM-IV): 1. Schizophrenia - 6 months or more, including 2 or more symptoms: delusions, hallucinations, disorganized speech, catatonic behavior, and negative symptoms. Subtypes: pa
U. Memphis - PSYC - 7705
Schizophrenia Fig 1 Horror in the History of Psychiatric Treatment: Insulin Shock Therapy (Manfred Sakel, Berlin, 1927) Originally used to treat excitement during morphine abstinence. Found to be &quot;effective&quot; to treat early schizophrenics. High dos
Wisconsin - SS - 322
Name _SOIL SCIENCE 322 Physical Principles of Soil and Water Management 12-Week Exam April 17, 20081.(30 points, total) a) (10 points) From the information in the diagram below, what is the depth from the soil surface to the water table at site