Algorithms
- Would my algorithm for sorting numbers work if the person executing it did not know how to tell which of two numbers was the largest?
- What happens with my algorithm for sorting numbers if two cards have the same number on them?
- How would my algorithm for sorting numbers change if instead of numbers, the cards had people's names printed on them, and I wanted to sort them into alphabetical order?
- How would my algorithm for sorting numbers change if instead of sorting them into ascending order, I wished to sort them into descending order?
- How would my algorithm for sorting numbers change if instead of five cards, I had an unknown number of cards?
- Imagine that instead of five cards, you had 50 cards to sort. Would you use the same algorithm? Would you do it by hand or write a computer program to input the numbers and sort them?
- Imagine that instead of five cards, you had a million cards to sort. Would you use the same algorithm? Would you do it by hand or write a computer program to input the numbers and sort them?
- Write a better algorithm than mine for sorting numbers into ascending order.
- What criteria would you use to determine whether one algorithm is better than another?
- Write an algorithm for driving from your home to school.