You are building a recommendation engine and have a set of products bought by User A and another set for User B. To recommend new products to User A based on User B's purchases, which set operation would you use considering you don't want to recommend products User A has already bought?

  • Difference
  • Intersection
  • Symmetric Difference
  • Union
To recommend new products to User A based on User B's purchases while avoiding duplicates, you would use the "Difference" set operation. This will provide products in User B's set that are not in User A's set.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *