Answer:
a.
CFG for {, m=n-1 and n=1,2,3… …}
Here we can have a string containing only a single a and no b.
For that the production rule is S → aT, T → ε
Now to get the strings with at least one b, the production rule is to be
T → ATB/ ε
A → a
B → b
Now merging two set of production rules:
S → aT
T → ATB/ε [As T → ε is in both set, so one occurrence is taken]
A → a
B → b
Now let us generate “aaabb”
S → aT → a ATB → aAATBB → aaATBB → aaaTBB → aaaεBB → aaaεbB →aaaεbb → aaabb
b.
CFG for {, n=1,2,3… …}
Here for every single a, we have to generate two b’s.
So the production rule is to be:
S → aSbb/ε
Each time S will generate two b’s for one a.
Answer:
Okay. I am doing it with Python. Hope it'll help you to understand the concept.
Code:
the_dict={} #Creating a dictonary
def dat(): # Creating a function named dat()
name = input('Your Name: ') # Data from user
ph = input('Phone Number: ')
for i in range(1): #Creating loop
the_dict[name]=ph # Placing the value in dictonary
more = input('More Data (y/n): ') # Asking for More data
if more == 'y': # if more is y then run the function dat()
dat() # calling dat()
elif more == 'n': # if more is n then print the dictonary named 'the_dict'
print(the_dict)
else:
print('Wrong Input') # if wrong input print the message and run dat() again
dat()
dat() # calling the function
Result:
Your Name: PyMan
Phone Number: 9814579063
More Data (y/n): y
Your Name: PyMman2
Phone Number: 451513262026
More Data (y/n): y
Your Name: C#Man
Phone Number: 7798822222
More Data (y/n): n
{'PyMan': '9814579063', 'PyMman2': '451513262026', 'C#Man': '7798822222'}
Answer:
el disco duro es un componte de almacenamiento de una pc, su uso es de guardar archivos también como el sistema operativo de ejemplo :linux, window ,mac etc
Explanation:
<span>An IP address comes from the router and used by one computer host to access the internet. </span><span> </span><span> </span><span>This can only secure only one two-way</span><span> communication between the computer and the router.</span> <span>Thus, having the same IP address on two hosts can cause inaccessibility in one of the networks. </span><span>
</span><span>I hope this helped you.
</span><span>
</span>