Chapter 8: Applications to Computer Science Flashcards

1
Q

Give examples from computer science where mathematical techniques are routinely employed

A

Precise language and predicate calculus to describe the spec for a program

Verify correctness using logic

Programming with logical formula in prolog

Solving optimisation problems with logic

Using expected value to calculate complexity

Calculating risk using probability and expected values

Complexity classes

Using the size of a set

Recursion

Recursively defined functions to work out complexity

Induction to prove properties of entities

Relations to express programming constructs

Vectors and matrices in graphs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When is it useful to precisely define what we want code to do?

A

unexpected behaviour

Trying to determine behaviour of a language

Safety critical applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What applications have we seen in Chapter 2?

A

Properties of java operations, Properties of functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What applications have we seen in Chapter 4?

A

Bayesian Updating, using expected values to calculate complexities

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What applications have we seen in Chapter 6?

A

Code applications of recursion, Proof by induction that a recursive function has a property

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What applications have we seen in Chapter 7?

A

Calculating powers of a number in modular arithmetic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly