[{"@context":"http:\/\/schema.org\/","@type":"BlogPosting","@id":"https:\/\/wiki.edu.vn\/all2jp\/wiki11\/archives\/9899#BlogPosting","mainEntityOfPage":"https:\/\/wiki.edu.vn\/all2jp\/wiki11\/archives\/9899","headline":"Needleman Wish Algorithm-Wikipedia","name":"Needleman Wish Algorithm-Wikipedia","description":"before-content-x4 Needleman Wish Algorithm \u30d0\u30a4\u30aa\u30a4\u30f3\u30d5\u30a9\u30de\u30c6\u30a3\u30af\u30b9\u306e\u6700\u9069\u5316\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3067\u3059\u3002\u305d\u3053\u3067\u306f\u30012\u3064\u306e\u30cc\u30af\u30ec\u30aa\u30c1\u30c9\u307e\u305f\u306f\u30a2\u30df\u30ce\u9178\u914d\u5217\u3092\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u6700\u9069\u306a\u30b0\u30ed\u30fc\u30d0\u30eb\u985e\u4f3c\u6027\u30b9\u30b3\u30a2\u3092\u8a08\u7b97\u3059\u308b\u304b\u30012\u3064\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u9593\u30671\u3064\u4ee5\u4e0a\u306e\u6700\u9069\u306a\u30b0\u30ed\u30fc\u30d0\u30eb\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u3092\u30d0\u30c3\u30af\u30c8\u30e9\u30c3\u30af\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u985e\u4f3c\u6027\u30b9\u30b3\u30a2\u306f\u30012\u3064\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u985e\u4f3c\u6027\u306e\u5c3a\u5ea6\u3067\u3059\u3002\u30b9\u30b3\u30a2\u304c\u9ad8\u3044\u307b\u3069\u3001\u30b9\u30b3\u30a2\u30ea\u30f3\u30b0\u30e2\u30c7\u30eb\u306e\u4e0b\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u306f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u3001\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306e\u30b9\u30b3\u30a2\u3092\u6700\u9069\u5316\u3057\u307e\u3059\u3002\u30a2\u30e9\u30a4\u30f3\u30e1\u30f3\u30c8\u306f\u3001\u6700\u521d\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u30922\u756a\u76ee\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u306b\u8ee2\u9001\u3059\u308b\u305f\u3081\u306e\u7de8\u96c6\u624b\u9806\u306e\u30a8\u30d4\u30bd\u30fc\u30c9\u3067\u3059\u3002 2\u3064\u306e\u975e\u81ea\u660e\u306a\u30b7\u30fc\u30b1\u30f3\u30b9\u306b\u306f\u591a\u304f\u306e\u30a2\u30e9\u30a4\u30f3\u30e1\u30f3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002\u6700\u9069\u306a\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306b\u306f\u3001\u6700\u5927\u985e\u4f3c\u6027\u30b9\u30b3\u30a2\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u3001\u52d5\u7684\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u65b9\u6cd5\u3092\u4f7f\u7528\u3057\u3001\u7de8\u96c6\u624b\u9806\u306b\u30b9\u30b3\u30a2\u30ea\u30f3\u30b0\u30e2\u30c7\u30eb\uff08\u3064\u307e\u308a\u3001\u4e00\u822c\u7684\u306a\u30ae\u30e3\u30c3\u30d7\u30b3\u30b9\u30c8\u306e\u4f7f\u7528\uff09\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002 after-content-x4 \u30b7\u30fc\u30b1\u30f3\u30b9A\u304a\u3088\u3073B\u306e\u53ef\u80fd\u306a\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u306e\u3059\u3079\u3066\u306e\u30ab\u30c3\u30d7\u30eb\u306e\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u3067\u306f\u3001needleman-wunsch-dp\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u3001\u6700\u9069\u306a\u30b0\u30ed\u30fc\u30d0\u30eb\u985e\u4f3c\u6027\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u30b9\u30b3\u30a2\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002\u8981\u7d20 \u79c1 \u3001 j {displaystyle I\u3001j} \u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306b\u306f\u3001\u90e8\u5206\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u6700\u9069\u306a\u30b0\u30ed\u30fc\u30d0\u30eb\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306e\u6700\u9069\u30b9\u30b3\u30a2\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059 a [ 0 .. \u79c1 ]","datePublished":"2021-05-16","dateModified":"2021-05-16","author":{"@type":"Person","@id":"https:\/\/wiki.edu.vn\/all2jp\/wiki11\/archives\/author\/lordneo#Person","name":"lordneo","url":"https:\/\/wiki.edu.vn\/all2jp\/wiki11\/archives\/author\/lordneo","image":{"@type":"ImageObject","@id":"https:\/\/secure.gravatar.com\/avatar\/44a4cee54c4c053e967fe3e7d054edd4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/44a4cee54c4c053e967fe3e7d054edd4?s=96&d=mm&r=g","height":96,"width":96}},"publisher":{"@type":"Organization","name":"Enzyklop\u00e4die","logo":{"@type":"ImageObject","@id":"https:\/\/wiki.edu.vn\/wiki4\/wp-content\/uploads\/2023\/08\/download.jpg","url":"https:\/\/wiki.edu.vn\/wiki4\/wp-content\/uploads\/2023\/08\/download.jpg","width":600,"height":60}},"image":{"@type":"ImageObject","@id":"https:\/\/wikimedia.org\/api\/rest_v1\/media\/math\/render\/svg\/f4cbf8bbc622154cda8208d6e339495fe16a1f9a","url":"https:\/\/wikimedia.org\/api\/rest_v1\/media\/math\/render\/svg\/f4cbf8bbc622154cda8208d6e339495fe16a1f9a","height":"","width":""},"url":"https:\/\/wiki.edu.vn\/all2jp\/wiki11\/archives\/9899","wordCount":12325,"articleBody":" (adsbygoogle = window.adsbygoogle || []).push({});before-content-x4 Needleman Wish Algorithm \u30d0\u30a4\u30aa\u30a4\u30f3\u30d5\u30a9\u30de\u30c6\u30a3\u30af\u30b9\u306e\u6700\u9069\u5316\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3067\u3059\u3002\u305d\u3053\u3067\u306f\u30012\u3064\u306e\u30cc\u30af\u30ec\u30aa\u30c1\u30c9\u307e\u305f\u306f\u30a2\u30df\u30ce\u9178\u914d\u5217\u3092\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u6700\u9069\u306a\u30b0\u30ed\u30fc\u30d0\u30eb\u985e\u4f3c\u6027\u30b9\u30b3\u30a2\u3092\u8a08\u7b97\u3059\u308b\u304b\u30012\u3064\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u9593\u30671\u3064\u4ee5\u4e0a\u306e\u6700\u9069\u306a\u30b0\u30ed\u30fc\u30d0\u30eb\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u3092\u30d0\u30c3\u30af\u30c8\u30e9\u30c3\u30af\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u985e\u4f3c\u6027\u30b9\u30b3\u30a2\u306f\u30012\u3064\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u985e\u4f3c\u6027\u306e\u5c3a\u5ea6\u3067\u3059\u3002\u30b9\u30b3\u30a2\u304c\u9ad8\u3044\u307b\u3069\u3001\u30b9\u30b3\u30a2\u30ea\u30f3\u30b0\u30e2\u30c7\u30eb\u306e\u4e0b\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u306f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u3001\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306e\u30b9\u30b3\u30a2\u3092\u6700\u9069\u5316\u3057\u307e\u3059\u3002\u30a2\u30e9\u30a4\u30f3\u30e1\u30f3\u30c8\u306f\u3001\u6700\u521d\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u30922\u756a\u76ee\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u306b\u8ee2\u9001\u3059\u308b\u305f\u3081\u306e\u7de8\u96c6\u624b\u9806\u306e\u30a8\u30d4\u30bd\u30fc\u30c9\u3067\u3059\u3002 2\u3064\u306e\u975e\u81ea\u660e\u306a\u30b7\u30fc\u30b1\u30f3\u30b9\u306b\u306f\u591a\u304f\u306e\u30a2\u30e9\u30a4\u30f3\u30e1\u30f3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002\u6700\u9069\u306a\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306b\u306f\u3001\u6700\u5927\u985e\u4f3c\u6027\u30b9\u30b3\u30a2\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u3001\u52d5\u7684\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u65b9\u6cd5\u3092\u4f7f\u7528\u3057\u3001\u7de8\u96c6\u624b\u9806\u306b\u30b9\u30b3\u30a2\u30ea\u30f3\u30b0\u30e2\u30c7\u30eb\uff08\u3064\u307e\u308a\u3001\u4e00\u822c\u7684\u306a\u30ae\u30e3\u30c3\u30d7\u30b3\u30b9\u30c8\u306e\u4f7f\u7528\uff09\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002 (adsbygoogle = window.adsbygoogle || []).push({});after-content-x4\u30b7\u30fc\u30b1\u30f3\u30b9A\u304a\u3088\u3073B\u306e\u53ef\u80fd\u306a\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u306e\u3059\u3079\u3066\u306e\u30ab\u30c3\u30d7\u30eb\u306e\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u3067\u306f\u3001needleman-wunsch-dp\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u3001\u6700\u9069\u306a\u30b0\u30ed\u30fc\u30d0\u30eb\u985e\u4f3c\u6027\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u30b9\u30b3\u30a2\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002\u8981\u7d20 \u79c1 \u3001 j {displaystyle I\u3001j} \u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306b\u306f\u3001\u90e8\u5206\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u6700\u9069\u306a\u30b0\u30ed\u30fc\u30d0\u30eb\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306e\u6700\u9069\u30b9\u30b3\u30a2\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059 a [ 0 .. \u79c1 ] {displaystyle a [0..i]} \u3068\u306e (adsbygoogle = window.adsbygoogle || []).push({});after-content-x4b [ 0 .. j ] {displaystyle b [0..j]} b\u304b\u3089\u3002\u30b9\u30da\u30eb a [ 0 .. \u79c1 ] {displaystyle a [0..i]} I-Ten Praefix\u306b\u5bfe\u5fdc\u3057\u307e\u3059 a \u521d\u3081 \u3001 a 2 \u3001 … \u3001 a \u79c1 {displaystyle a_ {1}\u3001a_ {2}\u3001dots\u3001a_ {i}} \u304b\u3089\u3002 m\u304ca\u307e\u305f\u306fn\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u9577\u3092b\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u9577\u3092\u793a\u3059\u5834\u5408\u3001\u30b9\u30b3\u30a2\u30de\u30c8\u30ea\u30c3\u30af\u30b9m\u306b\u542b\u307e\u308c\u308b m + \u521d\u3081 {displaystyle m+1} \u7dda\u3068 (adsbygoogle = window.adsbygoogle || []).push({});after-content-x4n + \u521d\u3081 {displaystyle n+1} \u5217\u3002\u5b8c\u5168\u306a\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u30b9\u30b3\u30a2\u306f\u3001\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u5b9f\u884c\u306b\u3042\u308a\u307e\u3059 m \uff08 m \u3001 n \uff09\uff09 {displaystyle m\uff08m\u3001n\uff09} \u542b\u3080\u3002 \u30b9\u30b3\u30a2\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306f\u518d\u5e30\u7684\u306b\u8a08\u7b97\u3055\u308c\u307e\u3059\u3002\u8981\u7d20\uff08i\u3001j\uff09\u306e\u5834\u5408\u3001\u30de\u30c8\u30ea\u30c3\u30af\u30b9M\u306f3\u3064\u306e\u30b1\u30fc\u30b9\u3067\u6700\u5927\u5316\u3055\u308c\u307e\u3059\u3002\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u524d\u306e\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306e\u62e1\u5f35 a [ 0 .. \u79c1 – \u521d\u3081 ] {displaystyle a [0..i-1]} \u3068 b [ 0 .. j – \u521d\u3081 ] {displaystyle b [0..j-1]} \u8a66\u5408\u307e\u305f\u306f\u30de\u30b9\u30de\u30c3\u30c1\u306e\u5468\u308a\u3067\u3001\u4ee5\u524d\u306b\u8a08\u7b97\u3055\u308c\u305f\u30b9\u30b3\u30a2\u306e\u8ffd\u52a0\u304c\u5bfe\u5fdc\u3057\u307e\u3059 m \uff08 \u79c1 – \u521d\u3081 \u3001 j – \u521d\u3081 \uff09\uff09 {displaystyle m\uff08i-1\u3001j-1\uff09} \u4ea4\u63db\u306e\u8cbb\u7528 a [ \u79c1 ] {displaystyle a [i]} \u7d42\u3048\u305f b [ j ] {displaystyle b [j]} \u3002\u6700\u7d42\u7684\u306a\u524a\u9664\u306b\u3088\u3063\u3066\u65e2\u306b\u8a08\u7b97\u3055\u308c\u305f\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306e\u62e1\u5f35\u306f\u3001\u524a\u9664\u306e\u9577\u3055\u306e\u4e00\u822c\u7684\u306a\u30ae\u30e3\u30c3\u30d7\u30b3\u30b9\u30c8\u306e\u8ffd\u52a0\u306b\u5bfe\u5fdc\u3057\u3001\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u6700\u9069\u306a\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306e\u30b9\u30b3\u30a2\u306b\u5bfe\u5fdc\u3057\u307e\u3059 a [ 0 .. \u79c1 – k ] {displaystyle a [0..i-k]} \u3068 b [ 0 .. j ] {displaystyle b [0..j]} \u3001\u305d\u308c\u306b\u3088\u3063\u3066 k {displaystyle k} \u524a\u9664\u306e\u9577\u3055\u3002\u524a\u9664\u306b\u985e\u4f3c\u3057\u3066\u3001\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u6700\u9069\u306a\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306e\u62e1\u5f35\u306f\u5bfe\u5fdc\u3057\u307e\u3059 a [ 0 .. \u79c1 ] {displaystyle a [0..i]} \u3068 b [ 0 .. j – l ] {displaystyle b [0..j-l]} \u3053\u306e\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306e\u30b9\u30b3\u30a2\u306e\u8ffd\u52a0\u3068\u30ae\u30e3\u30c3\u30d7\u306e\u9577\u3055\u306e\u30b3\u30b9\u30c8\u306e\u6700\u5f8c\u306e\u633f\u5165\u306b l {displaystyle l} \u633f\u5165\u3002\u3053\u308c\u3089\u306e3\u3064\u306e\u9078\u629e\u80a2\u306e\u6700\u5927\u5024\u306f\u8981\u7d20\u306b\u3042\u308a\u307e\u3059 m \uff08 \u79c1 \u3001 j \uff09\uff09 {displaystyle m\uff08i\u3001j\uff09} \u4fdd\u5b58\u3002 \u30ae\u30e3\u30c3\u30d7\u30b3\u30b9\u30c8\u95a2\u6570\u306f\u4e00\u822c\u7684\u3067\u3059\u3002 D. h\u3002\u5747\u4e00\u306a\u30b3\u30b9\u30c8\u307e\u305f\u306f\u30a2\u30d5\u30a3\u30f3\u30ae\u30e3\u30c3\u30d7\u30b3\u30b9\u30c8\u304c\u4f7f\u7528\u3055\u308c\u308b\u3053\u3068\u306f\u5fc5\u9808\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 \u3053\u308c\u307e\u3067\u306b\u8aac\u660e\u3055\u308c\u3066\u3044\u308b\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u518d\u5e30\u306f\u3001\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u6b63\u5f0f\u306b\u66f8\u304d\u7559\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u518d\u5e30\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u8003\u616e\u3059\u308b\u306b\u306f\u3001\u30b9\u30b3\u30a2\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u3092\u7dda\u307e\u305f\u306f\u5217\u306b\u8a08\u7b97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306f\u3001\u8ffd\u8de1\u3092\u713c\u304f\u3053\u3068\u3067\u51fa\u529b\u3067\u304d\u307e\u3059\u3002\u53ef\u80fd\u306a\u30d0\u30c3\u30af\u30c8\u30e9\u30c3\u30ad\u30f3\u30b0\u30d7\u30ed\u30bb\u30b9\u3068\u3057\u3066\u3001\u30b9\u30b3\u30a2\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306e\u8a08\u7b97\u4e2d\u306b\u5404\u8981\u7d20\u306e\u88dc\u52a9\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u3067\u3067\u304d\u307e\u3059 \uff08 \u79c1 \u3001 j \uff09\uff09 {displaystyle\uff08i\u3001j\uff09} \u6700\u5927\u5024\u304c\u633f\u5165\u3001\u524a\u9664\u3001\u307e\u305f\u306f\u4e00\u81f4\u306b\u3088\u3063\u3066\u8a08\u7b97\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002\u8981\u7d20\u306e \uff08 n \u3001 m \uff09\uff09 {displaystyle\uff08n\u3001m\uff09} \u30de\u30c8\u30ea\u30c3\u30af\u30b9 m {displaystyle m} \u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306e\u5b8c\u5168\u306a\u8a08\u7b97\u5f8c\u3001\u30d1\u30b9\u3092\u8ffd\u8de1\u3057\u3066\u6700\u5927\u5024\u3092\u8a08\u7b97\u3067\u304d\u3001\u6700\u9069\u306a\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u304c\u69cb\u7bc9\u3055\u308c\u307e\u3059\u3002 2\u3064\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u306b\u306f\u3001\u30b9\u30b3\u30a2\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306b\u6700\u9069\u306a\u30b9\u30b3\u30a2\u306b\u3064\u306a\u304c\u308b1\u3064\u4ee5\u4e0a\u306e\u6700\u9069\u30d1\u30b9\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u30012\u3064\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u306b\u5b58\u5728\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u3001\u6700\u9069\u306a\u30b9\u30b3\u30a2\u3092\u6301\u3064\u3044\u304f\u3064\u304b\u306e\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u3067\u3059\u3002 \u30de\u30c8\u30ea\u30c3\u30af\u30b9\u53c2\u7167\u306b\u3088\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u6307\u5b9a\uff1a m \uff08 0 \u3001 0 \uff09\uff09 = 0 {displaystyle m\uff080,0\uff09= 0} m \uff08 \u79c1 \u3001 0 \uff09\uff09 = m \uff08 \u79c1 – \u521d\u3081 \u3001 0 \uff09\uff09 + f \uff08 \u79c1 \uff09\uff09 \u3001 \u521d\u3081 \u2264 \u79c1 \u2264 m {displaystyle m\uff08i\u30010\uff09= m\uff08i-1,0\uff09+f\uff08i\uff09\u3001; 1leq ileq m}} m \uff08 0 \u3001 j \uff09\uff09 = m \uff08 0 \u3001 j – \u521d\u3081 \uff09\uff09 + f \uff08 j \uff09\uff09 \u3001 \u521d\u3081 \u2264 j \u2264 n {displaystyle m\uff080\u3001j\uff09= m\uff080\u3001j-1\uff09+f\uff08j\uff09\u3001; 1leq jleq n} m \uff08 \u79c1 \u3001 j \uff09\uff09 = \u30de\u30c3\u30af\u30b9 { M(i\u22121,j\u22121)+\u00a0w(ai,bj)Match bzw. MismatchM(i\u22121,j)+\u00a0f(k)DeletionM(i,j\u22121)+\u00a0f(l)Insertion} \u3001 \u521d\u3081 \u2264 \u79c1 \u2264 m \u3001 \u521d\u3081 \u2264 j \u2264 n {displaystyle M\uff08i\u3001j\uff09= max {begin {bmatrix} m\uff08i-1\u3001j-1\uff09+ w\uff08a_ {i}\u3001b_ {j}\uff09\uff06{text {mate bzw. mismatch}} \\ m\uff08i-1\u3001j\uff09+ f\uff08k\uff09\uff06{text {deletion}}} \\ m\uff08i\u3001j-1\uff09+ f\uff08l\uff09\uff06{text {insertion}} end {bmatrix}}} a \u3001 b {displaystyle a\u3001b} \uff1a\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u306e\u4e0a\u306e\u6587\u5b57\u5217 a {displaystyle sigma} m = \u9577\u3055 \u2061 \uff08 a \uff09\uff09 {displaystyle M = operatorname {length}\uff08a\uff09} n = \u9577\u3055 \u2061 \uff08 b \uff09\uff09 {displaystyle n = operatorname {length}\uff08b\uff09} m \uff08 \u79c1 \u3001 j \uff09\uff09 {displaystyle m\uff08i\u3001j\uff09} \uff1a\u306e\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u9593\u306e\u6700\u5927\u985e\u4f3c\u6027\u30b9\u30b3\u30a2 a {displaystyle a} \u3069\u3061\u3089\u306b \u79c1 {displaystyle i} \u7d42\u4e86\u3068\u306e\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9 b {displaystyle b} \u3069\u3061\u3089\u306b j {displaystyle j} \u7d42\u308f\u308a \u306e \uff08 c \u3001 d \uff09\uff09 \u3001 c \u3001 d \u2208 a {displaystyle W\uff08c\u3001d\uff09\u3001; c\u3001din sigma} \uff1a\u985e\u4f3c\u6027\u30b9\u30b3\u30a2\u95a2\u6570 f {displaystyle f} \uff1a\u4e00\u822c\u7684\u306a\u30ae\u30e3\u30c3\u30d7\u30b3\u30b9\u30c8\u95a2\u6570 \u5c0f\u3055\u306a\u4f8b\u3092\u4f7f\u7528\u3057\u3066\u3001\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u624b\u9806\u3092\u3053\u3053\u306b\u793a\u3057\u307e\u3059\u3002 \u6b21\u306e\u95a2\u6570\u306f\u3001\u8a55\u4fa1\u95a2\u6570\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002 \u306e \uff08 \u30d0\u30c4 \u3001 \u3068 \uff09\uff09 = { 1f\u00fcr\u00a0x=y\u22121sonst{displaystyle w\uff08x\u3001y\uff09= {begin {cases} 1\uff06{text {for}} x = y \\ -1\uff06{text {refing} \\ end {cases}}}} a = acgtc\u304a\u3088\u3073b = agtc \u3088\u308a\u826f\u3044\u7406\u89e3\u306e\u305f\u3081\u306b\u3001\u7dda\u306b\u306f\u30b7\u30fc\u30b1\u30f3\u30b9A\u3067\u4f5c\u3089\u308c\u305f\u6587\u5b57\u3068\u30b7\u30fc\u30b1\u30f3\u30b9b\u304b\u3089\u306e\u6587\u5b57\u304c\u4ed8\u3044\u305f\u5217\u304c\u4ed8\u3044\u3066\u3044\u308b\u3053\u3068\u3092\u60f3\u50cf\u3067\u304d\u307e\u3059\u3002\u6570\u5b66\u7684\u306a\u89b3\u70b9\u304b\u3089\u306f\u3001\u3053\u308c\u306f\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u5185\u3067\u610f\u5473\u3092\u306a\u3055\u306a\u3044\u305f\u3081\u3001\u3053\u308c\u306f\u8996\u754c\u306e\u307f\u3067\u3059\u3002 d = \uff08 \u2212AGTC\u22120\u22121\u22122\u22123\u22124A\u221210000C\u221220000G\u221230000T\u221240000C\u221250000\uff09\uff09 {displaystyle D={begin{pmatrix}&-&A&G&T&C\\-&0&-1&-2&-3&-4\\A&-1&0&0&0&0\\C&-2&0&0&0&0\\G&-3&0&0&0&0\\T&-4&0&0&0&0\\C&-5&0&0&0&0\\end{pmatrix}}} 0.\u30b9\u30c6\u30c3\u30d7\uff1a\u521d\u671f\u5316 \u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306e\u30a8\u30f3\u30c8\u30ea d \uff08 \u79c1 \u3001 j \uff09\uff09 {displaystyle d\uff08i\u3001j\uff09} \u6700\u521d\u306e\u884c\u3068\u6700\u521d\u306e\u5217\u306e\u5834\u5408\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306b\u57cb\u3081\u3089\u308c\u307e\u3059\u3002\u30a8\u30f3\u30c8\u30ea\u306e\u8a55\u4fa1 d \uff08 \u521d\u3081 \u3001 0 \uff09\uff09 {displaystyle d\uff081,0\uff09} \u4e0a\u8a18\u306e\u8a55\u4fa1\u304b\u3089\u8a08\u7b97\u3055\u308c\u307e\u3059 d \uff08 \u79c1 – \u521d\u3081 \u3001 j \uff09\uff09 = d \uff08 0 \u3001 0 \uff09\uff09 = 0 {displaystyle d\uff08i-1\u3001j\uff09= d\uff080,0\uff09= 0} \u30dd\u30a4\u30f3\u30c8\u3067\u306e\u30b9\u30b3\u30a2 \u306e \uff08 a \u79c1 \u3001 b \u79c1 \uff09\uff09 = \u306e \uff08 a \u521d\u3081 \u3001 – \uff09\uff09 = \u306e \uff08 a \u3001 – \uff09\uff09 = – \u521d\u3081 {displaystyle w\uff08a_ {i}\u3001b_ {i}\uff09= w\uff08a_ {1}\u3001 – \uff09= w\uff08a\u3001 – \uff09= -1} \u3002\u307e\u305f d \uff08 \u521d\u3081 \u3001 0 \uff09\uff09 = 0 + \uff08 – \u521d\u3081 \uff09\uff09 = – \u521d\u3081 {displaystyle d\uff081,0\uff09= 0+\uff08 – 1\uff09= -1} \u4ed6\u306e\u5024\u306f\u540c\u69d8\u306b\u8a08\u7b97\u3055\u308c\u307e\u3059\u3002 d = \uff08 0\u22121\u22122\u22123\u22124\u221210000\u221220000\u221230000\u221240000\u221250000\uff09\uff09 {displayStyle d = {begin {pmatrix} 0\uff06-1\uff06-2\uff06-3\uff06-4 \\ -1\uff060\uff060\uff060\uff060\uff060 \\ -3\uff060\uff060\uff060\uff060 \\ -4\uff060\uff060\uff060\uff060\uff060\uff060\uff060 \\ -5\uff060\uff060\uff060\uff060 {pmatrix}}}} \u6700\u521d\u306e\u30b9\u30c6\u30c3\u30d7\uff1a\u306e\u8a08\u7b97 d \uff08 \u521d\u3081 \u3001 \u521d\u3081 \uff09\uff09 {displaystyle d\uff081,1\uff09} \uff1a { D(0,0)+w(A,A)\u21d20+1D(0,1)+w(A,\u2212)\u21d2\u22121+(\u22121)D(1,0)+w(\u2212,A)\u21d2\u22121+(\u22121){displaystyle {begin {cases} d\uff080,0\uff09+w\uff08a\u3001a\uff09rightArrow 0+1 \\ d\uff080,1\uff09+w\uff08a\u3001 – \uff09rightArrow -1+\uff08 – 1\uff09\\ d\uff081,0\uff09+w\uff08 – \u3001a\uff09rightarrow -1+\uff08 – 1\uff09\\ end {case}}}}} \u2192\u6700\u5927\u306f\u6700\u521d\u306e\u30b1\u30fc\u30b9\u304b\u3089\u751f\u3058\u307e\u3059\u3001i\u3002 H. A\u306fA\u3068\u6574\u5217\u3057\u3066\u3044\u307e\u3059\u3002 d = \uff08 0\u22121\u22122\u22123\u22124\u221211000\u221220000\u221230000\u221240000\u221250000\uff09\uff09 {displayStyle d = {begin {pmatrix} 0\uff06-1\uff06-2\uff06-3\uff06-4 \\ -1\uff061\uff060\uff060\uff060\uff060 \\ -3\uff060\uff060\uff060\uff060 \\ -4\uff060\uff060\uff060\uff060\uff060\uff060\uff060 \\ -5\uff060\uff060\uff060\uff060 {pmatrix}}}}} \u2192J\u306e\u5897\u52a01\u3001\u79c1\u306f\u540c\u3058\u307e\u307e\u3067\u3059 2\u756a\u76ee\u306e\u30b9\u30c6\u30c3\u30d7\uff1a\u306e\u8a08\u7b97 d \uff08 \u521d\u3081 \u3001 2 \uff09\uff09 {displaystyle d\uff081,2\uff09} \uff1a { D(0,1)+w(A,C)\u21d2\u22121+(\u22121)D(0,2)+w(A,\u2212)\u21d2\u22122+(\u22121)D(1,1)+w(\u2212,C)\u21d21+(\u22121){displaystyle {begin {cases} d\uff080,1\uff09+w\uff08a\u3001c\uff09rightArrow -1+\uff08 – 1\uff09\\ d\uff080,2\uff09+w\uff08a\u3001 – \uff09rightArrow -2+\uff08 – 1\uff09\\ d\uff081,1\uff09+w\uff08 – \u3001c\uff09rightArrow 1+\uff08 – 1\uff09 \u2192\u8a08\u7b97\u306e\u6700\u5927\u5024\u3001\u3064\u307e\u308a0\u304c\u3053\u3053\u306b\u4f5c\u6210\u3055\u308c\u308b\u305f\u3081\u3001\u6700\u5927\u5024\u306f3\u756a\u76ee\u306e\u30b1\u30fc\u30b9\u304b\u3089\u751f\u3058\u307e\u3059\u3002 H.\u30ae\u30e3\u30c3\u30d7\uff08 – \uff09\u306fC\u3068\u6574\u5217\u3057\u307e\u3059\u3002 d = \uff08 0\u22121\u22122\u22123\u22124\u221211000\u221220000\u221230000\u221240000\u221250000\uff09\uff09 {displayStyle d = {begin {pmatrix} 0\uff06-1\uff06-2\uff06-3\uff06-4 \\ -1\uff061\uff060\uff060\uff060\uff060 \\ -3\uff060\uff060\uff060\uff060 \\ -4\uff060\uff060\uff060\uff060\uff060\uff060\uff060 \\ -5\uff060\uff060\uff060\uff060 {pmatrix}}}}} \u22ee {displaystyle vdots} \u5857\u308a\u3064\u3076\u3055\u308c\u305f\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306f\u3001\u4e0a\u8a18\u306e\u624b\u9806\u3092\u5b8c\u5168\u306b\u5b9f\u884c\u3057\u305f\u5f8c\u306b\u6b21\u306e\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u3002 d = \uff08 0\u22121\u22122\u22123\u22124\u2212110\u22121\u22122\u2212200\u221210\u22123\u2212110\u22121\u22124\u22122021\u22125\u22123\u2212113\uff09\uff09 {displaystyle D={begin{pmatrix}0&-1&-2&-3&-4\\-1&1&0&-1&-2\\-2&0&0&-1&0\\-3&-1&1&0&-1\\-4&-2&0&2&1\\-5&-3&-1&1&3\\end{pmatrix}}} \u3053\u306e\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306e\u8a55\u4fa1\u306f3\u3067\u3059\u3002 \u95a2\u9023\u3059\u308b\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff1a Sequenz\u00a0a:ACGTCSequenz\u00a0b:A\u2212GTC{displaystyle {begin {matrix} {text {sequenz}} a\uff1a\uff06a\uff06c\uff06g\uff06t\uff06c \\ {text {sequenz}} b\uff1a\uff06a\uff06 – \uff06 – \uff06t\uff06cend {matrix}}}} \u30c8\u30ec\u30fc\u30b9\u30d0\u30c3\u30af\u306b\u3088\u3063\u3066\u8a08\u7b97\u3055\u308c\u307e\u3059\u3002 \u8a55\u4fa1\u95a2\u6570\u306e\u9078\u629e\u306f\u3001Needleman Wish\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304b\u3089\u5f97\u3089\u308c\u308b\u7d50\u679c\u306b\u5927\u304d\u306a\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u3059\u3002\u4e0a\u8a18\u3067\u9078\u629e\u3057\u305f\u3088\u3046\u306b\u3001\u5358\u7d14\u306a\u8a55\u4fa1\u6a5f\u80fd\u306f\u3001\u30a2\u30e9\u30a4\u30f3\u30e1\u30f3\u30c8\u306e\u751f\u7269\u5b66\u7684\u80cc\u666f\u3092\u53cd\u6620\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u5b9f\u7528\u7684\u306a\u76ee\u7684\u306b\u306f\u304b\u306a\u308a\u4e0d\u9069\u5207\u3067\u3059\u3002\u73fe\u6642\u70b9\u3067\u6700\u3082\u4e00\u822c\u7684\u306a\u8a55\u4fa1\u95a2\u6570\u306f\u3001SO -Called Scoring Matrix\u304b\u3089\u306e\u8a55\u4fa1\u3092\u8aad\u307f\u53d6\u308a\u307e\u3059\u3002\u30bf\u30f3\u30d1\u30af\u8cea\u306e\u5834\u5408\u3001PAM\u307e\u305f\u306f\u9752\u6591\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u30b5\u30a4\u30ba20\u00d720\uff08\u307e\u305f\u306f\u3044\u304f\u3064\u304b\u306e\u7279\u5225\u306a\u30b1\u30fc\u30b9\u304c\u307e\u3060\u89b3\u5bdf\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f24\u00d724\uff09\u306e\u3053\u308c\u3089\u306e\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306b\u306f\u3001\u5225\u306e\u30de\u30c8\u30ea\u30c3\u30af\u306b\u4ee3\u308f\u3063\u305f\u30a2\u30df\u30ce\u9178\u306e\u30ec\u30d3\u30e5\u30fc\uff08\u3044\u308f\u3086\u308blog-odds\uff09\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002 log-odd\u306f\u78ba\u7387\u306b\u57fa\u3065\u3044\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30b9\u30b3\u30a2\u30ea\u30f3\u30b0\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306f\u3001\u30b7\u30fc\u30b1\u30f3\u30b9\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u304b\u3089\u3082\u8a08\u7b97\u3055\u308c\u307e\u3059\u3002 \u4e0a\u8a18\u3067\u4f7f\u7528\u3057\u305f\u8a55\u4fa1\u95a2\u6570\u306f\u30012\u3064\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u985e\u4f3c\u6027\u3092\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u8ddd\u96e2\u3092\u6c7a\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u8a55\u4fa1\u6a5f\u80fd\u3092\u5358\u7d14\u306b\u5909\u66f4\u3067\u304d\u307e\u3059\u3002 H.\u4e0d\u5e73\u7b49\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u30d7\u30e9\u30b9\u306e\u5024\u3092\u8fd4\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u7f70\u3068\u5e73\u7b490\u307e\u305f\u306f\u8ca0\u306e\u5024\u3067\u89e3\u91c8\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u8ddd\u96e2\u30d9\u30fc\u30b9\u306e\u8a55\u4fa1\u95a2\u6570\u3067\u306e\u518d\u5e30\u306f\u6c7a\u5b9a\u3059\u308b\u5fc5\u8981\u306f\u306a\u304f\u3001\u6700\u5c0f\u5024\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u8ddd\u96e2\u30d9\u30fc\u30b9\u306e\u8a55\u4fa1\u95a2\u6570\u306e\u4f8b\uff1a \u306e \uff08 \u30d0\u30c4 \u3001 \u3068 \uff09\uff09 = { 0f\u00fcr\u00a0x=y1f\u00fcr\u00a0x\u2260y{displaystyle w\uff08x\u3001y\uff09= {begin {cases} 0\uff06{text {for}} x = y \\ 1\uff06{text {for}} xnot = y \\ end {cases}}}} Needleman Request Algorithm\u306e\u7528\u8a9e\u304c\u3042\u308a\u307e\u3059 o {displaystyle o} \uff08 m de n \uff09\uff09 {displaystyle\uff08mcdot n\uff09} \u3002\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044 m de n {displaystyle mcdot n} \u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306e\u8981\u7d20\u306f\u8a08\u7b97\u3055\u308c\u3001\u3053\u308c\u3089\u306e\u305d\u308c\u305e\u308c\u306b\u5bfe\u3057\u30663\u3064\u4ee5\u4e0a\u3067\u6700\u5927\u5316\u3055\u308c\u307e\u3059 [\u521d\u3081] \u3002\u3053\u308c\u306f\u3001\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u53c2\u7167\u304b\u3089\u7c21\u5358\u306b\u5c0e\u51fa\u3067\u304d\u307e\u3059\u3002\u30e1\u30e2\u30ea\u306e\u8981\u4ef6\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u5168\u4f53\u306e\u69cb\u7bc9\u306b\u3042\u308a\u307e\u3059 o {displaystyle o} \uff08 n m \uff09\uff09 {displaystyle\uff08nm\uff09} \u3002 1970\u5e74\u306eNeedleman Wish Paper\u3067\u306f\u3001\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u53c2\u7167\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u975e\u516c\u5f0f\u3067\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u306b\u793a\u3055\u308c\u3066\u3044\u308b\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u53c2\u7167\u306f\u3001\u3053\u306e\u8aac\u660e\u304b\u3089\u751f\u3058\u307e\u3059\u3002 1976\u5e74\u306e\u30a6\u30a9\u30fc\u30bf\u30fc\u30de\u30f3\u3001\u30b9\u30df\u30b9\u3068\u30d9\u30a4\u30e4\u30fc\u306b\u3088\u308b\u8ad6\u6587\u3067 [2] Needleman Wish Algorithm\u306f\u3001Matrix Reference\u3067\u660e\u793a\u7684\u306b\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u4e00\u90e8\u306e\u8457\u8005\u306f\u3001\u5fc5\u8981\u306a\u30a6\u30a3\u30c3\u30b7\u30e5\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u30a6\u30a9\u30fc\u30bf\u30fc\u30de\u30f3\u30b9\u30df\u30b9\u30d9\u30a4\u30e4\u30fc\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3068\u547c\u3093\u3067\u3044\u307e\u3059\u3002 [3] \u3044\u304f\u3064\u304b\u306e\u6587\u732e\u3067\u306f\u3001\u57fa\u6e96\u304c\u3042\u308a\u307e\u3059 o \uff08 n 2 \uff09\uff09 {displaystyle o\uff08n^{2}\uff09} \u5747\u4e00\u306a\u30ae\u30e3\u30c3\u30d7\u306e\u4e0b\u3067\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u3092\u8a08\u7b97\u3059\u308b\u305f\u3081\u306eDP\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u30b3\u30b9\u30c8\u306f\u8aa4\u3063\u3066\u30cb\u30fc\u30c9\u30eb\u30a6\u30a3\u30c3\u30b7\u30e5\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3068\u547c\u3070\u308c\u307e\u3059\u3002 [4] \u305f\u3060\u3057\u3001\u7de8\u96c6\u64cd\u4f5c\u306b\u5747\u4e00\u306a\u30ae\u30e3\u30c3\u30d7\u30b3\u30b9\u30c8\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f3\u3064\u306e\u96a3\u63a5\u30bb\u30eb\u306e\u307f\u3092\u89b3\u5bdf\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u3053\u308c\u306fNeedleman Request\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u5c02\u9580\u5316\u3067\u3059\u3002 \u7acb\u65b9\u4f53\u306e\u671f\u9593\u306e\u305f\u3081\u3001Needleman Wish\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u5b9f\u969b\u306b\u306f\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u5747\u4e00\u306a\u30b3\u30b9\u30c8\u306b\u9650\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u6700\u9069\u306a\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8 o \uff08 n 2 \uff09\uff09 {displaystyle o\uff08n^{2}\uff09} \u8a08\u7b97\u3055\u308c\u307e\u3059\u3002 GOTOH\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u6700\u9069\u306a\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306f\u3001\u30a2\u30d5\u30a3\u30f3\u30ae\u30e3\u30c3\u30d7\u30b3\u30b9\u30c8\u3067\u5e73\u65b9\u7528\u8a9e\u3067\u8a08\u7b97\u3067\u304d\u307e\u3059\u3002Hirschberg\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u3001\u7dda\u5f62\u30b9\u30c8\u30ec\u30fc\u30b8\u30b9\u30da\u30fc\u30b9\u306e\u5747\u4e00\u307e\u305f\u306f\u30a2\u30d5\u30a3\u30f3\u30ae\u30e3\u30c3\u30d7\u30b3\u30b9\u30c8\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u3092\u8a08\u7b97\u3057\u307e\u3059 o \uff08 m + n \uff09\uff09 {displaystyle o\uff08m+n\uff09} \u3084\u304c\u3066 th \uff08 m n \uff09\uff09 {displaystyletheta\uff08mn\uff09} \u3068Smith Waterman\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u30012\u3064\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u6700\u9069\u306a\u5c40\u6240\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002 \u6b63\u65b9\u5f62\u306e\u30e1\u30e2\u30ea\u8981\u4ef6\u306e\u305f\u3081\u3001\u3088\u308a\u9577\u3044\u30b7\u30fc\u30b1\u30f3\u30b9\u3092\u8abf\u6574\u3059\u308b\u305f\u3081\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u304b\u306a\u308a\u4e0d\u9069\u5207\u3067\u3059\u3002 z\u306e\u5834\u5408\u3002 B.\u30b5\u30a4\u30ba\u304c4\u30d0\u30a4\u30c8\u306e\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u6574\u6570\u5024\u3067\u306f\u300110,000\u6587\u5b57\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u30b9\u30b3\u30a2\u306e\u8a08\u7b97\u306b\u306f\u3001 10,000 \u00d7 10,000 {DisplayStyle 10.000Times 10.000} \u30a8\u30f3\u30c8\u30ea\u3002\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u3082\u305d\u3046\u3067\u3059 100,000,000 \u00d7 4 \u30d0\u30a4\u30c8 \u2248 381 \u30e1\u30ac\u30d0\u30a4\u30c8 {displaystyle 100.000.000Times 4\u3001{text {byte}} arth 381\u3001{text {megabyte}}}} \u8a3c\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30b2\u30ce\u30e0\u5168\u4f53\u306e\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u3092\u52b9\u7387\u7684\u306b\u5b9f\u884c\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u305f\u3068\u3048\u3070\u3001\u4e2d\u7a0b\u5ea6\u306e\u7d30\u83cc\u30b2\u30ce\u30e0\u306b\u306f\u7d041\u301c400\u4e07\u30da\u30a2\u306e\u5869\u57fa\u304c\u3042\u308a\u3001\u30d2\u30c8\u30b2\u30ce\u30e0\u306f\u7d0430\u5104\u5869\u57fa\u5bfe\u3067\u3059\u3002 \u305d\u308c\u3068\u306f\u5225\u306b\u3001\u30b2\u30ce\u30e0\u5168\u4f53\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u306a\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306f\u3001\u5fc5\u305a\u3057\u3082\u9ad8\u3044\u751f\u7269\u5b66\u7684\u30b2\u30a4\u30f3\u3092\u6301\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 \u5747\u4e00\u306a\u30ae\u30e3\u30c3\u30d7\u30b3\u30b9\u30c8 [ \u7de8\u96c6 | \u30bd\u30fc\u30b9\u30c6\u30ad\u30b9\u30c8\u3092\u7de8\u96c6\u3057\u307e\u3059 ] \u5747\u4e00\u306a\u30ae\u30e3\u30c3\u30d7\u30b3\u30b9\u30c8\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001Needleman Wish\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3078\u306e\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u53c2\u7167\u304c\u53ef\u80fd\u3067\u3059\u3002 o \uff08 n 3 \uff09\uff09 {displaystyle o\uff08n^{3}\uff09} \u306e\u4e0a o \uff08 n 2 \uff09\uff09 {displaystyle o\uff08n^{2}\uff09} \u524a\u6e1b\u3002\u58f2\u308a\u624b\u306f\u30011974\u5e74\u306e\u8ad6\u6587\u3067\u3053\u308c\u3089\u306e\u518d\u5e30\u3092\u660e\u793a\u7684\u306b\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002 [5] \u5747\u4e00\u306a\u30ae\u30e3\u30c3\u30d7\u30b3\u30b9\u30c8\u95a2\u6570 f {displaystyle f} \u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059 f \uff08 l \uff09\uff09 = l de c {displaystyle f\uff08l\uff09= lcdot c} \u3001d\u3002 H.\u30ae\u30e3\u30c3\u30d7\u306e\u3059\u3079\u3066\u306e\u5834\u6240\u306f\u540c\u3058\u3067\u3059\u3002\u63a5\u982d\u8f9e\u306e\u6700\u9069\u306a\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u3092\u898b\u308b\u3068\u304d\u3001\u5747\u4e00\u306a\u30ae\u30e3\u30c3\u30d7\u30b3\u30b9\u30c8\u3092\u4f7f\u7528\u3059\u308b a [ 0 .. \u79c1 ] {displaystyle a [0..i]} \u3068 b [ 0 .. j ] {displaystyle b [0..j]} \u3001\u9577\u3055\u306e\u633f\u5165\u30ae\u30e3\u30c3\u30d7\u306b\u3042\u308a\u307e\u3059 k \u521d\u3081 {displaystyle k_ {1}} \u3068 1″>\u7d42\u4e86\u3001\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u306e\u6700\u9069\u306a\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u304c\u3059\u3050\u306b\u8868\u793a\u3055\u308c\u308b a [ 0 .. \u79c1 – \u521d\u3081 ] {displaystyle a [0..i-1]} \u3068 b [ 0 .. j ] {displaystyle b [0..j]} \u633f\u5165\u30ae\u30e3\u30c3\u30d7\u3067\u7d42\u308f\u308a\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u6700\u9069\u306a\u633f\u5165\u30ae\u30e3\u30c3\u30d7\uff08\u4efb\u610f\u306e\u9577\u3055\uff09\u306e\u30b3\u30b9\u30c8\u3092\u8a08\u7b97\u3059\u308b\u3060\u3051\u3067\u5341\u5206\u3067\u3059 m \uff08 \u79c1 \u3001 j \uff09\uff09 {displaystyle m\uff08i\u3001j\uff09} \u3001 m \uff08 \u79c1 – \u521d\u3081 \u3001 j \uff09\uff09 + c {displaystyle m\uff08i-1\u3001j\uff09+c} \u671f\u5f85\u3059\u308b\u3002\u524a\u9664\u30ae\u30e3\u30c3\u30d7\u30b3\u30b9\u30c8\u306e\u8a08\u7b97\u306f\u540c\u69d8\u3067\u3059\u3002 \u3053\u308c\u306b\u3088\u308a\u3001\u6b21\u306e\u5c02\u9580\u7684\u306a\u518d\u5e30\u304c\u767a\u751f\u3057\u307e\u3059\u3002 m \uff08 0 \u3001 0 \uff09\uff09 = 0 {displaystyle m\uff080,0\uff09= 0} m \uff08 \u79c1 \u3001 0 \uff09\uff09 = m \uff08 \u79c1 – \u521d\u3081 \u3001 0 \uff09\uff09 + c \u3001 \u521d\u3081 \u2264 \u79c1 \u2264 m {displaystyle m\uff08i\u30010\uff09= m\uff08i-1,0\uff09+c\u3001; 1leq ileq m} m \uff08 0 \u3001 j \uff09\uff09 = m \uff08 0 \u3001 j – \u521d\u3081 \uff09\uff09 + c \u3001 \u521d\u3081 \u2264 j \u2264 n {displaystyle m\uff080\u3001j\uff09= m\uff080\u3001j-1\uff09+c\u3001; 1leq jleq n} m \uff08 \u79c1 \u3001 j \uff09\uff09 = \u30de\u30c3\u30af\u30b9 { M(i\u22121,j\u22121)+\u00a0w(ai,bj)Match bzw. MismatchM(i\u22121,j)+cDeletionM(i,j\u22121)+cInsertion} \u3001 \u521d\u3081 \u2264 \u79c1 \u2264 m \u3001 \u521d\u3081 \u2264 j \u2264 n {displaystyle M\uff08i\u3001j\uff09= max {begin {bmatrix} m\uff08i-1\u3001j-1\uff09+ w\uff08a_ {i}\u3001b_ {j}\uff09\uff06{text {mate bzw. mismatch}} \\ m\uff08i-1\u3001j\uff09+c\uff06{text {deletion}}} \\ m\uff08i\u3001j-1\uff09+c\uff06{text {insertion}} end {bmatrix}}} \u30d5\u30ea\u30fc\u30b7\u30d5\u30c8\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8 [ \u7de8\u96c6 | \u30bd\u30fc\u30b9\u30c6\u30ad\u30b9\u30c8\u3092\u7de8\u96c6\u3057\u307e\u3059 ] \u6700\u9069\u306a\u30d5\u30ea\u30fc\u30b7\u30d5\u30c8\u30a2\u30e9\u30a4\u30f3\u30e1\u30f3\u30c8\uff08\u307e\u305f\u306f\u30a8\u30f3\u30c9\u30ae\u30e3\u30c3\u30d7\u30d5\u30ea\u30fc\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\uff09\u306e\u8a08\u7b97\u306f\u3001\u30b9\u30b3\u30a2\u8a08\u7b97\u306e\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u306e\u958b\u59cb\u307e\u305f\u306f\u7d42\u4e86\u6642\u306b\u633f\u5165\u307e\u305f\u306f\u524a\u9664\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u304c\u8003\u616e\u3055\u308c\u306a\u3044\u3001Needleman Wish Algorithm\u306e\u30d0\u30ea\u200b\u200b\u30a2\u30f3\u30c8\u3067\u3059\u3002\u3053\u306e\u76ee\u7684\u306e\u305f\u3081\u306b\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u3092\u8a08\u7b97\u3059\u308b\u305f\u3081\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u5909\u66f4\u3055\u308c\u3001\u6700\u521d\u306e\u884c\u307e\u305f\u306f\u6700\u521d\u306e\u5217\u304c 0 {displaystyle 0} \u521d\u671f\u5316\u3055\u308c\u307e\u3059\u3002\u30c8\u30e9\u30c3\u30ad\u30f3\u30b0\u3092\u713c\u304f\u3068\u3001\u6700\u5f8c\u306e\u5217\u307e\u305f\u306f\u7dda\u306e\u6700\u5927\u5024\u304c\u691c\u7d22\u3055\u308c\u3001\u51fa\u767a\u70b9\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002 \u2191 R.\u30ef\u30b0\u30ca\u30fc\u3001M\u3002\u30d5\u30a3\u30c3\u30b7\u30e3\u30fc\uff1a \u6587\u5b57\u5217\u9593\u88dc\u6b63\u306e\u554f\u984c \u3002\u306e\uff1a J. ACM \u3002 21\u5e74\u30011974\u5e74\u3001 S. 172 \u3001doi\uff1a 10.1145\/321796.321811 \u3002 \u2191 \u30a6\u30a9\u30fc\u30bf\u30fc\u30de\u30f3\u3001\u30b9\u30df\u30b9\u3001\u30d9\u30a4\u30e4\u30fc\uff1a \u3044\u304f\u3064\u304b\u306e\u751f\u7269\u5b66\u7684\u914d\u5217\u30e1\u30c8\u30ea\u30c3\u30af \u3002\u306e\uff1a \u6570\u5b66\u306e\u9032\u6b69 \u3002 \u30d0\u30f3\u30c9 20 \u30011976\u5e74\u3001 S. 367\u2013387 \u3001doi\uff1a 10.1016\/0001-8708\uff0876\uff0990202-4 \uff08\u5b9a\u74063\uff09\u3002 \u2191 P.\u30af\u30ed\u30fc\u30c8\u3001R\u3002\u30aa\u30fc\u30d6\u30f3\uff1a \u8a08\u7b97\u5206\u5b50\u751f\u7269\u5b66 \u3002 Wiley\u30012000\u3001ISBN 0-471-87251-2\u3002 \u2191 D.\u30ac\u30b9\u30d5\u30a3\u30fc\u30eb\u30c9\uff1a \u6587\u5b57\u5217\u3001\u6728\u3001\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0 \u3002 1997\u3001ISBN 0-521-58519-8\u300111.7.3\u3001 S. 234 \u3002 \u2191 \u30d4\u30fc\u30bf\u30fcH.\u30bb\u30e9\u30fc\u30ba\uff1a \u9032\u5316\u8ddd\u96e2\u306e\u7406\u8ad6\u3068\u8a08\u7b97\u306b\u3064\u3044\u3066 \u3002\u306e\uff1a Applied Mathematics\u306eSiam Journal \u3002 \u30d0\u30f3\u30c9 26 \u3001 \u3044\u3044\u3048\u3002 4 \u30011974\u5e746\u6708\u3001 S. 787\u2013793 \u3001jstor\uff1a 2099985 \u3002 (adsbygoogle = window.adsbygoogle || []).push({});after-content-x4"},{"@context":"http:\/\/schema.org\/","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"https:\/\/wiki.edu.vn\/all2jp\/wiki11\/#breadcrumbitem","name":"Enzyklop\u00e4die"}},{"@type":"ListItem","position":2,"item":{"@id":"https:\/\/wiki.edu.vn\/all2jp\/wiki11\/archives\/9899#breadcrumbitem","name":"Needleman Wish Algorithm-Wikipedia"}}]}]