Transform a set into an ascending order sequence

Click For Summary
SUMMARY

The discussion centers on the challenge of transforming a set of real numbers, denoted as M, into an ascending ordered sequence. It establishes that if M is finite, such as M = {4, 5, 1, 3, 2}, the sequence can be easily created using sorting algorithms. However, if M is uncountably infinite, like the set of positive rational numbers, it is impossible to enumerate its elements. For countably infinite sets, while enumeration is possible, sorting may not be feasible without specific conditions.

PREREQUISITES
  • Understanding of finite and infinite sets
  • Familiarity with sorting algorithms such as bubble sort, insertion sort, and quick sort
  • Knowledge of countable vs. uncountable sets in mathematics
  • Basic concepts of real numbers and their properties
NEXT STEPS
  • Research sorting algorithms: bubble sort, insertion sort, quick sort
  • Study the properties of countable and uncountable sets in set theory
  • Explore the implications of ordering elements in infinite sets
  • Learn about the set of natural numbers and its enumeration
USEFUL FOR

Mathematicians, computer scientists, and students studying set theory and algorithms who are interested in the complexities of ordering elements in sets.

Cinitiator
Messages
66
Reaction score
0

Homework Statement


Let's say that I have a set called M, which is a subset of real numbers. Let's say that I want to create a sequence {s_1, s_2, ..., s_3} with all of the members of M, which would be ordered in an ascending (increasing) order. For example, if M = {4, 5, 1, 3, 2}, then s_0 = 1 ; s_1 = 2; s_2 = 3 etc.

How does one do that?

Homework Equations


-


The Attempt at a Solution


Googling without any luck.
 
Physics news on Phys.org
Cinitiator said:

Homework Statement


Let's say that I have a set called M, which is a subset of real numbers. Let's say that I want to create a sequence {s_1, s_2, ..., s_3} with all of the members of M, which would be ordered in an ascending (increasing) order. For example, if M = {4, 5, 1, 3, 2}, then s_0 = 1 ; s_1 = 2; s_2 = 3 etc.

How does one do that?

Homework Equations


-

The Attempt at a Solution


Googling without any luck.

This is not possible in general.

If M is uncountably infinite, then there isn't even a way to enumerate its elements in a sequence.

If M is countably infinite, then you can enumerate the elements in a sequence (indeed, this is the definition of countable), but in general it won't be possible to sort this sequence. Consider M = \mathbb{Q}^+, the set of positive rational numbers. This set has no smallest element, so it's impossible even to choose s_0 in the way that you want to do.

However, in some particular cases it may be possible when M is countably infinite. For example, if M = \mathbb{N}, the set of natural numbers, just choose s_0 = 1, s_1 = 2, s_2 = 3, \ldots.

Of course, if M is finite, then this will always be possible. If you want a concrete algorithm to do it, look into various sorting algorithms: bubble sort, insertion sort, quick sort, etc.
 

Similar threads

Replies
20
Views
2K
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
Replies
9
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K