AlgorithmsSearchForSubsequence Method |
Name | Description | |
---|---|---|
![]() ![]() | SearchForSubsequenceT(IListT, IEnumerableT) |
Searchs a list for a sub-sequence of items that match a particular pattern. A subsequence
of list matches pattern at index i if list[i] is equal to the first item
in pattern, list[i+1] is equal to the second item in pattern,
and so forth for all the items in pattern.
|
![]() ![]() | SearchForSubsequenceT(IListT, IEnumerableT, IEqualityComparerT) |
Searchs a list for a sub-sequence of items that match a particular pattern. A subsequence
of list matches pattern at index i if list[i] is equal to the first item
in pattern, list[i+1] is equal to the second item in pattern,
and so forth for all the items in pattern. The passed
instance of IEqualityComparer<T> is used for determining if two items are equal.
|
![]() ![]() | SearchForSubsequenceT(IListT, IEnumerableT, BinaryPredicateT) |
Searchs a list for a sub-sequence of items that match a particular pattern. A subsequence
of list matches pattern at index i if list[i] is "equal" to the first item
in pattern, list[i+1] is "equal" to the second item in pattern,
and so forth for all the items in pattern. The passed
BinaryPredicate is used to determine if two items are "equal".
|