- Notifications
You must be signed in to change notification settings - Fork0
seasick-/bfs.go
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Breadth First Search implementation in Go
This is part of a series of exercises to help me improve my understanding of programming languages and styles.
Implementation as described byProf. Erik Demaine in arecorded lecture at MIT.
The graph constructed in the test is represented in the diagram shown on the right.
$ go build -o bfs$ ./bfs[1 2 3 4 5 6 7 8 9 10 11 12]
If you haveVagrant installed, you can build a simple dev environment. The repository will be mounted in/srv
.
$ curl -O https://raw.github.com/adlawson/vagrantfiles/master/go/Vagrantfile$ vagrant up$ vagrant ssh
Elixir | Erlang | Go | JavaScript | Julia | Lua | Python |
---|---|---|---|---|---|---|
dfs.ex | dfs.erl | dfs.go | dfs.js | dfs.jl | dfs.lua | dfs.py |
bfs.ex | bfs.erl | bfs.go | bfs.js | bfs.jl | bfs.lua | bfs.py |
The MIT License (MIT)Copyright (c) 2014 Andrew Lawson <http://adlawson.com>Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.
About
Breadth First Search (Go)
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published