Pearson eText for Concepts of Programming Languages -- Instant Access (Pearson+)
12th Edition
ISBN: 9780135102268
Author: Robert Sebesta
Publisher: PEARSON+
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 3, Problem 1PS
The two mathematical models for language description are:
- Recognition
- Generation
These two mathematical models can define the syntax of
Recognition:
- It works on yes or no basis. In this method, a
mechanism called recognition device (R) is used that can read strings from the given alphabet. - This would indicate whether the input string is in language or not. That means, it will either accept the string or reject the string.
- Recognition device filters the correctly formed sentences from those that are incorrectly formed.
- In recognition, recognizer is used for syntax. analysis. Recognizer does not check for all possible strings but it simply check if the given programs are in the language or not.
- It checks the syntactical part of the program.
Generation:
- In this method, a device named generator is used to generate the sentences in a language.
- Whenever a generator is called, it generator a sentence which is unpredictable.
- When a string is to be checked if it is a correct or incorrect, first of all, it calls the generator to generate a correct sentence.
- Then, it compares the correct generated string with the input string.
- Hence, it determines the correction in string.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Discrete Structures:
This is a definition of explanatory language:
part 1: Regular expression, that start & End with “a”, but also accept single “a”
part 2: Define RE,
IF start with “a” THEN 〖 Length(w)〗_Max =3
IF start with “b” THEN 〖 Length(w)〗_Min =3
part 3:
finite automata NFA and DFA for a language, set of string starting & Ending with same
End of question
Chapter 3 Solutions
Pearson eText for Concepts of Programming Languages -- Instant Access (Pearson+)
Ch. 3 - Prob. 1RQCh. 3 - Prob. 2RQCh. 3 - Prob. 3RQCh. 3 - Prob. 4RQCh. 3 - Prob. 5RQCh. 3 - Prob. 6RQCh. 3 - Prob. 7RQCh. 3 - Prob. 8RQCh. 3 - Prob. 9RQCh. 3 - What is the difference between a synthesized and...
Ch. 3 - Prob. 11RQCh. 3 - Prob. 12RQCh. 3 - Prob. 13RQCh. 3 - Prob. 14RQCh. 3 - Prob. 15RQCh. 3 - Prob. 16RQCh. 3 - Prob. 17RQCh. 3 - Prob. 18RQCh. 3 - Prob. 19RQCh. 3 - Prob. 20RQCh. 3 - Prob. 21RQCh. 3 - What does partial correctness mean for a loop...Ch. 3 - Prob. 23RQCh. 3 - Prob. 24RQCh. 3 - Prob. 25RQCh. 3 - Prob. 26RQCh. 3 - Prob. 27RQCh. 3 - Prob. 28RQCh. 3 - Prob. 29RQCh. 3 - The two mathematical models for language...Ch. 3 - Write EBNF descriptions for the following: a. A...Ch. 3 - Prob. 3PSCh. 3 - Prob. 4PSCh. 3 - Prob. 5PSCh. 3 - Prob. 6PSCh. 3 - Prob. 9PSCh. 3 - Prob. 10PSCh. 3 - Prob. 12PSCh. 3 - Prob. 15PSCh. 3 - Prob. 16PSCh. 3 - Prob. 17PSCh. 3 - Prob. 18PSCh. 3 - Compute the weakest precondition for each of the...
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
What is the advantage of making frequent checkpoints of a database?
Database Concepts (8th Edition)
What is thermal cutting?
Degarmo's Materials And Processes In Manufacturing
Write an IfThen statement that prints the message The number is not valid if the variable sngSpeed is outside t...
Starting Out With Visual Basic (8th Edition)
Modify Problem and Exercise 6-60 so that the list includes the number of products each customer bought in each ...
Modern Database Management
If you have a PC, record the sequence activities that you can observe when you turn it on. Then determine what ...
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
1. Read the problem statement. 2. Formulate the algorithm using pseudocode and top-down, stepwise refinement. 3...
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- When it comes to evaluating expressions, what are the benefits of being able to do so without having to define actions inside the grammar?arrow_forwardCFG Assignment(at least 2 strings must be derive to prove each CFG) Language: of all strings having many 0’s or no zero, defined over {0} Language: of all strings having exactly one 0’s or exactly one 1, defined over {0,1} Language: of all strings having many 0’s or many 1’s or no zero or no one, defined over {0,1} 0*10*arrow_forwardDesign DFA for the following language. Each string contains ‘abb’ and has a length greater than 4. Ʃ={a, b}arrow_forward
- Exercises: 1. Let E = {a, b}. Draw a DFA that recognizes each of the following languages. (e) All strings that start in a and end in bb (h) All strings that do not contain the substring aba (i) All strings that have even number of a's or odd number of b's (k) All strings that start and end in the same symbol 2. Write a regular expression for the language of the following DFA. (a) M1 (shown in Figure 1) (b) M2 (shown in Figure 2) 1 92 93 0,1 Figure 1: A finite automaton Mh with three statesarrow_forwardQ = {40, 41, 92, 93} E = {a, b} F = {q0, 41} %3D The start state is go and the transition function is: 8 90 91 92 93 a 91 91 93 93 92 92 93 Draw a state diagram for the DFA M1. What is the language recognized by the DFA M1, L(M1)arrow_forwardVocabulary Task (C language) Natural language processing (NLP) is a field of artificial intelligence that seeks to develop the ability of a computer program to understand human language. Usually, the first step of an NLP system is to convert words into numeric codes. Thus, the system converts an input text into a sequence of numeric codes before any high-level analysis. This process is known as text preprocessing. We can only perform text preprocessing if we have a vocabulary of words and their associated numeric codes. Your task is to create a vocabulary of unique words for a given text file and assign a different number from 1 to N to each unique word, with N being the total number of unique words. You must perform this assignment so that the first word in alphabetical order gets the number 1, the second word in alphabetical order gets the number 2, and so on. A word is a sequence of letters (uppercase or lowercase). The file is composed of letters and white spaces (spaces, tabs,…arrow_forward
- Q = {q0, 91, 92, 93} E = {a,b} F = {q0, 41} %3D The start state is go and the transition function is: 8 90 91 92 93 a 93 93 92 92 93 Draw a state diagram for the DFA M1. What is the language recognized by the DFA M1, L(M1)arrow_forwardARDUINO LANGUAGE We have two push buttons and three LEDs (Red, Green and Blue). When the user presses button 1, the red LED will turn on and the blue LED will turnoff. If the user presses button 1 again the red LED will turn off and the blue LED willturn on. When the user presses button 2, the green LED will blink on and off 3 times. Considera delay of 1 second between blinks.Note: while the green LED is blinking, button 1 may not respond to presses. This is normaland acceptable for your code.arrow_forwardgrok Introduction to Programming (Python) academy 8 - Looping and lists Yuor biran is an azamnig thnig Instructions Tutoring O Problem pi Image source na Two words are anagrams of each other if they contain the same letters in them. So na left is an anagram of felt and vice-versa. A Super Anagram is a special kind of So anagram. A Super Anagram is an anagram whose first and last letters are the same. So if Your program needs to read in two words on a single line. If the pair of words are Super Anagrams of each other, print out Super Anagram!. If the pair of words is not a Super Anagram (so a human couldn't read it), then print out Huh?. For one-letter words, the first letter is the last letter. So, for example: Enter words: brain brian Super Anagram! and another example: Enter words: too two Huh?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Structured Chart; Author: Tutorials Point (India) Ltd.;https://www.youtube.com/watch?v=vdUO-sGA1DA;License: Standard YouTube License, CC-BY
Introduction to Structure Charts; Author: Christopher Kalodikis;https://www.youtube.com/watch?v=QN2bjNplGlQ;License: Standard Youtube License