3 ms·
Unless you specified that everything must be done by hand giving a 0 for using Java libraries was stupid. The important part about algorithms is not how to cod
by Retric 19y ago
Unless you specified that everything must be done by hand giving a 0 for using Java libraries was stupid. The important part about algorithms is not how to code them but how they behave.
IMO a good project for an algorithms class is to sort 20 GB of random floating point numbers. Having someone code a once off solution is of limited value as they will not recall what they did in a few months. However if you make them solve a problem and grade that. And then give them a harsh time constraint your students will learn something.
- bayareaguy 19y ago20GB is too small. Make it more like 400GB after compression.
- jmzachary 19y agoStrong words based on little details about my assignments. Actually, I had them do both (hand code algorithms and solve problems much more substantial than sorting random floating numbers). You should find out more before you call me stupid.
- Retric 19y agoI called your actions stupid not you. Anyway... From what I have seen 95% of CS graduates don't understand how algorithms mesh with hardware. Sorting 20GB of data requires more RAM than they are going to have access to. So if they want to sort things quickly they are going to have to think about how access times alter an algorithms efficiency. So now we have an "easy" problem that exposes students to real world issues. Hand coding for a specific amount of L1 / L2 cache might have some value based on time constraints as is limiting the number of memory allocations by the OS etc. IMO machine vision or other "hard" problems don't really help students at the introductory level as they use known methods by rote as apposed to rediscovering classic solutions to reasonable problems.