Class IdentityShuffleStrategy
A IShuffleStrategy which does nothing to its input, and returns it as it is.
Inheritance
System.Object
IdentityShuffleStrategy
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MoreStructures.Lists.Sorting.QuickSort
Assembly: MoreStructures.dll
Syntax
public class IdentityShuffleStrategy : IShuffleStrategy
Remarks
Useful when used in a IThreeWayPartitionStrategy of a RecursiveQuickSort which should act deterministically.
Methods
| Improve this Doc View SourceShuffle<T>(IList<T>, Int32, Int32)
Shuffles the items of list
between index start
and
end
.
Declaration
public void Shuffle<T>(IList<T> list, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
IList<T> | list | The list whose window to be shuffled. |
System.Int32 | start | The left index of the window of |
System.Int32 | end | The right index of the window of |
Type Parameters
Name | Description |
---|---|
T | The type of items of the |
Remarks
Does nothing to the list
: it returns it as it is.