Question

Write the definition of a regular language. Use this or some other equivalent condition to prove...

Write the definition of a regular language.

Use this or some other equivalent condition to prove that the set of strings (words) that define Integer numbers, like 33, 0, or -215 (but not -0), is a regular language.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

A regular language is a formal language that can be expressed using regular expression which is a a formula that is used for specifying simple classes of strings.

It is an algebraic notation for characterizing a set of strings

1)symbols belong to S are regular are regular expression.

2)Union,concatenation of two regular expression is regular expression.

3)closure of regular expresssion is regular expression.

Union, concatenation for these set of strings of inetgers(as given) is still a set of integers. Hence, it is a regular language.

Add a comment
Know the answer?
Add Answer to:
Write the definition of a regular language. Use this or some other equivalent condition to prove...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Prove that the following language is not regular: { w1aw2 | w1,w2 ∈ {a,b}* and |w1|...

    Prove that the following language is not regular: { w1aw2 | w1,w2 ∈ {a,b}* and |w1| = |w2| } In other words, L consists of strings of odd length over the alphabet {a, b} which have a as its middle symbol. SHOW ALL WORK, THANKS!

  • (1) Write a regular expression for the language. (2) Define a finite state machine (FSM) that...

    (1) Write a regular expression for the language. (2) Define a finite state machine (FSM) that recognizes words in the language (input alphabet, states, start state, state transition table, and accept states). Include a state digraph for the FSM. A: For alphabet {p,q,r}, all strings that contain the substring rqr or end with pp.

  • Use the pumping lemma for regular languages to carefully prove that the language { aibjck :...

    Use the pumping lemma for regular languages to carefully prove that the language { aibjck : 0≤ i < j < k } is not regular.

  • Exercise 4.1.1: Prove that the following are not regular languages a) (0"1n|n 2 1). This language,...

    Exercise 4.1.1: Prove that the following are not regular languages a) (0"1n|n 2 1). This language, consisting of a string of 0's followed by an cqual-length string of 1's, is the language Loi we considered informally at the beginning of the scction. Here, you should apply the pumping lemma in the proof. b) The set of strings of balanced parentheses. These are the strings of char- acters "(" and " that can appear in a well-formed arithmetic expression *c) O"IO"...

  • Question 1: Every language is regular T/F Question 2: There exists a DFA that has only...

    Question 1: Every language is regular T/F Question 2: There exists a DFA that has only one final state T/F Question 3: Let M be a DFA, and define flip(M) as the DFA which is identical to M except you flip that final state. Then for every M, the language L(M)^c (complement) = L( flip (M)). T/F Question 4: Let G be a right linear grammar, and reverse(G)=reverse of G, i.e. if G has a rule A -> w B...

  • If we wanted to use the definition of isomorphism to prove that Z is not isomorphic to Q, we woul...

    Abstract Algebra; Please write nice and clear. If we wanted to use the definition of isomorphism to prove that Z is not isomorphic to Q, we would have to show that there does not exist an isomorphism p : Z Q. In other words, we would have to show that every function that we could possibly define from Z to Qwould violate at least one of the conditions that define isomorphisms. To show this directly seems daunting, if not impossible....

  • 1. Use a Regular Expression to define the set of all bit strings of one or...

    1. Use a Regular Expression to define the set of all bit strings of one or more 0's followed by only a 1. 2. Use a Regular Expression to define the set of all bit string of two or more symbols followed by three or more 0's. 3. Are these two grammars the same? a. S-> aSb|ab|λ b. S-> aAb|ab A->aAb|λ 4. Use the process of elimination to find the language of the following FA: (see picture for diagram) 5....

  • Convert the following C fragment to equivalent MIPS assembly language Write mini calculator that take two...

    Convert the following C fragment to equivalent MIPS assembly language Write mini calculator that take two integer numbers as input and ask the user if he need to compute addition, subtraction, remainder, division, or multiplication then print the result. Hint: you can give each operation a special number. For example, the addition (1), subtraction (2), …. And so on. The output must be something like: Enter the first integer number: 5 Enter the second integer number: 3 Which operation? 1...

  • Question is two parts In R(Programming language). Define and write a function which takes one number...

    Question is two parts In R(Programming language). Define and write a function which takes one number as input and detects whether the number is even. Return TRUE if it is even, and FALSE otherwise. You need to first detect if the input is an integer; if not, return NA. Note 1: TRUE and FALSE are logical values, not strings! Note 2: No need to get user input from the console. Test your function using your_function_name(1), your_function_name(2), and your_function_name(1.5). Hint: What...

  • Write a Context-Free grammar in either one of the following way: 1. Use recursion method to...

    Write a Context-Free grammar in either one of the following way: 1. Use recursion method to define grammar inductively, 2. Use semantic meanning for non-terminals method For the following language: strings have equal numbers of 0 and 1. For example your language will accept following strings 01, 0101, 010101, 000111, 001011, but will reject 010, 00011, 001, 11000, ... . Also show that grammar you created is ambiguos or not by using parse tree approach

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT