Skip to content

Commit 1da8c60

Browse files
committed
$ => and
1 parent b57582f commit 1da8c60

File tree

26 files changed

+39
-55
lines changed

26 files changed

+39
-55
lines changed

Advanced.Algorithms/DataStructures/Graph/AdjacencyList/DiGraph.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public void AddEdge(T source, T dest)
114114
}
115115

116116
/// <summary>
117-
/// Remove an existing edge between source & destination.
117+
/// Remove an existing edge between source and destination.
118118
/// Time complexity: O(1).
119119
/// </summary>
120120
public void RemoveEdge(T source, T dest)

Advanced.Algorithms/DataStructures/Graph/AdjacencyList/Graph.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ public GraphVertex<T> AddVertex(T value)
6262
/// Remove an existing vertex from this graph.
6363
/// Time complexity: O(V) where V is the number of vertices.
6464
/// </summary>
65-
/// <param name="vertex"></param>
6665
public void RemoveVertex(T vertex)
6766
{
6867
if (vertex == null)

Advanced.Algorithms/DataStructures/Graph/AdjacencyMatrix/DiGraph.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ public void AddVertex(T value)
7474
/// Remove an existing vertex from graph
7575
/// Time complexity: O(V) where V is the number of vertices.
7676
/// </summary>
77-
/// <param name="value"></param>
7877
public void RemoveVertex(T value)
7978
{
8079
if (value == null)
@@ -112,8 +111,6 @@ public void RemoveVertex(T value)
112111
/// add an edge from source to destination vertex
113112
/// Time complexity: O(1).
114113
/// </summary>
115-
/// <param name="source"></param>
116-
/// <param name="dest"></param>
117114
public void AddEdge(T source, T dest)
118115
{
119116
if (source == null || dest == null)
@@ -137,7 +134,7 @@ public void AddEdge(T source, T dest)
137134
}
138135

139136
/// <summary>
140-
/// remove an existing edge between source & destination
137+
/// remove an existing edge between source and destination
141138
/// Time complexity: O(1).
142139
/// </summary>
143140
public void RemoveEdge(T source, T dest)

Advanced.Algorithms/DataStructures/Graph/AdjacencyMatrix/Graph.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void AddEdge(T source, T dest)
136136
}
137137

138138
/// <summary>
139-
/// Remove an existing edge between source & destination.
139+
/// Remove an existing edge between source and destination.
140140
/// Time complexity: O(1).
141141
/// </summary>
142142
public void RemoveEdge(T source, T dest)

Advanced.Algorithms/DataStructures/Heap/Max/BinomialMaxHeap.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private void meld()
184184
cur = next;
185185
next = cur.Next;
186186
}
187-
//degress of cur & next are same
187+
//degress of cur and next are same
188188
else
189189
{
190190
//case 2 next degree equals next-next degree

Advanced.Algorithms/DataStructures/Heap/Max/FibornacciMaxHeap.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ private void cut(FibornacciHeapNode<T> node)
291291
/// <summary>
292292
/// Merges the given fibornacci node list to current Forest
293293
/// </summary>
294-
/// <param name="headPointer"></param>
295294
private void mergeForests(FibornacciHeapNode<T> headPointer)
296295
{
297296
var current = headPointer;

Advanced.Algorithms/DataStructures/Heap/Min/BinomialMinHeap.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private void meld()
184184
cur = next;
185185
next = cur.Next;
186186
}
187-
//degress of cur & next are same
187+
//degress of cur and next are same
188188
else
189189
{
190190
//case 2 next degree equals next-next degree
@@ -228,7 +228,7 @@ private void meld()
228228

229229
/// <summary>
230230
/// Merges the given sorted forest to current sorted Forest
231-
/// & returns the last inserted node (pointer required for decrement-key)
231+
/// and returns the last inserted node (pointer required for decrement-key)
232232
/// </summary>
233233
private void mergeSortedForests(DoublyLinkedList<BinomialHeapNode<T>> newHeapForest)
234234
{

Advanced.Algorithms/DataStructures/Heap/Min/FibornacciMinHeap.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ private void cut(FibornacciHeapNode<T> node)
288288
/// <summary>
289289
/// Merges the given fibornacci node list to current Forest
290290
/// </summary>
291-
/// <param name="headPointer"></param>
292291
private void mergeForests(FibornacciHeapNode<T> headPointer)
293292
{
294293
var current = headPointer;

Advanced.Algorithms/DataStructures/Tree/B+Tree.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private void insertAndSplit(ref BpTreeNode<T> node, T newValue,
183183
//and insert new median to parent
184184
if (node.KeyCount == maxKeysPerNode)
185185
{
186-
//divide the current node values + new Node as left & right sub nodes
186+
//divide the current node values + new Node as left and right sub nodes
187187
var left = new BpTreeNode<T>(maxKeysPerNode, null);
188188
var right = new BpTreeNode<T>(maxKeysPerNode, null);
189189

@@ -227,7 +227,7 @@ private void insertAndSplit(ref BpTreeNode<T> node, T newValue,
227227
var insertionCount = 0;
228228

229229
//insert newValue and existing values in sorted order
230-
//to left & right nodes
230+
//to left and right nodes
231231
//set new median during sorting
232232
for (var i = 0; i < node.KeyCount; i++)
233233
{
@@ -276,8 +276,8 @@ private void insertAndSplit(ref BpTreeNode<T> node, T newValue,
276276

277277
}
278278

279-
//pick the smaller among newValue & node.Keys[i]
280-
//and insert in to currentNode (left & right nodes)
279+
//pick the smaller among newValue and node.Keys[i]
280+
//and insert in to currentNode (left and right nodes)
281281
//if new Value was already inserted then just copy from node.Keys in sequence
282282
//since node.Keys is already in sorted order it should be fine
283283
if (newValueInserted || node.Keys[i].CompareTo(newValue) < 0)
@@ -543,7 +543,7 @@ private void sandwich(BpTreeNode<T> leftSibling, BpTreeNode<T> rightSibling, T d
543543

544544
var newNode = new BpTreeNode<T>(maxKeysPerNode, leftSibling.Parent);
545545

546-
//if leaves are merged then update the Next & Prev pointers
546+
//if leaves are merged then update the Next and Prev pointers
547547
if (leftSibling.IsLeaf)
548548
{
549549
if (leftSibling.Prev != null)
@@ -943,7 +943,7 @@ internal BpTreeNode(int maxKeysPerNode, BpTreeNode<T> parent)
943943
}
944944

945945
/// <summary>
946-
/// For shared test method accross B & B+ tree
946+
/// For shared test method accross B and B+ tree
947947
/// </summary>
948948
/// <returns></returns>
949949
internal override BNode<T> GetParent()
@@ -952,7 +952,7 @@ internal override BNode<T> GetParent()
952952
}
953953

954954
/// <summary>
955-
/// For shared test method accross B & B+ tree
955+
/// For shared test method accross B and B+ tree
956956
/// </summary>
957957
/// <returns></returns>
958958
internal override BNode<T>[] GetChildren()

Advanced.Algorithms/DataStructures/Tree/BST.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,6 @@ private BSTNodeBase<T> find(T value)
364364
/// Get the value previous to given value in this BST.
365365
/// Time complexity: O(n)
366366
/// </summary>
367-
/// <param name="value"></param>
368-
/// <returns></returns>
369367
public T NextLower(T value)
370368
{
371369
var node = find(value);

0 commit comments

Comments
 (0)