breath first search


i need source code of breath first search for my homework.is there anybody who can help me?
We can help you, but you need to show us what you have so far, we won't do your homework for you. And it's Breadth first, not breath.
Google and wikipedia are amazing sometimes.

http://en.wikipedia.org/wiki/Breadth-first_search#Pseudocode
yeah soryy breadth search. i want source code to print node of trees one by one breatdh.example:

2
3 4
5 6 7 8 this is our tree and output must be:2345678

@rojsarton

i saw this website but i dont understand the pseudocode.i try to write code of this pseudocode but i cant.

So i just want to write bfs source code for trees
Show us what you did.
how did you implement the queue, the mark check, and your graph/tree structure
Topic archived. No new replies allowed.