{"id":27148,"date":"2024-10-27T13:44:02","date_gmt":"2024-10-27T13:44:02","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27148"},"modified":"2024-11-26T07:21:21","modified_gmt":"2024-11-26T07:21:21","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%9d%b4%ec%a7%84-%ed%83%90%ec%83%89","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27148\/","title":{"rendered":"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc774\uc9c4 \ud0d0\uc0c9"},"content":{"rendered":"<p><body><\/p>\n<article>\n<section>\n<h2>1. \uc774\uc9c4 \ud0d0\uc0c9\uc774\ub780?<\/h2>\n<p>\n                \uc774\uc9c4 \ud0d0\uc0c9(Binary Search)\uc740 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc778 \ud0d0\uc0c9 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c, \uc815\ub82c\ub41c \ubc30\uc5f4\uc5d0\uc11c \ud2b9\uc815\ud55c \uac12\uc744 \ucc3e\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \uc8fc\uc5b4\uc9c4 \ub9ac\uc2a4\ud2b8\ub97c \uc808\ubc18\uc73c\ub85c \ub098\ub204\uc5b4\uac00\uba70 \uc6d0\ud558\ub294 \uac12\uc744 \uac80\uc0c9\ud558\uae30 \ub54c\ubb38\uc5d0, \uc77c\ubc18\uc801\uc778 \uc21c\ucc28 \ud0d0\uc0c9(Linear Search)\ubcf4\ub2e4 \ud6e8\uc52c \ube60\ub978 \uc131\ub2a5\uc744 \ubcf4\uc785\ub2c8\ub2e4.\n            <\/p>\n<p>\n                \uc774\uc9c4 \ud0d0\uc0c9\uc758 \ud575\uc2ec \uc544\uc774\ub514\uc5b4\ub294 \ub9ac\uc2a4\ud2b8\uac00 \uc815\ub82c\ub418\uc5b4 \uc788\ub2e4\ub294 \uc810\uc744 \ud65c\uc6a9\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \uacfc\uc815\uc744 \ud1b5\ud574 \uc791\ub3d9\ud569\ub2c8\ub2e4:\n            <\/p>\n<ol>\n<li>\ub9ac\uc2a4\ud2b8\uc758 \uc911\uac04 \uc778\ub371\uc2a4\ub97c \ucc3e\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\uc911\uac04 \uc694\uc18c\uac00 \ucc3e\uace0\uc790 \ud558\ub294 \uac12\uacfc \uc77c\uce58\ud558\ub294\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4.<\/li>\n<li>\uc77c\uce58\ud558\uc9c0 \uc54a\ub2e4\uba74, \uc911\uac04 \uc694\uc18c\uc640 \ucc3e\uace0\uc790 \ud558\ub294 \uac12\uc744 \ube44\uad50\ud558\uc5ec \ud0d0\uc0c9 \ubc94\uc704\ub97c \uc870\uc815\ud569\ub2c8\ub2e4. \uc989, \uc911\uac04 \uc694\uc18c\ubcf4\ub2e4 \uc791\uc73c\uba74 \uc67c\ucabd \ubc18\ucabd\uc744, \ud06c\uba74 \uc624\ub978\ucabd \ubc18\ucabd\uc744 \ud0d0\uc0c9\ud569\ub2c8\ub2e4.<\/li>\n<li>\ubaa9\ud45c \uac12\uc744 \ucc3e\uc744 \ub54c\uae4c\uc9c0 \uc774 \uacfc\uc815\uc744 \ubc18\ubcf5\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>2. \uc774\uc9c4 \ud0d0\uc0c9\uc758 \uc2dc\uac04\ubcf5\uc7a1\ub3c4<\/h2>\n<p>\n                \uc774\uc9c4 \ud0d0\uc0c9 \uc54c\uace0\ub9ac\uc998\uc758 \uc2dc\uac04\ubcf5\uc7a1\ub3c4\ub294 O(log n)\uc785\ub2c8\ub2e4. \uc774\ub294 \ud0d0\uc0c9\ud560 \ubaa9\ub85d\uc758 \ud06c\uae30\uac00 n\uc77c \ub54c, \uac01 \ub2e8\uacc4\uc5d0\uc11c \ud0d0\uc0c9 \uac00\ub2a5 \uc601\uc5ed\uc744 \ubc18\uc73c\ub85c \uc904\uc774\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4. \uc774\ub85c \uc778\ud574 \uc774\uc9c4 \ud0d0\uc0c9\uc740 \ub9e4\uc6b0 \ud070 \ub370\uc774\ud130 \uc138\ud2b8\uc5d0\uc11c\ub3c4 \ud6a8\uc728\uc801\uc73c\ub85c \uc791\ub3d9\ud558\ub294 \uc7a5\uc810\uc774 \uc788\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section>\n<h2>3. \ubb38\uc81c: \ud2b9\uc815 \uac12\uc758 \uc778\ub371\uc2a4 \ucc3e\uae30<\/h2>\n<h3>\ubb38\uc81c \uc124\uba85<\/h3>\n<p>\n                \uc815\ub82c\ub41c \uc815\uc218 \ubc30\uc5f4 arr\uc640 \uc815\uc218 target\uc774 \uc8fc\uc5b4\uc9c8 \ub54c, target\uc758 \uc778\ub371\uc2a4\ub97c \ubc18\ud658\ud558\ub294 \uc774\uc9c4 \ud0d0\uc0c9 \ud568\uc218\ub97c \uc791\uc131\ud558\uc2dc\uc624. \ub9cc\uc57d target\uc774 \uc874\uc7ac\ud558\uc9c0 \uc54a\ub294\ub2e4\uba74 -1\uc744 \ubc18\ud658\ud574\uc57c \ud569\ub2c8\ub2e4.\n            <\/p>\n<h3>\uc785\ub825<\/h3>\n<ul>\n<li>\uccab \ubc88\uc9f8 \uc904\uc5d0 \ubc30\uc5f4\uc758 \ud06c\uae30 n\uc774 \uc8fc\uc5b4\uc9c4\ub2e4. (1 \u2264 n \u2264 10^5)<\/li>\n<li>\ub450 \ubc88\uc9f8 \uc904\uc5d0 n\uac1c\uc758 \uc815\uc218\uac00 \uacf5\ubc31\uc73c\ub85c \uad6c\ubd84\ub418\uc5b4 \uc8fc\uc5b4\uc9c4\ub2e4.<\/li>\n<li>\uc138 \ubc88\uc9f8 \uc904\uc5d0 \ubaa9\ud45c \uac12 target\uc774 \uc8fc\uc5b4\uc9c4\ub2e4. (-10^9 \u2264 target \u2264 10^9)<\/li>\n<\/ul>\n<h3>\ucd9c\ub825<\/h3>\n<p>\n                target\uc758 \uc778\ub371\uc2a4\ub97c \ucd9c\ub825\ud558\uc2dc\uc624. -1\uc778 \uacbd\uc6b0 target\uc774 \uc874\uc7ac\ud558\uc9c0 \uc54a\uc74c\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section>\n<h2>4. \ubb38\uc81c\uc758 \uc785\ub825 \uc608\uc2dc<\/h2>\n<pre>\n                5\n                1 2 3 4 5\n                3\n            <\/pre>\n<h3>\ucd9c\ub825 \uc608\uc2dc<\/h3>\n<pre>2<\/pre>\n<\/section>\n<section>\n<h2>5. \ubb38\uc81c \ud574\uacb0 \uacfc\uc815<\/h2>\n<p>\n                \uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \ud544\uc694\ud55c \ub2e8\uacc4\ub97c \uc124\uba85\ud569\ub2c8\ub2e4. \uc774\uc9c4 \ud0d0\uc0c9 \uc54c\uace0\ub9ac\uc998\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc8fc\uc5b4\uc9c4 \ubc30\uc5f4\uc5d0\uc11c target \uac12\uc744 \ucc3e\ub294 \uacfc\uc815\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc9c4\ud589\ud558\uaca0\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<h3>5.1 \uc54c\uace0\ub9ac\uc998\uc758 \uad6c\ud604<\/h3>\n<p>\n                \uba3c\uc800, \uc774\uc9c4 \ud0d0\uc0c9\uc744 \uad6c\ud604\ud558\uae30 \uc704\ud55c \uae30\ubcf8\uc801\uc778 \uad6c\uc870\ub97c \uc815\uc758\ud569\ub2c8\ub2e4. \ud568\uc218\ub294 \ubc30\uc5f4\uacfc \ubaa9\ud45c \uac12\uc744 \uc778\uc790\ub85c \ubc1b\uace0, \uc778\ub371\uc2a4 \ub610\ub294 -1\uc744 \ubc18\ud658\ud558\ub3c4\ub85d \ud569\ub2c8\ub2e4. \uc774\uc81c \ucf54\ub4dc\ub97c \uc791\uc131\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<pre>\n                def binary_search(arr, target):\n                    left, right = 0, len(arr) - 1\n                    \n                    while left &lt;= right:\n                        mid = (left + right) \/\/ 2\n                        \n                        if arr[mid] == target:\n                            return mid\n                        elif arr[mid] &lt; target:\n                            left = mid + 1\n                        else:\n                            right = mid - 1\n                    return -1\n            <\/pre>\n<h3>5.2 \ucf54\ub4dc \uc124\uba85<\/h3>\n<p>\n                \uc704\uc758 \ucf54\ub4dc\ub294 \uac04\ub2e8\ud55c \uc774\uc9c4 \ud0d0\uc0c9 \uc54c\uace0\ub9ac\uc998\uc758 \uad6c\ud604\uc785\ub2c8\ub2e4. <code>left<\/code>\uc640 <code>right<\/code>\ub294 \ud604\uc7ac \ud0d0\uc0c9\ud560 \ubc94\uc704\ub97c \ud45c\uc2dc\ud569\ub2c8\ub2e4. \uae30\ubcf8\uc801\uc73c\ub85c <code>left<\/code>\ub294 0, <code>right<\/code>\ub294 \ubc30\uc5f4\uc758 \ub9c8\uc9c0\ub9c9 \uc778\ub371\uc2a4\uc785\ub2c8\ub2e4.\n            <\/p>\n<p>\n<code>while left &lt;= right:<\/code> \ub77c\ub294 \uc870\uac74\ubb38\uc740 <code>left<\/code>\uac00 <code>right<\/code>\ubcf4\ub2e4 \uc791\uac70\ub098 \uac19\uc744 \ub3d9\uc548 \ubc18\ubcf5\ud569\ub2c8\ub2e4. \uc911\uac04 \uac12\uc744 \uacc4\uc0b0\ud558\uc5ec <code>mid<\/code>\uc5d0 \uc800\uc7a5\ud558\uace0, \uadf8 \uac12\uc5d0 \ub530\ub77c \uc870\uac74\uc744 \uccb4\ud06c\ud558\uc5ec \ubc94\uc704\ub97c \uc904\uc774\ub294 \ubc29\uc2dd\uc73c\ub85c \uc791\ub3d9\ud569\ub2c8\ub2e4.\n            <\/p>\n<h3>5.3 \uc785\ub825 \ucc98\ub9ac \ubc0f \ucd9c\ub825<\/h3>\n<p>\n                \ub2e4\uc74c\uc73c\ub85c \uc785\ub825\uc744 \ucc98\ub9ac\ud558\uace0, \uc791\uc131\ud55c <code>binary_search<\/code> \ud568\uc218\ub97c \ud638\ucd9c\ud574 \uacb0\uacfc\ub97c \ucd9c\ub825\ud558\ub294 \ubd80\ubd84\uc744 \ucd94\uac00\ud558\uaca0\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<pre>\n                n = int(input())\n                arr = list(map(int, input().split()))\n                target = int(input())\n                \n                result = binary_search(arr, target)\n                print(result)\n            <\/pre>\n<\/section>\n<section>\n<h2>6. \ucf54\ub4dc \ucd5c\uc801\ud654<\/h2>\n<p>\n                \uc704\uc758 \ucf54\ub4dc\ub85c\ub294 \uae30\ubcf8\uc801\uc778 \uc774\uc9c4 \ud0d0\uc0c9\uc744 \uc218\ud589\ud560 \uc218 \uc788\uc9c0\ub9cc, \ucf54\ub4dc\ub97c \uc870\uae08 \ub354 \ucd5c\uc801\ud654\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc774 \uc788\uc2b5\ub2c8\ub2e4. \ud2b9\ud788, Python\uc5d0\uc11c\ub294 \ub9ac\uc2a4\ud2b8\uc758 \uc911\uac04 \uc778\ub371\uc2a4\ub97c \uacc4\uc0b0\ud560 \ub54c \ub354 \uac04\ud3b8\ud55c \ubc29\ubc95\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ucc98\ub9ac\ub97c \ub2e8\uc21c\ud654\ud558\uae30 \uc704\ud574, <code>mid<\/code>\uc758 \uacc4\uc0b0\uc5d0\uc11c \uac01 \uac12\ub4e4\uc744 \uc9c1\uc811 \ub354\ud558\ub294 \ub300\uc2e0 Python\uc758 \uc815\uc218 \ub098\ub217\uc148\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<pre>\n                def binary_search_optimized(arr, target):\n                    left, right = 0, len(arr) - 1\n                    \n                    while left &lt;= right:\n                        mid = left + (right - left) \/\/ 2\n                        if arr[mid] == target:\n                            return mid\n                        elif arr[mid] &lt; target:\n                            left = mid + 1\n                        else:\n                            right = mid - 1\n                    return -1\n            <\/pre>\n<p>\n                \uc774\uc640 \uac19\uc774 <code>mid<\/code>\ub97c \uacc4\uc0b0\ud568\uc73c\ub85c\uc368 Python\uc758 \uba54\ubaa8\ub9ac\uc5d0\uc11c \uc624\ubc84\ud50c\ub85c\uc6b0\ub97c \ubc29\uc9c0\ud560 \uc218 \uc788\ub294 \uc7a5\uc810\uc774 \uc788\uc2b5\ub2c8\ub2e4. \uc911\uac04\uac12\uc758 \uacc4\uc0b0\uc744 \ub354 \uc548\uc804\ud558\uace0 \ud6a8\uc728\uc801\uc73c\ub85c \ub9cc\ub4dc\ub294 \uac83\uc785\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section>\n<h2>7. \ub2e4\uc591\ud55c \ubcc0\ud615 \ubb38\uc81c<\/h2>\n<p>\n                \uc774\uc9c4 \ud0d0\uc0c9 \uc54c\uace0\ub9ac\uc998\uc740 \ud2b9\uc815\ud55c \uac12\uc758 \uc778\ub371\uc2a4\ub97c \ucc3e\ub294 \uac83 \uc678\uc5d0\ub3c4 \ub2e4\uc591\ud55c \ubcc0\ud615 \ubb38\uc81c\uc5d0 \uc801\uc6a9\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ubc30\uc5f4\uc5d0\uc11c \uac00\uc7a5 \uc67c\ucabd(\ud639\uc740 \uc624\ub978\ucabd) \uc778\ub371\uc2a4 \ucc3e\uae30, \ud2b9\uc815 \uc870\uac74\uc744 \ub9cc\uc871\ud558\ub294 \ucd5c\ub300(\ud639\uc740 \ucd5c\uc18c) \uac12 \ucc3e\uae30 \ub4f1\uc758 \ubb38\uc81c\uac00 \uc788\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<h3>7.1 \uc608\uc2dc \ubb38\uc81c: \uccab \ubc88\uc9f8 \uc704\uce58 \ucc3e\uae30<\/h3>\n<p>\n                \uc8fc\uc5b4\uc9c4 \uc815\uc218 \ubc30\uc5f4\uc5d0\uc11c \ud2b9\uc815 \uac12\uc758 \uccab \ubc88\uc9f8 \uc704\uce58\ub97c \ucc3e\ub294 \ubb38\uc81c\ub97c \ud574\uacb0\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \uc774\uc9c4 \ud0d0\uc0c9\uc744 \uc0ac\uc6a9\ud558\ub418, \ub9cc\uc57d \uc911\uac04 \uac12\uc774 \ubaa9\ud45c \uac12\uacfc \uac19\uc744 \uacbd\uc6b0 \uacc4\uc18d \uc67c\ucabd\uc73c\ub85c \ud0d0\uc0c9\ud569\ub2c8\ub2e4.\n            <\/p>\n<pre>\n                def binary_search_first(arr, target):\n                    left, right = 0, len(arr) - 1\n                    result = -1  # \uacb0\uacfc \uc800\uc7a5 \ubcc0\uc218\n                    \n                    while left &lt;= right:\n                        mid = left + (right - left) \/\/ 2\n                        if arr[mid] == target:\n                            result = mid     # \ud604\uc7ac \uc778\ub371\uc2a4\ub97c \uc800\uc7a5\n                            right = mid - 1  # \uc67c\ucabd \ud0d0\uc0c9\n                        elif arr[mid] &lt; target:\n                            left = mid + 1\n                        else:\n                            right = mid - 1\n                    return result\n            <\/pre>\n<\/section>\n<section>\n<h2>8. \uacb0\ub860<\/h2>\n<p>\n                \uc774\uc9c4 \ud0d0\uc0c9\uc740 \uc815\ub82c\ub41c \ubc30\uc5f4\uc5d0\uc11c \ud2b9\uc815 \uac12\uc744 \ucc3e\ub294\ub370 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc778 \uc54c\uace0\ub9ac\uc998\uc785\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 \uc774\uc9c4 \ud0d0\uc0c9\uc758 \uae30\ubcf8 \uac1c\ub150, \uc2dc\uac04 \ubcf5\uc7a1\ub3c4, \uc54c\uace0\ub9ac\uc998 \uad6c\ud604, \ucd5c\uc801\ud654 \ubc0f \ubcc0\ud615 \ubb38\uc81c\uc5d0 \ub300\ud574 \uc124\uba85\ud588\uc2b5\ub2c8\ub2e4. \uc774\uc9c4 \ud0d0\uc0c9\uc744 \ud1b5\ud574 \ucf54\ub529 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub418\ub294 \ubb38\uc81c\ub97c \ud6a8\uacfc\uc801\uc73c\ub85c \ud574\uacb0\ud560 \uc218 \uc788\uc744 \uac83\uc785\ub2c8\ub2e4. \uc9c0\uc18d\uc801\uc73c\ub85c \ub2e4\uc591\ud55c \ubb38\uc81c\ub97c \ubb38\uc81c\ub97c \ud480\uc5b4\ubcf4\uba70, \uc774\uc9c4 \ud0d0\uc0c9\uc744 \ud65c\uc6a9\ud55c \uae30\ubc95\ub4e4\uc744 \uc775\ud788\ub3c4\ub85d \ud558\uc138\uc694. \uc774\ub97c \ud1b5\ud574 \ub354 \ub098\uc740 \ucf54\ub529 \uc2e4\ub825\uc744 \uc313\uc744 \uc218 \uc788\uc744 \uac83\uc785\ub2c8\ub2e4.\n            <\/p>\n<p>\n                \uc55e\uc73c\ub85c\ub3c4 \ub354 \ub9ce\uc740 \uac15\uc88c\uc640 \ubb38\uc81c \ud480\uc774\ub97c \ud1b5\ud574 \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998\uc744 \ubc30\uc6b0\uc2dc\uae38 \ubc14\ub78d\ub2c8\ub2e4. \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub294 \ubc18\ubcf5\uc801\uc778 \uc5f0\uc2b5\uc744 \ud1b5\ud574 \uc2e4\ub825\uc744 \ud5a5\uc0c1\uc2dc\ud0ac \uc218 \uc788\uc73c\ub2c8, \uafb8\uc900\ud788 \ub3c4\uc804\ud558\ub294 \uc790\uc138\ub97c \uac00\uc9c0\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<\/article>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \uc774\uc9c4 \ud0d0\uc0c9\uc774\ub780? \uc774\uc9c4 \ud0d0\uc0c9(Binary Search)\uc740 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc778 \ud0d0\uc0c9 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c, \uc815\ub82c\ub41c \ubc30\uc5f4\uc5d0\uc11c \ud2b9\uc815\ud55c \uac12\uc744 \ucc3e\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \uc8fc\uc5b4\uc9c4 \ub9ac\uc2a4\ud2b8\ub97c \uc808\ubc18\uc73c\ub85c \ub098\ub204\uc5b4\uac00\uba70 \uc6d0\ud558\ub294 \uac12\uc744 \uac80\uc0c9\ud558\uae30 \ub54c\ubb38\uc5d0, \uc77c\ubc18\uc801\uc778 \uc21c\ucc28 \ud0d0\uc0c9(Linear Search)\ubcf4\ub2e4 \ud6e8\uc52c \ube60\ub978 \uc131\ub2a5\uc744 \ubcf4\uc785\ub2c8\ub2e4. \uc774\uc9c4 \ud0d0\uc0c9\uc758 \ud575\uc2ec \uc544\uc774\ub514\uc5b4\ub294 \ub9ac\uc2a4\ud2b8\uac00 \uc815\ub82c\ub418\uc5b4 \uc788\ub2e4\ub294 \uc810\uc744 \ud65c\uc6a9\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \uacfc\uc815\uc744 \ud1b5\ud574 \uc791\ub3d9\ud569\ub2c8\ub2e4: \ub9ac\uc2a4\ud2b8\uc758 \uc911\uac04 \uc778\ub371\uc2a4\ub97c &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27148\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc774\uc9c4 \ud0d0\uc0c9&#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-27148","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, \uc774\uc9c4 \ud0d0\uc0c9 - \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\/27148\/\" \/>\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, \uc774\uc9c4 \ud0d0\uc0c9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"1. \uc774\uc9c4 \ud0d0\uc0c9\uc774\ub780? \uc774\uc9c4 \ud0d0\uc0c9(Binary Search)\uc740 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc778 \ud0d0\uc0c9 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c, \uc815\ub82c\ub41c \ubc30\uc5f4\uc5d0\uc11c \ud2b9\uc815\ud55c \uac12\uc744 \ucc3e\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \uc8fc\uc5b4\uc9c4 \ub9ac\uc2a4\ud2b8\ub97c \uc808\ubc18\uc73c\ub85c \ub098\ub204\uc5b4\uac00\uba70 \uc6d0\ud558\ub294 \uac12\uc744 \uac80\uc0c9\ud558\uae30 \ub54c\ubb38\uc5d0, \uc77c\ubc18\uc801\uc778 \uc21c\ucc28 \ud0d0\uc0c9(Linear Search)\ubcf4\ub2e4 \ud6e8\uc52c \ube60\ub978 \uc131\ub2a5\uc744 \ubcf4\uc785\ub2c8\ub2e4. \uc774\uc9c4 \ud0d0\uc0c9\uc758 \ud575\uc2ec \uc544\uc774\ub514\uc5b4\ub294 \ub9ac\uc2a4\ud2b8\uac00 \uc815\ub82c\ub418\uc5b4 \uc788\ub2e4\ub294 \uc810\uc744 \ud65c\uc6a9\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \uacfc\uc815\uc744 \ud1b5\ud574 \uc791\ub3d9\ud569\ub2c8\ub2e4: \ub9ac\uc2a4\ud2b8\uc758 \uc911\uac04 \uc778\ub371\uc2a4\ub97c &hellip; \ub354 \ubcf4\uae30 &quot;\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc774\uc9c4 \ud0d0\uc0c9&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27148\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T13:44:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:21:21+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\/27148\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27148\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc774\uc9c4 \ud0d0\uc0c9\",\"datePublished\":\"2024-10-27T13:44:02+00:00\",\"dateModified\":\"2024-11-26T07:21:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27148\/\"},\"wordCount\":27,\"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\/27148\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27148\/\",\"name\":\"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc774\uc9c4 \ud0d0\uc0c9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T13:44:02+00:00\",\"dateModified\":\"2024-11-26T07:21:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27148\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27148\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27148\/#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, \uc774\uc9c4 \ud0d0\uc0c9\"}]},{\"@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, \uc774\uc9c4 \ud0d0\uc0c9 - \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\/27148\/","og_locale":"ko_KR","og_type":"article","og_title":"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc774\uc9c4 \ud0d0\uc0c9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"1. \uc774\uc9c4 \ud0d0\uc0c9\uc774\ub780? \uc774\uc9c4 \ud0d0\uc0c9(Binary Search)\uc740 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc778 \ud0d0\uc0c9 \uc54c\uace0\ub9ac\uc998\uc73c\ub85c, \uc815\ub82c\ub41c \ubc30\uc5f4\uc5d0\uc11c \ud2b9\uc815\ud55c \uac12\uc744 \ucc3e\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \uc8fc\uc5b4\uc9c4 \ub9ac\uc2a4\ud2b8\ub97c \uc808\ubc18\uc73c\ub85c \ub098\ub204\uc5b4\uac00\uba70 \uc6d0\ud558\ub294 \uac12\uc744 \uac80\uc0c9\ud558\uae30 \ub54c\ubb38\uc5d0, \uc77c\ubc18\uc801\uc778 \uc21c\ucc28 \ud0d0\uc0c9(Linear Search)\ubcf4\ub2e4 \ud6e8\uc52c \ube60\ub978 \uc131\ub2a5\uc744 \ubcf4\uc785\ub2c8\ub2e4. \uc774\uc9c4 \ud0d0\uc0c9\uc758 \ud575\uc2ec \uc544\uc774\ub514\uc5b4\ub294 \ub9ac\uc2a4\ud2b8\uac00 \uc815\ub82c\ub418\uc5b4 \uc788\ub2e4\ub294 \uc810\uc744 \ud65c\uc6a9\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. \uc774 \uc54c\uace0\ub9ac\uc998\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \uacfc\uc815\uc744 \ud1b5\ud574 \uc791\ub3d9\ud569\ub2c8\ub2e4: \ub9ac\uc2a4\ud2b8\uc758 \uc911\uac04 \uc778\ub371\uc2a4\ub97c &hellip; \ub354 \ubcf4\uae30 \"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc774\uc9c4 \ud0d0\uc0c9\"","og_url":"https:\/\/atmokpo.com\/w\/27148\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T13:44:02+00:00","article_modified_time":"2024-11-26T07:21:21+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\/27148\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27148\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc774\uc9c4 \ud0d0\uc0c9","datePublished":"2024-10-27T13:44:02+00:00","dateModified":"2024-11-26T07:21:21+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27148\/"},"wordCount":27,"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\/27148\/","url":"https:\/\/atmokpo.com\/w\/27148\/","name":"\ud30c\uc774\uc36c \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc774\uc9c4 \ud0d0\uc0c9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T13:44:02+00:00","dateModified":"2024-11-26T07:21:21+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27148\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27148\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27148\/#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, \uc774\uc9c4 \ud0d0\uc0c9"}]},{"@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\/27148","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=27148"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27148\/revisions"}],"predecessor-version":[{"id":27149,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27148\/revisions\/27149"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}