Lecture 3 Sections Fri, Jan 23, 2009

Similar documents
631 ALLOWANES AND TOLERANCES

Some thoughts on requirements for languages in engineering Requirements for Languages for modelling big systems World Ontology Summit,

Carl Nielsen Music is Life. SET UP MANUAL Travelling Exhibition from Odense City Museums DK-5000 Denmark

Name Model Description/Function. Directional Control Valve Station 5914 Used to activate the Pneumatic Box Feeder B

MPC COBRA SERIES. Manually Programmable Cylindrical Lock D

POWER TRIM. Table of Contents. Section 5D - Auto Trim II

POWER TRIM. Table of Contents. Section 5D - Auto Trim II

FUEL SYSTEM. Table of Contents. Section 3C Oil Injection

JUMO MIDAS C18 SW. OEM seawater pressure transmitter. Applications. Brief description. Customer benefits. Special features. Approvals/approval marks

Security Evaluation of DPA Countermeasures Using Dual-Rail Pre-charge Logic Style

Chapter URL:

Get Ready for the Lesson

Four-Row Tapered Roller Bearings. Mounting Instructions

ELECTRICAL SYSTEM 4 D INSTRUMENTATION

Push-in RTD temperature probe for heat meters with connecting cable for thermowells (type PS/PL)

DIRECTORY of WIRING VARIATIONS

Suspension Control Module

Low Pressure Domestic Burners

PROJECTIONS OF PLANES

ELECTRICAL AND IGNITION

Installation and Operational Instructions for ROBA -slip hubs Sizes 0 12 (B.1.0.GB)

CREEK Technical Services, LLC

ANNEX A: Methodology for Estimating Emissions of CO 2 from Fossil Fuel Combustion

Spark Plug Fouling 3.0 Liter OptiMax

4/3, 4/2 and 3/2 explosion-proof solenoid directional valve

Electrically controlled directional control poppet valve type UREZ6

Precision Pressure Transmitter with Switching Contacts and Display. Interface Setup program. Display 4 characters. Switching output 1.

JUMO MIDAS C08. OEM Pressure Transmitter Basic. Applications. Brief description. Special features. Customer benefits

DPST-NO None 2 channels Auto-reset Inverse 24 VAC/VDC G9SB-2002-A 4 1 channel or 2

TECHNICAL INSIGHT INTERNAL CLEARANCE - TYPES AND NORMS

Special Valves. Connection size G1/8 to G2. Contents Version Actuation Port size Page Characteristics. Instructions Overview. Electrical G1/8 G1/4

ABB industrial drives. Mechanical installation instructions ACS880 multidrive cabinets

Cable Trolleys for C-Rails Program

Duct LKR Bends LBR LBXR S-bend LBSR Taper LDR Rect-to-round transition LFR

CCD-493 KIT SERIES INSTRUCTION SHEET

SUPPLEMENTARY INFORMATION

Research and Implementation of Tractor Power Shift Clutch Control System

BMW K1600 GT / GTL Engine Protection Bars INSTALLATION INSTRUCTIONS

Hot Air Thermostats. WTHc series. Special features. Brief description. Switching function. Approval/approval marks (see "Technical data")

Electrically operated directional spool valve with a soft-shift function type WE10P NS 10. up to 35 MPa up to 120 DATA SHEET - OPERATION MANUAL

Solenoid Pilot Operated Directional Control Valve

KING COBRA/KING COBRA-2 NARROW STILE SERIES KC9357/KC9357-2

RPEA3-06. Functional Description HA /2011. Directional Control Valves Solenoid Operated with 8W Coil. Replaces HA /2007

Data of Traffic Accidents of Large Trucks in Japan

Solenoid Pilot Operated Directional Control Valve

Job Sheet 3. Pump Installation OBJECTIVE PROCEDURE. Installation of the Motor and Centrifugal Pump on the Pump Universal Base

FUEL SYSTEM. Section 3A Pulse Crankcase Driven Fuel Pump. Model 200/225 DFI. 1. Fuel Pressure/Vacuum Gauge (0-15 psi) (Obtain Locally)

INSTALL GUIDE DIR-IDS(RS)-BZ3-[ADS-BZ3]-EN

CONTROL VALVES FOR GRINDER. Installation, Maintenance and Operating Instructions 5 GA 71 en Issue 5/02

IGNITION SYSTEM SERVICE MANUAL NUMBER

Lincoln Under-cabinet Light Installation Instructions

ORIENTAL MOTOR GENERAL CATALOG. Linear Heads A-227. Features A-228 General Specifications A-232 Product Specifications A-233. Standard AC Motors

ELECTRICAL. Table of Contents. Section 2A - Ignition

Application Examples of Air-piloted Valves

COTTON VARIETY FIBER CHARACTERISTICS AND YIELD COMPARISON. King Ranch Farms, Kleberg County, 1998

CC-410 KIT SERIES INSTRUCTION SHEET

VB-7000 Series. Selection Guide. Applications. Applicable Literature. Selection Guide Contents

FUEL SYSTEM. Table of Contents. Specifications. Section 3A Electric Fuel Pump FUEL SYSTEM. Fuel Recommended Gasoline Recommended Oil

RESEARCHES ON THE INFLUENCE OF PRESSURE WAVE COMPRESSOR ON THE INTAKE AIR TEMPERATURE AT THE SUPERCHARGED ENGINES

AltRider LLC. Enjoy it, show it off, and most of all, RIDE IT! Venture On, Jeremy LeBreton. Triumph Tiger Explorer 1200 Crash Bars.

Energy Recovery Ventilator

LTV 29-2 and 39-2 angle nutrunners. Higher speed, lower energy consumption

ECT (ELECTRONIC CONTROLLED TRANSMISSION)

Unit 2. DC Motors and Generators UNIT OBJECTIVE DISCUSSION OF FUNDAMENTALS. Operating principle of dc motors

Solenoid Pilot Operated Directional Control Valve

Fire dampers. The art of handling air. Type FKA-EU tested to EN FKA-EU/DE/BE/en. according to Declaration of Performance

STEEL WIRE & ROPE FITTINGS

R E V I S I O N REV. DRAWN BY ECO No DESCRIPTION DATE APPROVED BILL OF MATERIALS

Convenience electronics

Specialized Lending Rating Model using AHP

Economic Contribution of Off-Highway Vehicle Recreation in Colorado

FINGER STRIPS. and other EMI shielding products. Characteristics

Training Guide For Class A and B UST Operators

Roller and ball bars for easy and safe die change

WINDSHIELD / WINDOWGLASS

CCS-810 KIT SERIES INSTRUCTION SHEET

Safety Relay Unit. Ordering Information. Ultra Slim Safety Relay

FRONT SIDE FIX WINDOW

REPLACEMENT. 4. REMOVE WINDSHIELD MOULDING OUTSIDE (a) Using a knife, cut off the moulding, as shown in the illustration.

ELECTRICAL AND IGNITION 2 A IGNITION SYSTEM

Rolling Bearings for Rolling Mill Applications

WATERTIGHT AIRTIGHT SPECIAL ACCESS DOORS & HATCHES, PART 1 GENERAL

POWER STEERING PUMP 10 A

Solenoid Pilot Operated Directional Control Valve

Precision Universal Joint

AIRCRAFT ENGINES SERVICE INSTRUCTION ENGINE START AT LOW TEMPERATURES AT ROTAX SI R1

BIMETAL-POINTER-THERMOMETER

London Waterloo Clapham Junction Train times

Bushing Potential Device TVPE KA-l08

2190DF / 2575DF / 2700DF / 2702DF FIRE THEFT SAFE WITH DIGITAL LOCK. Operation and Installation Guide. MANUAL # M

DIESEL EGT GAUGE INSTALLATION INSTRUCTIONS P14D AA

Solenoid Operated Proportional Directional Control Valve (with Pressure Compensation, Multiple Valve Series)

Product range MEGAlife

Georg Fischer Waga N.V. Your mechanical connection for plastic pipes restraint - non restraint d63 - d315. Products. Plast/Joint

STERLING POWER PRODUCTS

MANN+HUMMEL Oil-bath air cleaner Single-stage air cleaner without spare parts

JET PUMP. Table of Contents. Section 5 - Jet Pump

Between elements measure. Active area (per 1 element)

JUMO MIDAS S05 OEM pressure transmitter - universal

BRAVO STERN DRIVE 3 B DRIVE SHAFT HOUSING

Transcription:

NFA to Lecture 3 Sections 3.5-3.9 Hmpden-Sydney College Fri, Jn 23, 2009

Outline NFA to 1 2 NFA to 3 4 5

Building from Regulr Expressions NFA to A regulr expression consists of symbols, b, c,... ; opertors,, nd ; prentheses; nd. We describe recursive method of building stte digrm from regulr expression.

Building The bsic cses. For, build NFA to For ech symbol Σ, build

Building For the regulr expression r s: NFA to r s

Building For the regulr expression r s: NFA to r s

Building For the regulr expression rs: NFA to r s

Building For the regulr expression rs: NFA to r s

Building For the regulr expression r : NFA to r

Building NFA to For the regulr expression r : r

Building NFA to Applying these rules builds n NFA representing the regulr expression. Note tht ech digrm hs unique strt nd ccepting sttes. Note lso tht generous use ws mde of -moves. This fcilittes joining them together without ny complictions.

Exmple NFA to Exmple (Building Digrm) Build stte digrm from the regulr expression b ( ). Applying the rules rigorously produces the following. b

Exmple NFA to Exmple (Building Digrm) Build stte digrm from the regulr expression b ( ). Applying the rules rigorously produces the following. b

Exmple NFA to Exmple (Building Digrm) Build stte digrm from the regulr expression b ( ). Applying the rules rigorously produces the following. b

NFA to NFA to Let Q be the sttes of the NFA. The -closure of stte q in the NFA is the set of ll sttes tht re rechble from q (including q itself) through sequences of -moves. Define the sttes of the to be P(Q), i.e., sets of sttes in the NFA.

NFA to NFA to For every stte A P(Q) nd every symbol x Σ, the trnsition δ(a, x) is the -closure of ll sttes in the NFA tht re reched from sttes in A by reding x. Tht is, First find ll sttes reched from A by following x-moves. Then find the -closure of tht set of sttes.

Exmple NFA to Exmple ( NFA to ) Consider the NFA of the regulr expression b ( ). Number the sttes 1 through 14. 9 10 b 1 2 3 4 5 6 7 8 13 14 11 12

Exmple NFA to Exmple ( NFA to ) -cl() -cl() 1 {1, 2} 8 {8, 9, 11, 12, 13, 14} 2 {2} 9 {9} 3 {3, 4, 5, 7, 8, 9, 11, 12, 13, 14} 10 {10, 13, 14} 4 {4, 5, 7, 8, 9, 11, 12, 13, 14} 11 {11, 12, 13, 14} 5 {5} 12 {12, 13, 14} 6 {5, 6, 7, 8, 9, 11, 12, 13, 14} 13 {13, 14} 7 {7, 8, 9, 11, 12, 13, 14} 14 {14} Find the -closure of ech stte. The strt stte of the is -cl(1). From there, follow the rule for the trnsitions of the.

Exmple NFA to Exmple ( NFA to ) The result is cl(1) cl(3) cl(10) b cl(6) b

Exmple NFA to Exmple ( NFA to ) The result is 1 2 3 b 4 b

NFA to To minimize is to reduce the number of sttes to minimum without chnging the lnguge ccepted by the. Two sttes p nd q re equivlent if for every string w Σ, δ(p, w) nd δ(q, w) re either both ccepting sttes or both rejecting sttes.

Exmple NFA to Exmple ( ) Minimize the of regulr expression b ( ). First, dd ded stte to mke the fully defined. 1 2 3 b b, b 5 4, b b

Exmple NFA to Exmple ( ) The initil prtition is {1, 5}, {2, 3, 4}. Apply the trnsitions by nd b:

Exmple NFA to Exmple ( ) The second prtition is {1}, {2, 4}, {3}, {5}. This is the finl prtition. We see tht nd b do not distinguish 2 nd 4. Therefore, sttes 2 nd 4 re equivlent nd should be merged. Also, remove the ded stte.

Exmple NFA to Exmple ( ) The minimized is b 1 2 3

NFA to There re two bsic methods of implementing. Use switch sttements. Use trnsition tble.

Using switch ments NFA to Using switch sttements. The min function contins switch sttement whose cses re the different sttes, including the ded stte. Ech cse contins switch sttement whose cses re the different input symbols.

Using switch ments NFA to Using switch ments switch (stte) { cse STATE_0: }. cse STATE_1:. cse DEAD_STATE: stte = DEAD_STATE;

Using switch ments NFA to Using switch ments cse STATE_0: switch (symbol) { cse SYMBOL_A: stte =... }. cse SYMBOL_B: stte =.... defult: stte = DEAD_STATE;

Using Trnsition Tble NFA to Using Trnsition Tble The progrm uses 2-dimensionl rry to store the trnsitions. Rows represent sttes. Columns represent symbols. The progrms lex, flex, nd JLex ll use the tbles.

Using Trnsition Tble NFA to Using Trnsition Tble int trnsition[num_states][num_symbols] = { {STATE_4, STATE_2,..., STATE_2}, {STATE_0, STATE_2,..., STATE_3},. {DEAD_STATE,..., DEAD_STATE} };. stte = trnsition[stte][symbol];

NFA to Homework Red Sections 3.5-3.9. Exercises 6, 7, pge 147.