2 Pages

Problem_Set_03

Course: BUS CS311, Spring 2012
School: King Fahd University of...
Rating:
 
 
 
 
 

Word Count: 618

Document Preview

University ArsDigita Month 8: Theory of Computation Professor Shai Simonson Problem Set 3 1. Construct non-deterministic pushdown automata to accept the following languages. Please comment and explain your machines. a. b. c. d. {1 0 | n > 0} n 2n {0 1 | n >= 0} n n n 2n {1 0 | n > 0} {0 1 | n >= 0} (0+1)* - {ww | w in {0,1}*} (This is the complement of ww) n n 2. Construct...

Register Now

Unformatted Document Excerpt

Coursehero >> Other International >> King Fahd University of Petroleum & Minerals >> BUS CS311

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.
University ArsDigita Month 8: Theory of Computation Professor Shai Simonson Problem Set 3 1. Construct non-deterministic pushdown automata to accept the following languages. Please comment and explain your machines. a. b. c. d. {1 0 | n > 0} n 2n {0 1 | n >= 0} n n n 2n {1 0 | n > 0} {0 1 | n >= 0} (0+1)* - {ww | w in {0,1}*} (This is the complement of ww) n n 2. Construct Deterministic Pushdown Automata to accept the following languages. Again include comments. a. b. c. d. {10 1 | n > 0} {110 1 | n > 0}. Binary strings that contain an equal number of 0's and 1's. Binary strings with twice as many ones as zeros. Binary strings that start and end with the same symbol, and have the same number of zeros as ones. n n n 2n 3. Construct Context Free Grammars to accept the following Languages over {0,1}. Explain your grammars. e. f. g. h. i. j. (Text: 2.4 b) The language {w | w starts and ends with the same symbol}. (Text: 2.4 c) The language {w | the length of w is odd}. (Text: 2.4 d) The language {w | the length of w is odd and its middle symbol is a zero}. n n n 2n {0 1 | n > 0} {0 1 | n > 0} i j k {0 1 2 | i j or j k}. Binary strings with twice as many ones as zeros. 4. Ambiguity a. Explain why the grammar below that generates strings with an equal number of 0's and 1's is ambiguous. S A B b. 0A | 1B 0AA | 1S | 1 1BB | 0S | 0 Extra Credit: Construct an unambiguous grammar that generates the same set of strings. c. (Text: 2.21 a) Let G = (V, Sigma, R , <STMNT>) be the following grammar: <STMT> <ASSIGN> | <IF-THEN> | <IF-THEN-ELSE>|<BEGIN-END> if condition then <STMT> IF-THEN> IF-THEN-ELSE> if condition then <STMT> else <STMT> <BEGIN-END> begin <STMT-LIST> end <STMT-LIST> <STMT-LIST> <STMT> | <STMT> a := 1 <ASSIGN> = Sigma { if, condition, then, else, begin, end, a := 1 } V = {<STMT>, <IF-THEN>, <IF-THEN-ELSE>, <BEGIN-END>, <STMT-LIST>, <ASSIGN>} G is a natural looking grammar for a fragment of a programming language, but G is ambiguous. Demonstrate that G is ambiguous. d. Extra Credit: (Text: 2.21 b) Give a new unambiguous grammar for the same language. 5. Converting to Normal Form. a. Put the following grammar into Chomsky Normal Form. Show all work. S B A | AB0 | A1A B1 | BC A C A0 | CB | CA | 1B b. Convert the following grammar to an equivalent one with no unit productions and no useless symbols. Show that the original grammar had NO useless symbols. What useless symbols are there after getting rid of unit productions? S A B A | CB C|D 1B | 1 C D 0C | 0 2D | 2 6. Derivations in Chomsky Normal Form a. b. (Text: 2.19) Show that, if G is a CFG in Chomsky normal form, then for any string w in L(G) of length n >=1, exactly 2n-1 steps are required for any derivation of w. (Text: 2.20) Let G be a CFG in Chomsky normal form that contains b variables. Show that, if G generates some string using a derivation with at least 2b steps, then L(G) is infinite. 7. Two-Way PDA's A 2-way PDA is a machine that is just like a deterministic PDA except that it can move either left or right on seeing a particular symbol in a particular state. It accepts if it moves off the right end of the input in a final state. Show that the set {0n1n0n | n > 0} is accepted by a 2-way PDA. You may assume that there is a # symbol at the end of the string and a $ symbol at the beginning to mark the end points. To draw a 2-way PDA, just add R (right) or L (left) to each transition (so each arrow now will have an input symbol, a stack symbol, a push/pop command and an L or an R). (Note that the set above is not a CFL).
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:

King Fahd University of Petroleum & Minerals - BUS - CS311
ArsDigita University Month 8: Theory of Computation Professor Shai Simonson Assignment 4 1. Context Free or Not Determine and prove whether each of the following languages is Context Free or not. a. b. c. d. cfw_1 0 1 0 1 0 | i,j,k &gt; 0. cfw_w#x | w is a s
King Fahd University of Petroleum & Minerals - BUS - CS311
ArsDigita University Month 8: Theory of Computation Professor Shai Simonson Problem Set 51.Short Answers: Name that LanguageFor each of the languages below, indicate the smallest complexity class that contains it. (i.e. Regular, Deterministic Context F
King Fahd University of Petroleum & Minerals - BUS - CS311
AR S D I G I TAVN I VE R S I TYMonth 8: Theory of ComputationProblem Set 1 - Prof. Shai SimonsonDFAsDraw Deterministic Finite Automata to accept the following sets of strings over :cfw_the alphabet cfw_0,1 .All strings that contain exactly 4 &quot;0&quot;s .&quot;Al
King Fahd University of Petroleum & Minerals - BUS - CS311
AR S D I G I TAVN I VE R S I TYMonth 8: Theory of ComputationProblem Set 2 - Prof. Shai SimonsonMinimizing FSM'sConsider the Finite Automaton below. Construct the smallest Deterministic Finite Automaton which accepts the same language. Finally, draw a
King Fahd University of Petroleum & Minerals - BUS - CS311
:Scientific management Scientific management, also called Taylorism, was a theory of management that analyzed and synthesized workflows. Its main objective was improving economic efficiency, especially labor productivity. It was one of the earliest attemp
King Fahd University of Petroleum & Minerals - BUS - CS311
AR S D I G I TAVN I VE R S I TYMonth 8: Theory of ComputationProblem Set 1 Solutions - Mike Allen and Dimitri KountourogiannisDFAs.All strings that contain exactly 4 0s .a.1.All strings ending in 1101.b.All strings containing exactly 4 0s and at l
King Fahd University of Petroleum & Minerals - BUS - CS311
AR S D I G I TAVN I VE R S I TYMonth 8: Theory of ComputationProblem Set 3 Solutions - Mike AllenNPDAsConstruct non-deterministic pushdown automata to accept the following .languages cfw_1n0n | n&gt;0 .a.1cfw_0n12n | n&gt;=0.bcfw_1n0n | n&gt;0 U cfw_0n12n
King Fahd University of Petroleum & Minerals - BUS - CS311
AR S D I G I TAVN I VE R S I TYMonth 8: Theory of ComputationProblem Set 3 Solutions - Mike AllenNPDAsConstruct non-deterministic pushdown automata to accept the following .languages cfw_1n0n | n&gt;0 .a.1cfw_0n12n | n&gt;=0.bcfw_1n0n | n&gt;0 U cfw_0n12n
King Fahd University of Petroleum & Minerals - BUS - CS311
AR S D I G I TAVN I VE R S I TYMonth 8: Theory of ComputationProblem Set 5 Solutions - Mike AllenName that Languagecfw_DCFL. cfw_0 1 0 1 | n+m = p+q and n,m,p,q &gt; 0 cfw_DCFL. cfw_0n1m0m1n | n,m &gt; 0 cfw_regular . cfw_0n1m0p1q | n,m,p,q &gt; 0 CFL. The set
King Fahd University of Petroleum & Minerals - BUS - CS311
AR S D I G I TAVN I VE R S I TYMonth 8: Theory of ComputationProblem Set 5 Solutions - Mike AllenName that Languagecfw_DCFL. cfw_0 1 0 1 | n+m = p+q and n,m,p,q &gt; 0 cfw_DCFL. cfw_0n1m0m1n | n,m &gt; 0 cfw_regular . cfw_0n1m0p1q | n,m,p,q &gt; 0 CFL. The set
King Fahd University of Petroleum & Minerals - BUS - CS311
Num. Analysis Ass-Qus-H.Web-Based Sys projSOFT. .Eg ProjOS Ass-2LT&amp;F A.Algo HHCI P Wed: 21 Thu: 22 Fri: 23 Sat: 24 Sun: 25 Mon: 26 Tue: 27 Wed: 28 Thu: 29 Fri: 30 Sat: 31 Sun: 1 Mon: 2 Tue: 3 Wed: 4 Thu: 5 Fri: 6 Sat: 7 Sun: 8 Mon: 9 Tue: 10 Wed: 11
Amherst - MKTG - 1234
HARLEY DAVIDSON INCFORMReport) 10-K (AnnualFiled 02/24/11 for the Period Ending 12/31/10Address Telephone CIK Symbol SIC Code Industry Sector Fiscal Year 3700 W JUNEAU AVE MILWAUKEE, WI 53208 4143424680 0000793952 HOG 3751 - Motorcycles, Bicycles, and
Amherst - MKTG - 1234
Packaging IKEA's Supply Chainhttp:/www.joc.com/print/429021(http:/www.joc.com)Home &gt; Packaging IKEA's Supply ChainNov 4, 2011 1:16PM GMTYou don't often see close looks at how corporate culture influences a company's supply chain, and you see insightf
Amherst - MKTG - 1234
ARTICLE IN PRESSinternational business reviewInternational Business Review 16 (2007) 229250 www.elsevier.com/locate/ibusrevSkills and complexity in management of IJVs: Exploring Swedish managers' experiences in ChinaRobert Demir, Sten Soderman Stockh
Amherst - MKTG - 1234
A Diamond for the Poor? Assessing Porter's Diamond Model for the Analysis of Agro-Food Clusters in the Developing Countries.by David Neven Department of Agricultural Economics Michigan State University nevendav@msu.eduCornelia L. M. Drge Department of M
Amherst - MKTG - 1234
International Business Review 11 (2002) 257277 www.elsevier.com/locate/ibusrevThe concept of learning in the Uppsala internationalization process model: a critical reviewM. Forsgren Department of Business Studies, Uppsala University, Box 513, S-751 20
Amherst - MKTG - 1234
ARTICLE IN PRESSInt. J. Production Economics 89 (2004) 363378Dynamic knowledge-related learning processes in internationalizing high-tech SMEsSami Saarenketoa,*, Kaisu Puumalainenb, Olli Kuivalainena, Kalevi Kyl. heikob ab a Telecom Business Research
Amherst - MKTG - 1234
ARTICLE IN PRESSinternational business reviewInternational Business Review 16 (2007) 2346 www.elsevier.com/locate/ibusrevKnowledge acquisition and the foreign development of high-tech start-ups: A social capital approachManuela Presuttia, Cristina Boa
Amherst - MKTG - 1234
Int. J. of the Economics of Business, Vol. 8, No. 2, 2001, pp. 173 190The Eclectic (OLI) Paradigm of International Production: Past, Present and FutureJOHN H. DUNNINGABSTRACT This article describes the origins, and traces the subsequent evolution of th
Amherst - MKTG - 1234
: : : : :booking.confirmation@londoneye.com EDF Energy London Eye Online Booking Confirmation Order number 108210728 20111219+0000122201 joan.fu@hotmail.com customer.services@londoneye.comDear Miss FU, Thank you for your recent transaction with EDF Ener
Amherst - MKTG - 1234
MASTER THESISInternationalization Process of SMEs: Strategies and Methods.Authors Mohibul Islam Masum &amp; Alejandra Fernandez Group: 1964Master Thesis EFO705 Mlardalen University School of Sustainable Development of Society and Technology Vsters Sweden J
Amherst - MKTG - 1234
International Business Review 9 (2000) 163190 www.elsevier.com/locate/ibusrevThe eclectic paradigm as an envelope for economic and business theories of MNE activityJohn H. DunningReading University, UK and Rutgers University, USAAbstract This paper up
Amherst - MKTG - 4321
- txt http:/www.lktxt.com- 3
Amherst - MKTG - 4321
1- txt http:/www.lktxt.com-
Amherst - MKTG - 4321
1- txt http:/www.lktxt.com-19531
Amherst - MKTG - 4321
- txt http:/www.lktxt.com- 1960
Amherst - MKTG - 4321
- txt http:/www.lktxt.com-1970197119741975
Amherst - MKTG - 4321
1- txt http:/www.lktxt.com-
Amherst - MKTG - 4321
Cross-Cultural Management Multiple-choice Test1. According to Alvesson (2002), representative of the critical management studies:a) Knowledge is an objective realityb) Knowledge in the cross-cultural management can be objectively assessed only byresea
Amherst - MKTG - 4321
MGT3190Cross Cultural ManagementModule HandbookAcademic Year 2011/2012Dr Nathalie van MeursBusiness and Management Department1Module Summary/IntroductionIntroductionWhat is the course about? When it comes to management, we often aim for a one siz
Amherst - MKTG - 4321
IKEA In ChinaInternational Operation Management MGT3220Coursework 2Tutor: Oktay Ozdenll1Student Number: M00279941Table of contentsIntroduction.3Technology and knowledge transfer. 4 HowIKEAtransfer technology and knowledge to China. 4Absorptive c
Amherst - MKTG - 4321
MGT3190AreviewpartIIDr.NathalievanMeursLecture11Communication:exchangeofmessagesandcreationofmeaning(e.g.,assigningsignificancetomessages)(Gudykunst,1998,p.9).Perception:Rememberthosebiases?Itisgenerallyacceptedthatgroupstendtofavourtheingroup(Ta
Amherst - MKTG - 4321
MGT3190AreviewDr.NathalievanMeursWhereitstartedLecture1:IntroductionVirtuallyallbusinessisglobalbusinessCross:acrossgroupsInter,intraEverygrouphasaculture(e.g.,sport,religion,politics)Culture:SharedSystemofSymbolicMeaningsManagement:planning,o
Amherst - MKTG - 4321
IKEA In ChinaInternational Operation Management MGT3220Teacher: Oktay OzdenllStudent Number: M00279941Introduction:In todays international trade environment, most businesses are involved in globaltrade. If companies are doing well in domestic market
Amherst - MKTG - 4321
qwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxcvbnmqwertyuiopasdfghjklzxCase AnalysisMGT 489cvbnmqwertyuiopasdfghjkl
Amherst - MKTG - 4321
Session 13Supply Chain Management:From Vision to ImplementationChapter 9: Core Competencies andOutsourcingChapter 9: Learning Objectives1. Describe the notion of core competency.Identify an organizations competencies anddetermine whether they pass
Amherst - MKTG - 4321
IKEAIKEA, the worlds biggest furnishing retail chain achieved sales of Euro 14.8 billion in2005 with 237 IKEA stores in 34 countries/territories. The IKEA Group itself owns 210stores in 24 countries (September 2006). The other 27 stores are owned and r
Amherst - MKTG - 4321
*TVL311/06/08/E/WEB* PRIVATE &amp; CONFIDENTIALTV Licence Application for RefundIMPORTANT Before completing the information below, read the notes overleaf on How to Complete this Form.Please use BLACK INK and write in CAPITAL letters within the boxes provi
Amherst - MKTG - 4321
*TVL311/06/08/E/WEB* PRIVATE &amp; CONFIDENTIALTV Licence Application for RefundIMPORTANT Before completing the information below, read the notes overleaf on How to Complete this Form.Please use BLACK INK and write in CAPITAL letters within the boxes provi
Amherst - MKTG - 4321
*TVL311/06/08/E/WEB* PRIVATE &amp; CONFIDENTIALTV Licence Application for RefundIMPORTANT Before completing the information below, read the notes overleaf on How to Complete this Form.Please use BLACK INK and write in CAPITAL letters within the boxes provi
Amherst - MKTG - 4321
Internationalization of IKEAin the Japanese market and Chinese marketsTutor:Authors:Group:Date:Leif LinnskogWannapa Chaletanone (05-11-1982, Thailand)Wanee Cheancharadpong (03-09-1983, Thailand)2022June 4, 2008Master Thesis EFO705, 10 points (1
Amherst - MKTG - 4321
Knowledge and Technology Transfer: Levels and Key FactorsTae Kyung Sung * Kyonggi University Seoul, Korea And IC2 Institute &amp; Department of MSIS The University of Texas at Austin tksung@mail.utexas.edu David V. Gibson IC2 Institute The University of Texa
Amherst - MKTG - 4321
Knowledge Transfer, Knowledge Sharing and KnowledgeBarriers Three Blurry Terms in KMDan Paulin and Kaj SunesonDepartment of Technology Management and Economics, Chalmers Universityof Technology, Gothenburg, Swedendan.paulin@chalmers.sesuneson@chalme
Amherst - MKTG - 4321
IKEA SUCCESS IN CHINESE FURNITUREYihong LiBachelors thesisOctober 2007: School of Business1JYVSKYL UNIVERSITY OF APPLIED SCIENCESAuthor(s)DESCRIPTIONDate19.11.2007Type of PublicationBachelors ThesisYIHONG, LiPagesLanguage50EnglishConfide
Amherst - MKTG - 4321
School of Management and EconomicsCourse Code: FED 344Strategic Management in Dynamic OrganizationMaster ThesisHow to surviveas an expatriatein China?A case study based onthree companies: IKEA,NCR and Texol-Examinators:Authors:Anders HytterM
Amherst - MKTG - 4321
Proceedingsof the12th European Conferenceon Knowledge ManagementUniversity of PassauGermany1-2 September 2011Edited byDr. Franz LehnerUniversity of Passau, Germany&amp;Dr. Klaus BredlUniversity of Augsburg, GermanyCopyright The Authors, 2011. All
Amherst - MKTG - 4321
MGT 3220International OperationsManagementInternational New Product DevelopmentA General Framework Two distinct chains in organizations:The supply chain which focuses on the flow ofphysical products from suppliers throughmanufacturing and distribu
Amherst - MKTG - 4321
H A R L E Y D A VI D S O N I N CF O RMReport)-K10(AnnualFiled 02/24/11 for the Period Ending 12/31/10AddressTelephoneCIKSymbolSIC CodeIndustrySectorFiscal Year3700 W JUNEAU AVEMILWAUKEE, WI 5320841434246800000793952HOG3751 - Motorcycles,
Amherst - MKTG - 4321
Harley-Davidson, Inc.Company ProfilePublication Date: 13 Aug 2010www.datamonitor.comEurope, Middle East &amp; Africa119 Farringdon RoadLondonEC1R 3DAUnited KingdomAmericas245 5th Avenue4th FloorNew York, NY 10016USAAsia PacificLevel 462 Park S
Amherst - MKTG - 4321
University of SunderlandBA (Honours) Business ManagementMKT306Marketing StrategyVersion 2.0Published byThe University of SunderlandThe publisher endeavours to ensure that all its materials are freefrom bias or discrimination on grounds of religiou
Amherst - MKTG - 4321
Running Head: HARLEY-DAVIDSON, INC. &amp; THE GREAT RIDE INTO THE SUNSET(OOPS)Harley-Davidson, Inc.External and Internal Analysis, Value Chain, Core Competenciesand EVA Evaluationswithin the Competitive Recreational Vehicles Industry EnvironmentIncludin
Amherst - MKTG - 4321
M14_HOLL6227_05_SE_C14.qxd5/21/108:44 AMPage 459CHAPTER 14Product decisionsContents14.114.214.314.414.514.614.714.814.914.1014.1114.1214.1314.1414.15IntroductionThe dimensions of the international product offerDeveloping internatio
Amherst - MKTG - 4321
M05_HOLL6227_05_SE_C05.qxd1765/20/104:09 PMPage 176PART II DECIDING WHICH MARKETS TO ENTER(rm-specic) and external (market) data are needed. The role of a rms internal information system in providing data for marketing decisions is often forgotten.
Amherst - MKTG - 4321
:New England ClamChowder
Amherst - MKTG - 4321
M15_HOLL6227_05_SE_C15.qxd5/20/104:05 PMPage 523CHAPTER 15 PRICING DECISIONS AND TERMS OF DOING BUSINESS523SkimmingIn this strategy a high price is charged to skim the cream from the top end of the market,with the objective of achieving the highes
Amherst - MKTG - 4321
M15_HOLL6227_05_SE_C15.qxd5/20/104:05 PMPage 523CHAPTER 15 PRICING DECISIONS AND TERMS OF DOING BUSINESS523SkimmingIn this strategy a high price is charged to skim the cream from the top end of the market,with the objective of achieving the highes
Amherst - MKTG - 4321
2008 Richard E MurphySustainable Competitive Advantage - Harley Davidson29 March 20081.0 Introduction:Warren Buffet was once asked what is the most important thing he looks for whenevaluating a company to invest in. Without hesitation, he replied, &quot;
Amherst - MKTG - 4321
1010 1010 1030