Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Breadth-first search
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==BFS ordering== An enumeration of the vertices of a graph is said to be a BFS ordering if it is the possible output of the application of BFS to this graph. Let <math>G=(V,E)</math> be a graph with <math>n</math> vertices. Recall that <math>N(v)</math> is the set of neighbors of <math>v</math>. Let <math>\sigma=(v_1,\dots,v_m)</math> be a list of distinct elements of <math>V</math>, for <math>v\in V\setminus\{v_1,\dots,v_m\}</math>, let <math>\nu_{\sigma}(v)</math> be the least <math>i</math> such that <math>v_i</math> is a neighbor of <math>v</math>, if such a <math>i</math> exists, and be <math>\infty</math> otherwise. Let <math>\sigma=(v_1,\dots,v_n)</math> be an enumeration of the vertices of <math>V</math>. The enumeration <math>\sigma</math> is said to be a BFS ordering (with source <math>v_1</math>) if, for all <math>1<i\le n</math>, <math>v_i</math> is the vertex <math>w\in V\setminus\{v_1,\dots,v_{i-1}\}</math> such that <math>\nu_{(v_1,\dots,v_{i-1})}(w)</math> is minimal. Equivalently, <math>\sigma</math> is a BFS ordering if, for all <math>1\le i<j<k\le n</math> with <math>v_i\in N(v_k)\setminus N(v_j)</math>, there exists a neighbor <math>v_m</math> of <math>v_j</math> such that <math>m<i</math>.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Breadth-first search
(section)
Add topic