Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Breadth First Search (Go)

NotificationsYou must be signed in to change notification settings

seasick-/bfs.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Breadth First Search

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
ElixirErlangGoJavaScriptJuliaLuaPython
dfs.exdfs.erldfs.godfs.jsdfs.jldfs.luadfs.py
bfs.exbfs.erlbfs.gobfs.jsbfs.jlbfs.luabfs.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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp