Lab 研究・実験室最新の技術を使ってCOCが作成した実験的なプログラムを紹介します。 @Deprecated // 基盤でのみ使用して下さい。 private static void match(List lefts, List rights, List anss, @SuppressWarnings("rawtypes") Function[] getLefts, @SuppressWarnings("rawtypes") Function[] getRights, IDiPredicate leftOnly, IDiPredicate rightOnly, ITrPredicate match) throws Exception{ int nowL=0; int nowR=0; int endL=lefts.size(); int endR=rights.size(); L left; R right; R prevRight = null; while(nowL < endL && nowR < endR){ left=lefts.get(nowL); right=rights.get(nowR); int comp = ULogic.compareLR(left, right, getLefts, getRights); if(comp < 0){ leftOnly.apply(left, anss); nowL++; continue; }else if( 0 < comp){ if(prevRight == null || ULogic.compare(prevRight, right, getRights) < 0 ){ rightOnly.apply(right, anss); } prevRight = right; nowR++; continue; } match.apply(left, right, anss); nowL++; prevRight = right; } for(;nowL < endL; nowL++){ leftOnly.apply(lefts.get(nowL), anss); } for(;nowR < endR; nowR++){ right = rights.get(nowR); if(prevRight == null || ULogic.compare(prevRight, right, getRights) < 0 ) rightOnly.apply(right, anss); } } } JDLA Deep Learning for GENERAL ディープラーニング検定: 合格者2名