4.4 Theory of Computation Flashcards
Algorithm (definition)
A set of step by step instructions to solve a specific problem that always terminates and can be represented by a Turing Machine
Representational Abstraction (definition)
Removing unnecessary details
Decomposition (definition)
Act of breaking down a problem into a number of more manageable sub problems
Finite State Machines can be used to test
if a string belongs to a regular language
In Mealy Machines
Outputs are associated with transitions
A Finite State Machine is described by (5)
- a set of states
- a start state
- a set of final/accepted states
- transition functions
- input alphabet
Each Transition Diagram has (3)
- a start state
- a halting/dead/trap state
- transitions
Regular Language (definition)
A language (set of strings) that can be expressed as a regular expression or finite state machine
A Regular Language is comprised of two components:
- alphabet: finite set of symbols
- syntax rules: how the symbols must be ordered
?
0 or 1 occurrence of previous character
*
Min 0 occurrences of previous character
+
Min 1 occurrences of previous character
|
or
Set (definition)
An unordered list of elements in which each element occurs at most once
Cardinality =
Empty set:
a measure of the number of elements in a set
{} or ∅