# manually sorting cards

Show 80 post(s) from this thread on one page
Page 2 of 3 First 123 Last
• 05-13-2008
abachler
Quote:

Originally Posted by nvoigt
Hire 10 Indians or Ukrainians to do it for you ? ;)

10 indians or 15 ukrainians. The ukrainians ive dealt with are barely worth 2/3 of an indian :D Although at least the ukrainians speak regular english, not hindified english.
• 05-13-2008
cyberfish
it's actually not poker cards, but those flash cards thing (memory aids) for studying for tests that our teacher gave us (with a question on one side, and answer on the back), and we have to sort them before returning them (they are numbered) =). Wonder how non-CS people would do it...

Quote:

Wow. We need lives.
It's a Real Thing =).

Hmm direct placement sort sounds like fun, except those cards are pretty big, so it will go over the memory contraint (the desk) to spread them out.

Quote:

Even more efficient, don't sort the cards at all, but merely imagine that they are sorted.
haha, and I will also need to imagine that my teacher doesn't mind.
• 05-13-2008
brewbuck
Quote:

Originally Posted by Thantos
It kinda matters what type of cards these are also and how you want to sort them. For example if you were trying to sort two playing decks (104 cards) then I would just make a pile for each type of card (2s, 3s, Js, Qs, etc). If you wanted to do them by suit and rank then I'd probably just make 8 rows each with a suit and then put the card in the right spot (insertion sort) as I got to it.

If definitely matters what is on the cards. My little joke about just imagining the cards to be sorted actually has some seriousness behind it. If all you have is a stack of 100 cards numbered 1-100, what is the point in sorting them? By sorting them, you will just discover what you already know -- that they will be in the sequence 1, 2, 3, ... 100.

So it's just as useful to simply imagine that they are already in the correct order. If somebody asks "What's the value on the 53rd card?" you can immediately say "53" without actually sorting the cards.

If the cards are more than just numbers, then suddenly a point to doing this materializes.
• 05-13-2008
Daved
If somebody says, "give me card #53," then perhaps a sorted deck makes sense on its own.
• 05-13-2008
whiteflags
Perhaps a radix sort then. You could sort by the digits on the ID number and be done by the third pass I think.
• 05-13-2008
mike_g
Nah, definitely a bubble sort. That should keep you occupied.
• 05-14-2008
manav
Quote:

Originally Posted by mike_g
Nah, definitely a bubble sort. That should keep you occupied.

Try emulating Recursive Quick Sort! :D
• 05-14-2008
manav
Quote:

Originally Posted by abachler
10 indians or 15 ukrainians. The ukrainians ive dealt with are barely worth 2/3 of an indian :D Although at least the ukrainians speak regular english, not hindified english.

That is very crude statement! I am working with an Ukrainian, and the English he speaks, oh, any child from India would speak better!
His sentences are like a riddle to me :(

Indian speak English better than or similar to British/USAians :D

Edit: Do not judge this by the standard (or lack of it) of my English :D
• 05-14-2008
nvoigt
Quote:

Originally Posted by PING
Or maybe 100 Germans :)

That depends on your definition of "efficient". If you need an overpaid comitee and a workers union pondering over how to name the special card sleeves that protect the workers from cutting themselves with a card, a 20 people strong department of specialist card-workers, trained 5 years at a university to determine any nuance of a card to find out it's real value, 50 Marketing experts to sell card sorting shirts, flags and mugs, 2 Lawyers sueing people over unauthorized copying of cards, another 4 Lawyers to somehow find a way for tax deductions of cards and three elected upholders of the card's rights to privacy while being sorted, then yes, 100 Germans could do the job just fine (in case you wonder: the rest of them would sit on their respective couches and complain about not having a job in card sorting because with over 30 years you are clearly too old to sort properly). If on the other hand "efficient" means in less time and/or for less money than you would need to do it yourself, then I'd go with the indians/ukrainians :)
• 05-14-2008
abachler
If the cards are numbered, why not just sort usig the number as the index into the array (placement on the desk). cards 1-10 in the top row, 91-100 in the bottom row. KISS.
• 05-14-2008
PING
Quote:

That depends on your definition of "efficient".
What I had in mind with a hundred Germans was this : Give each German a card, then start calling out the card number one by one, in order, and the respective German would come ahead and deposit the card :)
• 05-14-2008
abachler
Quote:

Originally Posted by PING
What I had in mind with a hundred Germans was this : Give each German a card, then start calling out the card number one by one, in order, and the respective German would come ahead and deposit the card :)

Or we could get 100 jews and tell them you will pay them the value of the cards, then sort the jews by size, the smallest ones will have the lowest cards.

Now stop picking on German's or I will have to keep things balanced.
• 05-14-2008
PING
Quote:

Now stop picking on German's or I will have to keep things balanced.
Exactly my point, stop poking fun at nationalities :) beyond some point it stops being funny.
• 05-14-2008
abachler
As long as we can agree to drop the issue Im satisfied that the matter is settled.
• 05-14-2008
PING
Quote:

The problem is PING, you started out by picking at germans by elevating the required number relative to ukrainians and indians. Germans arent exactly known for being (although I'm positive they are) programmers, while both Indians and Ukrainians have that steroetype.
My post was directed at nvoigt. Anyways, I'm staying out of this debate, back to the original topic..
Show 80 post(s) from this thread on one page
Page 2 of 3 First 123 Last