aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lcs/lcs_via_lis.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/lcs/lcs_via_lis.h
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/lcs/lcs_via_lis.h')
-rw-r--r--library/cpp/lcs/lcs_via_lis.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/lcs/lcs_via_lis.h b/library/cpp/lcs/lcs_via_lis.h
index d26733d94e..c652c31c81 100644
--- a/library/cpp/lcs/lcs_via_lis.h
+++ b/library/cpp/lcs/lcs_via_lis.h
@@ -11,9 +11,9 @@
namespace NLCS {
template <typename TVal>
struct TLCSCtx {
- typedef TVector<ui32> TSubsequence;
- typedef THashMap<TVal, TSubsequence, THash<TVal>, TEqualTo<TVal>, ::TPoolAllocator> TEncounterIndex;
- typedef TVector<std::pair<ui32, ui32>> TLastIndex;
+ typedef TVector<ui32> TSubsequence;
+ typedef THashMap<TVal, TSubsequence, THash<TVal>, TEqualTo<TVal>, ::TPoolAllocator> TEncounterIndex;
+ typedef TVector<std::pair<ui32, ui32>> TLastIndex;
typedef NPagedVector::TPagedVector<TSubsequence, 4096> TCover;
TMemoryPool Pool;
@@ -183,7 +183,7 @@ namespace NLCS {
template <typename TVal, typename TIter>
size_t MeasureLCS(TIter beg1, TIter end1, TIter beg2, TIter end2, TLCSCtx<TVal>* ctx = nullptr) {
- return MakeLCS<TVal>(beg1, end1, beg2, end2, (TVector<TVal>*)nullptr, ctx);
+ return MakeLCS<TVal>(beg1, end1, beg2, end2, (TVector<TVal>*)nullptr, ctx);
}
template <typename TVal, typename TColl>