Logic Lecture 5 Flashcards

1
Q

What is a binary decision tree?

A

A tree structure representing a Boolean function with variables ordered in a hierarchy.

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

What do non-leaf nodes in a binary decision tree represent?

A

Boolean variables that determine branching.

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

What do leaf nodes in a binary decision tree contain?

A

Either 0 or 1, representing the function’s output.

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

What does a dashed line in a binary decision tree represent?

A

The path taken when the variable is 0.

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

What does a solid line in a binary decision tree represent?

A

The path taken when the variable is 1.

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

What is an ordered binary decision diagram (OBDD)?

A

A binary decision tree with nodes collapsed using specific rules to reduce redundancy.

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

What are the three rules for reducing an OBDD?

A

C1: Collapse identical leaves, C2: Eliminate redundant nodes, C3: Merge identical non-leaf nodes.

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

What happens in Rule C1 for reducing OBDDs?

A

Identical leaf nodes (0s and 1s) are collapsed.

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

What happens in Rule C2 for reducing OBDDs?

A

A node is eliminated if both of its outgoing edges lead to the same node.

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

What happens in Rule C3 for reducing OBDDs?

A

Two or more non-leaf nodes are merged if they have the same variable and identical children.

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

What is a reduced OBDD?

A

An OBDD where none of the reduction rules (C1, C2, C3) can be further applied.

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

What is the key property of a reduced OBDD?

A

It provides a unique representation of a Boolean function for a given variable order.

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

What is the effect of variable order in OBDDs?

A

The size of the OBDD can vary significantly depending on the chosen order.

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

What is the worst-case scenario for an OBDD?

A

An exponential-sized representation if variables are ordered poorly.

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

What is an application of reduced OBDDs?

A

They are used in logic synthesis for hardware circuit design.

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

How do reduced OBDDs help in symbolic state-space representation?

A

They efficiently encode large state spaces in formal methods.

17
Q

What is a parity function?

A

A Boolean function that outputs 1 if an even number of input bits are 1.

18
Q

What is the size of the reduced OBDD for an n-variable parity function?

A

It has 2n + 1 nodes.

19
Q

Why are OBDD representations sensitive to variable order?

A

Different orders can drastically change the size of the OBDD.

20
Q

What is an NP-hard problem in OBDDs?

A

Finding the optimal variable order to minimize the OBDD size.

21
Q

What are logical operations on OBDDs?

A

Operations such as conjunction (AND), disjunction (OR), and negation applied to Boolean functions.

22
Q

How is negation applied to an OBDD?

A

By swapping 0 and 1 in the leaf nodes.

23
Q

How is disjunction applied to OBDDs?

A

By recursively computing OR operations while maintaining variable order.

24
Q

How is conjunction applied to OBDDs?

A

By recursively computing AND operations while maintaining variable order.

25
Q

What is universal quantification in Boolean logic?

A

∀x φ is true if φ remains true for both x = 0 and x = 1.

26
Q

What is existential quantification in Boolean logic?

A

∃x φ is true if φ is true for at least one value of x.

27
Q

How is universal quantification applied to an OBDD?

A

By computing the conjunction of OBDDs with x substituted as 0 and 1.

28
Q

How is existential quantification applied to an OBDD?

A

By computing the disjunction of OBDDs with x substituted as 0 and 1.

29
Q

What is an example of a universally quantified formula?

A

∀x (x → y) is equivalent to y.

30
Q

What is an example of an existentially quantified formula?

A

∃x x is a tautology since x can be 1.