<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Data Structures on </title>
    <link>/tags/data-structures/</link>
    <description>Recent content in Data Structures on </description>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Thu, 01 Dec 2016 19:33:49 +0000</lastBuildDate><atom:link href="/tags/data-structures/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Heapsort algorithm (Java)</title>
      <link>/heapsort-algorithm-java/</link>
      <pubDate>Thu, 01 Dec 2016 19:33:49 +0000</pubDate>
      
      <guid>/heapsort-algorithm-java/</guid>
      <description>Heapsort algorithm details: Worst-case Time Complexity: O(n log(n))
Space Complexity: O(1)
The algorithm The heapsort algorithm is an in-place, comparison based sorting algorithm. In the core of the algorithm (as the name suggest), the use of the heap data structure is improving the time complexity. In a nutshell, heap is a special type of tree, where the elements in the tree are in a certain order to each other. This allows to find the minimum or maximum of binary heap in O(1) and insertion/deletion in O(log(n)).</description>
    </item>
    
    <item>
      <title>Merge sort algorithm (Java)</title>
      <link>/merge-sort-algorithm-java/</link>
      <pubDate>Wed, 16 Nov 2016 19:39:52 +0000</pubDate>
      
      <guid>/merge-sort-algorithm-java/</guid>
      <description>Merge sort algorithm details: Worst-case Time Complexity: O(n log(n))
Space Complexity: O()
The algorithm Merge sort is comparison based algorithm, from the efficient sorting category. The algorithm is based on “Divide and conquer” (John Van Neumann), which means in this case, that the original collection is divided into smaller chunks. This idea can be implemented in a recursive fashion, so that the collection is divided into single elements and then re-constructed into a sorted collection.</description>
    </item>
    
    <item>
      <title>Bubble sort algorithm (Java)</title>
      <link>/bubble-sort-algorithm-java/</link>
      <pubDate>Mon, 14 Nov 2016 19:45:58 +0000</pubDate>
      
      <guid>/bubble-sort-algorithm-java/</guid>
      <description>Algorithm details: Worst-case Time Complexity: O(n^2)
Space Complexity: O(1)
The algorithm Bubble sort is a very simple sorting algorithm, with straight forward implementation. The algorithm is based on comparison of all elements to each other. The compared element positions are switched on the comparison result, and the element is shifted to the correct location. This implies, that each element has to be checked against each other. This results in n*n comparisons, even if the collection is in order.</description>
    </item>
    
  </channel>
</rss>
