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...
It's a Real Thing =).Wow. We need lives.
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.
haha, and I will also need to imagine that my teacher doesn't mind.Even more efficient, don't sort the cards at all, but merely imagine that they are sorted.
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.
If somebody says, "give me card #53," then perhaps a sorted deck makes sense on its own.
Perhaps a radix sort then. You could sort by the digits on the ID number and be done by the third pass I think.
Nah, definitely a bubble sort. That should keep you occupied.
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
Edit: Do not judge this by the standard (or lack of it) of my English
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
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
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.
Last edited by abachler; 05-14-2008 at 08:14 AM.
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 cardThat depends on your definition of "efficient".
Code:>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.
Exactly my point, stop poking fun at nationalities beyond some point it stops being funny.Now stop picking on German's or I will have to keep things balanced.
Code:>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.
As long as we can agree to drop the issue Im satisfied that the matter is settled.
Last edited by abachler; 05-14-2008 at 04:09 PM.
My post was directed at nvoigt. Anyways, I'm staying out of this debate, back to the original topic..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.
Code:>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.