MHB How to determine whether a graph is connected or not?

  • Thread starter Thread starter yakin
  • Start date Start date
  • Tags Tags
    Graph
AI Thread Summary
To determine if a graph is connected, one can use standard search algorithms like Breadth-First Search (BFS) or Depth-First Search (DFS). Start the search from any node and track the visited nodes throughout the process. After the search completes, check for any unvisited nodes; if any exist, the graph is not connected. If all nodes are visited, the graph is confirmed to be connected. This method provides a practical approach to assessing graph connectivity.
yakin
Messages
42
Reaction score
0
How to determine whether a graph is connected or not?
 
Physics news on Phys.org
If you mean an algorithm, you can just use a standard search (BFS, DFS) starting from any point in the graph, keeping track of visited nodes. Once your search ends, check if there are any nodes that were not visited - if so, the graph is not connected, otherwise it is connected (can you prove this rigorously?).
 
I was reading a Bachelor thesis on Peano Arithmetic (PA). PA has the following axioms (not including the induction schema): $$\begin{align} & (A1) ~~~~ \forall x \neg (x + 1 = 0) \nonumber \\ & (A2) ~~~~ \forall xy (x + 1 =y + 1 \to x = y) \nonumber \\ & (A3) ~~~~ \forall x (x + 0 = x) \nonumber \\ & (A4) ~~~~ \forall xy (x + (y +1) = (x + y ) + 1) \nonumber \\ & (A5) ~~~~ \forall x (x \cdot 0 = 0) \nonumber \\ & (A6) ~~~~ \forall xy (x \cdot (y + 1) = (x \cdot y) + x) \nonumber...
I'm taking a look at intuitionistic propositional logic (IPL). Basically it exclude Double Negation Elimination (DNE) from the set of axiom schemas replacing it with Ex falso quodlibet: ⊥ → p for any proposition p (including both atomic and composite propositions). In IPL, for instance, the Law of Excluded Middle (LEM) p ∨ ¬p is no longer a theorem. My question: aside from the logic formal perspective, is IPL supposed to model/address some specific "kind of world" ? Thanks.

Similar threads

Replies
5
Views
2K
Replies
4
Views
2K
Replies
10
Views
2K
Replies
1
Views
2K
Replies
2
Views
2K
Back
Top