8: Tutorial Stuff Flashcards
How do you find the time complexities of an algorithm?
??
How do you show if a language is decidable?
Show there is a decider TM that accepts it.
How do you convert a language to an NFA?
??
How do you convert from a language to a regular expression?
By breaking down the parts of each word into atomic subsections before notating them as a regular expression. Note only regular languages can be converted into regular expressions.
What is Kleene’s theorem?
A language is described by a regular expression if and only if there is a DFA which defines it.
What is the proof of Kleene’s theorem?
??
How can you use Kleene’s theorem to convert from automata to regular expressions (of the languages they accept)?
??
How can you use Kleene’s theorem to convert from languages to automata?
??
How do you prove if a language is regular?
Find a regular expression to express it to show it to be regular, or use the pumping lemma to show it isn’t.
How do you show whether a language is context-free?
??
What are derivations of CFGs?
??
How do you find CFG derivations?
??
How can you tell if the Master Theorem applies to an algorithm?
If it is of the general form of 𝑇(𝑛) = 𝑎 ⋅ 𝑇 (𝑛 / 𝑏) 𝑓 (𝑛)
Where 𝑎 ≥ 1 and 𝑏 > 1 are constants, and 𝑓 (𝑛) is asymptotically positive.
How do you convert from a CFG to a PDA?
??
How do you convert from a language to a TM?
??