{"id":25135,"date":"2017-10-15T14:40:41","date_gmt":"2017-10-15T09:10:41","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=25135"},"modified":"2017-10-15T14:40:41","modified_gmt":"2017-10-15T09:10:41","slug":"heap-sort","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/heap-sort\/","title":{"rendered":"Heap Sort"},"content":{"rendered":"<p>Heap sort is a comparison based sorting technique based on Binary Heap data structure. It is similar to selection sort where we first find the maximum element and place the maximum element at the end. We repeat the same process for remaining element.<span id=\"more-142310\"><\/span><\/p>\n<p><strong>What is Binary Heap?<\/strong><br \/>\nLet us first define a Complete Binary Tree. A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible (Source Wikipedia)<\/p>\n<p>A Binary Heap is a Complete Binary Tree where items are stored in a special order such that value in a parent node is greater(or smaller) than the values in its two children nodes. The former is called as max heap and the latter is called min heap. The heap can be represented by binary tree or array.<\/p>\n<p><strong>Why array based representation for Binary Heap?<\/strong><br \/>\nSince a Binary Heap is a Complete Binary Tree, it can be easily represented as array and array based representation is space efficient. If the parent node is stored at index I, the left child can be calculated by 2 * I + 1 and right child by 2 * I + 2 (assuming the indexing starts at 0).<\/p>\n<p><strong>Heap Sort Algorithm for sorting in increasing order:<\/strong><br \/>\n<strong>1.<\/strong> Build a max heap from the input data.<br \/>\n<strong>2.<\/strong> At this point, the largest item is stored at the root of the heap. Replace it with the last item of the heap followed by reducing the size of heap by 1. Finally, heapify the root of tree.<br \/>\n<strong>3.<\/strong> Repeat above steps while size of heap is greater than 1.<\/p>\n[ad type=\u201dbanner\u201d]\n<p><strong>How to build the heap?<\/strong><br \/>\nHeapify procedure can be applied to a node only if its children nodes are heapified. So the heapification must be performed in the bottom up order.<\/p>\n<p>Lets understand with the help of an example:<\/p>\n<pre>Input data: 4, 10, 3, 5, 1<img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-25139\" src=\"https:\/\/www.wikitechy.com\/technology\/wp-content\/uploads\/2017\/05\/Untitled-1-1.png\" alt=\"heap sort\" width=\"577\" height=\"230\" srcset=\"https:\/\/www.wikitechy.com\/technology\/wp-content\/uploads\/2017\/05\/Untitled-1-1.png 577w, https:\/\/www.wikitechy.com\/technology\/wp-content\/uploads\/2017\/05\/Untitled-1-1-300x120.png 300w\" sizes=\"(max-width: 577px) 100vw, 577px\" \/>\r\n                 4(0)\r\n\t\t\/   \\\r\n\t     10(1)   3(2)\r\n            \/   \\\r\n\t 5(3)    1(4)\r\n\r\nThe numbers in bracket represent the indices in the array \r\nrepresentation of data.\r\n\r\nApplying heapify procedure to index 1:\r\n \t\t4(0)\r\n\t\t\/   \\\r\n            10(1)    3(2)\r\n           \/   \\\r\n\t5(3)    1(4)\r\n\r\nApplying heapify procedure to index 0:\r\n\t        10(0)\r\n\t\t\/  \\\r\n\t     5(1)  3(2)\r\n            \/   \\\r\n         4(3)    1(4)\r\nThe heapify procedure calls itself recursively to build heap\r\n in top down manner.\r\n<\/pre>\n<h4 id=\"ad-typebanner\">[ad type=\u201dbanner\u201d]<\/h4>\n<h4 id=\"practice\"><span id=\"recommended-please-solve-it-on-practice-first-before-moving-on-to-the-solution\">Recommended: Please solve it on \u201c<b><u>PRACTICE<\/u><\/b>\u201d first, before moving on to the solution.<\/span><\/h4>\n<p><strong>C<\/strong><\/p>\n[pastacode lang=\u201dc\u201d manual=\u201d%2F%20C%2B%2B%20program%20for%20implementation%20of%20Heap%20Sort%0A%23include%20%3Ciostream%3E%0Ausing%20namespace%20std%3B%0A%20%0A%2F%2F%20To%20heapify%20a%20subtree%20rooted%20with%20node%20i%20which%20is%0A%2F%2F%20an%20index%20in%20arr%5B%5D.%20n%20is%20size%20of%20heap%0Avoid%20heapify(int%20arr%5B%5D%2C%20int%20n%2C%20int%20i)%0A%7B%0A%20%20%20%20int%20largest%20%3D%20i%3B%20%20%2F%2F%20Initialize%20largest%20as%20root%0A%20%20%20%20int%20l%20%3D%202*i%20%2B%201%3B%20%20%2F%2F%20left%20%3D%202*i%20%2B%201%0A%20%20%20%20int%20r%20%3D%202*i%20%2B%202%3B%20%20%2F%2F%20right%20%3D%202*i%20%2B%202%0A%20%0A%20%20%20%20%2F%2F%20If%20left%20child%20is%20larger%20than%20root%0A%20%20%20%20if%20(l%20%3C%20n%20%26%26%20arr%5Bl%5D%20%3E%20arr%5Blargest%5D)%0A%20%20%20%20%20%20%20%20largest%20%3D%20l%3B%0A%20%0A%20%20%20%20%2F%2F%20If%20right%20child%20is%20larger%20than%20largest%20so%20far%0A%20%20%20%20if%20(r%20%3C%20n%20%26%26%20arr%5Br%5D%20%3E%20arr%5Blargest%5D)%0A%20%20%20%20%20%20%20%20largest%20%3D%20r%3B%0A%20%0A%20%20%20%20%2F%2F%20If%20largest%20is%20not%20root%0A%20%20%20%20if%20(largest%20!%3D%20i)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20swap(arr%5Bi%5D%2C%20arr%5Blargest%5D)%3B%0A%20%0A%20%20%20%20%20%20%20%20%2F%2F%20Recursively%20heapify%20the%20affected%20sub-tree%0A%20%20%20%20%20%20%20%20heapify(arr%2C%20n%2C%20largest)%3B%0A%20%20%20%20%7D%0A%7D%0A%20%0A%2F%2F%20main%20function%20to%20do%20heap%20sort%0Avoid%20heapSort(int%20arr%5B%5D%2C%20int%20n)%0A%7B%0A%20%20%20%20%2F%2F%20Build%20heap%20(rearrange%20array)%0A%20%20%20%20for%20(int%20i%20%3D%20n%20%2F%202%20-%201%3B%20i%20%3E%3D%200%3B%20i\u2013)%0A%20%20%20%20%20%20%20%20heapify(arr%2C%20n%2C%20i)%3B%0A%20%0A%20%20%20%20%2F%2F%20One%20by%20one%20extract%20an%20element%20from%20heap%0A%20%20%20%20for%20(int%20i%3Dn-1%3B%20i%3E%3D0%3B%20i\u2013)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%2F%2F%20Move%20current%20root%20to%20end%0A%20%20%20%20%20%20%20%20swap(arr%5B0%5D%2C%20arr%5Bi%5D)%3B%0A%20%0A%20%20%20%20%20%20%20%20%2F%2F%20call%20max%20heapify%20on%20the%20reduced%20heap%0A%20%20%20%20%20%20%20%20heapify(arr%2C%20i%2C%200)%3B%0A%20%20%20%20%7D%0A%7D%0A%20%0A%2F*%20A%20utility%20function%20to%20print%20array%20of%20size%20n%20*%2F%0Avoid%20printArray(int%20arr%5B%5D%2C%20int%20n)%0A%7B%0A%20%20%20%20for%20(int%20i%3D0%3B%20i%3Cn%3B%20%2B%2Bi)%0A%20%20%20%20%20%20%20%20cout%20%3C%3C%20arr%5Bi%5D%20%3C%3C%20%22%20%22%3B%0A%20%20%20%20cout%20%3C%3C%20%22%5Cn%22%3B%0A%7D%0A%20%0A%2F%2F%20Driver%20program%0Aint%20main()%0A%7B%0A%20%20%20%20int%20arr%5B%5D%20%3D%20%7B12%2C%2011%2C%2013%2C%205%2C%206%2C%207%7D%3B%0A%20%20%20%20int%20n%20%3D%20sizeof(arr)%2Fsizeof(arr%5B0%5D)%3B%0A%20%0A%20%20%20%20heapSort(arr%2C%20n)%3B%0A%20%0A%20%20%20%20cout%20%3C%3C%20%22Sorted%20array%20is%20%5Cn%22%3B%0A%20%20%20%20printArray(arr%2C%20n)%3B%0A%7D\u201d message=\u201dc\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n<p><strong>JAVA<\/strong><\/p>\n[pastacode lang=\u201djava\u201d manual=\u201d%2F%2F%20Java%20program%20for%20implementation%20of%20Heap%20Sort%0Apublic%20class%20HeapSort%0A%7B%0A%20%20%20%20public%20void%20sort(int%20arr%5B%5D)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20int%20n%20%3D%20arr.length%3B%0A%20%0A%20%20%20%20%20%20%20%20%2F%2F%20Build%20heap%20(rearrange%20array)%0A%20%20%20%20%20%20%20%20for%20(int%20i%20%3D%20n%20%2F%202%20-%201%3B%20i%20%3E%3D%200%3B%20i\u2013)%0A%20%20%20%20%20%20%20%20%20%20%20%20heapify(arr%2C%20n%2C%20i)%3B%0A%20%0A%20%20%20%20%20%20%20%20%2F%2F%20One%20by%20one%20extract%20an%20element%20from%20heap%0A%20%20%20%20%20%20%20%20for%20(int%20i%3Dn-1%3B%20i%3E%3D0%3B%20i\u2013)%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20Move%20current%20root%20to%20end%0A%20%20%20%20%20%20%20%20%20%20%20%20int%20temp%20%3D%20arr%5B0%5D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20arr%5B0%5D%20%3D%20arr%5Bi%5D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20arr%5Bi%5D%20%3D%20temp%3B%0A%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20call%20max%20heapify%20on%20the%20reduced%20heap%0A%20%20%20%20%20%20%20%20%20%20%20%20heapify(arr%2C%20i%2C%200)%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%0A%20%20%20%20%2F%2F%20To%20heapify%20a%20subtree%20rooted%20with%20node%20i%20which%20is%0A%20%20%20%20%2F%2F%20an%20index%20in%20arr%5B%5D.%20n%20is%20size%20of%20heap%0A%20%20%20%20void%20heapify(int%20arr%5B%5D%2C%20int%20n%2C%20int%20i)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20int%20largest%20%3D%20i%3B%20%20%2F%2F%20Initialize%20largest%20as%20root%0A%20%20%20%20%20%20%20%20int%20l%20%3D%202*i%20%2B%201%3B%20%20%2F%2F%20left%20%3D%202*i%20%2B%201%0A%20%20%20%20%20%20%20%20int%20r%20%3D%202*i%20%2B%202%3B%20%20%2F%2F%20right%20%3D%202*i%20%2B%202%0A%20%0A%20%20%20%20%20%20%20%20%2F%2F%20If%20left%20child%20is%20larger%20than%20root%0A%20%20%20%20%20%20%20%20if%20(l%20%3C%20n%20%26%26%20arr%5Bl%5D%20%3E%20arr%5Blargest%5D)%0A%20%20%20%20%20%20%20%20%20%20%20%20largest%20%3D%20l%3B%0A%20%0A%20%20%20%20%20%20%20%20%2F%2F%20If%20right%20child%20is%20larger%20than%20largest%20so%20far%0A%20%20%20%20%20%20%20%20if%20(r%20%3C%20n%20%26%26%20arr%5Br%5D%20%3E%20arr%5Blargest%5D)%0A%20%20%20%20%20%20%20%20%20%20%20%20largest%20%3D%20r%3B%0A%20%0A%20%20%20%20%20%20%20%20%2F%2F%20If%20largest%20is%20not%20root%0A%20%20%20%20%20%20%20%20if%20(largest%20!%3D%20i)%0A%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20int%20swap%20%3D%20arr%5Bi%5D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20arr%5Bi%5D%20%3D%20arr%5Blargest%5D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20arr%5Blargest%5D%20%3D%20swap%3B%0A%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20Recursively%20heapify%20the%20affected%20sub-tree%0A%20%20%20%20%20%20%20%20%20%20%20%20heapify(arr%2C%20n%2C%20largest)%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%0A%20%20%20%20%2F*%20A%20utility%20function%20to%20print%20array%20of%20size%20n%20*%2F%0A%20%20%20%20static%20void%20printArray(int%20arr%5B%5D)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20int%20n%20%3D%20arr.length%3B%0A%20%20%20%20%20%20%20%20for%20(int%20i%3D0%3B%20i%3Cn%3B%20%2B%2Bi)%0A%20%20%20%20%20%20%20%20%20%20%20%20System.out.print(arr%5Bi%5D%2B%22%20%22)%3B%0A%20%20%20%20%20%20%20%20System.out.println()%3B%0A%20%20%20%20%7D%0A%20%0A%20%20%20%20%2F%2F%20Driver%20program%0A%20%20%20%20public%20static%20void%20main(String%20args%5B%5D)%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20int%20arr%5B%5D%20%3D%20%7B12%2C%2011%2C%2013%2C%205%2C%206%2C%207%7D%3B%0A%20%20%20%20%20%20%20%20int%20n%20%3D%20arr.length%3B%0A%20%0A%20%20%20%20%20%20%20%20HeapSort%20ob%20%3D%20new%20HeapSort()%3B%0A%20%20%20%20%20%20%20%20ob.sort(arr)%3B%0A%20%0A%20%20%20%20%20%20%20%20System.out.println(%22Sorted%20array%20is%22)%3B%0A%20%20%20%20%20%20%20%20printArray(arr)%3B%0A%20%20%20%20%7D%0A%7D\u201d message=\u201djava\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n[pastacode lang=\u201dpython\u201d manual=\u201d%23%20Python%20program%20for%20implementation%20of%20heap%20Sort%0A%20%0A%23%20To%20heapify%20subtree%20rooted%20at%20index%20i.%0A%23%20n%20is%20size%20of%20heap%0Adef%20heapify(arr%2C%20n%2C%20i)%3A%0A%20%20%20%20largest%20%3D%20i%20%20%23%20Initialize%20largest%20as%20root%0A%20%20%20%20l%20%3D%202%20*%20i%20%2B%201%20%20%20%20%20%23%20left%20%3D%202*i%20%2B%201%0A%20%20%20%20r%20%3D%202%20*%20i%20%2B%202%20%20%20%20%20%23%20right%20%3D%202*i%20%2B%202%0A%20%0A%20%20%20%20%23%20See%20if%20left%20child%20of%20root%20exists%20and%20is%0A%20%20%20%20%23%20greater%20than%20root%0A%20%20%20%20if%20l%20%3C%20n%20and%20arr%5Bi%5D%20%3C%20arr%5Bl%5D%3A%0A%20%20%20%20%20%20%20%20largest%20%3D%20l%0A%20%0A%20%20%20%20%23%20See%20if%20right%20child%20of%20root%20exists%20and%20is%0A%20%20%20%20%23%20greater%20than%20root%0A%20%20%20%20if%20r%20%3C%20n%20and%20arr%5Blargest%5D%20%3C%20arr%5Br%5D%3A%0A%20%20%20%20%20%20%20%20largest%20%3D%20r%0A%20%0A%20%20%20%20%23%20Change%20root%2C%20if%20needed%0A%20%20%20%20if%20largest%20!%3D%20i%3A%0A%20%20%20%20%20%20%20%20arr%5Bi%5D%2Carr%5Blargest%5D%20%3D%20arr%5Blargest%5D%2Carr%5Bi%5D%20%20%23%20swap%0A%20%0A%20%20%20%20%20%20%20%20%23%20Heapify%20the%20root.%0A%20%20%20%20%20%20%20%20heapify(arr%2C%20n%2C%20largest)%0A%20%0A%23%20The%20main%20function%20to%20sort%20an%20array%20of%20given%20size%0Adef%20heapSort(arr)%3A%0A%20%20%20%20n%20%3D%20len(arr)%0A%20%0A%20%20%20%20%23%20Build%20a%20maxheap.%0A%20%20%20%20for%20i%20in%20range(n%2C%20-1%2C%20-1)%3A%0A%20%20%20%20%20%20%20%20heapify(arr%2C%20n%2C%20i)%0A%20%0A%20%20%20%20%23%20One%20by%20one%20extract%20elements%0A%20%20%20%20for%20i%20in%20range(n-1%2C%200%2C%20-1)%3A%0A%20%20%20%20%20%20%20%20arr%5Bi%5D%2C%20arr%5B0%5D%20%3D%20arr%5B0%5D%2C%20arr%5Bi%5D%20%20%20%23%20swap%0A%20%20%20%20%20%20%20%20heapify(arr%2C%20i%2C%200)%0A%20%0A%23%20Driver%20code%20to%20test%20above%0Aarr%20%3D%20%5B%2012%2C%2011%2C%2013%2C%205%2C%206%2C%207%5D%0AheapSort(arr)%0An%20%3D%20len(arr)%0Aprint%20(%22Sorted%20array%20is%22)%0Afor%20i%20in%20range(n)%3A%0A%20%20%20%20print%20(%22%25d%22%20%25arr%5Bi%5D)%2C%0A%23%20This%20code%20is%20contributed%20by%20Mohit%20Kumra%0ARun%20on%20IDE%0A\u201d message=\u201dpython\u201d highlight=\u201d\u201d provider=\u201dmanual\u201d\/]\n<p><strong>Output:<\/strong><\/p>\n<pre>Sorted array is\r\n5 6 7 11 12 13<\/pre>\n<p><a href=\"http:\/\/code.geeksforgeeks.org\/rFO7Lm\">Here<\/a> is previous C code for reference.<\/p>\n[ad type=\u201dbanner\u201d]\n<p><strong>Notes:<\/strong><br \/>\nHeap sort is an in-place algorithm.<br \/>\nIts typical implementation is not stable, but can be made stable (See <a href=\"http:\/\/www.geeksforgeeks.org\/stability-in-sorting-algorithms\/\" target=\"_blank\" rel=\"noopener noreferrer\">this<\/a>)<\/p>\n<p><strong>Time Complexity: <\/strong>Time complexity of heapify is O(Logn). Time complexity of createAndBuildHeap() is O(n) and overall time complexity of Heap Sort is O(nLogn).<\/p>\n<p><strong>Applications of HeapSort<\/strong><br \/>\n<strong>1.<\/strong> <a href=\"http:\/\/www.geeksforgeeks.org\/nearly-sorted-algorithm\/\" target=\"_blank\" rel=\"noopener noreferrer\">Sort a nearly sorted (or K sorted) array<\/a><br \/>\n<strong>2. <\/strong><a href=\"http:\/\/www.geeksforgeeks.org\/k-largestor-smallest-elements-in-an-array\/\" target=\"_blank\" rel=\"noopener noreferrer\">k largest(or smallest) elements in an array<\/a><\/p>\n<p>Heap sort algorithm has limited uses because Quicksort and Mergesort are better in practice. Nevertheless, the Heap data structure itself is enormously used.<\/p>\n<p>\u00a0<\/p>\n<div class=\"responsive-tabs-wrapper\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Heap Sort &#8211; Searching and Sorting &#8211; Heap sort is a comparison based sorting technique based on Binary Heap data structure. It is similar to selection sort.where we first find the maximum element and place the maximum element at the end.<\/p>\n","protected":false},"author":1,"featured_media":25139,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[69969,71670],"tags":[70054,70885,70898,2380,70263,70291,70285,70461,71121,70978,71123,71122,71129,70780,70465,70918,70497,70048,70740,70731,70929,70889,70271,70928,70923,70876,70875,70932,70873,70894,70933,70877,70880,71216,70017,71675,70262,71262,71289,71276,71268,71263,71267,71172,70046,71145,71265,71677,71269,71266,71120,70016,70964,71674,71125,71162,71676,70020,71149],"class_list":["post-25135","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-algorithm","category-searching-and-sorting","tag-algorithm","tag-algorithm-for-heap-sort","tag-algorithm-of-heap-sort","tag-array-sort","tag-binary-search-tree","tag-binary-tree-insertion","tag-binary-tree-traversal","tag-bubble-sort","tag-bubble-sort-algorithm","tag-bubble-sort-c","tag-bubble-sort-in-c","tag-bubble-sort-java","tag-bubble-sort-program","tag-bubblesort","tag-bucket-sort","tag-c-program-for-heap-sort","tag-counting-sort","tag-data-structures","tag-dijkstra","tag-heap","tag-heap-data-structure","tag-heap-in-data-structure","tag-heap-sort","tag-heap-sort-algorithm","tag-heap-sort-algorithm-in-c","tag-heap-sort-algorithm-in-data-structure","tag-heap-sort-algorithm-with-example","tag-heap-sort-in-c","tag-heap-sort-in-data-structure","tag-heap-sort-program","tag-heap-sort-program-in-c","tag-heap-sort-time-complexity","tag-heapsort-example","tag-insertion-sort","tag-insertion-sort-algorithm","tag-java-tutorial","tag-merge-sort","tag-merge-sort-algorithm","tag-merge-sort-algorithm-in-c","tag-merge-sort-algorithm-with-example","tag-merge-sort-in-java","tag-merge-sort-java","tag-quick-sort-algorithm","tag-quick-sort-program","tag-quicksort","tag-quicksort-c","tag-quicksort-example","tag-quicksort-explained","tag-radix-sort","tag-radix-sort-algorithm","tag-selection-sort","tag-selection-sort-algorithm","tag-selection-sort-code","tag-sort","tag-sort-code","tag-sort-java","tag-sorting-a-linked-list","tag-sorting-algorithms","tag-sorting-algorithms-in-data-structures"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/25135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/comments?post=25135"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/25135\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media\/25139"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=25135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=25135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=25135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}