Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
courses:cs211:winter2018:journals:patelk:chapter3 [2018/02/05 05:13] – [3.5 Connectivity in Directed Graphs] patelkcourses:cs211:winter2018:journals:patelk:chapter3 [2018/02/05 05:40] (current) – [3.6 Directed Acyclic Graphs and Topological Ordering] patelk
Line 87: Line 87:
   * For any two nodes s ant t in a graph, their connected components are either identical or disjoint   * For any two nodes s ant t in a graph, their connected components are either identical or disjoint
  
 +==== Personal Thoughts ====
 +
 +Like the previous section, this section was pretty simple, as it reviewed past concepts that were taught in multiple other classes. This section provided good reference material for BFS and DFS. It contained nothing to confusing and was review.
 +Readability: 8.5
 +Interesting: 7
 ===== 3.3 Implementing Graph Traversal Using Queues and Stacks===== ===== 3.3 Implementing Graph Traversal Using Queues and Stacks=====
  
Line 143: Line 148:
   * O(m+n): although algorithm may run BFS/DFS multiple times, only a constant amount of work on a given edge or node is done in the iteration when the connected component it belongs to is under consideration   * O(m+n): although algorithm may run BFS/DFS multiple times, only a constant amount of work on a given edge or node is done in the iteration when the connected component it belongs to is under consideration
  
 +==== Personal Thoughts ====
 +
 +This section was not intuitive for me, but made a lot of sense as I was reading. Being familiar with BST, DST, queues, and stacks already, helped make this section easier to understand. The algorithms do take some time to conceptually understand, but are not that difficult.
 +Readability: 8
 +Interesting: 6.5
 ===== 3.4 Testing Bipartiteness: An Application of Breadth-First Search===== ===== 3.4 Testing Bipartiteness: An Application of Breadth-First Search=====
  
Line 159: Line 169:
       - There is an edge of G joining two nodes of the same layer: Not Bipartite       - There is an edge of G joining two nodes of the same layer: Not Bipartite
  
 +==== Personal Thoughts ====
  
 +I don't really remember bipartite graphs from other classes, but they are pretty simple and this section made them very simple. We did already talk about them in class, so that did help as well. There wasn't any information that was too confusing in this short section.
 +Readability: 10
 +Interesting: 8
 ===== 3.5 Connectivity in Directed Graphs===== ===== 3.5 Connectivity in Directed Graphs=====
  
Line 187: Line 201:
     * Compute the strong components for all nodes: O(m+n)     * Compute the strong components for all nodes: O(m+n)
  
 +==== Personal Thoughts ====
 +
 +Again, this section was not very difficult to understand and most of it makes sense. I would like to talk a little bit more about strong connectivity in class. The concept makes sense, but I would like to learn more about why it is useful/important. It seems like O(m+n) is a very common running time for graphs...
 +Readability: 9
 +Interesting: 7
  
 ===== 3.6 Directed Acyclic Graphs and Topological Ordering===== ===== 3.6 Directed Acyclic Graphs and Topological Ordering=====
Line 204: Line 223:
     * Thus, in every DAG G, there is a node with no incoming edges     * Thus, in every DAG G, there is a node with no incoming edges
     * If this is not true, then there is a cycle, so it is not a DAG     * If this is not true, then there is a cycle, so it is not a DAG
-    * +
 {{:courses:cs211:winter2018:journals:patelk:dag.png?nolink&400|}} {{:courses:cs211:winter2018:journals:patelk:dag.png?nolink&400|}}
  
Line 220: Line 239:
   * This leads to constant work per edge   * This leads to constant work per edge
  
 +==== Personal Thoughts ====
 +
 +This section contained information that I had not yet been exposed to. However, most of the section was very intuitive. Cycles are not a very difficult concept so it makes sense why a DAG cannot have a cycle. This is my first time, as far as I remember, being exposed to DAGs, so it will be interesting to see how difficult I find them as we do more complex things with them.
 +Readability: 9
 +Interesting: 8
courses/cs211/winter2018/journals/patelk/chapter3.1517807618.txt.gz · Last modified: by patelk
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0