This week we covered O(n) and Θ(n) notation for analyzing and comparing algorithms. We looked at recursive, non-recursive, and brute force algorithms. It is interesting to look at the speed (time complexity) of some algorithms like recursive tree traversal versus their iterative counterparts. Some time ago I auto generated a numeric file to use as an experiment. I watched the stack grow in the debugger over the course of the traversal/print program execution and it was a good way of seeing why recursion is avoided in memory constrained applications. This section was excellent in that it's a good way of helping us establish useful metrics for algorithms especially in cases where the comparison isn't intuitive or obvious.
Subscribe to:
Post Comments (Atom)
CST462: Week 8 (Week 75)
What went well? The First Robotics Competition organizers have a lot of useful information and instructions on the official website. FRC ...
-
This week we learned about threads, concurrency, and locks. We learned that a process has at least one thread and can have multiple threads....
-
This week we covered scheduling, processes and C process APIs (fork, yield, etc). We learned about the relationship between parent and child...
-
1. What is an SQL view. How is it similar to a table? In what ways is it different (think about primary keys, insert, update, delete operat...
No comments:
Post a Comment