Programming: Theory Of Computation Flashcards
With FSMs, what is the name given to a FSM with an output determined by its current state and inputs?
A mealy machine
What does Backus Naur Form consist of?
-A set of production rules
-A set of non-terminal symbols
-A set of terminal symbols
define representational abstraction
a representation where unnecessary details are removed
describe abstraction by generalisation
elements are grouped by common characteristics to produce a hierarchical relationship
describe information hiding
information about objects that don’t contribute to its essential characteristics are hidden
describe procedural abstraction
breaking down problems into a series of reusable procedures
describe data abstraction
details about how data is represented is abstracted
define problem abstraction
removing details about a problem being solved, until it is solvable. Often an abstracted problem has already been solved before.
describe decomposition
a problem is broken down into a series of sub problems that can be solved individually
describe composition
combining procedures to create a larger system
describe automation
abstracting real world phenomena and putting them in action to solve problems (modelling)
what are the symbols for empty sets?
{} and Ø
what is the cardinality of a set?
the number of values in a set
what is the symbol for a subset?
⊆
describe the concept of proper subsets
if a set is equal to another set, they are subsets of each other, but not proper subsets. symbol = ⊂
define countable sets
a set that has the same cardinality as some subset of natural numbers
how are non terminals identified?
angle brackets < >
sometimes called meta-components or syntactic variables
describe the meaning of a non terminal
text that represents another set of terminals or non terminals. terminals cannot be broken down any further
how are terminal values identified?
text without angled brackets (< >)