KR#2 PROLOG LISTS: REVERSIBLE PREDICATES + APPEND + REVERSE 🦠😷🏡🧻 Online Lessons 2020-03-23 10:34:03
- REVERSIBLE PREDICATES 22:46
- APPEND 9:59
- REVERSE 46:11
Answer the following questions:
( 9:59 ) 1. Would it be possible using the concatenated predicate to get any pair of consecutive numbers from a list? If so, How would you have to use the concatenated predicate to get it?
( 46:11 ) 2. Is it possible to make a reversible use of the invert predicate? If not possible, could you justify why?
( 53:50 ) 3. It would be able to indicate which characteristic makes a predicate not reversible.
(1:07:12) 4. As we have seen in class, the reversible use of predicates is a very powerful feature of Prolog. Make use of a combination of the concatenate and invert predicates in which this technique is used.