Basic operations on sequences (conventional notation)

Click For Summary
The discussion centers on finding equivalent operations for sequences similar to set operations like set-difference and union. It explores whether there is a defined operator for subtracting one sequence from another and converting sequences into sets to facilitate this operation. The conversation suggests using a function that removes duplicates from a sequence to create a set, allowing for operations like A \setminus B to be applied. Additionally, it questions the notation for adding an element to a sequence, proposing A \oplus b as a potential representation. The thread concludes that there is no standard notation for these operations in the literature, encouraging exploration of existing methods.
azal
Messages
8
Reaction score
0
Hi All,

So here's my question:

Suppose we have two sets A and B, then A \setminus B denotes their set-difference.
Does there exist an equivalent operator for the case where A and B are not sets, but sequences?

Otherwise, is there an operator to convert a sequence into a set, removing the index, and all repetitions? In that case, I can take my sequences, convert them to their corresponding sets, and use \setminus to get the result I'm looking for.

Also, what is the counterpart of A \cup \{b\} for the case where A is a sequence? is it A \oplus b?

I can't seem to find such conventions regarding sequences anywhere on the web ...

Thanks so much for your help,

-A.
 
Mathematics news on Phys.org
azal said:
Does there exist an equivalent operator for the case where A and B are not sets, but sequences?

You aren't being specific enough abou what operation you want. For example,
if A = 1,2,3,4,5 and B = 1,3,3,4,6 what do you want "the equivalent operator" to do? Produce the sequence 1-1,2-3,3-3,4-4,5-6 = 0,-1,0,0,-1 ? Or produce the sequence 2,3,5,6 ? Or produce the sequence 2,6 ?

Some authors use the notation A - B to mean term-by-term subtraction. For more elaborate operations, I don't think there is any standard notation. If you are writing a paper on this specialized subject, look in the related literature and see what people have invented. (And don't feel obligated to use it!)
 
So, assume the operator f takes a sequence, and returns its elements as a set (without repetitions). For example if \mathbf{a} = (1,1,2,1,3,2) then f(\mathbf{a}) = \{1,2,3\}.

Now suppose we have a pair of sequences \mathbf {a} = (a_1,a_2,\cdots,a_n) and \mathbf {b} = (b_1,b_2,\cdots,b_m). I want \mathbf {a}-\mathbf {b}:= f(\mathbf {a})\setminus f(\mathbf{b}).
 
So in your example I want the operator to produce: \{1,2,3,4,5\} \setminus \{1,3,4,6\} = \{2,5\}.
 
Good morning I have been refreshing my memory about Leibniz differentiation of integrals and found some useful videos from digital-university.org on YouTube. Although the audio quality is poor and the speaker proceeds a bit slowly, the explanations and processes are clear. However, it seems that one video in the Leibniz rule series is missing. While the videos are still present on YouTube, the referring website no longer exists but is preserved on the internet archive...

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 27 ·
Replies
27
Views
4K
  • · Replies 44 ·
2
Replies
44
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
11
Views
12K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K