{"id":311,"date":"2023-12-12T20:21:06","date_gmt":"2023-12-12T13:21:06","guid":{"rendered":"https:\/\/www.sornet.net\/site\/?p=311"},"modified":"2023-12-12T23:25:41","modified_gmt":"2023-12-12T16:25:41","slug":"algorithm-insertion-sort","status":"publish","type":"post","link":"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/","title":{"rendered":"\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e41\u0e1a\u0e1a Insertion Sort"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0e21\u0e35\u0e2b\u0e25\u0e31\u0e01\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e07\u0e44\u0e1e\u0e48\u0e43\u0e19\u0e21\u0e37\u0e2d \u0e42\u0e14\u0e22\u0e08\u0e30\u0e23\u0e31\u0e1a\u0e44\u0e1e\u0e48\u0e21\u0e32\u0e17\u0e35\u0e25\u0e30\u0e43\u0e1a \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e23\u0e31\u0e1a\u0e44\u0e1e\u0e48\u0e21\u0e32\u0e41\u0e25\u0e49\u0e27\u0e08\u0e30\u0e2b\u0e32\u0e27\u0e48\u0e32\u0e44\u0e1e\u0e48\u0e43\u0e1a\u0e19\u0e31\u0e49\u0e19\u0e04\u0e27\u0e23\u0e08\u0e30\u0e41\u0e17\u0e23\u0e01\u0e25\u0e07\u0e44\u0e1b\u0e17\u0e35\u0e48\u0e0a\u0e48\u0e2d\u0e07\u0e44\u0e2b\u0e19\u0e43\u0e19\u0e01\u0e2d\u0e07\u0e44\u0e1e\u0e48\u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e21\u0e37\u0e2d\u0e14\u0e35 \u0e2a\u0e21\u0e21\u0e38\u0e15\u0e34\u0e10\u0e32\u0e19\u0e04\u0e37\u0e2d \u0e44\u0e1e\u0e48\u0e43\u0e19\u0e21\u0e37\u0e2d\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e44\u0e27\u0e49\u0e2d\u0e22\u0e39\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e2d\u0e32\u0e08\u0e08\u0e30\u0e40\u0e23\u0e35\u0e22\u0e07\u0e08\u0e32\u0e01\u0e19\u0e49\u0e2d\u0e22\u0e44\u0e1b\u0e21\u0e32\u0e01 \u0e2b\u0e23\u0e37\u0e2d\u0e08\u0e32\u0e01\u0e21\u0e32\u0e01\u0e44\u0e1b\u0e19\u0e49\u0e2d\u0e22\u0e01\u0e47\u0e44\u0e14\u0e49 \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e23\u0e31\u0e1a\u0e44\u0e1e\u0e48\u0e21\u0e32\u0e08\u0e19\u0e04\u0e23\u0e1a\u0e17\u0e38\u0e01\u0e43\u0e1a \u0e44\u0e1e\u0e48\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e21\u0e37\u0e2d\u0e08\u0e30\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e01\u0e31\u0e19\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07 \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e0a\u0e48\u0e19\u0e16\u0e49\u0e32\u0e40\u0e23\u0e32\u0e21\u0e35\u0e2d\u0e30\u0e40\u0e23\u0e22\u0e4c\u0e02\u0e19\u0e32\u0e14 5 \u0e0a\u0e48\u0e2d\u0e07\u0e17\u0e35\u0e48\u0e21\u0e35\u0e04\u0e48\u0e32\u0e40\u0e01\u0e47\u0e1a\u0e2d\u0e22\u0e39\u0e48\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"291\" height=\"93\" src=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/926cb56a-d89f-4870-9f49-d29049be93be.png\" alt=\"\" class=\"wp-image-313\" style=\"width:250px\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e41\u0e25\u0e30\u0e16\u0e49\u0e32\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e2d\u0e30\u0e40\u0e23\u0e22\u0e4c a \u0e19\u0e35\u0e49\u0e15\u0e32\u0e21\u0e27\u0e34\u0e18\u0e35\u0e02\u0e2d\u0e07 Insertion Sort \u0e08\u0e30\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e42\u0e14\u0e22\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e43\u0e2b\u0e49\u0e21\u0e35\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 i \u0e0a\u0e35\u0e49\u0e44\u0e27\u0e49\u0e17\u0e35\u0e48\u0e0a\u0e48\u0e2d\u0e07\u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e44\u0e1e\u0e48\u0e43\u0e1a\u0e43\u0e2b\u0e21\u0e48\u0e17\u0e35\u0e48\u0e23\u0e31\u0e1a\u0e40\u0e02\u0e49\u0e32\u0e21\u0e32\u0e43\u0e19\u0e21\u0e37\u0e2d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e42\u0e14\u0e22\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e23\u0e2d\u0e1a\u0e41\u0e23\u0e01\u0e2a\u0e38\u0e14 i = 0 \u0e08\u0e30\u0e21\u0e35\u0e20\u0e32\u0e1e\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"446\" height=\"389\" src=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/105ef870-899b-4456-812b-287915dec0b9.png\" alt=\"\" class=\"wp-image-314\" style=\"width:350px\" srcset=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/105ef870-899b-4456-812b-287915dec0b9.png 446w, https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/105ef870-899b-4456-812b-287915dec0b9-300x262.png 300w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e 1 \u0e23\u0e2d\u0e1a\u0e41\u0e23\u0e01\u0e2a\u0e38\u0e14\u0e40\u0e21\u0e37\u0e48\u0e2d i = 0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e41\u0e25\u0e30\u0e23\u0e2d\u0e1a\u0e15\u0e48\u0e2d\u0e21\u0e32\u0e40\u0e21\u0e37\u0e48\u0e2d i = 1 \u0e08\u0e30\u0e21\u0e35\u0e20\u0e32\u0e1e\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"888\" src=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/74259b4d-9e49-4c0f-a655-51b1f9bc8552.png\" alt=\"\" class=\"wp-image-315\" style=\"width:700px\" srcset=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/74259b4d-9e49-4c0f-a655-51b1f9bc8552.png 956w, https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/74259b4d-9e49-4c0f-a655-51b1f9bc8552-300x279.png 300w, https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/74259b4d-9e49-4c0f-a655-51b1f9bc8552-768x713.png 768w\" sizes=\"auto, (max-width: 956px) 100vw, 956px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e 2 \u0e23\u0e2d\u0e1a\u0e17\u0e35\u0e48 2 \u0e40\u0e21\u0e37\u0e48\u0e2d i = 1 (\u0e2d\u0e48\u0e32\u0e19\u0e08\u0e32\u0e01\u0e1a\u0e19\u0e25\u0e07\u0e25\u0e48\u0e32\u0e07\u0e41\u0e25\u0e30\u0e08\u0e32\u0e01\u0e0b\u0e49\u0e32\u0e22\u0e44\u0e1b\u0e02\u0e27\u0e32)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e41\u0e25\u0e30\u0e23\u0e2d\u0e1a\u0e15\u0e48\u0e2d\u0e21\u0e32\u0e40\u0e21\u0e37\u0e48\u0e2d i = 2 \u0e08\u0e30\u0e21\u0e35\u0e20\u0e32\u0e1e\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e41\u0e25\u0e30\u0e23\u0e2d\u0e1a\u0e15\u0e48\u0e2d\u0e21\u0e32\u0e40\u0e21\u0e37\u0e48\u0e2d i = 2 \u0e08\u0e30\u0e21\u0e35\u0e20\u0e32\u0e1e\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"727\" height=\"1024\" src=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/ed5f2d18-a8b2-4722-9912-a97288a86cdf-727x1024.png\" alt=\"\" class=\"wp-image-316\" srcset=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/ed5f2d18-a8b2-4722-9912-a97288a86cdf-727x1024.png 727w, https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/ed5f2d18-a8b2-4722-9912-a97288a86cdf-213x300.png 213w, https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/ed5f2d18-a8b2-4722-9912-a97288a86cdf-768x1082.png 768w, https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/ed5f2d18-a8b2-4722-9912-a97288a86cdf.png 1000w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e 3 \u0e23\u0e2d\u0e1a\u0e17\u0e35\u0e48 3 \u0e40\u0e21\u0e37\u0e48\u0e2d i = 2 (\u0e2d\u0e48\u0e32\u0e19\u0e08\u0e32\u0e01\u0e1a\u0e19\u0e25\u0e07\u0e25\u0e48\u0e32\u0e07\u0e41\u0e25\u0e30\u0e08\u0e32\u0e01\u0e0b\u0e49\u0e32\u0e22\u0e44\u0e1b\u0e02\u0e27\u0e32)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e41\u0e25\u0e30\u0e23\u0e2d\u0e1a\u0e15\u0e48\u0e2d\u0e21\u0e32\u0e40\u0e21\u0e37\u0e48\u0e2d i = 3 \u0e08\u0e30\u0e21\u0e35\u0e20\u0e32\u0e1e\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"872\" src=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/b09e5860-268d-4681-8eba-e12c94f830ac.png\" alt=\"\" class=\"wp-image-317\" style=\"width:700px\" srcset=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/b09e5860-268d-4681-8eba-e12c94f830ac.png 956w, https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/b09e5860-268d-4681-8eba-e12c94f830ac-300x274.png 300w, https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/b09e5860-268d-4681-8eba-e12c94f830ac-768x701.png 768w\" sizes=\"auto, (max-width: 956px) 100vw, 956px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e 4 \u0e23\u0e2d\u0e1a\u0e17\u0e35\u0e48 4 \u0e40\u0e21\u0e37\u0e48\u0e2d i = 3<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e41\u0e25\u0e30\u0e23\u0e2d\u0e1a\u0e2a\u0e38\u0e14\u0e17\u0e49\u0e32\u0e22\u0e40\u0e21\u0e37\u0e48\u0e2d i = 4 \u0e08\u0e30\u0e21\u0e35\u0e20\u0e32\u0e1e\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"970\" height=\"568\" src=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/9387d5ca-0835-4bf5-b42f-3b2853ee63de.png\" alt=\"\" class=\"wp-image-318\" style=\"width:700px\" srcset=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/9387d5ca-0835-4bf5-b42f-3b2853ee63de.png 970w, https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/9387d5ca-0835-4bf5-b42f-3b2853ee63de-300x176.png 300w, https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/9387d5ca-0835-4bf5-b42f-3b2853ee63de-768x450.png 768w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e 5 \u0e23\u0e2d\u0e1a\u0e17\u0e35\u0e48 5 \u0e40\u0e21\u0e37\u0e48\u0e2d i = 4 (\u0e20\u0e32\u0e1e\u0e2a\u0e48\u0e27\u0e19\u0e17\u0e35\u0e48 1 \u0e15\u0e48\u0e2d\u0e17\u0e35\u0e48\u0e20\u0e32\u0e1e\u0e16\u0e31\u0e14\u0e44\u0e1b)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e17\u0e33\u0e44\u0e1b\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e22\u0e46 \u0e08\u0e30\u0e44\u0e14\u0e49\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e2a\u0e38\u0e14\u0e17\u0e49\u0e32\u0e22\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"581\" src=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/ed00d4ea-f4fd-4431-8872-d2f6520f186a.png\" alt=\"\" class=\"wp-image-319\" style=\"width:700px\" srcset=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/ed00d4ea-f4fd-4431-8872-d2f6520f186a.png 940w, https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/ed00d4ea-f4fd-4431-8872-d2f6520f186a-300x185.png 300w, https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/ed00d4ea-f4fd-4431-8872-d2f6520f186a-768x475.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e 6\u0e23\u0e2d\u0e1a\u0e17\u0e35\u0e48 5 \u0e40\u0e21\u0e37\u0e48\u0e2d i = 4 \u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e2a\u0e38\u0e14\u0e17\u0e49\u0e32\u0e22\u0e17\u0e35\u0e48\u0e40\u0e01\u0e34\u0e14\u0e02\u0e36\u0e49\u0e19<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e08\u0e32\u0e01\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e21\u0e32\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e35\u0e22\u0e19\u0e40\u0e1b\u0e47\u0e19\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 Java \u0e44\u0e14\u0e49\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e0b\u0e2d\u0e23\u0e4c\u0e2a\u0e42\u0e04\u0e49\u0e14 1 \u0e44\u0e1f\u0e25\u0e4c InsertionSort.java \u0e41\u0e2a\u0e14\u0e07\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e41\u0e1a\u0e1a Selection Sort<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\npackage aczept.examples.algorithm;\n\npublic class InsertionSort {\n\tpublic static void main(String&#x5B;] args) {\n\t\tint&#x5B;] a = { 4, 1, 3, 5, 2 };\n\n\t\t\/\/ i \u0e40\u0e23\u0e34\u0e48\u0e21\u0e17\u0e35\u0e48 1 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e15\u0e31\u0e27\u0e17\u0e35\u0e48 0 \u0e16\u0e37\u0e2d\u0e27\u0e48\u0e32\u0e44\u0e14\u0e49\u0e21\u0e32\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e21\u0e37\u0e2d\u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e43\u0e14\u0e46\n\t\tfor (int i = 1; i &lt; a.length; i++) {\n\t\t\tint tmp = a&#x5B;i];\n\t\t\tint j = i - 1;\n\n\t\t\t\/\/ \u0e2a\u0e41\u0e01\u0e19\u0e08\u0e32\u0e01\u0e15\u0e31\u0e27\u0e17\u0e35\u0e48 i - 1 \u0e44\u0e1b\u0e16\u0e36\u0e07\u0e15\u0e31\u0e27\u0e41\u0e23\u0e01\u0e2a\u0e38\u0e14\n\t\t\tfor (; j &gt;= 0 &amp;&amp; a&#x5B;j] &gt; tmp; j--) {\n\t\t\t\ta&#x5B;j + 1] = a&#x5B;j];\n\t\t\t}\n\n\t\t\t\/\/ \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e2b\u0e22\u0e38\u0e14\u0e2a\u0e41\u0e01\u0e19\u0e0a\u0e48\u0e2d\u0e07\u0e17\u0e35\u0e48 j + 1 \u0e04\u0e37\u0e2d\u0e08\u0e38\u0e14\u0e17\u0e35\u0e48\u0e08\u0e30\u0e27\u0e32\u0e07\u0e04\u0e48\u0e32\u0e25\u0e07\u0e44\u0e1b\n\t\t\ta&#x5B;j + 1] = tmp;\n\t\t}\n\n\t\t\/\/ \u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e04\u0e48\u0e32\u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e14\u0e39\n\t\tprint(a);\n\t}\n\n\tpublic static void print(int&#x5B;] a) {\n\t\tfor (int i = 0; i &lt; a.length; i++)\n\t\t\tSystem.out.print(a&#x5B;i] + &quot; &quot;);\n\t}\n}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">\u0e43\u0e19\u0e01\u0e23\u0e13\u0e35\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e04\u0e48\u0e32\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e0a\u0e19\u0e34\u0e14\u0e2d\u0e30\u0e44\u0e23\u0e01\u0e47\u0e44\u0e14\u0e49 \u0e40\u0e23\u0e32\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49\u0e40\u0e17\u0e04\u0e19\u0e34\u0e04 Generic \u0e02\u0e2d\u0e07 Java 5 \u0e0a\u0e48\u0e27\u0e22\u0e40\u0e25\u0e47\u0e01\u0e19\u0e49\u0e2d\u0e22 \u0e42\u0e14\u0e22\u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e04\u0e49\u0e14\u0e44\u0e14\u0e49\u0e43\u0e2b\u0e21\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e0b\u0e2d\u0e23\u0e4c\u0e2a\u0e42\u0e04\u0e49\u0e14 2 \u0e44\u0e1f\u0e25\u0e4c InsertionSortGeneric.java \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e0a\u0e19\u0e34\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e14\u0e46\u0e01\u0e47\u0e44\u0e14\u0e49<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: java; title: ; notranslate\" title=\"\">\npackage aczept.examples.algorithm;\n\npublic class InsertionSortGeneric {\n\tpublic static void main(String&#x5B;] args) {\n\t\tInteger&#x5B;] a = { 4, 1, 3, 5, 2 };\n\t\tsort(a);\n\t\tprint(a);\n\n\t\tSystem.out.println();\n\t\tString&#x5B;] b = { &quot;Zeebra&quot;, &quot;Cat&quot;, &quot;Ant&quot;, &quot;Dog&quot; };\n\t\tsort(b);\n\t\tprint(b);\n\t}\n\n\tpublic static &lt;T extends Comparable&lt;? super T&gt;&gt; void sort(T&#x5B;] a) {\n\t\t\/\/ i \u0e40\u0e23\u0e34\u0e48\u0e21\u0e17\u0e35\u0e48 1 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e15\u0e31\u0e27\u0e17\u0e35\u0e48 0 \u0e16\u0e37\u0e2d\u0e27\u0e48\u0e32\u0e44\u0e14\u0e49\u0e21\u0e32\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e21\u0e37\u0e2d\u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e43\u0e14\u0e46\n\t\tfor (int i = 1; i &lt; a.length; i++) {\n\t\t\tT tmp = a&#x5B;i];\n\t\t\tint j = i - 1;\n\n\t\t\t\/\/ \u0e2a\u0e41\u0e01\u0e19\u0e08\u0e32\u0e01\u0e15\u0e31\u0e27\u0e17\u0e35\u0e48 i - 1 \u0e44\u0e1b\u0e16\u0e36\u0e07\u0e15\u0e31\u0e27\u0e41\u0e23\u0e01\u0e2a\u0e38\u0e14\n\t\t\tfor (; j &gt;= 0 &amp;&amp; a&#x5B;j].compareTo(tmp) &gt; 0; j--) {\n\t\t\t\ta&#x5B;j + 1] = a&#x5B;j];\n\t\t\t}\n\n\t\t\t\/\/ \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e2b\u0e22\u0e38\u0e14\u0e2a\u0e41\u0e01\u0e19\u0e0a\u0e48\u0e2d\u0e07\u0e17\u0e35\u0e48 j + 1 \u0e04\u0e37\u0e2d\u0e08\u0e38\u0e14\u0e17\u0e35\u0e48\u0e08\u0e30\u0e27\u0e32\u0e07\u0e04\u0e48\u0e32\u0e25\u0e07\u0e44\u0e1b\n\t\t\ta&#x5B;j + 1] = tmp;\n\t\t}\n\t}\n\n\tpublic static &lt;T extends Comparable&lt;? super T&gt;&gt; void print(T&#x5B;] a) {\n\t\tfor (int i = 0; i &lt; a.length; i++)\n\t\t\tSystem.out.print(a&#x5B;i] + &quot; &quot;);\n\t}\n}\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e2a\u0e32\u0e18\u0e34\u0e15\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e41\u0e1a\u0e1a Insertion Sort<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e17\u0e48\u0e32\u0e19\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e2a\u0e32\u0e18\u0e34\u0e15\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e07\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e41\u0e1a\u0e1a Insertion Sort \u0e44\u0e14\u0e49\u0e17\u0e35\u0e48 <a href=\"http:\/\/www.softwaredevelop.com\/content.jsp?category=algorithm&amp;name=InsertionSort\">http:\/\/www.softwaredevelop.com\/content.jsp?category=algorithm&amp;name=InsertionSort<\/a> \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e23\u0e31\u0e19\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 DemoInsertionSortApp.java \u0e08\u0e30\u0e44\u0e14\u0e49\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"668\" height=\"433\" src=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/526a229d-5ac1-49bf-87de-bf96355e66e4.png\" alt=\"\" class=\"wp-image-322\" srcset=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/526a229d-5ac1-49bf-87de-bf96355e66e4.png 668w, https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/526a229d-5ac1-49bf-87de-bf96355e66e4-300x194.png 300w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e 7 \u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 DemoInsertionSortApp \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e28\u0e36\u0e01\u0e29\u0e32\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e41\u0e1a\u0e1a Insertion<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e43\u0e2b\u0e49\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e01\u0e14\u0e1b\u0e38\u0e48\u0e21 Play Auto \u0e08\u0e30\u0e2a\u0e31\u0e07\u0e40\u0e01\u0e15\u0e40\u0e2b\u0e47\u0e19\u0e04\u0e27\u0e32\u0e21\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e41\u0e1b\u0e25\u0e07 \u0e02\u0e2d\u0e07\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e41\u0e15\u0e48\u0e25\u0e30\u0e15\u0e31\u0e27 \u0e2b\u0e23\u0e37\u0e2d\u0e01\u0e14\u0e1b\u0e38\u0e48\u0e21 Play \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e17\u0e33\u0e07\u0e32\u0e19\u0e17\u0e35\u0e25\u0e30\u0e02\u0e31\u0e49\u0e19<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e21\u0e35\u0e2b\u0e25\u0e31\u0e01\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e07\u0e44\u0e1e\u0e48\u0e43\u0e19\u0e21\u0e37\u0e2d \u0e42\u0e14\u0e22\u0e08\u0e30\u0e23\u0e31\u0e1a\u0e44\u0e1e\u0e48\u0e21\u0e32\u0e17\u0e35\u0e25\u0e30\u0e43\u0e1a \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e23\u0e31\u0e1a\u0e44\u0e1e\u0e48\u0e21\u0e32\u0e41\u0e25\u0e49\u0e27\u0e08\u0e30\u0e2b\u0e32\u0e27\u0e48\u0e32\u0e44\u0e1e\u0e48\u0e43\u0e1a\u0e19\u0e31\u0e49\u0e19\u0e04\u0e27\u0e23\u0e08\u0e30\u0e41\u0e17\u0e23\u0e01\u0e25\u0e07\u0e44\u0e1b\u0e17\u0e35\u0e48\u0e0a\u0e48\u0e2d\u0e07\u0e44\u0e2b\u0e19\u0e43\u0e19\u0e01\u0e2d\u0e07\u0e44\u0e1e\u0e48\u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e43\u0e19\u0e21\u0e37\u0e2d\u0e14\u0e35 \u0e2a\u0e21\u0e21\u0e38\u0e15\u0e34\u0e10\u0e32\u0e19\u0e04\u0e37\u0e2d \u0e44\u0e1e\u0e48\u0e43\u0e19\u0e21\u0e37\u0e2d\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e44\u0e27\u0e49\u0e2d\u0e22\u0e39\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e2d\u0e32\u0e08\u0e08\u0e30\u0e40\u0e23\u0e35\u0e22\u0e07\u0e08 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-311","post","type-post","status-publish","format-standard","hentry","category-algorithm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e41\u0e1a\u0e1a Insertion Sort - SORNET<\/title>\n<meta name=\"description\" content=\"\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e04\u0e34\u0e14\u0e02\u0e2d\u0e07\u0e2d\u0e31\u0e25\u0e01\u0e2d\u0e23\u0e34\u0e18\u0e36\u0e21\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e1a\u0e1a Insertion Sort \u0e17\u0e35\u0e48\u0e40\u0e2a\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e07\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e44\u0e1e\u0e48\u0e43\u0e19\u0e21\u0e37\u0e2d \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e17\u0e31\u0e49\u0e07\u0e0b\u0e2d\u0e23\u0e4c\u0e2a\u0e42\u0e04\u0e49\u0e14 Java \u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/\" \/>\n<meta property=\"og:locale\" content=\"th_TH\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e41\u0e1a\u0e1a Insertion Sort - SORNET\" \/>\n<meta property=\"og:description\" content=\"\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e04\u0e34\u0e14\u0e02\u0e2d\u0e07\u0e2d\u0e31\u0e25\u0e01\u0e2d\u0e23\u0e34\u0e18\u0e36\u0e21\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e1a\u0e1a Insertion Sort \u0e17\u0e35\u0e48\u0e40\u0e2a\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e07\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e44\u0e1e\u0e48\u0e43\u0e19\u0e21\u0e37\u0e2d \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e17\u0e31\u0e49\u0e07\u0e0b\u0e2d\u0e23\u0e4c\u0e2a\u0e42\u0e04\u0e49\u0e14 Java \u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/\" \/>\n<meta property=\"og:site_name\" content=\"SORNET\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sorapong.ruanmanee\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-12T13:21:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-12T16:25:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/926cb56a-d89f-4870-9f49-d29049be93be.png\" \/>\n<meta name=\"author\" content=\"\u0e2a\u0e23\u0e1e\u0e07\u0e29\u0e4c \u0e40\u0e23\u0e37\u0e2d\u0e19\u0e21\u0e13\u0e35\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0e2a\u0e23\u0e1e\u0e07\u0e29\u0e4c \u0e40\u0e23\u0e37\u0e2d\u0e19\u0e21\u0e13\u0e35\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u0e19\u0e32\u0e17\u0e35\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/\"},\"author\":{\"name\":\"\u0e2a\u0e23\u0e1e\u0e07\u0e29\u0e4c \u0e40\u0e23\u0e37\u0e2d\u0e19\u0e21\u0e13\u0e35\",\"@id\":\"https:\/\/www.sornet.net\/site\/#\/schema\/person\/db050c7b83ec3268de27b7d47cfcf910\"},\"headline\":\"\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e41\u0e1a\u0e1a Insertion Sort\",\"datePublished\":\"2023-12-12T13:21:06+00:00\",\"dateModified\":\"2023-12-12T16:25:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/\"},\"wordCount\":49,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.sornet.net\/site\/#organization\"},\"articleSection\":[\"\u0e2d\u0e31\u0e25\u0e01\u0e2d\u0e23\u0e34\u0e18\u0e36\u0e21\"],\"inLanguage\":\"th\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/\",\"url\":\"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/\",\"name\":\"\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e41\u0e1a\u0e1a Insertion Sort - SORNET\",\"isPartOf\":{\"@id\":\"https:\/\/www.sornet.net\/site\/#website\"},\"datePublished\":\"2023-12-12T13:21:06+00:00\",\"dateModified\":\"2023-12-12T16:25:41+00:00\",\"description\":\"\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e04\u0e34\u0e14\u0e02\u0e2d\u0e07\u0e2d\u0e31\u0e25\u0e01\u0e2d\u0e23\u0e34\u0e18\u0e36\u0e21\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e1a\u0e1a Insertion Sort \u0e17\u0e35\u0e48\u0e40\u0e2a\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e07\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e44\u0e1e\u0e48\u0e43\u0e19\u0e21\u0e37\u0e2d \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e17\u0e31\u0e49\u0e07\u0e0b\u0e2d\u0e23\u0e4c\u0e2a\u0e42\u0e04\u0e49\u0e14 Java \u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a\",\"breadcrumb\":{\"@id\":\"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/#breadcrumb\"},\"inLanguage\":\"th\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.sornet.net\/site\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e41\u0e1a\u0e1a Insertion Sort\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.sornet.net\/site\/#website\",\"url\":\"https:\/\/www.sornet.net\/site\/\",\"name\":\"SORNET\",\"description\":\"Software Engineer Solution\",\"publisher\":{\"@id\":\"https:\/\/www.sornet.net\/site\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.sornet.net\/site\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"th\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.sornet.net\/site\/#organization\",\"name\":\"SORNET\",\"url\":\"https:\/\/www.sornet.net\/site\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"th\",\"@id\":\"https:\/\/www.sornet.net\/site\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/cropped-sornet_logo_v1.1.png\",\"contentUrl\":\"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/cropped-sornet_logo_v1.1.png\",\"width\":260,\"height\":233,\"caption\":\"SORNET\"},\"image\":{\"@id\":\"https:\/\/www.sornet.net\/site\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/sorapong.ruanmanee\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.sornet.net\/site\/#\/schema\/person\/db050c7b83ec3268de27b7d47cfcf910\",\"name\":\"\u0e2a\u0e23\u0e1e\u0e07\u0e29\u0e4c \u0e40\u0e23\u0e37\u0e2d\u0e19\u0e21\u0e13\u0e35\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"th\",\"@id\":\"https:\/\/www.sornet.net\/site\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/17ab1cca75325fb9494db91c74c8620c848f3b1fc2bc58e40970c0139fc17282?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/17ab1cca75325fb9494db91c74c8620c848f3b1fc2bc58e40970c0139fc17282?s=96&d=mm&r=g\",\"caption\":\"\u0e2a\u0e23\u0e1e\u0e07\u0e29\u0e4c \u0e40\u0e23\u0e37\u0e2d\u0e19\u0e21\u0e13\u0e35\"},\"url\":\"https:\/\/www.sornet.net\/site\/index.php\/author\/sorapong\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e41\u0e1a\u0e1a Insertion Sort - SORNET","description":"\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e04\u0e34\u0e14\u0e02\u0e2d\u0e07\u0e2d\u0e31\u0e25\u0e01\u0e2d\u0e23\u0e34\u0e18\u0e36\u0e21\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e1a\u0e1a Insertion Sort \u0e17\u0e35\u0e48\u0e40\u0e2a\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e07\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e44\u0e1e\u0e48\u0e43\u0e19\u0e21\u0e37\u0e2d \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e17\u0e31\u0e49\u0e07\u0e0b\u0e2d\u0e23\u0e4c\u0e2a\u0e42\u0e04\u0e49\u0e14 Java \u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a","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:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/","og_locale":"th_TH","og_type":"article","og_title":"\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e41\u0e1a\u0e1a Insertion Sort - SORNET","og_description":"\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e04\u0e34\u0e14\u0e02\u0e2d\u0e07\u0e2d\u0e31\u0e25\u0e01\u0e2d\u0e23\u0e34\u0e18\u0e36\u0e21\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e1a\u0e1a Insertion Sort \u0e17\u0e35\u0e48\u0e40\u0e2a\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e07\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e44\u0e1e\u0e48\u0e43\u0e19\u0e21\u0e37\u0e2d \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e17\u0e31\u0e49\u0e07\u0e0b\u0e2d\u0e23\u0e4c\u0e2a\u0e42\u0e04\u0e49\u0e14 Java \u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a","og_url":"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/","og_site_name":"SORNET","article_publisher":"https:\/\/www.facebook.com\/sorapong.ruanmanee","article_published_time":"2023-12-12T13:21:06+00:00","article_modified_time":"2023-12-12T16:25:41+00:00","og_image":[{"url":"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/926cb56a-d89f-4870-9f49-d29049be93be.png"}],"author":"\u0e2a\u0e23\u0e1e\u0e07\u0e29\u0e4c \u0e40\u0e23\u0e37\u0e2d\u0e19\u0e21\u0e13\u0e35","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\u0e2a\u0e23\u0e1e\u0e07\u0e29\u0e4c \u0e40\u0e23\u0e37\u0e2d\u0e19\u0e21\u0e13\u0e35","Est. reading time":"3 \u0e19\u0e32\u0e17\u0e35"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/#article","isPartOf":{"@id":"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/"},"author":{"name":"\u0e2a\u0e23\u0e1e\u0e07\u0e29\u0e4c \u0e40\u0e23\u0e37\u0e2d\u0e19\u0e21\u0e13\u0e35","@id":"https:\/\/www.sornet.net\/site\/#\/schema\/person\/db050c7b83ec3268de27b7d47cfcf910"},"headline":"\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e41\u0e1a\u0e1a Insertion Sort","datePublished":"2023-12-12T13:21:06+00:00","dateModified":"2023-12-12T16:25:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/"},"wordCount":49,"commentCount":0,"publisher":{"@id":"https:\/\/www.sornet.net\/site\/#organization"},"articleSection":["\u0e2d\u0e31\u0e25\u0e01\u0e2d\u0e23\u0e34\u0e18\u0e36\u0e21"],"inLanguage":"th","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/","url":"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/","name":"\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e41\u0e1a\u0e1a Insertion Sort - SORNET","isPartOf":{"@id":"https:\/\/www.sornet.net\/site\/#website"},"datePublished":"2023-12-12T13:21:06+00:00","dateModified":"2023-12-12T16:25:41+00:00","description":"\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e04\u0e34\u0e14\u0e02\u0e2d\u0e07\u0e2d\u0e31\u0e25\u0e01\u0e2d\u0e23\u0e34\u0e18\u0e36\u0e21\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e1a\u0e1a Insertion Sort \u0e17\u0e35\u0e48\u0e40\u0e2a\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e07\u0e25\u0e33\u0e14\u0e31\u0e1a\u0e44\u0e1e\u0e48\u0e43\u0e19\u0e21\u0e37\u0e2d \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e17\u0e31\u0e49\u0e07\u0e0b\u0e2d\u0e23\u0e4c\u0e2a\u0e42\u0e04\u0e49\u0e14 Java \u0e1b\u0e23\u0e30\u0e01\u0e2d\u0e1a","breadcrumb":{"@id":"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/#breadcrumb"},"inLanguage":"th","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.sornet.net\/site\/index.php\/2023\/12\/12\/algorithm-insertion-sort\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sornet.net\/site\/"},{"@type":"ListItem","position":2,"name":"\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e40\u0e23\u0e35\u0e22\u0e07\u0e41\u0e1a\u0e1a Insertion Sort"}]},{"@type":"WebSite","@id":"https:\/\/www.sornet.net\/site\/#website","url":"https:\/\/www.sornet.net\/site\/","name":"SORNET","description":"Software Engineer Solution","publisher":{"@id":"https:\/\/www.sornet.net\/site\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sornet.net\/site\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"th"},{"@type":"Organization","@id":"https:\/\/www.sornet.net\/site\/#organization","name":"SORNET","url":"https:\/\/www.sornet.net\/site\/","logo":{"@type":"ImageObject","inLanguage":"th","@id":"https:\/\/www.sornet.net\/site\/#\/schema\/logo\/image\/","url":"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/cropped-sornet_logo_v1.1.png","contentUrl":"https:\/\/www.sornet.net\/site\/wp-content\/uploads\/2023\/12\/cropped-sornet_logo_v1.1.png","width":260,"height":233,"caption":"SORNET"},"image":{"@id":"https:\/\/www.sornet.net\/site\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sorapong.ruanmanee"]},{"@type":"Person","@id":"https:\/\/www.sornet.net\/site\/#\/schema\/person\/db050c7b83ec3268de27b7d47cfcf910","name":"\u0e2a\u0e23\u0e1e\u0e07\u0e29\u0e4c \u0e40\u0e23\u0e37\u0e2d\u0e19\u0e21\u0e13\u0e35","image":{"@type":"ImageObject","inLanguage":"th","@id":"https:\/\/www.sornet.net\/site\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/17ab1cca75325fb9494db91c74c8620c848f3b1fc2bc58e40970c0139fc17282?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/17ab1cca75325fb9494db91c74c8620c848f3b1fc2bc58e40970c0139fc17282?s=96&d=mm&r=g","caption":"\u0e2a\u0e23\u0e1e\u0e07\u0e29\u0e4c \u0e40\u0e23\u0e37\u0e2d\u0e19\u0e21\u0e13\u0e35"},"url":"https:\/\/www.sornet.net\/site\/index.php\/author\/sorapong\/"}]}},"_links":{"self":[{"href":"https:\/\/www.sornet.net\/site\/index.php\/wp-json\/wp\/v2\/posts\/311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sornet.net\/site\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sornet.net\/site\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sornet.net\/site\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sornet.net\/site\/index.php\/wp-json\/wp\/v2\/comments?post=311"}],"version-history":[{"count":3,"href":"https:\/\/www.sornet.net\/site\/index.php\/wp-json\/wp\/v2\/posts\/311\/revisions"}],"predecessor-version":[{"id":323,"href":"https:\/\/www.sornet.net\/site\/index.php\/wp-json\/wp\/v2\/posts\/311\/revisions\/323"}],"wp:attachment":[{"href":"https:\/\/www.sornet.net\/site\/index.php\/wp-json\/wp\/v2\/media?parent=311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sornet.net\/site\/index.php\/wp-json\/wp\/v2\/categories?post=311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sornet.net\/site\/index.php\/wp-json\/wp\/v2\/tags?post=311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}