{"id":384,"date":"2023-04-05T10:06:45","date_gmt":"2023-04-05T10:06:45","guid":{"rendered":"https:\/\/vmlogger.com\/algorithms\/?p=384"},"modified":"2023-04-05T10:06:45","modified_gmt":"2023-04-05T10:06:45","slug":"bubble-sort-algorithm","status":"publish","type":"post","link":"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/","title":{"rendered":"What is Bubble Sort and its implementation in Python"},"content":{"rendered":"

In the world of sorting algorithms, Bubble Sort is a classic algorithm. While it may not be the most efficient way to sort large datasets, it is easy to understand and implement. In this article, we’ll explore how to implement Bubble Sort in Python, and we’ll provide you with a step-by-step visual guide and examples to help you understand how this simple algorithm works. Also, I have provided two implementations of bubble sort with their best and worst time complexity.<\/p>\n

What is Bubble Sort?<\/h2>\n

Bubble sort is a simple sorting algorithm that works by repeatedly swapping adjacent elements if they are in the wrong order. You swap them according to the order in which you want to sort the list. It is named bubble sort<\/code> as in the process of sorting, every element will keep on popping and swapping to each other like bubbles :). <\/p>\n

\n

Note:<\/h3>\n\n

Although Bubble sort<\/strong> is very easy to understand and implement, it is not the most efficient sorting algorithm for large data sets. The time complexity of Bubble sort is O(n^2)<\/code> in both the worst and average cases. Merge sort<\/a> is a suitable and efficient algorithm for large data sets. The time complexity of merge sort is O(n * log n)<\/code> which is way better than Bubble Sort.<\/p>\n<\/div>\n

Working of Bubble Sort<\/h2>\n

Here’s how Bubble Sort works:<\/strong><\/p>\n

    \n
  1. We start by comparing the first two elements of the list. If the first element is greater or smaller than the second element, we swap them. If they are already in the correct order, we leave them as they are.<\/li>\n
  2. We then move on to compare the second and third elements, and so on, until we reach the end of the list.<\/li>\n
  3. At the end of this iteration, the last element will reach its place.<\/li>\n
  4. Once we reach the end of the list, we repeat the process, but this time we only iterate up to the second-last element, because the last element is already in its correct position.<\/li>\n
  5. We keep repeating this process until the entire list is sorted.<\/li>\n<\/ol>\n
    \"Bubble

    Bubble Sort Algorithm – [Source: Wiki]<\/p><\/div>\n

    Implementation of Bubble sort in Python – Worst<\/h2>\n

    Following is the simplest implementation of Bubble sort where time complexity in all the cases, best and worst, would be O(n^2)<\/code>. Even if the provided array is already sorted, it will still take the same time to return the sorted array. Can we improve it? Refer next implementation<\/code><\/p>\n

    \r\ndef bubbleSort(arrayToSort):\r\n    \"\"\"\r\n    Time complexity:\r\n        best    : O(n^2)\r\n        average : O(n^2)\r\n        worst   : O(n^2)\r\n    parameters:\r\n        arrayToSort : Array to be sorted\r\n    returns:\r\n        Sorted array\r\n    \"\"\"\r\n    size = len(arrayToSort)\r\n    for i in range(size):\r\n        for j in range(0, size - i - 1):\r\n            if arrayToSort[j] > arrayToSort[j + 1]:\r\n                arrayToSort[j], arrayToSort[j + 1] = arrayToSort[j + 1], arrayToSort[j]\r\n            print(i, j)\r\n    return arrayToSort\r\n<\/pre>\n

    Implementation of Bubble sort in Python – Better<\/h2>\n

    In the below implementation, the best time complexity can be O(n)<\/code>. Although the worst or average time complexity in the below implementation would also be the same O(n^2)<\/code>.<\/p>\n

    \r\ndef bubbleSort(arrayToSort):\r\n    \"\"\"\r\n    Time complexity:\r\n        best    : O(n) - when the array is already sorted\r\n        average : O(n^2)\r\n        worst   : O(n^2)\r\n    parameters:\r\n        arrayToSort : Array to be sorted\r\n    returns:\r\n        Sorted array\r\n    \"\"\"\r\n    iCount = 0\r\n    isSorted = False\r\n    size = len(arrayToSort)\r\n    while not isSorted:\r\n        isSorted = True\r\n        for i in range(0, size - iCount - 1):\r\n            if arrayToSort[i] > arrayToSort[i + 1]:\r\n                arrayToSort[i], arrayToSort[i + 1] = arrayToSort[i + 1], arrayToSort[i]\r\n                isSorted = False\r\n            print(i)\r\n        iCount += 1\r\n    return arrayToSort\r\n<\/pre>\n
    \n

    Interesting Algorithms:<\/h3>\n
      \n
    1. Dijkstra’s Shortest Path Algorithm<\/a><\/li>\n
    2. Merge Sort<\/a><\/li>\n
    3. Heap Data Structure (minHeap and maxHeap)<\/a><\/li>\n<\/ol>\n

      Visit my github repo<\/a> for all the codes<\/code><\/p>\n<\/div>\n<\/span>","protected":false},"excerpt":{"rendered":"

      In the world of sorting algorithms, Bubble Sort is a classic algorithm. While it may not be the most efficient way to sort large datasets, it is easy to understand and implement. In this article, we’ll explore how to implement Bubble Sort in Python, and we’ll provide you with a step-by-step visual guide and examples […]<\/p>\n","protected":false},"author":45,"featured_media":395,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[3,10],"tags":[],"class_list":["post-384","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-easy","category-sorting"],"yoast_head":"\nWhat is Bubble Sort and its implementation in Python - Algorithms<\/title>\n<meta name=\"description\" content=\"Learn how to implement Bubble Sort in Python with this easy-to-follow visual guide. Discover how this simple sorting algorithm works, and get step-by-step examples with Python code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is Bubble Sort and its implementation in Python\" \/>\n<meta property=\"og:description\" content=\"Learn how to implement Bubble Sort in Python with this easy-to-follow visual guide. Discover how this simple sorting algorithm works, and get step-by-step examples with Python code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/\" \/>\n<meta property=\"og:site_name\" content=\"Algorithms\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/vmlogger\" \/>\n<meta property=\"article:author\" content=\"http:\/\/www.facebook.com\/vmlogger\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-05T10:06:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/vmlogger.com\/algorithms\/wp-content\/uploads\/sites\/15\/2023\/04\/bubble-sort.gif\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/gif\" \/>\n<meta name=\"author\" content=\"Vishwamitra Mishra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/www.twitter.com\/learnexcelmacro\" \/>\n<meta name=\"twitter:site\" content=\"@learnexcelmacro\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vishwamitra Mishra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/\"},\"author\":{\"name\":\"Vishwamitra Mishra\",\"@id\":\"https:\/\/vmlogger.com\/algorithms\/#\/schema\/person\/7500a107b0b2d35a8492acf0d11fc8e5\"},\"headline\":\"What is Bubble Sort and its implementation in Python\",\"datePublished\":\"2023-04-05T10:06:45+00:00\",\"dateModified\":\"2023-04-05T10:06:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/\"},\"wordCount\":455,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/vmlogger.com\/algorithms\/#\/schema\/person\/7500a107b0b2d35a8492acf0d11fc8e5\"},\"image\":{\"@id\":\"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/vmlogger.com\/algorithms\/wp-content\/uploads\/sites\/15\/2023\/04\/bubble-sort.gif\",\"articleSection\":[\"Easy\",\"Sorting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/\",\"url\":\"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/\",\"name\":\"What is Bubble Sort and its implementation in Python - Algorithms\",\"isPartOf\":{\"@id\":\"https:\/\/vmlogger.com\/algorithms\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/vmlogger.com\/algorithms\/wp-content\/uploads\/sites\/15\/2023\/04\/bubble-sort.gif\",\"datePublished\":\"2023-04-05T10:06:45+00:00\",\"dateModified\":\"2023-04-05T10:06:45+00:00\",\"description\":\"Learn how to implement Bubble Sort in Python with this easy-to-follow visual guide. Discover how this simple sorting algorithm works, and get step-by-step examples with Python code.\",\"breadcrumb\":{\"@id\":\"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#primaryimage\",\"url\":\"https:\/\/vmlogger.com\/algorithms\/wp-content\/uploads\/sites\/15\/2023\/04\/bubble-sort.gif\",\"contentUrl\":\"https:\/\/vmlogger.com\/algorithms\/wp-content\/uploads\/sites\/15\/2023\/04\/bubble-sort.gif\",\"width\":1280,\"height\":720,\"caption\":\"Bubble Sort - Animation\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/vmlogger.com\/algorithms\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is Bubble Sort and its implementation in Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/vmlogger.com\/algorithms\/#website\",\"url\":\"https:\/\/vmlogger.com\/algorithms\/\",\"name\":\"Algorithms\",\"description\":\"Welcome to the World of Algorithms\",\"publisher\":{\"@id\":\"https:\/\/vmlogger.com\/algorithms\/#\/schema\/person\/7500a107b0b2d35a8492acf0d11fc8e5\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/vmlogger.com\/algorithms\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/vmlogger.com\/algorithms\/#\/schema\/person\/7500a107b0b2d35a8492acf0d11fc8e5\",\"name\":\"Vishwamitra Mishra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/vmlogger.com\/algorithms\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/vmlogger.com\/algorithms\/wp-content\/uploads\/sites\/15\/2023\/03\/welcome-1.png\",\"contentUrl\":\"https:\/\/vmlogger.com\/algorithms\/wp-content\/uploads\/sites\/15\/2023\/03\/welcome-1.png\",\"width\":1963,\"height\":843,\"caption\":\"Vishwamitra Mishra\"},\"logo\":{\"@id\":\"https:\/\/vmlogger.com\/algorithms\/#\/schema\/person\/image\/\"},\"description\":\"My name is Vishwamitra Mishra. Friends Call me Vishwa. I hold a Bachelor\u2019s Degree in Computer Science from D.A.V.V. Indore & currently working as a Technical Lead having over 7 years of experience.\",\"sameAs\":[\"http:\/\/www.learnexcelmacro.com\",\"http:\/\/www.facebook.com\/vmlogger\",\"https:\/\/x.com\/https:\/\/www.twitter.com\/learnexcelmacro\",\"https:\/\/www.youtube.com\/c\/VMLogger\"],\"url\":\"https:\/\/vmlogger.com\/algorithms\/author\/vishwamitra\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"What is Bubble Sort and its implementation in Python - Algorithms","description":"Learn how to implement Bubble Sort in Python with this easy-to-follow visual guide. Discover how this simple sorting algorithm works, and get step-by-step examples with Python code.","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:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/","og_locale":"en_US","og_type":"article","og_title":"What is Bubble Sort and its implementation in Python","og_description":"Learn how to implement Bubble Sort in Python with this easy-to-follow visual guide. Discover how this simple sorting algorithm works, and get step-by-step examples with Python code.","og_url":"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/","og_site_name":"Algorithms","article_publisher":"http:\/\/www.facebook.com\/vmlogger","article_author":"http:\/\/www.facebook.com\/vmlogger","article_published_time":"2023-04-05T10:06:45+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/vmlogger.com\/algorithms\/wp-content\/uploads\/sites\/15\/2023\/04\/bubble-sort.gif","type":"image\/gif"}],"author":"Vishwamitra Mishra","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/www.twitter.com\/learnexcelmacro","twitter_site":"@learnexcelmacro","twitter_misc":{"Written by":"Vishwamitra Mishra","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#article","isPartOf":{"@id":"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/"},"author":{"name":"Vishwamitra Mishra","@id":"https:\/\/vmlogger.com\/algorithms\/#\/schema\/person\/7500a107b0b2d35a8492acf0d11fc8e5"},"headline":"What is Bubble Sort and its implementation in Python","datePublished":"2023-04-05T10:06:45+00:00","dateModified":"2023-04-05T10:06:45+00:00","mainEntityOfPage":{"@id":"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/"},"wordCount":455,"commentCount":0,"publisher":{"@id":"https:\/\/vmlogger.com\/algorithms\/#\/schema\/person\/7500a107b0b2d35a8492acf0d11fc8e5"},"image":{"@id":"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#primaryimage"},"thumbnailUrl":"https:\/\/vmlogger.com\/algorithms\/wp-content\/uploads\/sites\/15\/2023\/04\/bubble-sort.gif","articleSection":["Easy","Sorting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/","url":"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/","name":"What is Bubble Sort and its implementation in Python - Algorithms","isPartOf":{"@id":"https:\/\/vmlogger.com\/algorithms\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#primaryimage"},"image":{"@id":"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#primaryimage"},"thumbnailUrl":"https:\/\/vmlogger.com\/algorithms\/wp-content\/uploads\/sites\/15\/2023\/04\/bubble-sort.gif","datePublished":"2023-04-05T10:06:45+00:00","dateModified":"2023-04-05T10:06:45+00:00","description":"Learn how to implement Bubble Sort in Python with this easy-to-follow visual guide. Discover how this simple sorting algorithm works, and get step-by-step examples with Python code.","breadcrumb":{"@id":"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#primaryimage","url":"https:\/\/vmlogger.com\/algorithms\/wp-content\/uploads\/sites\/15\/2023\/04\/bubble-sort.gif","contentUrl":"https:\/\/vmlogger.com\/algorithms\/wp-content\/uploads\/sites\/15\/2023\/04\/bubble-sort.gif","width":1280,"height":720,"caption":"Bubble Sort - Animation"},{"@type":"BreadcrumbList","@id":"https:\/\/vmlogger.com\/algorithms\/2023\/04\/05\/bubble-sort-algorithm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vmlogger.com\/algorithms\/"},{"@type":"ListItem","position":2,"name":"What is Bubble Sort and its implementation in Python"}]},{"@type":"WebSite","@id":"https:\/\/vmlogger.com\/algorithms\/#website","url":"https:\/\/vmlogger.com\/algorithms\/","name":"Algorithms","description":"Welcome to the World of Algorithms","publisher":{"@id":"https:\/\/vmlogger.com\/algorithms\/#\/schema\/person\/7500a107b0b2d35a8492acf0d11fc8e5"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vmlogger.com\/algorithms\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/vmlogger.com\/algorithms\/#\/schema\/person\/7500a107b0b2d35a8492acf0d11fc8e5","name":"Vishwamitra Mishra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vmlogger.com\/algorithms\/#\/schema\/person\/image\/","url":"https:\/\/vmlogger.com\/algorithms\/wp-content\/uploads\/sites\/15\/2023\/03\/welcome-1.png","contentUrl":"https:\/\/vmlogger.com\/algorithms\/wp-content\/uploads\/sites\/15\/2023\/03\/welcome-1.png","width":1963,"height":843,"caption":"Vishwamitra Mishra"},"logo":{"@id":"https:\/\/vmlogger.com\/algorithms\/#\/schema\/person\/image\/"},"description":"My name is Vishwamitra Mishra. Friends Call me Vishwa. I hold a Bachelor\u2019s Degree in Computer Science from D.A.V.V. Indore & currently working as a Technical Lead having over 7 years of experience.","sameAs":["http:\/\/www.learnexcelmacro.com","http:\/\/www.facebook.com\/vmlogger","https:\/\/x.com\/https:\/\/www.twitter.com\/learnexcelmacro","https:\/\/www.youtube.com\/c\/VMLogger"],"url":"https:\/\/vmlogger.com\/algorithms\/author\/vishwamitra\/"}]}},"_links":{"self":[{"href":"https:\/\/vmlogger.com\/algorithms\/wp-json\/wp\/v2\/posts\/384"}],"collection":[{"href":"https:\/\/vmlogger.com\/algorithms\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vmlogger.com\/algorithms\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vmlogger.com\/algorithms\/wp-json\/wp\/v2\/users\/45"}],"replies":[{"embeddable":true,"href":"https:\/\/vmlogger.com\/algorithms\/wp-json\/wp\/v2\/comments?post=384"}],"version-history":[{"count":12,"href":"https:\/\/vmlogger.com\/algorithms\/wp-json\/wp\/v2\/posts\/384\/revisions"}],"predecessor-version":[{"id":398,"href":"https:\/\/vmlogger.com\/algorithms\/wp-json\/wp\/v2\/posts\/384\/revisions\/398"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vmlogger.com\/algorithms\/wp-json\/wp\/v2\/media\/395"}],"wp:attachment":[{"href":"https:\/\/vmlogger.com\/algorithms\/wp-json\/wp\/v2\/media?parent=384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vmlogger.com\/algorithms\/wp-json\/wp\/v2\/categories?post=384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vmlogger.com\/algorithms\/wp-json\/wp\/v2\/tags?post=384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}