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)
CST370: Week 7 (Week 58)
This week we covered non-comparison sorting, dynamic programming, Warshall's algorithm, Floyd's algorithm, Greedy Technique, and Pr...
-
This week we learned about threads, concurrency, and locks. We learned that a process has at least one thread and can have multiple threads....
-
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...
-
This week we covered scheduling, processes and C process APIs (fork, yield, etc). We learned about the relationship between parent and child...
No comments:
Post a Comment