Skip to content

Commit

Permalink
Updated ReadeME.md..
Browse files Browse the repository at this point in the history
- additional notes and updates..
  • Loading branch information
waynewbishop committed Sep 11, 2015
1 parent 0019804 commit 09917c7
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The project features code-level examples for the following items:
+ Generics
+ Closures
+ Hash Tables
+ Bloom Filters
+ Binary Search Trees
+ Tree Balancing (Rotations)
+ Tries
Expand All @@ -35,9 +36,9 @@ The project features code-level examples for the following items:
+ Depth-First Search
+ Breadth-First Search

Online, Print & PDF
The Book
--------------------
Available in print or pdf format, <a href="http://shop.waynewbishop.com" target="_blank">The Swift Algorithms Book</a> features code and color illustrations that will benefit students and professionals. People are also welcome to follow the project through Github or online at <a href="http://www.waynewbishop.com/swift" target="_blank">waynewbishop.com/swift</a>. As a collaborative open-source effort, I welcome <a href="https://twitter.com/waynewbishop" target="_blank">feedback</a> and <a href="http://shop.waynewbishop.com/pages/participate" target="_blank">contribution</a> from others.
Available in print or pdf format, <a href="http://shop.waynewbishop.com" target="_blank">The Swift Algorithms Book</a> features code and color illustrations that will benefit students and professionals. As a collaborative open-source effort, I also welcome <a href="https://twitter.com/waynewbishop" target="_blank">feedback</a> and <a href="http://shop.waynewbishop.com/pages/participate" target="_blank">contribution</a> from others.


Example
Expand All @@ -51,17 +52,14 @@ Example
//establish a new queue
let graphQueue: Queue<Vertex> = Queue<Vertex>()


//queue a starting vertex
graphQueue.enQueue(startingv)


while !graphQueue.isEmpty() {

//traverse the next queued vertex
let vitem = graphQueue.deQueue() as Vertex!


//add unvisited vertices to the queue
for e in vitem.neighbors {
if e.neighbor.visited == false {
Expand All @@ -70,24 +68,20 @@ Example
}
}


vitem.visited = true
print("traversed vertex: \(vitem.key!)..")


} //end while


print("graph traversal complete..")


} //end function
```

Getting Started
--------------------

Swift Structures has been optimized for Xcode 6.3 (e.g., Swift 1.2) or later. The directories are organized as follows:
Swift Structures has been optimized for Xcode 7.0 GM Seed (e.g., Swift 2.0) or later. The directories are organized as follows:
+ Source - Code for all Swift data structures and algorithms
+ Example - An empty iOS single-view application template
+ SwiftTests - Unit tests with XCTest Framework
Expand Down

0 comments on commit 09917c7

Please # to comment.