Last time | Next time |
Today:
For comparison purposes, I also give the solution for exercise #1, which is Dijkstra's on the same graph. I illustrate the method using recursively smaller graphs, as described in the "lecture".
Many of you missed the idea behind this problem.
I like the depth-first approach, because of its lovely recursive nature.
Don't forget that the two sets of nodes may not have the same cardinality, and hence once set may run out first. What happens then?
************************* I just wanted to point out to all of you that CSC-485/585 will be offered this summer session. This is the "Theory of Computation" course which is required for the Computer Science major. Theory can be a difficult course for some students and being able to focus upon that one course alone can be a great advantage for many. I have designed an online version of the course which has worked out quite well over the past 2.5 semesters (I know it sounds like I am bragging but it really is a good online course I think). The summer schedule is available and registration is open so if you are interested please sign up. If you are curious about what the course covers I can summarize it as follows: We search for the answer to one simple question : "What is computable?" or, to put it another way, "Are there problems that we cannot solve with any computer?". That is, we search for a simple model of computation which is equivalent in computational power to your friendly neighborhood computer and we try to determine if there are problems that cannot be solved using said model (Spoiler alert - there are!!!). We then find a way to actually prove that some problems are, in fact, unsolvable with ANY computational device - and I do not mean weird metaphysical questions like "What is the meaning of life?" or "Can God create a stone that she herself can't lift?" or stuff like that - I mean clear problems that can be stated in straight-forward mathematical terms. Along the way, as we search for our model and proof technique, we discover models for other families of problems that are quite useful in day to day problem solving and we discover properties about them which we can use in our repertoire of programming skills. If you have any questions, please let me know. Also, please keep in mind that, as a required course, CSC 485 often fills up very quickly during the Fall/Spring semesters. If you have any questions about the course or anything else that I can help you with feel free to contact me at newellg@nku.edu *****************************
Chapter 7 material was covered on Day 22, although summaries are also included here. So let's step through the rest of the material to be covered on this exam: sections 4.1, and 6.1-6.3.
Copy and paste this adjacency graph to reproduce the results of the animated gif from Wikipedia:
0 7 9 nil nil 14 7 0 10 15 nil nil 9 10 0 11 nil 2 nil 15 11 0 6 nil nil nil nil 6 0 9 14 nil 2 nil 9 0