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
ANEK [815]
3 years ago
9

List the first 11 elements of S = {aba, ba}∗ in canonical order. (Note: the alphabet here is {a, b}, but the set S is being oper

ated upon by the Kleene star. Remember to alphabetize each group of equal-length strings according to the alphabet [i.e., dictionary order]. )
Computers and Technology
1 answer:
Doss [256]3 years ago
4 0

Answer:

\epsilon, ba, aba, baba, ababa, baaba, abaaba, bababa, abababa, baababa, babaaba

Explanation:

S=\{aba, ba\}^* is just the set of ALL strings that can be constructed through concatenation of the 2 strings "aba" and "ba" and the empty word (usually denoted as \epsilon).

Listing the first 11 elements of S is just listing the first 11 strings we can construct through concatenation of the strings "aba" and "ba". Canonical order is listing them alphabetically (dictionary order).

Strings of length 0: \epsilon (the empty word)

Strings of length 1: We clearly cannot construct a string of length 1 using the strings "aba" and "ba".

Strings of length 2: ba

Strings of length 3: aba

Strings of length 4: baba (we concatenate 2 times the string "ba")

Strings of length 5: ababa, baaba (notice the first one is just aba+ba, and the second one is ba+aba, we put the one starting with an a first)

Strings of length 6: abaaba, bababa (notice the first one is just aba+aba, and the second one is ba+ba+ba)

Strings of length 7: abababa, baababa, babaaba (notice the first one is just aba+ba+ba, the second one is ba+aba+ba, and the third one is ba+ba+aba)

So our first 11 strings in alphabetical order are:

\epsilon, ba, aba, baba, ababa, baaba, abaaba, bababa, abababa, baababa, babaaba

You might be interested in
What happens if two functions are defined with the same name, even if they are in different arguments within the same .py files?
yan [13]

Answer:

Following are the code to this question:

def data(a):#defining method data that accepts parameter

   print (a)#print parameter value

def data(b):#defining method data that accepts parameter

   print (b)#print parameter value

x=input("enter value: ")#defining variable x that5 input value from user

print(data(x))#call method data

Output:

enter value: hello..

hello..

None

Explanation:

  • As the above code, it is clear defines that python doesn't support the method overloading because More than one method can't be specified in a python class with the same name and python method arguments have no type.
  • The single argument method may be named using an integer, a series, or a double value, that's why we can say that it is not allowed.
7 0
3 years ago
Which answer best describes an unsubsidized federal loan?
soldi70 [24.7K]

The answer is you are responsible for paying all the interest that accumulates on your loan. <span>For unsubsidized loans, the interest accumulates while you are in school, and 6 months after you graduate (or drop out) you will start paying on your loans. </span>

6 0
3 years ago
It is used to replace numeric number of a website​
vampirchik [111]

greatflombles or gr8flombles or go2flombles

5 0
4 years ago
Figure out what this says:<br><br> ?driew tib a kool ti seoD
lisov135 [29]

Answer:

Does it look a bit weird?

5 0
3 years ago
Helppp meeeeeeeeeeeeeee
Maru [420]

Answer:

A

Explanation:

this is the god i think they worship

4 0
3 years ago
Other questions:
  • An attempt to exploit a vulnerability of a computer or network component is the definition of ________.
    15·2 answers
  • Type of media that uses laser technology to store data and programs is
    6·1 answer
  • MSSQL
    10·1 answer
  • At the Transport layer of the OSI, what is used to find and communicate with a particular application running on a host?
    7·1 answer
  • Different video files and ______ can cause compatibility issues to arise between computer systems.
    8·1 answer
  • Which button should be utilized if a user is unsure whether or not they are the right person to reply to an email?
    6·2 answers
  • ) Which of these will not select all the cells in a document?
    13·1 answer
  • How does calculate() work?
    6·2 answers
  • 7.4 Lesson Practice (projectstem): what is output if the user is enters 2?​
    8·1 answer
  • Which of the following is one of the tools used by a Python IDE that helps prevent syntax errors?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!