PL Flashcards

1
Q

What is the goal of logic? (3)

A
  1. state statements which are know to be true - called “knowledge base”
  2. state statements that describe the current state of the world - called “premises”
  3. state statements for which we want to check whether they are true - called “conclusions”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are 2 elements of propositional logic?

A

propositional logic: simple statements + complex statements

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

why is propositional logic a “weak” language?

-> which form of logic does not have those problems?

A
  1. letters just describe complete states - we cannot talk about individuals
  2. we cannot talk about properties of individuals or relationships between individuals
  3. generalisations, patterns or regularities cannot easily be expressed

-> first order logic is expressive enough to represent this kind of information

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

what are tautologies?

> what are those also called?

A

tautologies: a statement where any combination of the arguments evaluates to the statement being TRUE
> those are also called “valid” statements

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

what are contradictions?

> what are those also called?

A

contradictions: a statement where any combination of arguments evaluates to the statement being FALSE
> those are also called “invalid” statements

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

when is a statement called satisfiable?

A

a statement is called satisfiable when it is neither a tautology nor a contradiction
> statement evaluates to TRUE for some combination of argument values and FALSE for others

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

why is it impossible to construct a SAT solver that solves all problems fast?
why do modern SAT solvers perform well anyway?

A

satisfiability problems are NP-complete.
> the amount of possible variable assignments grows exponentially
> however, search space only has to be fully searched in worst cases, which do not occur often

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

what is a unit clause?

A

a clause of length 1

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

what is a pure literal?

A

literal p is pure if not(p) appears nowhere

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

empty clause is trivially….?

empty set of clauses if trivially…?

A

empty clause is trivially false
> at least one of the arguments has to be true
empty set of clauses is trivially true
> all of these have to be true

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

what is DLCS/DLIS?

how does it work?

A

DLCS: dynamic largest combined sum

  1. pick v with highest CN(v) + CP(v)
  2. if CP(v) > CN(v) set v = 1 else v = 0

DLIS: dynamic largest individual sum

  1. pick v with highest CN(v) or highest CP(v)
  2. if CP(v) > CN(v) set v = 1 else v = 0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

how does the Jeroslow-Wang heuristic work?

A

pretty much the same as DLCS/DLIS, but different weighting system for the occurences in clauses
> occurences in small clauses are weighted higher

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

how does MOMS heuristic work?

A

MOMS: maximum occurences in clauses of minimal size
> preference is given tto clauses with large numbers of x or x’ in them
> focus on the currently smallest size clauses

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