{"id":27760,"date":"2024-10-27T14:43:37","date_gmt":"2024-10-27T14:43:37","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27760"},"modified":"2024-11-26T07:15:24","modified_gmt":"2024-11-26T07:15:24","slug":"c-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ec%b5%9c%ec%9e%a5-%ea%b3%b5%ed%86%b5-%eb%b6%80%eb%b6%84-%ec%88%98%ec%97%b4-%ec%b0%be%ea%b8%b0-2","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27760\/","title":{"rendered":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30"},"content":{"rendered":"<p><body><\/p>\n<p>\n    \ucf54\ub529 \ud14c\uc2a4\ud2b8\ub97c \uc900\ube44\ud558\ub294 \uac83\uc740 \ub2e4\uc18c \ub3c4\uc804\uc801\uc77c \uc218 \uc788\uc9c0\ub9cc, \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \uccb4\uacc4\uc801\uc73c\ub85c \uc775\ud788\uba74 \uc88b\uc740 \uc131\uacfc\ub97c \uc774\ub8f0 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n    \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4(LCS, Longest Common Subsequence) \ubb38\uc81c\ub97c \ub2e4\ub8f0 \uac83\uc785\ub2c8\ub2e4.<br \/>\n    \uc774 \ubb38\uc81c\ub294 \ubb38\uc790\uc5f4\uc774\ub098 \uc218\uc5f4\uc5d0\uc11c \ub450 \uac1c\uc758 \uc11c\ube0c\uc2dc\ud000\uc2a4\uac00 \uc5bc\ub9c8\ub098 \ub9ce\uc774 \uc911\ubcf5\ub418\ub294\uc9c0\ub97c \uce21\uc815\ud558\ub294 \uc911\uc694\ud55c \uc54c\uace0\ub9ac\uc998 \uc9c8\ubb38\uc785\ub2c8\ub2e4.\n<\/p>\n<h2>\ubb38\uc81c \uc815\uc758<\/h2>\n<p>\n    \ub450 \uac1c\uc758 \ubb38\uc790\uc5f4\uc774 \uc8fc\uc5b4\uc84c\uc744 \ub54c, \uc774 \ub450 \ubb38\uc790\uc5f4\uc758 \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4\uc758 \uae38\uc774\ub97c \uad6c\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4.<br \/>\n    \ub450 \ubb38\uc790\uc5f4\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:\n<\/p>\n<ul>\n<li><strong>\ubb38\uc790\uc5f4 A<\/strong>: &#8220;ABCBDAB&#8221;<\/li>\n<li><strong>\ubb38\uc790\uc5f4 B<\/strong>: &#8220;BDCAB&#8221;<\/li>\n<\/ul>\n<p>\n    \uc774 \uacbd\uc6b0, \ubb38\uc790\uc5f4 A\uc640 B\uc758 \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4\uc740 &#8220;BDAB&#8221; \ub610\ub294 &#8220;BCAB&#8221;\uc774\uba70, \uc774\ub4e4\uc758 \uae38\uc774\ub294 4\uc785\ub2c8\ub2e4.<br \/>\n    \uadf8\ub7fc \uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d(Dynamic Programming) \uae30\ubc95\uc744 \uc0ac\uc6a9\ud560 \uac83\uc785\ub2c8\ub2e4.\n<\/p>\n<h2>\ubb38\uc81c \ud574\uacb0 \uc804\ub7b5<\/h2>\n<p>\n    \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4(LCS) \ubb38\uc81c\ub294 \uc7ac\uadc0\uc801 \ubb38\uc81c \ud574\uacb0 \ubc29\uc2dd\uacfc \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \ud1b5\ud574 \ud574\uacb0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n    \uc7ac\uadc0\uc801 \uc811\uadfc \ubc29\ubc95\uc740 \uac04\ub2e8\ud558\uc9c0\ub9cc \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\uac00 \ub9e4\uc6b0 \ub192\uc544 \uc2e4\uc6a9\uc801\uc774\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \ub530\ub77c\uc11c, \uc6b0\ub9ac\ub294 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc0ac\uc6a9\ud560 \uac83\uc785\ub2c8\ub2e4.\n<\/p>\n<h3>1. \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d \uc774\ud574<\/h3>\n<p>\n    \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d(DP)\uc740 \ubb38\uc81c\ub97c \ub354 \uc791\uc740 \ud558\uc704 \ubb38\uc81c\ub85c \ub098\ub204\uace0, \uac01 \ud558\uc704 \ubb38\uc81c\ub97c \ud55c \ubc88\ub9cc \ud574\uacb0\ud558\uc5ec \uadf8 \uacb0\uacfc\ub97c \uc800\uc7a5(caching)\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4.<br \/>\n    LCS \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 2\ucc28\uc6d0 \ub3d9\uc801 \ubc30\uc5f4\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \ubc30\uc5f4\uc758 \uac01 \uc140\uc740 \ubd80\ubd84 \ubb38\uc790\uc5f4\uc758 LCS \uae38\uc774\ub97c \uc800\uc7a5\ud569\ub2c8\ub2e4.\n<\/p>\n<h3>2. DP \ud14c\uc774\ube14 \uad6c\uc131<\/h3>\n<p>\n    \ub450 \ubb38\uc790\uc5f4 A\uc640 B\uc758 \uae38\uc774\ub97c \uac01\uac01 m, n\uc774\ub77c\uace0 \ud569\uc2dc\ub2e4.<br \/>\n    DP \ud14c\uc774\ube14(longestCommonSubsequence \ubc30\uc5f4)\uc740 (m + 1) x (n + 1) \ud06c\uae30\ub85c \uad6c\uc131\ub429\ub2c8\ub2e4.<br \/>\n    \uc5ec\uae30\uc11c DP[i][j]\ub294 \ubb38\uc790\uc5f4 A\uc758 \uccab \ubc88\uc9f8 i\uae00\uc790\uc640 \ubb38\uc790\uc5f4 B\uc758 \uccab \ubc88\uc9f8 j\uae00\uc790\uae4c\uc9c0\uc758 LCS \uae38\uc774\ub97c \ub098\ud0c0\ub0c5\ub2c8\ub2e4.\n<\/p>\n<h3>3. \uc810\ud654\uc2dd \uc124\uc815<\/h3>\n<p>\n    DP \ud14c\uc774\ube14\uc744 \ucc44\uc6b0\uae30 \uc704\ud574 \ub2e4\uc74c\uacfc \uac19\uc740 \uc810\ud654\uc2dd\uc744 \uc0ac\uc6a9\ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\ub9cc\uc57d A[i-1] == B[j-1]\uc774\ub77c\uba74, <code>DP[i][j] = DP[i-1][j-1] + 1<\/code><\/li>\n<li>\uadf8\ub807\uc9c0 \uc54a\ub2e4\uba74, <code>DP[i][j] = max(DP[i-1][j], DP[i][j-1])<\/code><\/li>\n<\/ul>\n<p>\n    \uc774\ub97c \ud1b5\ud574 \ub450 \ubb38\uc790\uc5f4\uc758 LCS\ub97c \uacc4\uc0b0\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h2>C++ \uad6c\ud604<\/h2>\n<p>\n    \uc774\uc81c \uc704\uc758 \uc774\ub860\uc744 \ubc14\ud0d5\uc73c\ub85c C++ \ucf54\ub4dc\ub85c \uad6c\ud604\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n<\/p>\n<pre><code>\n#include &lt;iostream&gt;\n#include &lt;vector&gt;\n#include &lt;string&gt;\n\nusing namespace std;\n\nint calculateLCS(const string &amp;A, const string &amp;B) {\n    int m = A.length();\n    int n = B.length();\n\n    \/\/ DP \ud14c\uc774\ube14 \ucd08\uae30\ud654\n    vector&lt;vector&lt;int&gt;&gt; DP(m + 1, vector&lt;int&gt;(n + 1, 0));\n\n    \/\/ DP \ud14c\uc774\ube14 \ucc44\uc6b0\uae30\n    for (int i = 1; i &lt;= m; i++) {\n        for (int j = 1; j &lt;= n; j++) {\n            if (A[i - 1] == B[j - 1]) {\n                DP[i][j] = DP[i - 1][j - 1] + 1;\n            } else {\n                DP[i][j] = max(DP[i - 1][j], DP[i][j - 1]);\n            }\n        }\n    }\n\n    return DP[m][n];\n}\n\nint main() {\n    string A = \"ABCBDAB\";\n    string B = \"BDCAB\";\n\n    int length = calculateLCS(A, B);\n    cout &lt;&lt; \"\ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4\uc758 \uae38\uc774\ub294 \" &lt;&lt; length &lt;&lt; \"\uc785\ub2c8\ub2e4.\" &lt;&lt; endl;\n\n    return 0;\n}\n<\/code><\/pre>\n<h2>\ucf54\ub4dc \uc124\uba85<\/h2>\n<p>\n    \uc704 C++ \ucf54\ub4dc\uc5d0\uc11c\ub294 <code>calculateLCS<\/code> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub450 \ubb38\uc790\uc5f4\uc758 LCS\ub97c \uacc4\uc0b0\ud569\ub2c8\ub2e4.<br \/>\n    \uba3c\uc800, DP \ud14c\uc774\ube14\uc744 \ucd08\uae30\ud654\ud55c \ud6c4 \uac01 \ubb38\uc790 \uc30d\uc5d0 \ub300\ud574 \ube44\uad50\ub97c \uc218\ud589\ud558\uba70 DP \ud14c\uc774\ube14\uc744 \ucc44\uc6c1\ub2c8\ub2e4.<br \/>\n    \ub9c8\uc9c0\ub9c9\uc73c\ub85c \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4\uc758 \uae38\uc774\ub294 DP \ud14c\uc774\ube14\uc758 \uc624\ub978\ucabd \uc544\ub798 \uc140(DP[m][n])\uc5d0 \uc800\uc7a5\ub429\ub2c8\ub2e4.\n<\/p>\n<h2>\uc2dc\uac04 \ubcf5\uc7a1\ub3c4<\/h2>\n<p>\n    \uc774 \uc54c\uace0\ub9ac\uc998\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub294 O(m * n)\uc774\uba70, \uacf5\uac04 \ubcf5\uc7a1\ub3c4 \ub610\ud55c O(m * n)\uc785\ub2c8\ub2e4.<br \/>\n    \uc774\ub294 \ub450 \ubb38\uc790\uc5f4\uc758 \uae38\uc774\uc5d0 \ube44\ub840\ud558\ubbc0\ub85c, \uc785\ub825 \ubb38\uc790\uc5f4 \uae38\uc774\uac00 \uae38 \uacbd\uc6b0 \uc131\ub2a5\uc5d0 \uc601\ud5a5\uc744 \uc904 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h2>\uacb0\ub860<\/h2>\n<p>\n    \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \ub450 \ubb38\uc790\uc5f4 \uac04\uc758 \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4\uc744 \ucc3e\ub294 \ubb38\uc81c\ub97c \ub2e4\ub8e8\uc5c8\uc2b5\ub2c8\ub2e4.<br \/>\n    C++\uc640 \ub3d9\uc801 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \ud65c\uc6a9\ud558\uc5ec \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\ubcf4\uc558\uc73c\uba70, \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4 \ubb38\uc81c\ub294 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \ube48\ubc88\ud788 \ub4f1\uc7a5\ud558\ub294 \ubb38\uc81c \uc911 \ud558\ub098\uc785\ub2c8\ub2e4.<br \/>\n    \ub2e4\uc591\ud55c \ubb38\uc81c\ub97c \ud1b5\ud574 \uc774\uc640 \uc720\uc0ac\ud55c \uc54c\uace0\ub9ac\uc998\uc744 \uc775\ud788\uace0 \uc5f0\uc2b5\ud558\uc2e0\ub2e4\uba74, \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc88b\uc740 \uacb0\uacfc\ub97c \uc5bb\uc744 \uc218 \uc788\uc744 \uac83\uc785\ub2c8\ub2e4.\n<\/p>\n<p>\uac10\uc0ac\ud569\ub2c8\ub2e4!<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ucf54\ub529 \ud14c\uc2a4\ud2b8\ub97c \uc900\ube44\ud558\ub294 \uac83\uc740 \ub2e4\uc18c \ub3c4\uc804\uc801\uc77c \uc218 \uc788\uc9c0\ub9cc, \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \uccb4\uacc4\uc801\uc73c\ub85c \uc775\ud788\uba74 \uc88b\uc740 \uc131\uacfc\ub97c \uc774\ub8f0 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4(LCS, Longest Common Subsequence) \ubb38\uc81c\ub97c \ub2e4\ub8f0 \uac83\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ubb38\uc790\uc5f4\uc774\ub098 \uc218\uc5f4\uc5d0\uc11c \ub450 \uac1c\uc758 \uc11c\ube0c\uc2dc\ud000\uc2a4\uac00 \uc5bc\ub9c8\ub098 \ub9ce\uc774 \uc911\ubcf5\ub418\ub294\uc9c0\ub97c \uce21\uc815\ud558\ub294 \uc911\uc694\ud55c \uc54c\uace0\ub9ac\uc998 \uc9c8\ubb38\uc785\ub2c8\ub2e4. \ubb38\uc81c \uc815\uc758 \ub450 \uac1c\uc758 \ubb38\uc790\uc5f4\uc774 \uc8fc\uc5b4\uc84c\uc744 \ub54c, \uc774 \ub450 \ubb38\uc790\uc5f4\uc758 \ucd5c\uc7a5 \uacf5\ud1b5 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27760\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[25],"tags":[],"class_list":["post-27760","post","type-post","status-publish","format-standard","hentry","category-c---2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/27760\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ucf54\ub529 \ud14c\uc2a4\ud2b8\ub97c \uc900\ube44\ud558\ub294 \uac83\uc740 \ub2e4\uc18c \ub3c4\uc804\uc801\uc77c \uc218 \uc788\uc9c0\ub9cc, \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \uccb4\uacc4\uc801\uc73c\ub85c \uc775\ud788\uba74 \uc88b\uc740 \uc131\uacfc\ub97c \uc774\ub8f0 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4(LCS, Longest Common Subsequence) \ubb38\uc81c\ub97c \ub2e4\ub8f0 \uac83\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ubb38\uc790\uc5f4\uc774\ub098 \uc218\uc5f4\uc5d0\uc11c \ub450 \uac1c\uc758 \uc11c\ube0c\uc2dc\ud000\uc2a4\uac00 \uc5bc\ub9c8\ub098 \ub9ce\uc774 \uc911\ubcf5\ub418\ub294\uc9c0\ub97c \uce21\uc815\ud558\ub294 \uc911\uc694\ud55c \uc54c\uace0\ub9ac\uc998 \uc9c8\ubb38\uc785\ub2c8\ub2e4. \ubb38\uc81c \uc815\uc758 \ub450 \uac1c\uc758 \ubb38\uc790\uc5f4\uc774 \uc8fc\uc5b4\uc84c\uc744 \ub54c, \uc774 \ub450 \ubb38\uc790\uc5f4\uc758 \ucd5c\uc7a5 \uacf5\ud1b5 &hellip; \ub354 \ubcf4\uae30 &quot;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27760\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T14:43:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:15:24+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/27760\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27760\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30\",\"datePublished\":\"2024-10-27T14:43:37+00:00\",\"dateModified\":\"2024-11-26T07:15:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27760\/\"},\"wordCount\":61,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/27760\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27760\/\",\"name\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T14:43:37+00:00\",\"dateModified\":\"2024-11-26T07:15:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27760\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27760\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27760\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/27760\/","og_locale":"ko_KR","og_type":"article","og_title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ucf54\ub529 \ud14c\uc2a4\ud2b8\ub97c \uc900\ube44\ud558\ub294 \uac83\uc740 \ub2e4\uc18c \ub3c4\uc804\uc801\uc77c \uc218 \uc788\uc9c0\ub9cc, \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \uccb4\uacc4\uc801\uc73c\ub85c \uc775\ud788\uba74 \uc88b\uc740 \uc131\uacfc\ub97c \uc774\ub8f0 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4(LCS, Longest Common Subsequence) \ubb38\uc81c\ub97c \ub2e4\ub8f0 \uac83\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ubb38\uc790\uc5f4\uc774\ub098 \uc218\uc5f4\uc5d0\uc11c \ub450 \uac1c\uc758 \uc11c\ube0c\uc2dc\ud000\uc2a4\uac00 \uc5bc\ub9c8\ub098 \ub9ce\uc774 \uc911\ubcf5\ub418\ub294\uc9c0\ub97c \uce21\uc815\ud558\ub294 \uc911\uc694\ud55c \uc54c\uace0\ub9ac\uc998 \uc9c8\ubb38\uc785\ub2c8\ub2e4. \ubb38\uc81c \uc815\uc758 \ub450 \uac1c\uc758 \ubb38\uc790\uc5f4\uc774 \uc8fc\uc5b4\uc84c\uc744 \ub54c, \uc774 \ub450 \ubb38\uc790\uc5f4\uc758 \ucd5c\uc7a5 \uacf5\ud1b5 &hellip; \ub354 \ubcf4\uae30 \"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/27760\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T14:43:37+00:00","article_modified_time":"2024-11-26T07:15:24+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/27760\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27760\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30","datePublished":"2024-10-27T14:43:37+00:00","dateModified":"2024-11-26T07:15:24+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27760\/"},"wordCount":61,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/27760\/","url":"https:\/\/atmokpo.com\/w\/27760\/","name":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T14:43:37+00:00","dateModified":"2024-11-26T07:15:24+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27760\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27760\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27760\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc7a5 \uacf5\ud1b5 \ubd80\ubd84 \uc218\uc5f4 \ucc3e\uae30"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=27760"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27760\/revisions"}],"predecessor-version":[{"id":27761,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27760\/revisions\/27761"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}