Print Options

Font size:

← Back to notecard set|Easy Notecards home page

Print this list...Print as notecards

COT 6410 Computational Complexity Midterm

1.

Deterministic Finite Automata notation

A = {Q, Σ, δ, q_0, F}
Q - set of states

Σ - alphabet

δ - transition function

q_0 - start state

F - finale state

2.

δ(current state, character) = state you would have transitioned to

δ(current state, character) = state you would have transitioned to

3.

How do you reverse a language represented as a DFA

- Change start state to final state

- Change finale state(s) to start state(s)

- Reverse the transitions

(optional) - create a new state that λ transitions to all the start states

4.

How to tell if something is a Regular Language?

A DFA or NFA can recognize it

5.

Difference between DFA and NFA

DFA due to its deterministic nature must have a transition out of every state for every character in the alphabet, and NO λ transitions. Also note every DFA is technically also an NFA

NFA doesn't have to have a transition for every alphabet character and can have λ transitions. Also note every NFA has an equivalent DFA

6.

some primitive notation

Φ = {}

λ = {λ}

a means where 'a' is in Σ denotes {a}

7.

Closure properties for R and S

R · S

R + S

R*

8.

convert this to a reg ex using (R_ij)^k method

in 1-16 notes

9.

convert this to a reg ex using state ripping

in 1-16 notes

10.

convert this to a reg ex using Arden's

in 1-21 notes

11.

Show the relation between the following family of languages. Regular, Deterministic Context-Free, Context-
Free, and Context-Sensitive

12.

Show the relation between models of computation

13.

True or False: Every NFA does not have an equivalent DFA

true, you can turn an nfa into usually a nasty much larger dfa with stuff like trap states.

14.

Does an algorithm exist for determining if a grammar is considered ambiguous?

no, ambiguity is undecidable

15.

Whenever a new problem is created, what is it considered inherently?

solvable and unsolved

16.

solved is temporal or inherited

temporal

17.

unsolvable/undecidable is temporal or inherited

temporal

18.

unsolved is temporal or inherited

inherited

19.

if we solve that new problem it moves from

solvable and unsolved

to?

solvable and solved

20.

if we find that new problem is unsolvable it moves from

solvable and unsolved

to?

unsolved and solved

21.

Can the CYK parsing algorithm take any type of grammar as input?

CYK operates only on context-free grammars given in Chomsky normal form

22.

Find the minimal equivalent DFA using the method that was shown in class.

1-23 slides

23.

True or False: The reversal operation is closed under regular languages.

true earlier card says how

24.

Express the following FSA as a regular expression using Arden's Theorem..

1-21 slides