<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: Heaps and Priority Queues in C++ &#8211; Part 1: Heaps Basics	</title>
	<atom:link href="https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/</link>
	<description>Jonathan Boccara&#039;s blog</description>
	<lastBuildDate>Sun, 18 Mar 2018 19:43:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.3</generator>
	<item>
		<title>
		By: Jean-Simon Lapointe		</title>
		<link>https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-873</link>

		<dc:creator><![CDATA[Jean-Simon Lapointe]]></dc:creator>
		<pubDate>Sun, 18 Mar 2018 19:43:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2883#comment-873</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-872&quot;&gt;Jonathan Boccara&lt;/a&gt;.

I just checked, and it seems that the operator &#060; is overloaded for std::set, and it is the std::lexicographical_compare. 
They thought of everything, we can&#039;t even invent an operator! :)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-872">Jonathan Boccara</a>.</p>
<p>I just checked, and it seems that the operator &lt; is overloaded for std::set, and it is the std::lexicographical_compare.<br />
They thought of everything, we can&#039;t even invent an operator! 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jonathan Boccara		</title>
		<link>https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-872</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Sun, 18 Mar 2018 19:35:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2883#comment-872</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-870&quot;&gt;Jean-Simon Lapointe&lt;/a&gt;.

You&#039;re right Jean-Simon, I&#039;ve made the correction. Thanks for the feedback!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-870">Jean-Simon Lapointe</a>.</p>
<p>You&#8217;re right Jean-Simon, I&#8217;ve made the correction. Thanks for the feedback!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jean-Simon Lapointe		</title>
		<link>https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-870</link>

		<dc:creator><![CDATA[Jean-Simon Lapointe]]></dc:creator>
		<pubDate>Sat, 17 Mar 2018 02:46:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2883#comment-870</guid>

					<description><![CDATA[A heap of set could not be implemented with the relationship &#039;is included in&#039;, since this relation does not define a total order (only a partial order): i.e.: there exist two sets a and b such that neither is included in the other. For example the set containing {1,2} and the set containing {1,3}. 
There exist some total order on sets, like lexicographical order, that would make a heap of set valid.
Thanks for the post, always great to read...]]></description>
			<content:encoded><![CDATA[<p>A heap of set could not be implemented with the relationship &#8216;is included in&#8217;, since this relation does not define a total order (only a partial order): i.e.: there exist two sets a and b such that neither is included in the other. For example the set containing {1,2} and the set containing {1,3}.<br />
There exist some total order on sets, like lexicographical order, that would make a heap of set valid.<br />
Thanks for the post, always great to read&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jonathan Boccara		</title>
		<link>https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-864</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Fri, 16 Mar 2018 08:41:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2883#comment-864</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-862&quot;&gt;Mayank&lt;/a&gt;.

Yes! I made the correction, thanks for this precision Mayank :)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-862">Mayank</a>.</p>
<p>Yes! I made the correction, thanks for this precision Mayank 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mayank		</title>
		<link>https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-862</link>

		<dc:creator><![CDATA[Mayank]]></dc:creator>
		<pubDate>Thu, 15 Mar 2018 21:42:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2883#comment-862</guid>

					<description><![CDATA[Under &quot;Checking for the heap property&quot;, you wrote that &quot;returns true if numbers is a heap and false otherwise&quot;. I think this should rather be &quot;returns true if numbers is a **max** heap and false otherwise&quot;.]]></description>
			<content:encoded><![CDATA[<p>Under &#8220;Checking for the heap property&#8221;, you wrote that &#8220;returns true if numbers is a heap and false otherwise&#8221;. I think this should rather be &#8220;returns true if numbers is a **max** heap and false otherwise&#8221;.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jonathan Boccara		</title>
		<link>https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-860</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Wed, 14 Mar 2018 23:07:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2883#comment-860</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-858&quot;&gt;Aymen Schehaider&lt;/a&gt;.

Yes Aymen, this would be a heap too. Heaps can have various forms depending on the order that their elements were inserted. The next post (on Friday) shows how elements get inserted into a heap, so we can talk more about this then if you like.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-858">Aymen Schehaider</a>.</p>
<p>Yes Aymen, this would be a heap too. Heaps can have various forms depending on the order that their elements were inserted. The next post (on Friday) shows how elements get inserted into a heap, so we can talk more about this then if you like.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tom		</title>
		<link>https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-859</link>

		<dc:creator><![CDATA[Tom]]></dc:creator>
		<pubDate>Wed, 14 Mar 2018 10:20:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2883#comment-859</guid>

					<description><![CDATA[Important to note that the heap must satisfy the &quot;shape property&quot; of a binary heap for the heap to be able to be stored in an array without using children pointers. If each level of the heap is not fully-filled (except for the final row) then you can&#039;t store the heap in an array unless you use child pointers between elements.]]></description>
			<content:encoded><![CDATA[<p>Important to note that the heap must satisfy the &#8220;shape property&#8221; of a binary heap for the heap to be able to be stored in an array without using children pointers. If each level of the heap is not fully-filled (except for the final row) then you can&#8217;t store the heap in an array unless you use child pointers between elements.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aymen Schehaider		</title>
		<link>https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-858</link>

		<dc:creator><![CDATA[Aymen Schehaider]]></dc:creator>
		<pubDate>Tue, 13 Mar 2018 16:30:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2883#comment-858</guid>

					<description><![CDATA[I did not get how the heap is created with that values ? 

why couldn&#039;t we had something like &quot;9 8 7 6 5 ...&quot;]]></description>
			<content:encoded><![CDATA[<p>I did not get how the heap is created with that values ? </p>
<p>why couldn&#8217;t we had something like &#8220;9 8 7 6 5 &#8230;&#8221;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jonathan Boccara		</title>
		<link>https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-857</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Tue, 13 Mar 2018 07:38:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2883#comment-857</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-856&quot;&gt;Oleg Bogdanov&lt;/a&gt;.

Yes it&#039;s level order, this is fixed now, thanks for the feedback Oleg.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-856">Oleg Bogdanov</a>.</p>
<p>Yes it&#8217;s level order, this is fixed now, thanks for the feedback Oleg.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Oleg Bogdanov		</title>
		<link>https://www.fluentcpp.com/2018/03/13/heaps-priority-queues-stl-part-1/#comment-856</link>

		<dc:creator><![CDATA[Oleg Bogdanov]]></dc:creator>
		<pubDate>Tue, 13 Mar 2018 02:53:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=2883#comment-856</guid>

					<description><![CDATA[I dont think this is &#039;inorder traversal&#039; to be honest]]></description>
			<content:encoded><![CDATA[<p>I dont think this is &#8216;inorder traversal&#8217; to be honest</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
