It's UWAweek 48

help2003/help4407

This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 564 articles.
Currently 4 other people reading this forum.


 UWA week 19 (1st semester, week 10) ↓
SVG not supported

Login to reply

👍?
helpful
8:29am Fri 13th May, ANONYMOUS

I had a think about this (as I'm doing the same thing), and I realized that in terms of efficiency, it's not a big difference. UNLESS you're cutting data on each sed call to reduce the number of steps. If you loop over n lines 50 times, and perform 2 sed operations, that's 100 steps. If you loop over n lines 50 times for one operation, and do it again for a second operation, that's still 100 steps. In both cases, the big O complexity is O(n). If I've misunderstood, please correct me! As I understand, we won't be tested on efficiency this way anyway (Michael said we'll just be tested on how fast our program runs).

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy