{"id":27186,"date":"2024-10-27T13:44:22","date_gmt":"2024-10-27T13:44:22","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27186"},"modified":"2024-11-26T07:20:48","modified_gmt":"2024-11-26T07:20:48","slug":"%ed%8c%8c%ec%9d%b4%ec%8d%ac-%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%86%8c-%ea%b3%b5%ed%86%b5-%ec%a1%b0%ec%83%81-%ea%b5%ac%ed%95%98%ea%b8%b0-2","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27186\/","title":{"rendered":"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2"},"content":{"rendered":"<p><body><\/p>\n<p>\n    \ubcf8\uae00\uc5d0\uc11c\ub294 &#8216;\ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1(LCA; Lowest Common Ancestor)&#8217; \uad6c\ud558\uae30 \ubb38\uc81c \uc911 \ud558\ub098\uc778 &#8216;\ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2&#8217;\uc5d0 \ub300\ud574<br \/>\n    \ud0d0\uad6c\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ud2b9\uc815 \ud2b8\ub9ac \uad6c\uc870\uc5d0\uc11c \ub450 \ub178\ub4dc\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \ubb38\uc81c\ub85c,<br \/>\n    \ud2b9\ud788 \uc774\uc9c4 \ud2b8\ub9ac\uc5d0\uc11c \uc774\ub8e8\uc5b4\uc9d1\ub2c8\ub2e4. LCA \ubb38\uc81c\ub294 \ud2b8\ub9ac \ud0d0\uc0c9 \ubc0f \uc870\uc791\uacfc \uad00\ub828\ub41c \uae30\ubcf8\uc801\uc778 \ubb38\uc81c\ub85c,<br \/>\n    \ucf54\ub529 \uc778\ud130\ubdf0 \ubc0f \uc54c\uace0\ub9ac\uc998 \uacbd\uc2dc\ub300\ud68c\uc5d0\uc11c\ub3c4 \uc790\uc8fc \ub4f1\uc7a5\ud569\ub2c8\ub2e4.\n<\/p>\n<h2>\ubb38\uc81c \uc124\uba85<\/h2>\n<p>\n    \uc8fc\uc5b4\uc9c4 \uc774\uc9c4 \ud2b8\ub9ac\uac00 \uc788\uc744 \ub54c, \ub450 \ub178\ub4dc <code>u<\/code>\uc640 <code>v<\/code>\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\uc544\uc57c \ud569\ub2c8\ub2e4.<br \/>\n    \uc774\uc9c4 \ud2b8\ub9ac\ub294 \uac01 \ub178\ub4dc\uac00 \ucd5c\ub300 2\uac1c\uc758 \uc790\uc2dd\uc744 \uac00\uc9c8 \uc218 \uc788\uc73c\uba70, \ub8e8\ud2b8 \ub178\ub4dc\ubd80\ud130 \uc2dc\uc791\ud558\uc5ec<br \/>\n    \uac01\uac01\uc758 \ub178\ub4dc\ub294 \uace0\uc720\ud55c \uac12\uc744 \uac00\uc9d1\ub2c8\ub2e4.\n<\/p>\n<h3>\uc785\ub825 \ud615\uc2dd<\/h3>\n<ul>\n<li>\uccab \ubc88\uc9f8 \uc904: \ub178\ub4dc\uc758 \uc218 <code>n<\/code> (1 \u2264 n \u2264 100,000)<\/li>\n<li>\ub450 \ubc88\uc9f8 \uc904: \ud2b8\ub9ac\uc758 \uad6c\uc131 (\ubd80\ubaa8 \ub178\ub4dc\uc640 \uc790\uc2dd \ub178\ub4dc\uac00 \uc8fc\uc5b4\uc9d0)<\/li>\n<li>\uc138 \ubc88\uc9f8 \uc904: \ub450 \uac1c\uc758 \ub178\ub4dc <code>u<\/code>, <code>v<\/code><\/li>\n<\/ul>\n<h3>\ucd9c\ub825 \ud615\uc2dd<\/h3>\n<p>\n    \ub178\ub4dc <code>u<\/code>\uc640 <code>v<\/code>\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucd9c\ub825\ud569\ub2c8\ub2e4.\n<\/p>\n<h2>\uc608\uc81c<\/h2>\n<pre>\n\uc785\ub825:\n7\n1 2\n1 3\n2 4\n2 5\n3 6\n3 7\n4 5\n\n\ucd9c\ub825:\n2\n<\/pre>\n<h2>\ubb38\uc81c \uc811\uadfc \ubc29\ubc95<\/h2>\n<p>\n    \uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574, \uba3c\uc800 \ud2b8\ub9ac\ub97c \uad6c\uc131\ud574\uc57c \ud569\ub2c8\ub2e4. \ud2b8\ub9ac\ub97c \ubc30\uc5f4\ub85c \ud45c\ud604\ud558\uac70\ub098 \uc5f0\uacb0 \ub9ac\uc2a4\ud2b8\ub85c \ud45c\ud604\ud560 \uc218 \uc788\uc9c0\ub9cc,<br \/>\n    \uc5f0\uacb0 \ub9ac\uc2a4\ud2b8\ub97c \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \ub354 \ud6a8\uc728\uc801\uc785\ub2c8\ub2e4. \uc774\ud6c4 DFS(Depth First Search)\ub97c \ud1b5\ud574 \uac01 \ub178\ub4dc\uc758 \uae4a\uc774\ub97c \uae30\ub85d\ud558\uace0,<br \/>\n    \ubd80\ubaa8 \ub178\ub4dc\ub97c \uc800\uc7a5\ud558\uc5ec \uc774\ud6c4 LCA\ub97c \uc27d\uac8c \ucc3e\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h2>\ud2b8\ub9ac \uad6c\uc131<\/h2>\n<p>\n    \uc8fc\uc5b4\uc9c4 \uac04\uc120 \uc815\ubcf4\ub97c \ubc14\ud0d5\uc73c\ub85c \ub178\ub4dc\uc640 \uc790\uc2dd \uad00\uacc4\ub97c \uc124\uc815\ud569\ub2c8\ub2e4.<br \/>\n    \ud30c\uc774\uc36c\uc758 \ub515\uc154\ub108\ub9ac\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubd80\ubaa8-\uc790\uc2dd \uad00\uacc4\ub97c \uc800\uc7a5\ud569\ub2c8\ub2e4.\n<\/p>\n<pre><code>\nfrom collections import defaultdict\n\ndef build_tree(edges):\n    tree = defaultdict(list)\n    for parent, child in edges:\n        tree[parent].append(child)\n    return tree\n<\/code><\/pre>\n<h2>DFS\ub97c \ud1b5\ud55c \uae4a\uc774 \ubc0f \ubd80\ubaa8 \ub178\ub4dc \uc815\ubcf4 \uc800\uc7a5<\/h2>\n<pre><code>\ndef dfs(tree, node, parent, depth, depths, parents):\n    depths[node] = depth\n    parents[node] = parent\n    for child in tree[node]:\n        if child != parent:\n            dfs(tree, child, node, depth + 1, depths, parents)\n<\/code><\/pre>\n<h2>LCA \ud568\uc218 \uad6c\ud604<\/h2>\n<p>\n    \uae4a\uc774\ub97c \uae30\uc900\uc73c\ub85c \ub450 \ub178\ub4dc\uc758 \uc704\uce58\ub97c \ub9de\ucd98 \ud6c4, \uadf8\ub4e4\uc758 \ubd80\ubaa8\ub97c \ub530\ub77c \uc62c\ub77c\uac00\uba74\uc11c<br \/>\n    \ub450 \ub178\ub4dc\uac00 \uac19\uc740 \ub178\ub4dc\uc5d0 \ub3c4\ub2ec\ud560 \ub54c\uae4c\uc9c0 \uc9c4\ud589\ud569\ub2c8\ub2e4.\n<\/p>\n<pre><code>\ndef lca(u, v, depths, parents):\n    # Depth \ub9de\ucd94\uae30\n    if depths[u] &lt; depths[v]:\n        u, v = v, u\n\n    while depths[u] &gt; depths[v]:\n        u = parents[u]\n\n    while u != v:\n        u = parents[u]\n        v = parents[v]\n\n    return u\n<\/code><\/pre>\n<h2>\uc804\uccb4 \ucf54\ub4dc<\/h2>\n<pre><code>\ndef main():\n    n = int(input())\n    edges = [tuple(map(int, input().split())) for _ in range(n - 1)]\n    u, v = map(int, input().split())\n\n    tree = build_tree(edges)\n    depths = {}\n    parents = {}\n\n    # DFS\ub97c \ud1b5\ud574 \uae4a\uc774\uc640 \ubd80\ubaa8 \uc815\ubcf4 \uc218\uc9d1\n    dfs(tree, 1, -1, 0, depths, parents)\n\n    # \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \ucc3e\uae30\n    ancestor = lca(u, v, depths, parents)\n    print(ancestor)\n\nif __name__ == \"__main__\":\n    main()\n<\/code><\/pre>\n<h2>\uc2dc\uac04 \ubcf5\uc7a1\ub3c4<\/h2>\n<p>\n    \uc704\uc758 \uc54c\uace0\ub9ac\uc998\uc758 \uc2dc\uac04 \ubcf5\uc7a1\ub3c4\ub294 O(n)\uc785\ub2c8\ub2e4. \ud2b8\ub9ac\ub97c \uad6c\uc131\ud558\uace0 \ud0d0\uc0c9\ud558\ub294 \uacfc\uc815\uc5d0\uc11c<br \/>\n    \uac01 \ub178\ub4dc\ub97c \ud55c \ubc88\uc529 \ubc29\ubb38\ud558\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4.\n<\/p>\n<h2>\uacb0\ub860<\/h2>\n<p>\n    &#8216;\ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2&#8217; \ubb38\uc81c\ub294 \uc774\uc9c4 \ud2b8\ub9ac\uc758 \ud0d0\uc0c9 \ubc0f \uc870\uc791\uc758 \uae30\ucd08\ub97c \uc774\ud574\ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub418\uba70,<br \/>\n    \uc2e4\uc81c\ub85c \uc720\uc6a9\ud55c \uc54c\uace0\ub9ac\uc998\uc785\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\ub294 \uacfc\uc815\uc5d0\uc11c \ud2b8\ub9ac\uc758 \uad6c\uc870\uc640 DFS\uc758 \uac1c\ub150\uc744 \uae4a\uc774 \uc788\uac8c \uc774\ud574\ud560 \uc218 \uc788\uac8c \ub429\ub2c8\ub2e4.<br \/>\n    \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \uc774\ud6c4 \ub2e4\uc591\ud55c \ubb38\uc81c\ub4e4\ub85c \ud655\uc7a5 \uac00\ub2a5\ud558\uba70, \ub2e4\ub978 \uc790\ub8cc\uad6c\uc870\uc640\uc758 \uc751\uc6a9\uc5d0\ub3c4 \ud070 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4.\n<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ubcf8\uae00\uc5d0\uc11c\ub294 &#8216;\ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1(LCA; Lowest Common Ancestor)&#8217; \uad6c\ud558\uae30 \ubb38\uc81c \uc911 \ud558\ub098\uc778 &#8216;\ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2&#8217;\uc5d0 \ub300\ud574 \ud0d0\uad6c\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ud2b9\uc815 \ud2b8\ub9ac \uad6c\uc870\uc5d0\uc11c \ub450 \ub178\ub4dc\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \ubb38\uc81c\ub85c, \ud2b9\ud788 \uc774\uc9c4 \ud2b8\ub9ac\uc5d0\uc11c \uc774\ub8e8\uc5b4\uc9d1\ub2c8\ub2e4. LCA \ubb38\uc81c\ub294 \ud2b8\ub9ac \ud0d0\uc0c9 \ubc0f \uc870\uc791\uacfc \uad00\ub828\ub41c \uae30\ubcf8\uc801\uc778 \ubb38\uc81c\ub85c, \ucf54\ub529 \uc778\ud130\ubdf0 \ubc0f \uc54c\uace0\ub9ac\uc998 \uacbd\uc2dc\ub300\ud68c\uc5d0\uc11c\ub3c4 \uc790\uc8fc \ub4f1\uc7a5\ud569\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc774\uc9c4 \ud2b8\ub9ac\uac00 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27186\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2&#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":[23],"tags":[],"class_list":["post-27186","post","type-post","status-publish","format-standard","hentry","category-23"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2 - \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\/27186\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ubcf8\uae00\uc5d0\uc11c\ub294 &#8216;\ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1(LCA; Lowest Common Ancestor)&#8217; \uad6c\ud558\uae30 \ubb38\uc81c \uc911 \ud558\ub098\uc778 &#8216;\ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2&#8217;\uc5d0 \ub300\ud574 \ud0d0\uad6c\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ud2b9\uc815 \ud2b8\ub9ac \uad6c\uc870\uc5d0\uc11c \ub450 \ub178\ub4dc\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \ubb38\uc81c\ub85c, \ud2b9\ud788 \uc774\uc9c4 \ud2b8\ub9ac\uc5d0\uc11c \uc774\ub8e8\uc5b4\uc9d1\ub2c8\ub2e4. LCA \ubb38\uc81c\ub294 \ud2b8\ub9ac \ud0d0\uc0c9 \ubc0f \uc870\uc791\uacfc \uad00\ub828\ub41c \uae30\ubcf8\uc801\uc778 \ubb38\uc81c\ub85c, \ucf54\ub529 \uc778\ud130\ubdf0 \ubc0f \uc54c\uace0\ub9ac\uc998 \uacbd\uc2dc\ub300\ud68c\uc5d0\uc11c\ub3c4 \uc790\uc8fc \ub4f1\uc7a5\ud569\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc774\uc9c4 \ud2b8\ub9ac\uac00 &hellip; \ub354 \ubcf4\uae30 &quot;\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27186\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T13:44:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:20:48+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\/27186\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27186\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2\",\"datePublished\":\"2024-10-27T13:44:22+00:00\",\"dateModified\":\"2024-11-26T07:20:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27186\/\"},\"wordCount\":17,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/27186\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27186\/\",\"name\":\"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T13:44:22+00:00\",\"dateModified\":\"2024-11-26T07:20:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27186\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27186\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27186\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2\"}]},{\"@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":"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2 - \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\/27186\/","og_locale":"ko_KR","og_type":"article","og_title":"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ubcf8\uae00\uc5d0\uc11c\ub294 &#8216;\ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1(LCA; Lowest Common Ancestor)&#8217; \uad6c\ud558\uae30 \ubb38\uc81c \uc911 \ud558\ub098\uc778 &#8216;\ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2&#8217;\uc5d0 \ub300\ud574 \ud0d0\uad6c\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \ud2b9\uc815 \ud2b8\ub9ac \uad6c\uc870\uc5d0\uc11c \ub450 \ub178\ub4dc\uc758 \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1\uc744 \ucc3e\ub294 \ubb38\uc81c\ub85c, \ud2b9\ud788 \uc774\uc9c4 \ud2b8\ub9ac\uc5d0\uc11c \uc774\ub8e8\uc5b4\uc9d1\ub2c8\ub2e4. LCA \ubb38\uc81c\ub294 \ud2b8\ub9ac \ud0d0\uc0c9 \ubc0f \uc870\uc791\uacfc \uad00\ub828\ub41c \uae30\ubcf8\uc801\uc778 \ubb38\uc81c\ub85c, \ucf54\ub529 \uc778\ud130\ubdf0 \ubc0f \uc54c\uace0\ub9ac\uc998 \uacbd\uc2dc\ub300\ud68c\uc5d0\uc11c\ub3c4 \uc790\uc8fc \ub4f1\uc7a5\ud569\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \uc774\uc9c4 \ud2b8\ub9ac\uac00 &hellip; \ub354 \ubcf4\uae30 \"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2\"","og_url":"https:\/\/atmokpo.com\/w\/27186\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T13:44:22+00:00","article_modified_time":"2024-11-26T07:20:48+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\/27186\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27186\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2","datePublished":"2024-10-27T13:44:22+00:00","dateModified":"2024-11-26T07:20:48+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27186\/"},"wordCount":17,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/27186\/","url":"https:\/\/atmokpo.com\/w\/27186\/","name":"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T13:44:22+00:00","dateModified":"2024-11-26T07:20:48+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27186\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27186\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27186\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \ucd5c\uc18c \uacf5\ud1b5 \uc870\uc0c1 \uad6c\ud558\uae30 2"}]},{"@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\/27186","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=27186"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27186\/revisions"}],"predecessor-version":[{"id":27187,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27186\/revisions\/27187"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}