1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Shalnov [3]
3 years ago
7

The product construction yields a DFA that accepts the union of two regular languages. Sometimes the construction gives a minima

l DFA, but it often gives a DFA with more states than necessary. Show that even if we start with two minimal DFAs, the resulting DFA may not be minimal.
Computers and Technology
1 answer:
12345 [234]3 years ago
6 0

Answer:

Explanation:

Suppose language B over alphabet Σ has a DFA

M = ( Q, Σ, δ, q1, F ).

Then, a DFA for the complementary language B is

M = ( Q, Σ, δ, q1, Q − F ).

The reason why M recognizes B is as follows. First note that M and M have the

same transition function δ. Thus, since M is deterministic, M is also deterministic.

Now consider any string w ∈ Σ∗

. Running M on input string w will result in M

ending in some state r ∈ Q. Since M is deterministic, there is only one possible state that M can end in on input w. If we run M on the same input w, then M will end in

the same state r since M and M have the same transition function. Also, since M is

deterministic, there is only one possible ending state that M can be in on input w.

Now suppose that w ∈ B. Then M will accept w, which means that the ending state

r ∈ F, i.e., r is an accept state of M. But then r 6∈ Q − F, so M does not accept w

since M has Q − F as its set of accept states. Similarly, suppose that w 6∈ B. Then

M will not accept w, which means that the ending state r 6∈ F. But then r ∈ Q − F,

so M accepts w. Therefore, M accepts string w if and only M does not accept string

w, so M recognizes language B. Hence, the class of regular languages is closed under

complement.

4. We say that a DFA M for a language A is minimal if there does not exist another

DFA M′

for A such that M′ has strictly fewer states than M. Suppose that M =

(Q, Σ, δ, q0, F) is a minimal DFA for A. Using M, we construct a DFA M for the

complement A as M = (Q, Σ, δ, q0, Q − F). Prove that M is a minimal DFA for A.

Answer:

We prove this by contradiction. Suppose that M is not a minimal DFA for A. Then

there exists another DFA D for A such that D has strictly fewer states than M.

Now create another DFA D′ by swapping the accepting and non-accepting states of

D. Then D′

recognizes the complement of A. But the complement of A is just A,

so D′

recognizes A. Note that D′ has the same number of states as D, and M has

the same number of states as M. Thus, since we assumed that D has strictly fewer

states than M, then D′ has strictly fewer states than M. But since D′

recognizes A,

this contradicts our assumption that M is a minimal DFA for A. Therefore, M is a

minimal DFA for A.

5. Suppose A1 and A2 are defined over the same alphabet Σ. Suppose DFA M1 recognizes

A1, where M1 = (Q1, Σ, δ1, q1, F1). Suppose DFA M2 recognizes A2, where M2 =

(Q2, Σ, δ2, q2, F2). Define DFA M3 = (Q3, Σ, δ3, q3, F3) for A1 ∩ A2 as follows:

Set of states of M3 is

Q3 = Q1 × Q2 = { (x, y) | x ∈ Q1, y ∈ Q2 }.

The alphabet of M3 is Σ.

M3 has transition function δ3 : Q3 × Σ → Q3 such that for x ∈ Q1, y ∈ Q2,

and ℓ ∈ Σ,

δ3( (x, y), ℓ ) = ( δ1(x, ℓ), δ2(y, ℓ) ) .

The initial state of M3 is s3 = (q1, q2) ∈ Q3.

The set of accept states of M3 is

F3 = { (x, y) ∈ Q1 × Q2 | x ∈ F1 and y ∈ F2 } = F1 × F2.

Since Q3 = Q1 × Q2, the number of states in the new DFA M3 is |Q3| = |Q1| · |Q2|.

Thus, |Q3| < ∞ since |Q1| < ∞ and |Q2| < ∞.

You might be interested in
A good look of a web page depends upon?​
GuDViN [60]

Answer: See explanation

Explanation:

• Font size: The font size used matters a lot in order to enhance readability. The ideal font size should be 16 pixel for the main body text. This is vital in order to help enhance readability. It should be noted that a don't size that is lower or higher than that can lead to challenges with readability.

• Graphics and animation: Using of exciting graphics and animations on a website can help in giving the web page a good look, help in grabbing the attention of the user, and also increase engagement.

• Use of colours: The color chosen also helps to give a web page a good look. It should be noted that when choosing colors, it is ideal to choose two or at most three colors to use for a web page. Mixing different colors or using very bright colors is typically a turn off.

8 0
3 years ago
Need help not sure if I’m correct
77julia77 [94]

Answer:

First and the second option

8 0
3 years ago
g The machine in the problem has a byte-addressable memory of 216 bytes. The direct-mapped cache consists of 32 cache blocks, an
balu736 [363]

Answer / Explanation:

To properly answer this question, let us define some basic terms:

Byte: The term byte is the digital unit for information and mostly consists of eight bits. The byte used to be the number of bits used to encode a single character of text in a computer and for this reason it is the smallest unit of memory in many computer program

Cache: A cache can be refereed to as a software component that stores information or data for the purpose future recall. The data stored in a cache could be treated as a duplicate or a copy of a copy of another data stored elsewhere.

Now, with the understanding from the above definition, referring back to the narrative of the question asked, we have:

(1) 8 leftmost bits = tag; 5 middle bits = line number; 3 rightmost bits = byte number.

                                                          S

                                               Tag           Set slot           W            

Memory address = 16 bits       8                 5                  3

(2)  256 bytes.=2^8 or

      32 blocks * 8 byte = 256 byte

(3)   Because two items with two different memory addresses can be stored in the same place in the  cache. That is, The tag is used to distinguish between them.

(4) Line 3.

    Line 6.

    Line 3.

    Line 21

3 0
3 years ago
Write a program that takes an unlimited number of 10-item sets and displays them after each one is entered.
Kipish [7]

Answer:

         

Explanation:

3 0
3 years ago
PROJECT STEPS
dedylja [7]

Answer:

. For your Written Communication class, you are writing a short research paper. To conform to MLA guidelines, modify the document’s Normal style by changing the font to Times New Roman, the font size to 12 pt., and the line spacing to double with no blank space after paragraphs.

2. Apply the modified Normal style to the first four paragraphs in the document, from “Crystal Mathison” to “15 October 2018”.

3. Center the title paragraph “A Solution to Food Deserts: Micro Farms”.

4. Insert a header as follows:

a. Insert a blank header at the top of the page.

b. Right-align the header paragraph.

c. Type Mathison as the header text, insert a space, and then insert a Plain Number page number from the Current Position gallery.

d. Close Header & Footer Tools.

5. Create a First Line indent of 0.5" for the body paragraphs beginning with “In the United States…” and ending with “…avenues for profitable enterprises.”

6. Change the Citations & Bibliography Style of the document to MLA.

7. In the sentence “In the United States…fresh fruits and vegetables.”, move the insertion point before the period and insert a citation to a new source using the information shown in Figure 1 below. (Hint: The Tag name is intentionally blurred because it is generated automatically.) need fast

Explanation:

7 0
3 years ago
Other questions:
  • What is the f(n) runtime of the following pseudocode: sum-0 for A = N/2 downto 1 for B-1 t increment sum by B Explain: exactly w
    13·1 answer
  • Consider the classes below, declared in the same file: class A { int a; public A() { ​ a = 7; } } class B extends A { int b; pub
    6·1 answer
  • Which type of electronic community allows real time discussion among members
    8·1 answer
  • A new product was introduced in 2003, which functions as both an identification device and a medium of communication. It uses in
    8·1 answer
  • HELLO answer this. Sidney needs to create a decimal number variable that will be added to another number. What kind of variable
    9·2 answers
  • Which of the following is a valid c++ identifier a. mouse b. _int c. 2_stop d. float​
    10·1 answer
  • Which is the OS that can be obtained for free or at a much lower price than other major operating systems?
    15·2 answers
  • I need help with this question. asap please
    14·1 answer
  • Select the correct answer.
    9·1 answer
  • _____ oversee the work of various types of computer professionals and must be able to communicate with people in technical and n
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!