Theory of computation

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:54 AM on 6/7/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

What is the use of a regular expressions?

Shorthand way to describe sets

2
New cards

Whatever Theoretical operators of regular expressions are there?

“*” — 0 or more repetitions

“+” - 1 or more repetitions

“?” - character optional

“|” - or

() - group

3
New cards

What is a set?

A group of unordered, unique values

4
New cards

What types of sets are there?

  • finite

  • Non-finite

  • Countably finite

  • Non-countable - real numbers

  • Subsets

5
New cards

What is meant by the cardinality of the set?

Number of items in a set

6
New cards

What is a subset?

only contains items from other sets

7
New cards

what condition subset has to meet in order to become a proper subset?

If there are items in one set that are not in another

8
New cards

What Big O notation does?

  • Describes complexity of a function

  • It is represented by a higher power

9
New cards

What is constant “O c)” in BIG O Notation?

Time independent of input

10
New cards

What time complexities are there?

  • Linear O(n) —> linear search

  • Logarithmic O(log2n) —> binary search

  • Linear-Logarithmic O(nlog2n) —> merge sort

  • Polynomial O(n²) —> loop inside a loop —> bubble sort

  • Fibonacci numbers O(2^n) —> intractable

  • TSP O(n!) —> intractable

11
New cards

What is meant by “intractable” problems?

Problems that are theoretically soluble but may take million years to solve. May use Heuristics which are only approximate solutions

12
New cards

What is meant by “tractable” problems?

Problems with polynomial time complexity or less. Can be solved in a useful period of time.

13
New cards

What is the Halting Problem?

Impossible to determine whether program will stop for given input.

14
New cards
15
New cards
16
New cards
17
New cards
18
New cards
19
New cards
20
New cards