Tessellate S.T.E.M.S - Computer Science - School - Set 2 - Problem 1

In a certain programming language, the idea of sets are built-in. By sets, we refer to a kind of data structure that correspond to the mathematical notion of set, an unordered collection of distinct objects. In this programming language, a set containing the elements x x and y y is denoted { x , y } \{x, y\} ,

Certain developers need to implement the notion of an ordered pair in this programming language. An ordered pair is supposed to be a data structure that contains exactly two elements, not necessarily distinct, such that the elements are ordered. An ordered pair containing the two elements x x and y y , in that order , is denoted ( x , y ) (x,y) . By order, we mean that ( x , y ) = ( u , v ) x = u and y = v (x, y) = (u,v) \implies x = u \text{ and } y = v .

Because the programming language only supports sets, the developers must implement ordered pairs in terms of sets. Here are a few suggestions they had:

  1. ( a , b ) : = { a , b } (a, b) := \{a, b\}
  2. ( a , b ) : = { a , { b } } (a, b) := \{a, \{b\}\}
  3. ( a , b ) : = { { { a } , { } } , { { b } } } (a, b) := \{\,\{\{a\},\{\}\},\,\{\{b\}\}\,\}
  4. ( a , b ) : = { { a } , { a , b } } (a, b) := \{\{a\}, \{a, b\}\}

Which of these are valid, in the sense described above?


This problem is a part of Tessellate S.T.E.M.S.

2, 3 and 4 Only 4 2 and 4 3 and 4

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...