L06: Nesting Flashcards

1
Q

What is nesting?

A

In the context of constraint programming, nesting occurs when one combinatorial object is nested inside another (do not have to be the same type of object)

E.g.
- A set of sets
- A sequence of functions

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

How do planning problems employ nested types?

A

Planning problem: Find a sequence of actions to transform an initial state into a goal state

When a planning problem allows us actions to be performed in parallel in a single step, it is natural to characterise it as a sequence of sets of actions.

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

How can we represent nesting inside sequences using explicit representation?

A

We can have a 2D array where the top index is the is the index of the outer elements, and the left index is the index of the elements within the sequence element.
The domain for each variable is all values for the inner object + a dummy variable in case the inner object has a bounded length

We can have a row at the bottom for switches to indicate whether the corresponding column is part of the sequence

E.g. Sequence of sets
The top index is indexed by the outer sequence elements
For each column (each element of the sequence), the elements are the elements of a set

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

How can we represent nesting inside sequences using occurrence representation?

A

We can have a 2D array where the top index is the index of the outer object and the left index is the values of the inner object

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