knot-detect-pattern-2