레벤슈타인 거리

한 문자열을 다른 문자열로 바꾸는 최소 삽입·삭제·치환 횟수를 계산합니다.

입력: 텍스트결과: 숫자 값

텍스트 입력

도구 옵션

예제

another delimiter

입력

kitten sitting

Expected answer

JSON
3
샘플 구분자
삽입 비용
1
삭제 비용
1
대체 비용
1
cost zero

입력

kitten
sitting

Expected answer

JSON
0
샘플 구분자
\n
삽입 비용
0
삭제 비용
0
대체 비용
0
negative deletion cost

입력

kitten
sitting

Expected rejection

Message contains
Negative costs are not allowed.
샘플 구분자
\n
삽입 비용
1
삭제 비용
-1
대체 비용
1
negative insertion cost

입력

kitten
sitting

Expected rejection

Message contains
Negative costs are not allowed.
샘플 구분자
\n
삽입 비용
-1
삭제 비용
1
대체 비용
1
negative substitution cost

입력

kitten
sitting

Expected rejection

Message contains
Negative costs are not allowed.
샘플 구분자
\n
삽입 비용
1
삭제 비용
1
대체 비용
-1
too few samples

입력

kitten

Expected rejection

Message contains
Incorrect number of samples. Check your input and/or delimiter.
샘플 구분자
\n
삽입 비용
1
삭제 비용
1
대체 비용
1
too many samples

입력

kitten
sitting
kitchen

Expected rejection

Message contains
Incorrect number of samples. Check your input and/or delimiter.
샘플 구분자
\n
삽입 비용
1
삭제 비용
1
대체 비용
1
varied costs 1

입력

kitten
sitting

Expected answer

JSON
230
샘플 구분자
\n
삽입 비용
10
삭제 비용
100
대체 비용
1000
varied costs 2

입력

kitten
sitting

Expected answer

JSON
1020
샘플 구분자
\n
삽입 비용
1000
삭제 비용
100
대체 비용
10
Wikipedia example 1

입력

kitten
sitting

Expected answer

JSON
3
샘플 구분자
\n
삽입 비용
1
삭제 비용
1
대체 비용
1

매개변수

매개변수기본값입력 및 선택 항목
샘플 구분자"\\n"\n, \r, \t 등의 이스케이프 시퀀스 지원
삽입 비용1숫자
삭제 비용1숫자
대체 비용1숫자

관련 도구

유틸리티

작업 참고 자료

원본 기술 문서 보기 (English)