Theory of Computation

0.0(0)
studied byStudied by 3 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/40

flashcard set

Earn XP

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

41 Terms

1
New cards

What are the 4 main Computer Science Constructs?

  • Sequence

  • Selection

  • Iteration

  • Assignment

SSIA

2
New cards

What is meant by Abstraction?

Removal of unrequired information. Keeping only what is necessary.

3
New cards

What is meant by Decomposition?

Breaking down of a problem into smaller and edible chunks.

4
New cards

What is meant by Composition?

The combination. Like composite

5
New cards

What makes up a Turing Machine?

  • Read & Write Head

  • Infinite Tape

  • Finite State Machine (FSM)

6
New cards

What symbol is used to highlight transition functions?

Greek Symbol Delta : δ

<p>Greek Symbol Delta : δ</p>
7
New cards

What is the difference between TM and UTM?

Turing Machine vs Universal Turing Machine is that the UTM can take in another input more than the general TM.

8
New cards

Why is the Turing Machine so important?

The Turing Machine explains the limits of computation as with this theoretical machine if to be impossible with such a machine then its stated to be an incomputable problem. Only provable through use of the Turing Machine

9
New cards

What does FSM stand for?

Finite State Machine

<p>Finite State Machine</p>
10
New cards

What does STD stand for?

State Transition Diagram

11
New cards

What does cardinality mean?

The Count meant to be used on a finite set stating the count within the set.

12
New cards

What does finite mean?

The ability to end.

13
New cards

What does infinite mean?

Unknowingly long.

14
New cards

How do you figure out the cartesian product?

Correct use of multiplication.

<p>Correct use of multiplication. </p>
15
New cards

What is Regular Expression?

Simply put a way of describing a set.

16
New cards

What are the symbols used for Regular Expression?

  • ‘*’ — Meaning zero or more

  • ‘+’ — Meaning one or more

  • ‘?’ — Meaning zero or one repeated (Optional)

  • ‘|’ — Meaning “or“ a choice

  • ‘()’ — Simply just groups them

<ul><li><p>‘*’ — Meaning zero or more</p></li><li><p>‘+’ — Meaning one or more</p></li><li><p>‘?’ — Meaning zero or one repeated (Optional)</p></li><li><p>‘|’ — Meaning “or“ a choice</p></li><li><p>‘()’ — Simply just groups them</p></li></ul>
17
New cards

Can sets contain other sets?

Yes. For those that fit. For example a set containing infinite numbers and one which include 1-10 they’ll defiantly be a set of a set.

18
New cards

What is set comprehension?

Expression of sets through selecting from larger general sets.

<p>Expression of sets through selecting from larger general sets.</p>
19
New cards

What is an empty set called?

{} or Ø

20
New cards

What is a subset?

Example:

A is a subset of B if it only contains items from Set B

Symbol : ⊆

21
New cards

What is a proper subset?

Example:

A is a proper subset of B if it only contains items from B but not all of them

Symbol :

22
New cards

What are the 3 different set operations?

  • Union

  • Intersection

  • Difference

23
New cards

What does Union do considering sets?

Union would take two sets and combine them into a brand new one combining everything from the previous two. (No Duplicates)

Symbol : ∪

24
New cards

What does Intersection do considering sets?

An intersection considering sets when taking two sets the brand new set that would be created would only included those within the previous sets that are found|duplicate in both of them.

Symbol : ∩

25
New cards

What does Difference do considering sets?

When a difference is applied to two sets the resulting brand new set will only include one of the previous in the brand new one completely removing the other.

Example:
A/B
This will only include those from set A

Symbol : /

26
New cards

What does BNF stand for?

Backus-Naur Form

27
New cards

Considering BNF What is the difference between Terminal and Non-Terminals?

Backus-Naur Form considering the difference between Terminal and Non-Terminals:

Terminal — CANNOT be broken down into simpler parts
Non-Terminals — CAN be broken down into simpler parts

28
New cards

Why use BNF?

Backus-Naur form allows for notation of Context free languages.

29
New cards

What does the Halting Problem prove?

The halting problems shows that there are computational problems that are not possible to be solved.

30
New cards

From best to worst-case what are the BigO classifications?

  • O(C)

  • O(log2(n))

  • O(n)

  • O(nlog(n))

  • O(n²)

  • O(n³)

  • O(2^n)

  • O(n!)

<ul><li><p>O(C)</p></li><li><p>O(log2(n))</p></li><li><p>O(n)</p></li><li><p>O(nlog(n))</p></li><li><p>O(n²)</p></li><li><p>O(n³)</p></li><li><p>O(2^n)</p></li><li><p>O(n!)</p></li></ul>
31
New cards

What is meant by Heuristic?

The best guess or rather rule of thumb. Expectation

32
New cards

What is the BigO for a Binary Search?

O(log2 (n))

33
New cards

What is the BigO for a Linear Search?

O(n)

34
New cards

What is the BigO for a Merge Sort?

O(nlog(n))

35
New cards

What is the BigO for a Bubble Sort?

O(n²)

36
New cards

What is the difference between Tractable and Intractable?

The difference to whether a problem can be done within a polynomial amount of time or not.

  • Tractable saying that it CAN.

  • It’s an intractable saying that it CANNOT.

37
New cards

What is the Halting problem?

The unsolvable problem of determining whether any program will eventually stop if given a particular input.

38
New cards

What does Countably Infinite mean?

Its more of statement really which states that all infinite sets can be counted off with use of the natural numbers set (also being infinite) technically meaning every value up to infinity does have a ordinal value.

39
New cards

What counts as a countable set?

  • finite sets

  • countably infinite sets

40
New cards

What are the 4 different types of abstraction?

  • Procedural

  • Functional

  • Data

  • Problem

41
New cards