Implement a Scheme function that takes as input a relation given
as an adjacency list representation (the Tail of each sublist is
the list of neighbors for the Head element) and returns True if the
relation is reflexive and False otherwise. Use member as an
auxiliary function and map. Example: (reflexive '((a b c) (b b) (c
a c))) evaluates to #f (reflexive '((a a b c) (b b) (c a c)))
evaluates to #t
Implement a Scheme function that takes as input a relation given as an adjacency list representation (the Tail of each s
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Implement a Scheme function that takes as input a relation given as an adjacency list representation (the Tail of each s
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!