She enjoys doing 'spot the difference' puzzles.There is a difference between happy and sad.What is the difference between these two cakes?
what is the difference between ERD and UML Flowcharts.
what is the difference between commutative and symmetric properties
difference between physical and logical data flow diagrams.
difference between cross section and block daigram
dfs better then from bfs..
nop
ok here we go...Proof:If the some graph G has the same DFS and BFS then that means that G should not have any cycle(work out for any G with a cycle u will never get the same BFS and DFS .... and for a graph without any cycle u will get the same BFS/DFS).We will prove it by contradiction:So say if T is the tree obtained by BFS/DFS, and let us assume that G has atleast one edge more than T. So one more edge to T(T is a tree) would result in a cycle in G, but according to the above established principle no graph which has a cycle would result the same DFS and BFS, so out assumption is a contradiction.Hence G should have more edges than T, which implies that if the BFS and DFS for a graph G are the same then the G = T.Hope this helps u......................
DFS and BFS are both searching algorithms. DFS, or depth first search, is a simple to implement algorithm, especially when written recursively. BFS, or breadth first search, is only slightly more complicated. Both search methods can be used to obtain a spanning tree of the graph, though if I recall correctly, BFS can also be used in a weighted graph to generate a minimum cost spanning tree.
yes pagal
It isn't necessarily better... They each have their own pros and cons
DFS and BFS stands for Depth First Search and Breadth First Search respectively. In DFS algorithm every node is explored in depth; tracking back upon hitting an already visited node and starts visiting from a node which has any adjacent nodes unvisited. In BFS, the nodes are visited level wise. These algorithms are used to traverse the nodes on a connected digraph. Primal
Prove_that_if_a_DFS_and_BFS_trees_in_graph_G_are_the_same_than
DFS, BFS
eeergnm dfs
dfs sd
Use a simple DFS/BFS traversal. If you have gone through all nodes, the graph is connected.