COT 6410 Computational Complexity Midterm Flashcards


Set Details Share
created 12 days ago by Angel_22
3 views
updated 11 days ago by Angel_22
Subjects:
computational complexity
show moreless
Page to share:
Embed this setcancel
COPY
code changes based on your size selection
Size:
X
Show:

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
card image

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

in 1-16 notes

9
card image

convert this to a reg ex using state ripping

in 1-16 notes

10
card image

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

card image

12

Show the relation between models of computation

card image

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
card image

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
card image

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

1-21 slides