/int/ - International

Vee haff wayz to make you post.

Eintragsmodus: Antworten [Zurück] [Gehe nach unten]

Betreff:
Säge:
Kommentar:
Zeichnung: x Zeichenfläche
Dateien:
Captcha:
Passwort: (Kommentarlöschung)
  • Erlaubte Dateitypen: GIF, JPG, PNG, NetzM, OGG, ZIP und mehr
  • Maximale Anzahl von Dateien pro Post: 4
  • Maximale Dateigröße pro Post: 100.00 MB
  • Lies die Regeln bevor du postest.

ch Bernd 2025-08-18 16:21:10 Nr. 6058
Here's a question for programmers and/or enjoyers of card games: How do you sort a deck of ~50-100 numbered cards? Personally, I use radix sort, but I keep thinking that there must be a better way to sort them.
Just ask ChatGPT bro
>>6058 With my sexy MTG trained hands.
Chatgpt says that radix sort is better for large numbers, but since the total number of cards is so small it is better to not compare them and just place them in order.
If you're sorting real cards manually the best method is whatever you come up with since: 1. you're not going to be perfectly following a set of rules the way a computer would 2. you can read each card and intuitively know it's relative position without comparing it to the rest 3. you can read multiple cards at the same time, as well as create multiple variable stacks of cards 4. you can remember where you put a particular card 5. you can insert a card in any position you want in your stack(s) with roughly the same amount of both mental and physical effort.