logo

Crowdly

Browser

Додати до Chrome

Languages and Computation (COMP2040 UNMC) (SPM1 25-26)

Шукаєте відповіді та рішення тестів для Languages and Computation (COMP2040 UNMC) (SPM1 25-26)? Перегляньте нашу велику колекцію перевірених відповідей для Languages and Computation (COMP2040 UNMC) (SPM1 25-26) в moodle.nottingham.ac.uk.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

Consider the context-free grammar (CFG) G = (N,T,P,A) where N = {A,C,E}, T = {a,b,c,d,e,x}, the start symbol is A and the productions P are given below. Which of the words below (1-5) can be derived from G?

A -> a A b | C

C -> c C d | A | E

E -> e E | x

 

Potential words:

1. x

2. aaaccxddbbb

3. cccaaxbbdd

4. cceeeeedd

5. caxbd

Переглянути це питання

Consider the pushdown automaton (PDA) embodied by the diagram below, which accepts by final state. Let us denote this PDA by P1. The PDA P1 has states {1,2}, alphabet symbols {a,b}, stack symbols {#,a,b}, transitions as depicted in the diagram, start state 1, initial stack symbol # and final state 2. Select all of the words below (from 1 to 6) which are accepted by P1.

Words:

1. aaabb

2. abaa

3. baab

4. a

5. ababab

6. bbaba

0%
0%
0%
0%
100%
0%
Переглянути це питання

Consider the pushdown automaton (PDA) embodied by the diagram below, which accepts by final state. Let us denote this PDA by P1. The PDA P1 has states {1,2}, alphabet symbols {a,b}, stack symbols {#,a,b}, transitions as depicted in the diagram, start state 1, initial stack symbol # and final state 2. Select all of the words below (from 1 to 6) which are accepted by P1.

Words:

1. aaabb

2. abaa

3. baab

4. a

5. ababab

6. bbaba

0%
0%
0%
0%
0%
100%
Переглянути це питання

Consider the pushdown automaton (PDA) embodied by the diagram below, which accepts by final state. Let us denote this PDA by P1. The PDA P1 has states {1,2}, alphabet symbols {a,b}, stack symbols {#,a,b}, transitions as depicted in the diagram, start state 1, initial stack symbol # and final state 2. Select all of the words below (from 1 to 6) which are accepted by P1.

Words:

1. aaabb

2. abaa

3. baab

4. a

5. ababab

6. bbaba

0%
0%
0%
0%
100%
0%
Переглянути це питання

Consider the context-free grammar G1, with non-terminals {A}, terminals {0,1}, start symbol A, and  productions below. Select the language that G1 corresponds to.

A --> 0 A 1 | 1 A 0 | ε

Переглянути це питання

Consider the pushdown automaton (PDA) embodied by the diagram below, which accepts by final state. Let us denote this PDA by P1. The PDA P1 has states {1,2}, alphabet symbols {a,b}, stack symbols {#,a,b}, transitions as depicted in the diagram, start state 1, initial stack symbol # and final state 2. If you were to modify the transitions labeled by a,b,ε and b,a,ε and were to modify them to a,b,ab and b,a,ba respectively, what consequence would this lead to?

Переглянути це питання

Consider the pushdown automaton (PDA) embodied by the diagram below, which accepts by final state. Let us denote this PDA by P1. The PDA P1 has states {1,2}, alphabet symbols {a,b}, stack symbols {#,a,b}, transitions as depicted in the diagram, start state 1, initial stack symbol # and final state 2. Select all of the words below (from 1 to 6) which are accepted by P1.

Words:

1. aaabb

2. abaa

3. baab

4. a

5. ababab

6. bbaba

Переглянути це питання

Consider the deterministic finite automaton (DFA) over the alphabet {a, b} and embodied by the transition diagram below. Use the table minimization algorithm provided in the lectures to determine which pairs of states are equivalent. Select the options below which are correct.

DFA.

0%
0%
0%
100%
100%
100%
100%
0%
100%
100%
100%
Переглянути це питання

Consider the deterministic finite automaton (DFA) over the alphabet {a, b} and embodied by the transition diagram below. Use the table minimization algorithm provided in the lectures to determine which pairs of states are equivalent. Select the options below which are correct.

DFA.

0%
0%
0%
0%
0%
0%
0%
100%
0%
0%
0%
Переглянути це питання

Consider the deterministic finite automaton (DFA) over the alphabet {a, b} and embodied by the transition diagram below. Use the table minimization algorithm provided in the lectures to determine which pairs of states are equivalent. Select the options below which are correct.

DFA.

0%
0%
0%
0%
0%
0%
0%
100%
0%
0%
0%
Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.nottingham.ac.uk?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome